WolfyScript / WolfyUtils-Spigot

The WolfyUtilities implementation for the Spigot platform
10 stars 4 forks source link

Improved CustomItem Block Storage #24

Closed WolfyScript closed 2 years ago

WolfyScript commented 2 years ago

This replaces the old system to save CustomItems on block locations. The old system uses its own file, in which it saves the locations and data.

While that system works, it had some issues including issues when deleting a world or copying a world, and some sync issues between the state of the world and saved data.

The new system fixes that by directly saving the data into the NBT of the Chunks using the Persistent Data API. It makes the stored data persist across restarts, without the need of additional error bound files, and when copying world files to another server.

Plus, it makes it way more efficient regarding loading if you have tons of custom items placed in the world.

To-do:

New Features