Skip to main content

Module refs

Module refs 

Source
Expand description

What a content reference (@<kind>:<id>) can name, for the designers’ pickers — the same three sources yog build checks references against: the mod’s own content (content/), the other mods’ ids it declares in yog.toml ([external.<namespace>]) and the game’s (read from the client jar on this machine, when there is one). And the mod’s own .ydefs of a kind with what they say (an advancement’s parent, an effect’s color), for the designers that draw several at once.

Structs§

OwnDef
One of the mod’s .ydefs: its id, its file and what it says.
OwnRef
One of the mod’s own: its id and the file that defines it.
RefChoices
What a reference of one kind may name, ids with their namespace.

Functions§

block_kinds
The game’s kinds of block (kind: "stairs" on a .yblock): their names, texture slots, the block fields they take and their defaults — as yog-formats has them.
own_defs
The mod’s .ydefs of kind beside the file at file.
refs
The choices for @<kind>: in the file at file (kind may also be a body format, ymodel/yanim, or tag:<kind> — the tags of a kind: the mod’s own .ydef tags of it, the game’s).