Command-Block Help
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?
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?
Commentaires
*I am a bot, and this action was performed automatically. Please [contact the moderators of this subreddit](/message/compose/?to=/r/Minecraft) if you have any questions or concerns.*
* Downvote this comment if this post is poor quality or does not fit the purpose of r/Minecraft
* Downvote this comment *and report the post* if it breaks the [rules](https://www.reddit.com/r/Minecraft/wiki/rules)
----
(*Vote has already ended*)