Skip to main content

Spirit Herb

A spirit herb marks existing items as spirit herbs for alchemy and gathering gameplay, giving them a default quality and classification metadata.

File Location

Spirit herb JSON files go in data/<namespace>/mxt/spirit_herb/ within your data pack.

The filename corresponds to its ID. For example, data/example/mxt/spirit_herb/fire_ginseng.json has the ID example:fire_ginseng.

Fields

FieldTypeDefaultDescription
itemsItemMatcherrequiredBinds existing items. It does not create a new spirit herb item.
qualityHolder<item_quality>requiredThe default quality of that item.
ageNumberProvider0Age metadata.
element_tagsIdentifier[][]Element classification tags.
material_tagsIdentifier[][]Material classification tags.
growth_rateNumberProvider0Growth rate metadata.
drop_chanceNumberProvider1Drop chance metadata.

Example

{
"items": ["minecraft:red_mushroom", "#mxt_test:spirit_herbs"],
"quality": "mxt_test:spirit_iron",
"age": 100,
"element_tags": ["mxt_test:fire"],
"material_tags": ["mxt_test:herb"],
"growth_rate": 0.05,
"drop_chance": 1
}
Work in progress

The spirit herb age, growth and drop lifecycle are still being built. Binding, quality lookup and the tooltip are already wired up.

The items matcher is the shared item matcher used by several formats; it accepts a single item ID, a single #namespace:tag or a list of both. The quality it points at is defined by Item Quality, and herbs are intended as materials for Alchemy Recipe.