Tags are the fastest and most reliable way to get source items classified correctly in MarieLib. This page covers which tags MarieLib reads and how to use them.
๐ท๏ธ How Tags Work in Classification
Tags are the highest-priority signal in the classification pipeline. A tagged item will almost always be classified correctly, regardless of its name or recipe.
| Signal | Priority Multiplier |
|---|---|
Value tags (<modId>:values/* or consumer-specific) |
Highest |
Community tags (c:foods/*) |
5ร |
| Namespace grouping | 4ร |
| Name suffix match | 3ร |
| Keyword match | 2ร |
| Recipe inheritance | 1ร |
See Classification Pipeline for the full trace output.
๐ฟ Community Tags โ c:foods/*
The c: namespace is a cross-mod convention for categorizing items.
MarieLib reads the following c:foods/ suffixes:
Fruits
c:foods/fruit
c:foods/fruits
c:foods/berry
c:foods/berries
Vegetables
c:foods/vegetable
c:foods/vegetables
c:foods/crop
c:foods/crops
Proteins
c:foods/meat
c:foods/meats
c:foods/cooked_meat
c:foods/fish
c:foods/egg
c:foods/eggs
Grains
c:foods/grain
c:foods/grains
c:foods/bread
c:foods/breads
Dairy
c:foods/dairy
c:foods/cheese
Exact tag-to-value mappings are configurable by the consuming mod. The list above reflects common defaults.
๐ Consumer Value Tags
Consuming mods register value tags for direct classification. For Nourished:
nourished:nutrients/fruits
nourished:nutrients/vegetables
nourished:nutrients/proteins
nourished:nutrients/grains
nourished:nutrients/dairy
File location: data/nourished/tags/item/nutrients/<key>.json
For a generic Marie mod, the pattern is:
<modId>:values/<valueKey>
๐ฆ Adding Tags via Datapack
my_datapack/
โโโ data/
โโโ nourished/
โโโ tags/
โโโ item/
โโโ nutrients/
โโโ fruits.json
โโโ vegetables.json
โโโ ...
Each file follows standard Minecraft tag format:
{
"values": [
"mymod:item_one",
"mymod:item_two",
"#mymod:some_item_tag"
]
}
๐ก Tips
c:foods/*tags benefit every mod that reads them โ not just MarieLib.- Consumer value tags (
nourished:nutrients/*) are for precision overrides. - Tags propagate through
#references. - For Nourished-specific behavior tags (
raw_food,meal,light_food), see the Nourished Community Tags page.
๐ Related Pages
MarieLib ยท Shared framework for Marie mods ยท Documentation for 1.0.x
Modrinth ยท GitHub ยท Nourished Wiki ยท Report an Issue