Page 1 of 1
Cancel-block-break script
Posted: March 31st, 2020, 6:49 am
by GloatyMadn
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.
Re: Cancel-block-break script
Posted: April 1st, 2020, 12:39 am
by mcmonkey
GloatyMadn wrote: ↑March 31st, 2020, 6:49 am
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)
Re: Cancel-block-break script
Posted: April 4th, 2020, 12:16 pm
by n0nnie
https://guide.denizenscript.com/guides/ ... sage-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