Help with loop-items

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.
Oct 4, 2020
1
0
1
24
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
 
Status
Not open for further replies.