I'm trying to make a Minecraft map, but I ran into a problem. I want a title to appear when you go to a different zone (Similar to Wynncraft), but the problem is that it is showing multiple times, and spamming on your screen when you are in a specific coordinates where the text should show.

Current Code

execute as @a[x=-65,y=4,z=11,distance=..1] run title @p title {"text":"Great East","color":"gold"}

Command Block Settings - |Repeat|Unconditional|Always Active|

How do I make the title show only once when I'm within those coordinates?


1 Answer 1


You can show the player on that coordinate the title and give them a score based on his location. If the player has that same score, don't show to him. It would look like something like this:

In chat, first, type in:

/scoreboard objectives add Location dummy

Then you can have in a chain of commands with the following template:

/execute as @a[...] unless score @s Location matches <LocationId> run title @s title {"text":"Great East","color":"gold"}
/execute as @a[...] run scoreboard players set @s Location <LocationId>

Simply change <LocationId> to whatever number you want and the @a[...] to your liking (you can keep on using the same as in your question). Remember to have different places with different numbers.

This way, the title will only show once, and will only appear again if you go to another place.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .