• 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.

Ban a block in a selected world

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.

Null45

Coal Miner
#1
cmd create blockban
cmd add blockban %worlds% = array(\"#INPUT THE WORLD WHERE YOU WANT THE BLOCK TO BE BANNED\")
cmd add blockban if %level% notin %worlds% then exit
cmd add blockban if %args%[7] != <Block Id> then exit
cmd add blockban cancel
cmd add blockban message %p% You cant place that block in this world!
cmd trigger place blockban

It's a simple command but i hope it helped you! :)
 
#15
cmd create blockban
cmd add blockban %worlds% = array(\"#INPUT THE WORLD WHERE YOU WANT THE BLOCK TO BE BANNED\")
cmd add blockban if %level% notin %worlds% then exit
cmd add blockban if %args%[7] != <Block Id> then exit
cmd add blockban cancel
cmd add blockban message %p% You cant place that block in this world!
cmd trigger place blockban

It's a simple command but i hope it helped you! :)
Why not just do if %args%[7] = <blockid> then cancel, so that this single command can be used to ban multiple items?