How to replace blocks in a certain region?

4 posts / 0 new
Last post
Offline
Last seen: 1 year 1 month 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: 3 months 2 weeks ago
Joined: 10/08/2015 - 23:02
Gems: 57
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: 1 year 1 month 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

 

Offline
Last seen: 1 month 6 days ago
Joined: 08/23/2016 - 11:26
Gems: 10
so exactly how do you do it

so exactly how do you do it for a new block mod? I doubt the vanilla command would work.