on right click:
if player's tool is a paper named "&9Bandaj":
if target block is a chest:
stop
if target block is a furnace:
stop
if target block is a sign:
stop
if target block is a ender chest:
stop
if target block is a crafting table:
stop
if target block is a dispenser:
stop
player's health is player's max health:
message "&7Sağlığın dolu olduğu için bandaj kullanılamıyor"
delete {cooldown.%player%}
stop
if {cooldown.%player%} isn't set:
set {cooldown.%player%} to true
set {_n} to 3
set {_loc} to location of player
loop 3 times:
player's tool is paper
name of player's tool is "&9Bandaj"
distance between {_loc} and player's location > 3:
send "&cHareket ettiğiniz için bandaj yenileme iptal edildi."
delete {cooldown.%player%}
stop
set player's action bar to "&cBandaj sarılıyor... &c&l%{_n}%"
remove 1 from {_n}
wait a seconds
{_n} < 1:
name of player's tool is "&9Bandaj":
send "&7[&4!&7] &9Bandaj &7kullanıldı. Canın yenileniyor."
apply regeneration 2 to player for {@seconds} seconds
remove 1 paper named "&9Bandaj" from player's inventory
send "&7[&4!&7] &7Canın yenilendi."
delete {cooldown.%player%}
else:
send "&cBaşarısız"
delete {cooldown.%player%}
else:
send "&cBaşarısız"
delete {cooldown.%player%}