• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
  • Minecraft 1.16.220 Update + Bug/Crash Fixes
    Added MCPE 1.16.220 version and fixed crashes for multiple plugins. You can view the full changelist here.
  • Forum Updates - 4/11/2021
    Various changes have been made to the forums and a few categories. You can view the full changelist here.

replaceblock

Warning!
Hello , there have been no replies in this thread for more than 30 days.
Please make sure you have a valid reason before you reply to this thread or you may face moderation action.
#1
this command is an easy way to replace a block for example in a minigame. It is not for an manual use.

cmd delete replaceblock
cmd create replaceblock
cmd add replaceblock #not for manual use
cmd add replaceblock let %world% = %args%[1]
cmd add replaceblock let %xr% = %args%[2]
cmd add replaceblock let %yr% = %args%[3]
cmd add replaceblock let %zr% = %args%[4]
cmd add replaceblock let %blockreid% = %args%[5]
cmd add replaceblock let %blockid% = %args%[6]
cmd add replaceblock let %blockr% = blockinfo(%world%, %xr%, %yr%, %zr%)
cmd add replaceblock if %blockr%["id"] != %blockreid% then exit
cmd add replaceblock block %world% %xr% %yr% %zr% %blockid%
cmd unregister replaceblock