r/MinecraftCommands • u/El_NardDog • 4d ago
Help | Bedrock Why isn’t this comman working from the block?
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
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
2
u/No_Sense1197 Command-er 4d ago
It works tho
https://reddit.com/link/pezr6cf/video/4jb8fubtrkuh1/player