give stacked 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 community!

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

Deleted member 239

Hello,

How can i give players stacked items like a diamond chest?
I have a Kit plugin and i want to give stacked armor for example 64 diamond chestplates.
How can i do that?

add 64 of diamond chest..... doesn't work
They have to stacked in one slot.

Best regards
H0peLess
 
Not able to test right now but perhaps try this?
code_language.skript:
set slot # of the player's current inventory to 64 diamond chestplate
You'd likely have to loop their inventory and ensure there's an available slot so it didn't overwrite one of their current items.
If you don;t want to worry about their current inventory do this. It will drop it directly at them so they can pick it up and will stack whatever you specify.
code_language.skript:
drop 64 diamond chestplate at player
 
I have a list with the items.

loop {Kit::emoji_stuck_out_tongue:layer::*}:
add loop-value to player's inventory

I can't do this with your idea.
 
I have a list with the items.

loop {Kit::emoji_stuck_out_tongue:layer::*}:
add loop-value to player's inventory

I can't do this with your idea.
You still can, you'd just loop that list and set the slot to the loop value(ie: the items) using the loop index as a slot number. are you setting your kits up to just give on command or is it via a GUI?
 
Status
Not open for further replies.