#is there a way to save all items in a player's inventory with dynamic properties?

1 messages · Page 1 of 1 (latest)

lime pecan
#

No, if you save it in an object that will save it as an object but there is no way to permanently save that object, if you want to save an inventory you need to copy it over to another inventory

tidal cosmos
#

accualy im pretty sure its possible

#

maybe not with dynamic properties cus idk how that works

#

but you could with tags atlest

#

or maybe entity properties

whole laurel
#

Like enchantments, durability, name, lore, etc

#

There is no way to get the "data" value you use for commands

tidal cosmos
whole laurel
#

But for other items, it represents variations

tidal cosmos
#

does scripts not check that?

whole laurel
#

Like sand and red sand

whole laurel
tidal cosmos
#

doesnt lore help with that?

whole laurel
tidal cosmos
#

Lore doesnt check the items name?

#

dam that accualy sucks

whole laurel
#

Lets go from the start, you can get the item, get the components, enchantments, nametag, lore, amount

#

But not the data value

#

If you want to keep the item completely the same, you need to save it in another container so you can just transfer them again later

#

That container can be a chest or a entity with the inventory component

tidal cosmos
whole laurel
#

But as I said, there is no way to get the "data value"

#

So lets say you have different anvils in your inventory

#

A normal one and broken one

#

In the script there is no way to differentiate one and another

next mulch
#

You would have to serialize all the available item data first