Minecraft has registries for many kinds of objects, such as blocks, items or entities. These are the registries in vanilla:
(Note: For version 1.19.3 and above, please replace
These registries are useful for many types of mods.
- Contains all the registries themselves.
- Contains all blocks.
- Contains all items (including block items).
- Contains the
BlockEntityTypeof each block entity. Block entity types are used to deserialize block entities and store compatible blocks.
- Contains all status effects, like invisibility or night vision.
- Contains all particle types.
- Contains all fluids.
- Contains all enchantments.
- Contains all different potion types, such as “long potion of night vision”, “water” or “potion of luck”.
- Contains all dimension types.
- Contains all screen handlers. Screen handlers are used to synchronize GUI state between the server and the client.
- Contains all recipe types
- Contains all recipe serializers. Recipe serializers are used to load recipes, and there can be many serializers for a single type (such as both shaped and shapeless crafting recipes).
- Contains all painting motives, or the different types of paintings.
- Contains all different sound events like
- Contains all different stat types. Stats use a generic type,
<T>, to get different data for different
- Stats that don't depend on outside objects (eg.
walk_one_cm) use the
customstat type, which uses registered
Identifiers as the
- Stats that aren't
customstats might depend on a specific block or item type, like
- Contains all “custom stats”, which are identifiers for stats that don't depend on outside objects.
Most of these registries, apart from
ENTITY_TYPE itself, are related to entity AI.
- Contains the
EntityTypeof each entity. Like block entity types, entity types are used for syncing and deserialization.
- Contains schedules for entities (usually villagers). Schedules control their activities based on the time of day.
- Controls activities for entities (usually villagers). Activities, such as
work, control the behavior of entities.
- Contains the type of each entity sensor. Sensors allow entities to “sense” different things and store them in their memory.
- Like schedules and activities, this is mostly used by villagers.
- Contains all types of memory modules. Memory module types describe different things entities can remember.
- Contains all villager biome types.
- Contains all villager professions.
- Contains all types of points of interest. Points of interest allow entities to search for different blocks in the world, such as villager job sites. They are also used to locate nether portals.
World generation in Minecraft is complex, and there are a lot of different registries for world gen.
- Contains all biomes.
- Contains all world generation features, including structures.
- Contains all structure features.
- Contains all carvers. Carvers are used to create caves and ravines.
- Contains all decorators. Decorators are used to place features.
- Contains all biome source types. They determine which biome is placed where during world generation.
- Contains all tree decorator types. Tree decorators can add additional blocks, such as beehives or vines, to trees.
- Contains all foliage placer types. Foliage placers are used to generate the leaves of trees.
- Contains all block state provider types. They are used to select a possibly random block state based on a position.
- Contains all block placer types. Block placers are used to place blocks in features like
- Contains all chunk generator types. Chunk generators define the basic shape of the terrain, such as
cavesfor nether-like and
floating_islandsfor end-like terrain.
- Contains all chunk status types. They describe the current progress of world generation in a chunk.
- Contains all structure piece types. Structure pieces are smaller parts of a structure, such as a single room.
- Contains all rule test types. They are used to match blocks in structure generation.
- Contains all structure processor types. Structure processors modify structures after they have been generated.
- Contains all structure pool elements. Structure pool elements are even smaller parts of structures, and they are contained within pool structure pieces. They are used for generating structures that are based on datapacks (such as structures using jigsaws).
- Contains all surface builders. Surface builders are used to place the surface blocks of a biome, such as grass in many overworld biomes.