Data Packs Game Mechanic

Food Decay [26.x]

  • 1.6k views 1 today
  • save_alt 103 downloads
Compatibility
Minecraft 1.21
to version
Minecraft 26.2
Changes include
  • Advancements
  • Functions
  • Loot Tables
  • Predicates
  • 23
  • 14
  • 1
FunkyToc
Lvl 78Legendary Programmer Cat
547
Food Decay adds a simple mecanic: decaying food. Food is now a more valuable resource, to be produced rather than stocked.

Features

  • food do not stack anymore (gamemode survival and adventure)
  • food decay over time in inventory, entities and container (gamemode survival and adventure)
  • 6 decay speeds, from 20 minutes to more than a year
  • food eventually turn into rotten food
  • place 1-5 ice block near your container to slow down the decay process
  • eat food in "fresh" state (durability >66%) may grants quick positive effects (saturation 1/2 point, haste 60s, resistance 60s).
  • eat food in "decayed" state (durability <33%) may grants quick negative effects (hunger 1/2 point, weakness 60s, poison 3s).
  • compatible with Joshs More Foods

Decay Speeds

Category
very fast
fast
medium
slow
very slow
imperishable
Decay Time (irl)
20 min
50 min
1h 40min
8h
33h
> 2 year
Item List
cod, porkchop, salmon, tropical_fish, beef, chicken, rabbit, mutton, pufferfish, milk_bucketmelon_slice, mushroom_stew, rabbit_stew, beetroot_soup, pumpkin_pie, cakecooked_beef, cooked_porkchop, cooked_cod, cooked_salmon, cooked_chicken, cooked_rabbit, cooked_mutton, baked_potatobread, cookie, potato, apple, beetroot, carrot, sweet_berries, glow_berries, chorus_fruit, golden_carrotgolden_apple, dried_kelphoney_bottle

How to

Disable specific systems for a specific player (Patreon feature)
You can individually add thoses tags on players to makes them personnaly immune to some mecanics.

- Disable the whole system: /tag [​PLAYER_NAME] add fooddecay.immune
- No stack 1 food (also disable decaying food): /tag [​PLAYER_NAME] add fooddecay.loot.immune
- No decaying food in all inventory: /tag [​PLAYER_NAME] add fooddecay.decay.all.immune
- No decaying food in offhand: /tag [​PLAYER_NAME] add fooddecay.decay.offhand.immune
- No decaying food in hotbar: /tag [​PLAYER_NAME] add fooddecay.decay.hotbar.immune
- No decaying food in inventory: /tag [​PLAYER_NAME] add fooddecay.decay.inventory.immune
- No decaying food in enderchest: /tag [​PLAYER_NAME] add fooddecay.decay.enderchest.immune
- No positive effect on eat: /tag [​PLAYER_NAME] add fooddecay.ate.fresh.immune
- No negative effect on eat: /tag [​PLAYER_NAME] add fooddecay.ate.decayed.immune

Options

To adjust options to your needs, use :
/function fkfd:options/get

Food Decay [26.x] Minecraft Data Pack

Patreon Supporters
26.2 (02/07/2026) : Azerxim, Setsu-P, varinyc, nfnpgllxhn, Phantom-Glitch-Wolf, Kody Delaurier-McQuillan
26.1 (10/04/2026)
: Setsu-P, varinyc, nfnpgllxhn
1.21.11 (26/01/2026)
: Azerxim, Setsu-P, varinyc, nfnpgllxhn
1.21.9 (05/10/2025)
: CYKLOPPS, Azerxim, varinyc, Setsu-P, Wani P, Lionel Felke
1.21.5 init (17/08/2025) :
CYKLOPPS, Azerxim, Setsu-P, varinyc, Wani P, Lionel Felke
Patreon Versions
The free versions are designed to be fun and fully playable.
The Patreon version is for players and server owners who want more control, comfort, and flexibility through an in-game settings menu to tweak the parameters live, without file editing.

Becoming a Gold Patreon also means:
- Getting access to every Patreon versions of every projects.
- Getting your name listed in each project and on this page (see above).
- Supporting long-term development, updates, and new features 💛
Issue / Bug
- ALPHA: please comment if you found any bug related to food decay
License
Short story: just credit the project, thanks ;)

Food Decay [26.x] Minecraft Data Pack
By downloading this work, you automatically accept the license protecting it.

This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International. An exception is made for video content which can be monetized under the condition of credits attribution according to the license. To view a copy of this license, visit https://creativecommons.org/licenses/by-nc-nd/4.0/legalcode.

An exception is made for video, image, sound, blog, and any other media that would share the project. If the purpose of the content is sharing, the content creator may monetize the content. Content creators must simply give appropriate credit and provide a link to the original work.
[​project name] : [​project link]
Visitors Stats
Food Decay [26.x] Minecraft Data Pack

5 Update Logs

26.2 Update : by FunkyToc 07/02/2026 11:15:12 amJuly 2 @ 3:15 pm UTC

26.2 fixes
LOAD MORE LOGS

More like this

  Have something to say?

Niko_Brawl
05/08/2026 10:03 am
Level 1 : New Miner
Minecraft Dont Starve Edition lol. Loved your mod, i will add in all my worlds❤
2

Welcome