The title command in a execute command

The title command in a execute command - Man Holding a Megaphone

I can't use a /title command in a /execute command. Like this:

/execute @a[score_Health_min=0,score_Health_max=1] ~ ~ ~ /title @a title ["",{"text":"/!\\ You Died :( /!\\","color":"dark_red","underlined":true}]

I use this command and it won't work. Because I'm making a map and when the player died or dying, it will say in the screen:

/!\ You Died /!\

Please help me I don't know how to do this and if it uses a fill clock. I'm just gonna add a fill clock in my map.



Best Answer

  • where the spawn point is place two command blocks:

    /tp @p[r=2]

    /title @p[r=2]

  • make these command blocks repeating (if you're on 1.9 just set it, on 1.8 you should create a clock or more simple a small Redstone circuit with repeaters in circle)

When a player die and is in the spawn location it will execute /title command only to him, and will be teleported to the real spawn location




Pictures about "The title command in a execute command"

The title command in a execute command - Man With Megaphone Pointing
The title command in a execute command - Unrecognizable woman holding paw of dog
The title command in a execute command - Crop hacker silhouette typing on computer keyboard while hacking system



What does the title Command do?

The /title command is used to configure the title screen for a player. The /title command has different syntaxes depending on what you would like to do.

How do you execute a title in Minecraft?

ExecuteCommand executes a command line during a process. You can use ExecuteCommand to run a desktop application, but not a service.

What is an execute command?

First, set the subtitle text with the following command: /titleraw DigMinecraft subtitle {"rawtext":[{"text":"Run for your Life!"}]} Once the cheat has been entered, the title screen (with title and subtitle) will appear on the player's screen.



Minecraft Execute Command [1.19] Tutorial




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

Images: Pressmaster, Pressmaster, Ivan Babydov, Anete Lusina