This repository demonstrates a simple implementation of Minecraft's SavedData
system, including how to synchronize that data with clients in mods built on the MultiLoader-Template. It's designed as a lightweight reference for mod developers looking to persist and sync custom data.
To better understand the SavedData
system on different mod loaders, check out the following tutorials:
- Fabric: Persistent States (Fabric Wiki)
- Forge: Saved Data (Forge Docs)
-
ItemUseCountData
ExtendsSavedData
, this is the main focus of the demonstration. -
UsableItem
A custom item that can update both the global use count on usage and individual player use count on sneak usage.
Feel free to open an issue or discussion if you have questions, suggestions, or improvements you'd like to see!