This datapack brings the concept of nutrition to vanilla Minecraft, inspired by mods that do the same. Players must eat a variety of foods (categorized into four food groups) in order to remain healthy, and they are rewarded for doing so.
Moderately good nutrition boosts the player's health:
Maximum nutrition doubles the player's health:
No good nutrition at all causes severe negative effects:
Players can be buffed, debuffed, or both depending on how they eat:
A player's nutrition scores can be viewed by typing "/trigger ViewNutrition" into chat (doesn't require any command permissions!)
A player's nutrition scores range between 0 and 1000, and drop by 10 every 10 minutes. Scores at or above 950 produce buffs; scores at or below 30 produce debuffs. Different foods boost scores different amounts; i.e. steak raises a player's protein score more than chicken.
A player's nutrition scores reset to 350 upon death.
If a player eats a food that can cause a negative effect, like rotten flesh, then a player's nutrition scores drop if they receive that effect. The worse the effect, the more their scores drop.
Note well that a few foods actually boost multiple scores. I'll leave it up to you to figure them out
Please leave any comments or suggestions below!
I am considering lowering player's scores by a variable rate depending on how high the score is, i.e. if it is high it drops faster than if it is low. This way it's easier to avoid debuffs but harder to maintain buffs. Let me know if that's a good idea.