HomeJavaModsModular Delight
Modular Delight
ModsJava

Modular Delight

by Wintooo · on Modrinth

Adds a modular cooking system to Farmer's Delight.

⬇ Download on Modrinth

This Farmer's Delight addon implements a new modular cooking system into the game.

For now, it only supports the Fabric version, Farmer's Delight Refabricated - although I plan to port it to Forge and NeoForge later on.

How It Works

Properties are applied to every "ingredient" item, and determine what that ingredient does when added to a meal. A property can define up to three effects:

Ingredients shown in chest

A new block, the Stockpot, can be heated to cook meals. Its interface has three input slots, a serving storage slot, a bowl slot, and an output slot. The three input slots correspond to the three property effects - the first slot to the ambient effect, the second to the condition, and the third to the activated effect. Once heated, the ingredients in those three slots combine into a custom meal. Just like the vanilla Cooking Pot, you can only take a serving out with a bowl - otherwise it stays in the pot, even if the pot is broken.

View of Stockpot and surrounding area Stockpot interface, cooking a meal A stockpot in the inventory, holding a serving of food

Custom meals get custom names, colors, and models based on the ingredients you add, along with a tooltip showing the exact items used and a description of what the meal does when eaten. Every ingredient also contributes its own hunger (halved), saturation (halved), and any built-in potion effects it carries - including from potions themselves. If the same effect comes from multiple ingredients, their durations stack together, using the highest amplifier among them.

Cooked Chicken, Beef Patty & Cabbage Leaf Stew being hovered over with descriptive tooltip

After eating a custom meal, you get the Digestion effect. Hovering over it in your inventory shows every currently active meal and what each one does, separated out individually. You can have multiple different meals active at once — but eating a meal with the exact same three ingredients as one you already have active will just refresh its timer rather than stack a second copy.

Digestion effect tooltip, showing all of the currently consumed meals

Infinite Possibilities!

The mod ships with 16 built-in properties, and even at default settings that adds up to thousands of functionally unique meals. But that's just the starting point - like the Origins mod, every part of this system is fully datapack-driven, so anyone can add, remove, or reshape properties without touching a line of code.

Making Your Own Property

Properties live at data/<namespace>/modular_delight/properties/<id>.json. Here's a complete example:

{
  "name": "Juicy",
  "ambient": {
    "attribute": {
      "id": "minecraft:generic.movement_speed",
      "amount": 0.1,
      "operation": "multiply_total",
      "description_divisor": 0.01,
      "description": "grants you +%s%% movement speed"
    }
  },
  "condition": {
    "type": "modulardelight:sprinting",
    "multiplier": 0.5,
    "cooldown_ticks": 200
  },
  "activated": {
    "action": {
      "type": "modulardelight:status_effect",
      "effect": "minecraft:speed",
      "duration_ticks": 100,
      "scale_amplifier": true
    },
    "description": "gain Speed %s for %ss"
  }
}

A few things worth knowing as you get started:

There's plenty more you can hook into - custom meal name filtering, hardcoded name/model overrides for specific ingredient combos, custom ambient reactions, and the full list of built-in condition and action types. For the complete reference, visit the GitHub, and for help (+ a template datapack), visit the Discord. Another great resource is simply looking and the Origins Wiki, although quite a different mod - it may help.

Extra

If you see any bugs, report them to the Bug Tracker.

Stickbug gif. Make sure to report bugs!

This mod is greatly inspired by Potluck made by EightSidedSquare!

Images featured on this page have since been updated - not all visuals are fully accurate to the current version of the mod.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more