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 revision
Previous revision
Last revisionBoth sides next revision
tutorial:registry [2022/04/13 05:03] – map2fabricyarn daomephstatutorial:registry [2023/02/20 06:00] solidblock
Line 1: Line 1:
--====== Registry System ======+====== Registry System ======
  
 You will need to register most content you add to the game. This helps with: You will need to register most content you add to the game. This helps with:
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 ''%%Registry%%''. 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