Only show region title for players entering/exiting the area in Bedrock edition?

Only show region title for players entering/exiting the area in Bedrock edition? - Happy woman showing wooden signboard saying open

I've added a creative region to my survival world and when players enter/exit that region, I want to display a title and subtitle like so:

Home base title displayed.

This is easy enough to do with the title command and a command block, but I'm having trouble getting the title to only display for players entering/exiting the area.

Currently, I'm trying to chain command blocks to accomplish this task, but I'm not against crafting a function for it, as that's the end goal anyways (though I need the command block way first because my behavior pack isn't ready yet). The setup is currently:

# Block 1 (Repeat, Unconditional, Always Active)
tag @a[r=64] add "home"

# Block 2 (Chain, Conditional, Always Active)
gamemode creative @a[r=70,tag="home"]

# Block 3 (Chain, Conditional, Always Active)
tag @a[r=70,tag="home"] add "home-title"

# Block 4 (Chain, Conditional, Always Active)
title @a[r=70,tag="home-title"] subtitle "This is a safe space."

# Block 5 (Chain, Conditional, Always Active)
title @a[r=70,tag="home-title"] title "Home Base"

There are three other command blocks that are responsible for the exit process, all of which are set to:

  • Repeat
  • Unconditional
  • Always Active

Their commands are:

# Block 1
tag @a[rm=65] remove "home"

# Block 2
tag @a[rm=65] remove "home-title"

# Block 3
gamemode survival @a[rm=65]

My thought process was that for players that already have the home tag, the remaining blocks wouldn't execute, however this is not a true statement, and in hindsight, it never could've been since all remaining blocks impact all players within a 64 block radius.


How can I adjust my setup to ensure only players that are entering/exiting the area will see the title/subtitle with command blocks?

Bonus: Can it be done in a single function?



Best Answer

I am slightly confused as to what you're asking, but I think your issue is that you don't want:

tag @a[r=64] add "home"

to return a success if they already have home. If so, simply replace this command with:

execute @a[r=64,tag=!home] tag @s add "home"



Pictures about "Only show region title for players entering/exiting the area in Bedrock edition?"

Only show region title for players entering/exiting the area in Bedrock edition? - Cheerful ethnic female cafeteria owner in apron demonstrating cardboard signboard while standing near blue shabby door and windows after starting own business and looking at camera
Only show region title for players entering/exiting the area in Bedrock edition? - Unrecognizable person demonstrating coffee shop badge with Cold Brew inscription and creative design in hand while standing on blurred background
Only show region title for players entering/exiting the area in Bedrock edition? - Unrecognizable female showing burning paper with written inscription and bright flame on blurred background



How do you put a title on the screen in Minecraft bedrock?

2. Type the Command
  • Test if Players are within 10 blocks. In this example, we will test to see if there are any players within a 10 block radius with the following command: /testfor @a[r=10] ...
  • Test if Mooshrooms are within 50 blocks. ...
  • Test if Nearest Player is at Level 20 experience.


  • How do you test a player in a certain area bedrock?

    To enter a command in Minecraft, open the chat window and then type the command. Now the next time that you display the title screen for the player DigMinecraft, the new fade-in, stay and fade-out times will take effect. Congratulations, you just learned how to use the /title command in Minecraft!

    How do you use title commands in bedrock?

    Once cheats are enabled, Minecraft: Bedrock Edition players can open their chat console in-game and type out their command. The syntax of the command to replace blocks (in Bedrock Edition specifically) is currently: /fill <from> <to> <tilename> [tiledata] replace <replacetilename> <replacedatavalue>



    Bedrock Commands: How To Make Players Spawn At Spawn!




    Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

    Images: Tim Douglas, Ketut Subiyanto, Rachel Claire, Vickie Intili