User Tools

Site Tools


tutorial:global_data

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
tutorial:global_data [2022/12/21 06:24] jmanc3tutorial:global_data [2025/10/06 04:27] (current) – Mention Fabric Data Attachment API as alternative to Cardinal Components for attaching data to chunks, entities and block entities gauntrecluse
Line 6: Line 6:
 Mojang uses PersistentStates to store global world data. You can check the [[persistent_states|Persistent States]] page for more information on how to save your data for use across different play sessions or server restarts. Mojang uses PersistentStates to store global world data. You can check the [[persistent_states|Persistent States]] page for more information on how to save your data for use across different play sessions or server restarts.
  
-Cardinal Componenets, a library designed to allow developers to store data in any class and sync between clients and servers, can simplify this workflow. More infomation on Cardinal Components can be found here: https://github.com/OnyxStudios/Cardinal-Components-API+Cardinal Componenets, a library designed to allow developers to store data in any class and sync between clients and servers, can simplify this workflow. More infomation on Cardinal Components can be found here: https://github.com/OnyxStudios/Cardinal-Components-API\\ 
 +To attach persistent data to entities, block entities, and chunks, see also the [[https://github.com/FabricMC/fabric/tree/1.21.9/fabric-data-attachment-api-V1|Fabric data attachment API]]'s JavaDocs (can be viewed in your local development environment) as an alternative to Cardinal Components. This should be prioritized on recent MC versions.
tutorial/global_data.txt · Last modified: 2025/10/06 04:27 by gauntrecluse