options:
kazma: &aSpawner Kırıcı
command /kazma [<player>] [<integer>]:
permission: op
trigger:
if arg-1 is set:
if arg-2 is set:
give arg 2 of diamond pickaxe named "{@kazma}" to arg-1
stop
else:
send "&7Kazma verebilmek için bir oyuncu belirtmelisin." to player
stop
else:
send "&7Doğru Kullanım: &e/kazma <oyuncu> <miktar>" to player
stop
on break:
if tool's display name is "{@kazma}":
if event-block is spawner:
add 1 to {kazma.%player%}
send "&7Bir adet spawner kırdın: &a%{kazma.%player%}%&7/&c5"
if {kazma.%player%} is more than or equal to 5:
send "&7Spawner kırma hakkın doldu." to player
remove 1 diamond pickaxe named "&aSpawner Kırıcı" from player's inventory
set {kazma.%player%} to 0
else:
cancel event
send "&cBu kazma ile sadece spawner kırabilirsin." to player