#Trying to make it so when you right click the item in an item frame you get that item and then you

1 messages · Page 1 of 1 (latest)

frigid abyss
#

cannot get that item again if its in your inventory im stumped and dont know what to do

    if clicked entity is an item frame:
        set {_item} to item in clicked entity
        if {_item} is air:
            stop
        if player's inventory contains {_item}:
            send "&cYou already have this item!" to player
        else:
            give {_item} to player
            send "&aYou took &e%name of {_item}%&a!"```
desert iron
#

well first you could do on rightclick with item frame

second u need to send it using the correct stynx send "x" to player
third it should be set {_item} to last clicked entity if i rember correcty

frigid abyss
#

I'll try that, Thanks.

#

line 3 still doesn't work

#

other line is fixxed though

#

fixed*

#

any ideas on how to fix line 3?

#

@frigid abyss

#

(gotta ping so i dont lose channel ignore above)

#

Fixed it myself