Skip to main content

Module content

Module content 

Source
Expand description

Content registration (custom items / blocks / food).

Structs§

ArmorDefense
Defense points per armor piece.
ArmorMaterial
What armor is made of. The game’s are built in (ArmorMaterial::built_ins); a mod declares its own in a .ydef (kind: "armor_material") or registers one.
ArmorPiece
An item as a piece of armor.
BiomeFeature
A placed feature (mymod:mythril_ore, the mod’s datapack’s) added to biomes at a generation step — what an ore .ydef makes. Forge and NeoForge read the biome modifiers yog build writes; Fabric’s host adds these through its biome API.
BlockDef
A custom block to register; it also gets a matching block-item.
BlockProperty
A property of a block’s own: its name and values (the first the default; false, true is a yes/no).
FoodDef
Nutritional properties for a food item.
ItemDef
A custom item to register, identified by namespace:path.
Recipe
A recipe, in Yog’s own format — what a .yrecipe says. The host writes the recipe JSON of its Minecraft version from it.
SoundGroup
What a block sounds like: the sound events it plays when broken, stepped on, placed, hit while mining and fallen on. The game’s groups are built in (SoundGroup::built_in); a mod registers its own (Registry::register_sound_group, or a .ydef of kind sound_group) and names it in BlockDef::sound.
StartupGrant
Grant items/books to every player once when they first join. This is the Yog-side replacement for grant_patchi_book.json.
ToolItem
An item as a tool or weapon.
ToolMaterial
What tools are made of. The game’s are built in (ToolMaterial::built_ins); a mod declares its own in a .ydef (kind: "tool_material") or registers one (Registry::register_tool_material).

Enums§

Cooking
How a cooking recipe cooks.
RecipeKind
What a recipe is made of besides its result.