#Recreate Shulkerbox?

1 messages · Page 1 of 1 (latest)

prime elk
#

Is there a way to recreate the shulkerbox behavior?

Because right now I managed to store items inside a script variable every time the entity gets destroyed, however if the user quits the game without placing the entity, the variable dies and the items get lost. How can I get around this?

sleek holly
#

@prime elk

#

I have achieve recreating the vanilla Shulker Box behavior

prime elk
#

Awesome

If you quit the game while holding the shulkerbox, can it still recover the inventory?

prime elk
#

Where do you store the items?

sleek holly
prime elk
#

Ooooh, this item database… is it a type from the @minecraft/common API? :0

prime elk
#

Are you using a JavaScript structure or an entity component for the database?

In other words, what’s the type of the database?

prime elk
#

What’s the name of the class/structure?

sleek holly
#

@prime elk

this.#structure = world.structureManager;
        this.#dimension = world.getDimension("overworld");