Перейти к содержимому
Mineforgian

Quality Food

This mod adds quality to food and certain food-related material (e.g. crops)

184K загрузок107 подписчиковMITforgeneoforge

Обновлён 13 июня 2026 г. · опубликован 12 февраля 2024 г.

General

This mod adds quality to food and certain food-related material (e.g. crops) through NBT data (meaning no new items)

1.21 documentation is currently located here

Quality can:

  • Increase nutrition and saturation
  • Improve positive effects and diminish (or outright remove) negative effects gained from eating food
  • Impact the result of crafted (quality applicable) items (the minecraft:generic.luck attribute increases the chance as well)

You can give yourself a quality item like this: /give @s farmersdelight:roast_chicken_block{quality_food:{quality:2}}

  • quality is a value between 0 (NONE) and 3 (DIAMOND)
  • Setting NONE does not make sense since it will not affect anything and just makes the item unstackable with non-quality items

You can also use the following commands

  • /quality_food give
  • /quality_food apply
  • /quality_food remove

Configuration

There is a configuration per quality - aside from some normal things you can also specify which item should gain which effects

  • Example: effect_list = ["minecraft:apple;minecraft:regeneration;0.5;120;3;0.45"]
    • minecraft:apple is the item this effect should apply to (can also be a tag, e.g. #minecraft:cat_food)
    • minecraft:regeneration is the effect
    • 0.5 is the chance for a food item to gain this effect (1 means 100%)
    • 120 is the duration in ticks (20 ticks means 1 second)
    • 3 is the amplifier (0 results in an effect level of 1 (i.e. no level shown))
    • 0.45 is the probability to gain this effect when eating the item (1 means 100%)

The tag of an item with effects applied to it looks like this:

{
  quality_food: {
    effects: [
      {
        "forge:id": "minecraft:regeneration", 
        chance: 0.45d, 
        Ambient: 0b, 
        CurativeItems: [
          {
            id: "minecraft:milk_bucket", 
            Count: 1b
          }
        ], 
        ShowIcon: 1b, 
        ShowParticles: 1b, 
        Duration: 120, 
        Id: 10, 
        Amplifier: 3b
      }
    ], 
    quality: 1
  }
}

I don't recommend manually creating such items - the quality_food commands will apply the configured effects


There is a farmland configuration which allows you to define a bonus (can also be negative, i.e. 0.5) based on the farm block the crop is planted on

  • Example: farmland_config = ["3;#minecraft:crops;farmersdelight:rich_soil_farmland;1.25"]
    • 3 is the index (configurations are tested with the lowest one first - the first matching one will be applied) (needs to be positive)
    • #minecraft:crops is the crop block (can be a tag or a single block)
    • farmersdelight:rich_soil_farmland is the farmland block (can be a tag or a single block)
    • 1.25 is the multiplier to be applied (needs to be positive - values below 1 will reduce the chance)

Non-food items can be made applicable to quality by adding them to the quality_food:material_whitelist item tag


Only blocks within the block tag quality_food:quality_blocks will support (i.e. retain) quality

  • If a block is applicable to quality the item for said block will be too

For crafting (crafting table) there are three configs:

  • retain_quality_recipes: The result will retain the quality of the ingredients, examples:
    • If all items are diamond quality the result will be diamond
    • If three items are gold quality and two are diamond the result will be gold
    • If two items are iron quality and the rest have none then the result will also have none
  • no_quality_recipes: Entries will not roll for quality (useful in case items can be crated back and forth)
  • handle_compacting: If enabled then (de)compacting results should retain quality automatically without having to specify the relevant recipes

The bonus quality a quality ingredient provides is configurable for the crafting table (crafting_bonus)

Cooking quality items will store a quality bonus within the furnace / cooking pot / ...

  • Higher quality will store a higher bonus per cooked item
  • Once enough bonus is stored particles will start to show
    • A higher bonus results in more particles
    • This can be disabled through the client config
  • Once you take out the result the stored bonus will be used up and grant a higher chance to a quality result

For compatibility’s sake certain blocks (and their item variant) are supported in a broader way than needed

If you find some items having quality where it doesn't make much sense you can blacklist them using the item tag quality_food:blacklist

Compatibility

  • Farmer's Delight
    • Apply quality when crafting
    • Handle quality block state for growing plants (rice and tomato)
    • Apply quality to served items (feast blocks)
    • Storage blocks are part of the default config
  • Fast Entity Transfer
    • Use stored quality bonus of the furnace
  • Tom's Simple Storage Mod
    • Apply quality when crafting
  • Sophisticated Core
    • Properly handle compacting
    • Apply quality when crafting
  • Create
    • Milling and Mechanical Mixer should apply the quality of the ingredients
    • Mechanical Harvester and cooking with fan apply quality
    • Quality item attribute (for filters)
  • Harvest with ease
    • Properly roll quality when auto harvesting
  • Quark
    • Quality gets properly rolled
    • Storage blocks are part of the default config
  • Right-Click-Harvest
    • Quality gets properly rolled
  • [Let's Do] Vinery
    • Storage blocks are part of the default config
  • FastWorkbench
    • Quality gets properly handled when using the crafting bench
  • Crate Delight
    • Storage blocks are part of the default config
  • Fruitful Fun 🍊
    • Roll quality for dropped items from fruit trees
    • Apply quality to served items
  • Collector's Reap
    • Quality effect cake blocks grant improved effects
    • Apply quality to growing fruit bushes
    • Roll quality for dropped items from fruit bushes
    • Storage blocks are part of the default config

This is mostly about block interaction / quality application through crafting

  • If a mod adds a new crafting block then quality may not apply correctly
  • Items should generally be fine

Misc

Example

Credits for the quality icons go to https://twitter.com/concernedape

Версии

ВерсияКаналИграЗагрузчикиДатаСкачать
2.3.2Релиз1.20, 1.20.1forge, neoforge13 июня 2026 г.Скачать (413 КБ)
2.3.5Релиз1.21, 1.21.1neoforge13 июня 2026 г.Скачать (216 КБ)
2.3.4Релиз1.21, 1.21.1neoforge28 апреля 2026 г.Скачать (213 КБ)
2.3.1Релиз1.20, 1.20.1forge, neoforge28 апреля 2026 г.Скачать (403 КБ)
2.3.3Релиз1.21, 1.21.1neoforge9 марта 2026 г.Скачать (212 КБ)
2.3.2Релиз1.21, 1.21.1neoforge9 марта 2026 г.Скачать (210 КБ)
2.3.1Релиз1.21, 1.21.1neoforge20 февраля 2026 г.Скачать (210 КБ)
2.3.0Релиз1.21, 1.21.1neoforge19 февраля 2026 г.Скачать (200 КБ)
2.3.0Релиз1.20, 1.20.1forge, neoforge13 февраля 2026 г.Скачать (402 КБ)
2.2.9Релиз1.20, 1.20.1forge, neoforge9 ноября 2025 г.Скачать (388 КБ)
2.2.8Релиз1.20, 1.20.1forge, neoforge28 октября 2025 г.Скачать (389 КБ)
2.2.6Релиз1.20, 1.20.1forge, neoforge1 августа 2025 г.Скачать (387 КБ)
2.2.5Релиз1.20, 1.20.1forge, neoforge8 апреля 2025 г.Скачать (386 КБ)
2.2.4Релиз1.20, 1.20.1forge, neoforge1 марта 2025 г.Скачать (386 КБ)
2.2.5Релиз1.21, 1.21.1neoforge21 февраля 2025 г.Скачать (167 КБ)

Показаны последние 15 из 87 версий.

Ченджлог

2.3.2Релиз1.20, 1.20.1 · 13 июня 2026 г.

fix crash with sophisticated core add compatibility with kaleidoscope cookery add quality icon to create storage ui add compatibility with corn delight fix issue where melon / pumpkin stem lost quality after fruit had grown

2.3.5Релиз1.21, 1.21.1 · 13 июня 2026 г.
  • fix crash with sophisticated core
  • fix crash with kaleidoscope cookery
  • add quality icon to create storage ui
  • add compatibility with corn delight
  • fix issue where melon / pumpkin stem lost quality after fruit had grown
2.3.4Релиз1.21, 1.21.1 · 28 апреля 2026 г.
  • fix compatibility with farmer's delight
  • improve pie compatibility (properly apply quality bonus when consumed from the ground etc.)
2.3.1Релиз1.20, 1.20.1 · 28 апреля 2026 г.
  • fix compatibility with farmer's delight
  • improve pie compatibility (properly apply quality bonus when consumed from the ground etc.)
2.3.3Релиз1.21, 1.21.1 · 9 марта 2026 г.

2.3.3

  • fix potion tooltips
  • fix potential issue with quality usage from furnace etc.
  • fix herbal crafting quality application for tea kettle
  • actually modify the effects from herbal crafting items when quality is present

2.3.2

  • adjust gold min_weight (1 to 0.75) so it can be attained through iron quality
2.3.2Релиз1.21, 1.21.1 · 9 марта 2026 г.

adjust gold min_weight (1 to 0.75) so it can be attained through iron quality

2.3.1Релиз1.21, 1.21.1 · 20 февраля 2026 г.
  • add color to quality name
  • add quality to create basin goggle tooltip
  • add some Kaleidoscope Cookery support
  • add support for campfire cooking
  • fix issue with crafting weight calculation (items that were applicable to quality but had none were excluded, leading to the wrong results)
2.3.0Релиз1.21, 1.21.1 · 19 февраля 2026 г.

Added most of the 1.20.1 changes

  • Mod compatibility (e.g. Create)
  • Cooking changes (lowest quality is the base and cooking bonus may upgrade it to a higher quality)
  • New fields for quality definition

Weight

There is now a min_weight and weight field, they behave as following:

iron: 0 / 1 gold: 1 / 2 diamond: 1.75 / 3
(min_weight / weight)

5 ingredients

2 are of gold quality
2 are of diamond quality
1 has no quality
2x2 + 2x3 + 0 -> 10 / 5 = average quality of 2

Rolling for gold: (2 - 1) / (2 - 1) = 1 (100%)

Rolling for diamond: (2 - 1.75) / (3 - 1.75) = 0.2 (20%)

Formula: (average_weight - min_weight) / (weight - min_weight)

Комментарии

Загружаем…