Loop-slots?

  • 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.

JacobJake7

New Member
Jan 26, 2018
9
0
1
21
Everything works it's just that when I use the command, and I have 2 of the item in my hand, it only detects as one item, so it seems to only be reading the first item of the slot and not the entire stack.

How do I loop-slots? Or get skript to loop stacks of items?

My skript: https://pastebin.com/raw/spJt7LFx
 
Can you try replacing lines 7-8 with this?
Code:
if name of loop-item contains "&5&l64x Protection Stone":
    add item amount of loop-item to {count}

(Also, you should replace {count} and {removed} with {_count} and {_removed} to delete the variables when the entire command has finished running.)
 
Status
Not open for further replies.