Solved Get amount of item from a slot

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

Marsbar

Active Member
Mar 31, 2019
131
4
18
18
I have been trying to do this all day. I want to get an amount of paper from a slot in player's current inventory (slot 5). Here is an example:
Code:
set {_g} to item from slot 5 of player's current inventory

or:

set {_g} to amount of items in slot 5 o player's current inventory
 
What errors do you get when you run the code?

What problem are you having?

What is not working?

Have you tried debugging?
 
What errors do you get when you run the code?

What problem are you having?

What is not working?

Have you tried debugging?

Can't understand this condition.

I can't get skript to put an amount of an itemstack from a slot in the player's inventory into a variable. {_AmountOfPaper} = Amount of paper
in slot 5 of player's inventory

Yes I have tried that. There isn't much to debug tho
 
Status
Not open for further replies.