Balanced Diet
This datapack introduces a nutrition system to Minecraft with five different food categories: fruits, vegetables, meat, grains, and sugar/energy. Each category is represented by a separate bar that needs to be maintained at a high level to receive positive effects.
Nutrition System
When consuming food, the corresponding nutrition bars increase while others may gradually decrease. The fill level of the bars affects the effects received:
Fruits
- High level: periodic health regeneration
- Low level: occasional poisoning
Vegetables
- High level: damage resistance
- Low level: mining fatigue
Meat
- High level: increased strength
- Low level: slowness
Grains
- High level: saturation
- Low level: hunger
Sugar/Energy
- High level: speed boost
- Low level: slowness
- Feature: decreases 5 times faster than other bars but can be replenished by various foods
Mechanics
The amount of bar replenishment depends on the nutritional value of the food. For example, carrots increase the vegetable bar by 3 units, steak increases the meat bar by 8 units, and bread increases the grain bar by 5 units. Some foods simultaneously affect multiple nutrition categories.
Management
Commands are available to view current nutrition status: /trigger see_ur_nutrition and /trigger turn_off_see_ur_nutrition. Administrators can use /function knize:config to adjust parameters.
Removal
To remove the datapack, execute the command /function knize:unistall and delete the datapack folder from the appropriate directory.
Known Issues
Sometimes consumption of dried kelp may not be registered due to counter checks occurring every second instead of every tick to reduce performance load.