tutorial:registry
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tutorial:registry [2024/08/25 13:20] – [Registry System] match the title in the sidebar solidblock | tutorial:registry [2024/08/25 14:06] (current) – solidblock | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Intro to Registries ====== | ====== Intro to Registries ====== | ||
- | Minecraft uses the **registry system** to handle almost everything in the game. For mod developers, you will need to register most content you add to the game. This helps with: | + | Minecraft uses the **registry system** to handle almost everything in the game. When developing mods, you will need to register most content you add to the game. This helps with: |
* Letting the game know your content exists | * Letting the game know your content exists | ||
* Verifying game content between client & server | * Verifying game content between client & server | ||
Line 19: | Line 19: | ||
Two examples of registries you may use include '' | Two examples of registries you may use include '' | ||
- | For a deeper overview and description of all available registries, read the [[registry types]] page. | + | For a deeper overview and description of all available registries, read the '' |
===== Basic usages ===== | ===== Basic usages ===== | ||
==== Registering your content ==== | ==== Registering your content ==== | ||
- | Use ''< | + | Use ''< |
<code java> | <code java> | ||
Line 42: | Line 42: | ||
==== Getting the object by ID ==== | ==== Getting the object by ID ==== | ||
- | ''< | + | ''< |
< | < | ||
Line 86: | Line 86: | ||
A **registry entry** ('' | A **registry entry** ('' | ||
- | * '' | + | * '' |
* '' | * '' | ||
Line 93: | Line 93: | ||
* '' | * '' | ||
- | Both the two commands give you a stone. The former one will get the loot table '' | + | Both the two commands give you a stone. The former one will get the loot table '' |
==== Registry entry list ==== | ==== Registry entry list ==== | ||
- | Similar to registry entries, **registry entry lists** ('' | + | Similar to registry entries, **registry entry lists** ('' |
* '' | * '' | ||
* '' | * '' |
tutorial/registry.1724592043.txt.gz · Last modified: 2024/08/25 13:20 by solidblock