#problem with set slot

1 messages · Page 1 of 1 (latest)

odd jungle
#
    if event-slot is a block:
        set {_es} to event-slot
        open chest inventory with 1 rows named "%{_es}% drops" to player
        set slot 1 of player's current inventory to drops of {_es}
    else if event-slot is air:
        cancel event```

all that doesnt work is the set slot, but the name works
unborn folio
#

why did you make a second thread for the same issue?

odd jungle
#

because there were like 200 messages

#

i removed that one anyway

foggy mica
#

if i had to guess, it's probably because {_es} is an item and you need it to be a block to get the drops of it. maybe try parsing {_es} as a block, then getting the drops from it?

odd jungle
#

oops wrong message

#

well

#

but im still gonna try sum like that

primal hollow
#

possibly parsed as blocktype may work

odd jungle
#

nope ive tried that too

#

and i gotta stringify it just to parse

#

yeah i cant parse event-slot

#

://

primal hollow
#

you can try type of clicked slot as I believe that gives you the item in the slot.