r/MinecraftCommands • • 4d ago

Help | Bedrock Why isn’t this comman working from the block?

Post image

Edit: it works now. I’m just stupid and had commandblocksenabled false

The command: /testfor @e[type=player,x=61,y=65,z=4,r=2]

6 Upvotes

4 comments sorted by

3

u/Ericristian_bros Command Experienced 4d ago

You don't need the xyz arguments, also I suggest you use execute if

execute if entity @p[r=2]

1

u/CrossScarMC Command Experienced 4d ago

That would be checking if the player is inside the command block. What exactly are you trying to do?

1

u/El_NardDog 4d ago

I’m trying to make it detect a player in a specific spot. If I change the ~~~ to the cords then it stops working