The Bedrock Script API exposes many ItemStack properties, but not all data that can exist on an item. This makes it impossible for server developers to reliably save, transfer, or restore an ItemStack without potentially losing data.
This is especially important for large servers that need to:
- Store player inventories in databases.
- Transfer inventories between multiple BDS instances.
- Create auction houses and marketplaces.
- Implement player mail systems.
- Store items for long periods of time.
- Create reliable inventory backups.
Currently, developers must manually serialize every property exposed by the API. However, if some item data is not exposed, the item cannot be reconstructed exactly. This also means new item functionality added by Minecraft could require developers to rewrite their serialization systems.
I am requesting an official lossless ItemStack serialization/deserialization API.
For example:
ItemStack.serialize() → complete item representationItemStack.deserialize(data) → recreates the exact ItemStack
This does not necessarily need to expose or use Minecraft's internal NBT format. Mojang could use any format they consider appropriate. The important part is that all ItemStack data is preserved, including data that isn't individually exposed through the Script API.
This would make auction houses, cross-server inventories, databases, mail systems, trading, and backups significantly more reliable.
0 Comments
Please sign in to leave a comment.
Post a new comment: