on skript load:
register new shaped crafting for golden shovel named "Magiczna Łopata" with lure 10 using dirt, dirt, dirt, dirt, gold ingot, dirt, dirt, dirt, dirt
on left click:
if tool of the player is golden shovel named "Magiczna Łopata":
cancel event
send "Tak sie nie uzywa tej lopaty!" to the player
on right click:
if tool of the player is golden shovel named "Magiczna Łopata":
if durability of player's tool > 10: # To nie wiem czy sie uda
set durability of player's tool to 10 # I to
if clicked block is bedrock:
if y-location of location of clicked block > 1:
damage player's tool by 1
delete clicked block
send "Usunales bedrock. (%location of clicked block%)" to the player
else:
cancel event
send "Nie wolno niszczyc Ci ostatnich szczatkow ziemi!!" to the player
else:
cancel event
send "Ta lopata niszczy tylko bedrocka" to the player
stop