MariesWiki

MariesLib Wiki ยท Datapack authors

Datapack Support

Datapack resources and customization.

MarieLib is built to be extended through standard Minecraft datapacks. Consuming mods expose datapack directories under their mod id.

All files live under:

data/<your_namespace>/<modId>/

For Nourished (modId = nourished):

data/mypack/nourished/source_classifications/my_foods.json

๐Ÿ“ Directory Overview

Directory Status What it does
source_classifications/ โœ… Working Map items or tags to a value key
compat/ โœ… Working Register mod compatibility entries
source_families/ โœ… Working Extend keyword-to-value mappings
module_locks/ โœ… Working Lock config modules server-side
values/ ๐Ÿ”„ In progress Add custom value definitions
effects/ ๐Ÿ”„ In progress Add threshold-triggered effects
synergies/ ๐Ÿ”„ In progress Two-value synergy interactions
source_synergies/ ๐Ÿ”„ In progress Source pair combo bonuses
milestones/ ๐Ÿ”„ In progress Cumulative value goals
tracking_profiles/ ๐Ÿ”„ In progress Named tracking profile presets

Include "marie_schema_version": 1 in all files.


๐Ÿฅ• Source Classifications

Path: data/<ns>/<modId>/source_classifications/<id>.json

Maps a specific item or item tag directly to a value key.

By item

{
  "marie_schema_version": 1,
  "value_key": "vegetables",
  "item": "farmersdelight:tomato",
  "amount": 0.08
}

By tag

{
  "marie_schema_version": 1,
  "value_key": "proteins",
  "tag": "#farmersdelight:foods/cooked_meat",
  "amount": 0.10
}
Field Required Description
value_key โœ… Target value key
item One of Specific item ID
tag One of Item tag (prefix with #)
amount โœ… Contribution per consumption (0.0โ€“1.0)

๐Ÿ”Œ Compat Entries

Path: data/<ns>/<modId>/compat/<id>.json

{
  "marie_schema_version": 1,
  "mod_id": "examplemod",
  "category": "FOOD_MOD",
  "mappings": {
    "examplemod:mystery_fruit": "fruits",
    "examplemod:protein_bar": "proteins"
  }
}

๐ŸŒฟ Source Families

Path: data/<ns>/<modId>/source_families/<id>.json

Extend keyword classification with custom keyword-to-value mappings:

{
  "marie_schema_version": 1,
  "families": {
    "vegetables": ["gourd", "squash", "yam"],
    "proteins": ["jerky", "patty", "schnitzel"]
  }
}

๐Ÿ”’ Module Locks

Path: data/<ns>/<modId>/module_locks/<id>.json

Lock config modules server-side so players cannot override them:

{
  "marie_schema_version": 1,
  "locked": ["enableEffects", "enableDecay"],
  "server_only": ["bonusEffectThreshold"]
}

๐Ÿ’ก Tips

  • Test with /reload then /<modId> reload โ€” no restart required.
  • Prefer tags over individual items when possible.
  • Run /<modId> diagnostics after adding datapack content.
  • Use /<modId> schema <type> to print valid JSON templates.

๐Ÿ“š Related Pages


MarieLib ยท Shared framework for Marie mods ยท Documentation for 1.0.x

Modrinth ยท GitHub ยท Nourished Wiki ยท Report an Issue

โ† MariesLib Wiki home