User Tools

Site Tools


tutorial:global_data

Differences

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

Link to this comparison view

Next revision
Previous revision
tutorial:global_data [2022/07/12 10:28] – created mineblock11tutorial: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 1: Line 1:
-Global World Data is data that is stored and synced between all clients such as Pillager raid information or Boss infomation.+====== Global World Data ======
  
-Mojang uses PersistentStates to store global world data - PersistentStates are saved per dimension, not globally as in the entire server/save. 
  
-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+Global World Data is data that is stored and synced between all clients such as Pillager raid information or Boss infomation
 + 
 +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.
  
-[TBD] Add infomation on how data is synced.+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.1657621703.txt.gz · Last modified: 2022/07/12 10:28 by mineblock11