Problem with Minecraft execute command

Problem with Minecraft execute command - Side view of upset male entrepreneur in formal wear sitting on couch in modern living room and contemplating about financial problems while leaning on hands and looking down

I have a clock leading to a command block with this command:

/execute @p[r=4] ~ ~ ~ /tp @p ~-20 ~-5 ~

But when I get within 4 blocks nothing happens, the previous output box is blank.
What can I do to fix it?



Best Answer

Just do:

/tp @p[r=5] ~-20 ~-5 ~



Pictures about "Problem with Minecraft execute command"

Problem with Minecraft execute command - Expressive angry businessman in formal suit looking at camera and screaming with madness while hitting desk with fist
Problem with Minecraft execute command - Modern Asian man in jacket and glasses looking at laptop and screaming with mouth wide opened on white background
Problem with Minecraft execute command - High angle of concentrated female employee sitting at table in open space and thoughtfully looking away



Why do commands not work in Minecraft?

You can not run game commands in Minecraft until you have turned on cheats. Game commands let you switch between Creative and Survival game modes, change the time of day, change the weather, or summon a mob.

How do you execute a command in Minecraft?

Type the command in the chat window and press the Enter key to run the command. Once the cheat has been entered, the flame particle will appear directly 1 block in front of the entity running the command.

Why is my command block in Minecraft not working?

You may find that the commands you are trying to have the command block execute are not working. This may be due to the certain limitations the block has on what commands it can run successfully. Command Blocks will execute commands with an OP level 2 permissions.



Minecraft Execute Command [1.19] Tutorial




More answers regarding problem with Minecraft execute command

Answer 2

Nevermind, the clock I had was too fast, I slowed it down and it works now.

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

Images: Andrea Piacquadio, Andrea Piacquadio, Andrea Piacquadio, Anna Shvets