How to replace blocks in a certain region?

3 posts / 0 new
Last post
Offline
Last seen: 9 months 2 days ago
Joined: 10/11/2015 - 23:58
Gems: 0
How to replace blocks in a certain region?

Hey, I was wondering if anybody knew a code that would replace a certain type of block in an area around the user?

Basically; when the player right clicks an item or stands on a certain block(lets say stone), a certain type of block (lets say cobblestone) around the user will be set to 0(Air) 



DutchAT's picture
Offline
Last seen: 1 week 3 days ago
Joined: 10/08/2015 - 23:02
Gems: 50
You can do it with minecraft

You can do it with minecraft's commands:  /execute @e[type=Player] ~ ~ ~ detect minecraft:stone ~ ~-1 ~ /setblock ~ ~-1 ~ minecraft:cobblestone 0 replace

 

Offline
Last seen: 9 months 2 days ago
Joined: 10/11/2015 - 23:58
Gems: 0
RE:You can do it with minecraft

@DutchAT Unknown command... I'm running minecraft 1.7.10 btw