User Tools

Site Tools


tutorial:registry

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
tutorial:registry [2022/12/09 04:52] – [Registry Types] solidblocktutorial:registry [2022/12/15 23:47] – [Registry Types] solidblock
Line 15: Line 15:
 ===== Registry Types ===== ===== Registry Types =====
  
-When registering content, you need to specify which registry you are adding content to. The base game provides registries for all vanilla content, which can be found in ''%%Registries%%'' (for 1.19.3 and above) or ''Registry'' (for below 1.19.3). Two examples of registries you may use include ''<yarn class_2378>.<yarn field_11142>'' for items and ''<yarn class_2378>.<yarn field_11146>'' for blocks.+When registering content, you need to specify which registry you are adding content to. The base game provides registries for all vanilla content, which can be found in ''%%Registries%%'' (for 1.19.3 and above) or ''Registry'' (for below 1.19.3). Two examples of registries you may use include ''Registries.ITEM'' (for 1.19.3 above)/''Registry.ITEM'' (for 1.19.2 below) for items and ''Registries.BLOCK'' (for 1.19.3 above)/''Registry.BLOCK'' (for 1.19.2 below) for blocks.
  
 For a deeper overview and description of all available registries, read the [[tutorial:registry_types|registry types]] page. For a deeper overview and description of all available registries, read the [[tutorial:registry_types|registry types]] page.
tutorial/registry.txt · Last modified: 2023/05/15 03:31 by phanabani