Cancel-block-break script

GloatyMadn

New member
Mar 11, 2020
1
0
0
Hello.
Please help,how make a cancel block-break script if player break blocks with a "§eExplosion pickaxe"
But if the player has permission item.explosionpickaxe he can use it.

I tried to search for instructions on how to write a script for denizen on version 1.12.2, but I didn't find anything, so I had to write topic here.
 

mcmonkey

Administrator
Staff member
GloatyMadn said:
Hello.
Please help,how make a cancel block-break script if player break blocks with a "§eExplosion pickaxe"
But if the player has permission item.explosionpickaxe he can use it.

I tried to search for instructions on how to write a script for denizen on version 1.12.2, but I didn't find anything, so I had to write topic here.

Check the beginner's guide @ https://guide.denizenscript.com/ and the support Discord @ https://discord.gg/Q6pZGSR and also maybe update your server to a modern version (ie 1.15.2)
 

n0nnie

Active member
https://guide.denizenscript.com/guides/basics/if-command.html#the-most-common-usage-of-if

You might check if someone have this item in his hand if breaking a block.

Otherwise:
- determine cancelled

For example:

pickaxe_script:
events:
on player breaks block:
- if <put_in_players_thingis_here.not>:
- determine cancelled

Learn to write scripts by the youtube vids Monkey provided. What you want to achieve is not so hard to learn trust me