I'm making adventure and just wondering how do get blocks to be placed or gotten rid of with a command (that can be set of by a command block).


Use this command:

/setblock <x> <y> <z> <blockname> [Damage] {dataTags}

Where "blockname" means the block's name (ex. minecraft:dirt) and x y z signifies the coordinates of the place you want the block to show up (use f3 to find these, and look on the middle left of your screen for the "Block" or "Looking At" section). Example:

/setblock 0 1 0 minecraft:air
|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.