Hi I would like to know why when I click on the gold nuggets nothing happens.
on rightclick:
if name of player's held item is "&e &nMoneta&8 (&f/luckyblock&8)":
wait 1 tick
set {_lore::*} to lore of player's tool
loop {_lore::*}:
if "%loop-value%" contains "potrai aggiungere le monete al conto":
loop all items in the player's inventory:
if loop-item is gold nugget:
if loop-item's name is "&e &nMoneta&8 (&f/luckyblock&8)":
if player is sneaking:
execute console command "coins add %player% %amount of loop-item in player's inventory%"
remove all loop-item from player's inventory
wait 1 tick
stop loop
stop
else:
execute console command "coins add %player% 1"
remove 1 of loop-item from player's inventory
wait 1 tick
stop loop
stop
on rightclick:
if name of player's held item is "&e &nMoneta&8 (&f/luckyblock&8)":
wait 1 tick
set {_lore::*} to lore of player's tool
loop {_lore::*}:
if "%loop-value%" contains "potrai aggiungere le monete al conto":
loop all items in the player's inventory:
if loop-item is gold nugget:
if loop-item's name is "&e &nMoneta&8 (&f/luckyblock&8)":
if player is sneaking:
execute console command "coins add %player% %amount of loop-item in player's inventory%"
remove all loop-item from player's inventory
wait 1 tick
stop loop
stop
else:
execute console command "coins add %player% 1"
remove 1 of loop-item from player's inventory
wait 1 tick
stop loop
stop