How to replace blocks in a certain region?

3 posts / 0 new
Last post
Offline
Last seen: 4 months 3 weeks 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 day 14 hours ago
Joined: 10/08/2015 - 23:02
Gems: 49
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: 4 months 3 weeks 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