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

Simple MadCommand: Blocked TNT

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
cmd add tnt if %args%[7] = 46 then goto 3

cmd add tnt exit

cmd add tnt message onlineplayers() §6[§cTNT Placement§6] §4%p% §chas just placed tnt

cnd add tnt /kick %p% TNT is forbidden! Further action shall be taken...
 

MuntThee

Tree Puncher
#8
You can beter do
Code:
/cmd create tnt block tnt in world
/cmd add tnt if %level% = \"world\" then goto 3
/cmd add tnt exit
/cmd add tnt if %args%[7] = 46 then cancel
/cmd add tnt if %args%[7] = 46 message %p% §f[§cBlockTNT§f] §bSorry %p% you cant place TnT in this world!
 
#9
You can beter do
Code:
/cmd create tnt block tnt in world
/cmd add tnt if %level% = \"world\" then goto 3
/cmd add tnt exit
/cmd add tnt if %args%[7] = 46 then cancel
/cmd add tnt if %args%[7] = 46 message %p% §f[§cBlockTNT§f] §bSorry %p% you cant place TnT in this world!
Great point! Tysm
 
#14
Can you add it so it says what world they placed it in
I suggest adding a small phrase 'in %level%' to the third line of the command made by Link. Other than that, it is cool, although I prefer MuntThee's way of cancelling the block placement, so you won't have to track down the tnt and break it. Anyways, it is still creative. Keep it up!