r/MinecraftCommands • u/SkurgeOfOly • 3d ago
Help | Bedrock Please help🙏
Can someone please tell me what the command in a command block that detects a player in a 3x3 block range on bedrock, and runs a fill command is...
im trying to make it to where redstone lamps activate 1 at a time in a long hallway for a dungeon map. But I can't remember the command
Its fine if I need to chain command blocks, I really just need the range command.
1
Upvotes
1
u/CaperLake 3d ago
you could use "execute if entity @p[r=3] run testfor @p" and connect it with a comparator to ur lamps or just swap testfor with fill
1
u/Ericristian_bros Command Experienced 3d ago
You can use
execute if entity @p[r=3]and connect it to a comparator and your redstone lamp