How to test if a villager with a custom name dies in 1.13.2[/header]
Hi everyone![/p]
I'm making a Minecraft minigame. In the game, you control a villager that has to go trough an obstacle course. If the villager dies, you have to start over again. Now my question:[/p]
Is there any logical way to do a /execute command, to test if the villager dies?[/b][/p]
I'm using Minecraft vanilla 1.13.2[/i][/p]
This is supposed to be in command block section but ok
/execute as @e[type=villager,name="Whatevername"]
This is for a villager with a name with no spaces or a name you cannot see (For example, "Villager". "Your Villager" doesn't work)
/execute as @e[type=villager,tag=whatevertag]
This is for a villager whos name you want to preserve (Like with spaces or a colored name). Using /tag add @e[type=villager,limit=1,distance=?] something and then executing it, you don't need a name.
You could also use
/execute unless @e[type=villager,name=?,tag=?]
if you need more info on a specific thing ask me here or dm
Hi everyone![/p] I'm making a Minecraft minigame. In the game, you control a villager that has to go trough an obstacle course. If the villager dies, you have to start over again. Now my question:[/p] Is there any logical way to do a /execute command, to test if the villager dies?[/b][/p] I'm using Minecraft vanilla 1.13.2[/i][/p]
T
his is supposed to be in command block section but okThis is for a villager with a name with no spaces or a name you cannot see (For example, "Villager". "Your Villager" doesn't work)
This is for a villager whos name you want to preserve (Like with spaces or a colored name). Using /tag add @e[type=villager,limit=1,distance=?] something and then executing it, you don't need a name.
You could also use
if you need more info on a specific thing ask me here or dm