I am doing a troll to my friend, but I am not very good at commands. I am trying like to replace diamond ore/blocks in a radius of 5 around him with stone. I tried it with /execute
and /testfor
but it either didn't work or work but not very well (one had bugs and didn't change the block). I don't have my command because I deleted the world.
Minecraft – How to detect a player close to a specific block Minecraft 1.9
minecraft-commandsminecraft-java-edition
Related Topic
- Minecraft – teleport a player when stepping on specific coordinates
- Minecraft Java Edition – Block Detection for a Specific Block using Commands
- Minecraft : Problem with 1.9 command blocks
- Minecraft Java Edition – How to Turn a Dropper with Specific Pattern of Items Inside into a Building
- Minecraft Java Edition Commands – How to Detect If Two Specific Items Are Thrown on the Same Block
Best Answer
To do this, create two repeating command blocks containing the following commands:
Command one:
Command two: