I am trying to create a command block machine that, when you drop a paper named Respawn it will kill you thus teleporting you to your spawnpoint. This is my code:
In a repeating command block: /testfor @e[type=Item] {Item:{tag:{display:{Name:"Respawn"}}}}
In a chain conditional block: /execute @e[type=Item] ~ ~ ~ kill @p
In another chain conditional block: /kill @e[type=Item]
Any help would be much appreciated. I have looked for tutorials on Youtube but none of the ones I found worked. I am using MC 1.12.1 if that is any help.
if you want to know what is happening, nothing is happening. The paper stays on the ground, my spawnpoint isn't set and all of the outputs of the command blocks don't update with any useful information of the problem. Thanks again if you know a solution to this problem!
I am trying to create a command block machine that, when you drop a paper named Respawn it will kill you thus teleporting you to your spawnpoint. This is my code:
In a repeating command block: /testfor @e[type=Item] {Item:{tag:{display:{Name:"Respawn"}}}}
In a chain conditional block: /execute @e[type=Item] ~ ~ ~ kill @p
In another chain conditional block: /kill @e[type=Item]
Any help would be much appreciated. I have looked for tutorials on Youtube but none of the ones I found worked. I am using MC 1.12.1 if that is any help.
if you want to know what is happening, nothing is happening. The paper stays on the ground, my spawnpoint isn't set and all of the outputs of the command blocks don't update with any useful information of the problem. Thanks again if you know a solution to this problem!