#stack

1 messages · Page 1 of 1 (latest)

rough smelt
#

How to give a plyer a stack of something if it's stackable?
Ex: swords are only 1, eggs are 16, snowballs are 16, etc

last crater
#

there's an expression for the max stack size

rough smelt
#

where

#

how would i give a max stack size tho

last crater
#
rough smelt
#

dude ik'

#

oml

#

give player max stack size of {_items}

#

that doesnt work

last crater
#

yes, because you are trying to give a number

#

give player x of ITEM, where x is the quantity

rough smelt
#

yea but like

#

thats lit what i had

last crater
#

no, you had give player x

#

the expression is the max stack size, or a number, like 64

rough smelt
#

{_items} is the item

#

so then how do i give the max stack size

#

im so lost

last crater
#

find the stack size, stick it in a local variable
then give that many of the item

rough smelt
#

set {_itemstack} to max stack size of {_items} give player {_itemstack} of {_items}

#

no erros

last crater
rough smelt
#

ya

#

i think i got it

#

ill test