MariesWiki

MariesLib Wiki ยท Datapack authors

Community Tags

Tag conventions for item classification.

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

โ† MariesLib Wiki home