#Interaction Entity not getting added to a list

1 messages · Page 1 of 1 (latest)

opal pendant
#
    if player is sneaking:
        set {_target} to target interaction
        broadcast "%{_target}%"
        set {_intloc} to location of {_target}
        if {itemdisplays::%{_intloc}%::*} contains {_target}:
            kill {itemdisplays::%{_intloc}%::*}
            kill {interactions::%{_intloc}%::*} # this doesn't work
        if {interactions::%{_intloc}%::*} contains {_target}: #testing broadcast
            broadcast "%{interactions::%{_intloc}%::*}%" # list only returns location
            broadcast "%{itemdisplays::%{_intloc}%::*}%"
    else:
        set {grandma::%player's uuid%} to true
        summon interaction at location 2 block in front and 1 block above player
        set {_location} to location of last spawned interaction
        summon item display at location 2 block in front and 1 block above player
        add {_location} to {itemdisplays::%{_location}%::*} # works?
        add {_location} to {interactions::%{_location}%::*}
        add last spawned interaction to {interactions::%{_location}%::*} # doesn't add it to the list
        add last spawned item display to {itemdisplays::%{_location}%::*}
        set display item of last spawned item display to hay bale
        draw 50 of cloud at last spawned item display with extra 1 for player
        send "ITEM DISPLAY AND LOCATION %{itemdisplays::%{_location}%::*}%" to operators # returns correct list
        send "&aRegistered new &e%last spawned item display%" to player```
#

red box is missing text

#

idk why its not getting added to the list

#

and it does kill the item display just not the interaction entity

#

might just be an oversight but im not sure why its not being added to the list

#

i put comments on all the code to try help describe what it does

#

ugh i fixed it

#

i have NO idea how to mark this as solved