I'm trying to get a command block to detect when a stone\_button is pressed to then execute a teleport command. But when it teleports the player; it teleports them for however many ticks the button is pressed down for. I just want the player to be teleported once. For example my exact setup is this

CommandBlock Repeat, Unconditional, AA. >Execute if block X Y Z stone\_button\[powered=true\] run tp @ p X Y Z<

Then I click the button, and it holds me in the spot for the duration of the button being held down. For a couple ticks. However long a button press is. How do I get it so I'm only being teleported once? Not for however long the duration of the button press is?

Voir le contenu lié