HomeJavaDatapacksBalanced Diet Challenge
Balanced Diet Challenge
DatapacksJava

Balanced Diet Challenge

by Kamorzy · on Modrinth

Which build do you need?

This mod ships a separate file for every mod loader and every version of the game. Pick both, then download — the wrong build installs fine and then does nothing in the game.

Mod loader

Minecraft version

⬇ Download for 1.20.2–1.20.4 · Data pack⬇ Download for 1.20.2–1.20.4 · Fabric⬇ Download for 1.20.2–1.20.4 · Forge⬇ Download for 1.20.2–1.20.4 · Quilt
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.
Balanced Diet Challenge — screenshot 1

A new rewrite of this mod from scratch is available for at the following project link: Balanced Diet: Variety is Vital

Purpose

Mostly to give me a reason to care at all about other foods beyond chicken/beef and golden vegetables. However, its implemented in a way that improves the game in multiple ways:

Its not meant to add a ton of difficulty, just enough to get the player considering those things.

Details

In short, it creates a challenge that limits your health regeneration until you eat unique foods. Eating all the foods from "A Balanced Diet" achievement removes all restrictions on health regeneration.

However, the challenge can be disabled in-game, which just leaves a QoL tracker for the achievement.

New Tracker

A new advancement tab will be unlocked that shows which foods you have and haven't eaten for the vanilla "A Balanced Diet" advancement (full overview in Gallery).



The datapack as two modes:

The two modes can be freely switched between during gameplay using the following commands:

/function balanced_diet:mode/tracker
/function balanced_diet:mode/challenge

All progress towards the advancement will continue regardless of which mode you're in. Each player is tracked individually and doesn't have to be in the same mode as other players.

Challenge Mode

(enabled by default)

You start the game with a total of 10 hearts, as normal. However, only 1 heart is a normal red heart, the other 9 are yellow absorption hearts. Absorption hearts do not regenerate naturally once lost.



For each 4 unique foods you eat, you will permanently gain 1 red heart:

Absorption Regeneration

Adsorption hearts are regenerated everyday at dawn to fill all 10 heart slots, regardless of whether or not the player sleeps. Extra absorption hearts are never removed though, so permanent overhealth is possible if you eat many unique foods without taking damage.

Absorption hearts are also regenerated when you respawn after dying.

Completion Details

Due to rounding, the final 2 hearts require 6 foods, not 4.

Table of food needed for red hearts
Unique Food Red Hearts
0 1
4 2
8 3
12 4
16 5
20 6
24 7
28 8
34 9
40 10

Perfomance

No detectable performance impact. All of the tracking happens via advancements, the same way its tracked in the vanilla game. Only a few simple functions are ran on ticks.

Limitations

Uninstall

To uninstall and remove all traces of the datapack, run the following command:

/function balanced_diet:uninstall

Note, there will be a notification after its done to run the /datapack disable command on it. It can't do that final step itself due to the bugs it'd cause if the pack were to be renamed (which it is automatically on some sites).

Quick facts

Install steps are the general flow for this file type — see the MC Java Mods guides for the full walkthrough.

Verified by MCModsHub

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

Explore more