Search results

From Forge Community Wiki
  • <code>SavedData</code> is an alternative to capabilities that stores data per dimension or globally depending on how the context is passed. - <code>save</code>: Write the data to nbt.
    2 KB (269 words) - 07:45, 10 June 2022
  • Please read the [[FCWMeta:Wiki Policy/1.18|wiki policy]] before editing! * [[Getting Started/1.18|Getting Started]]
    4 KB (505 words) - 08:03, 10 June 2022
  • ...plement <code>ICapabilityProvider</code>, if the capability needs to store data persistently it is possible to implement <code><nowiki>ICapabilitySerializa ...to implement <code>ICapabilityProvider</code>, refer to the [[Capabilities/1.18|a Capability]] section.
    5 KB (665 words) - 07:43, 10 June 2022
  • ...nce the provider ceases to exist for any number of reasons, all capability data gets deleted. ...t requires all capabilities to serialize data to disk, in order to persist data even across game restarts. They implement the <code>INBTSerializable</code>
    26 KB (3,797 words) - 07:43, 10 June 2022
  • ...aplings to the Vanilla sapling tag, you would specify it in <code><nowiki>/data/minecraft/tags/blocks/saplings.json</nowiki></code>, and Vanilla will merge ...thub.com/MinecraftForge/MinecraftForge/tree/1.18.x/src/generated/resources/data/forge/tags GitHub].
    29 KB (4,350 words) - 07:45, 10 June 2022