Skip to content

Spice of Life: Valheim Edition Refork

Imitates Valheim's mechanics, completely overhauling Minecraft's hunger system

24k downloads Updated

Last update on each platform

No ratings yet

Be the first to rate it.

Rate it

Community listing page

Community listing page, reviews may not be monitored by the author.

About

Description

Summary

Replace the hunger bar with food slots. What you eat determines how many hearts you have and how quickly you heal.

Description

On an empty stomach, you start with three hearts. Eat a loaf of bread and your maximum health goes up to five and a half. The bread starts with a nine-minute timer. While it's still active, you can eat a steak to add its hearts and regeneration to the same meal.

You have three slots by default. A baked potato could fill the last one, or you could drink some milk. One slot can hold a drink, which gives you a further 10% bonus to the hearts from your meal and to your healing rate. Once your starting hearts and food add up to ten hearts, you also move 20% faster.

The food bar showing the active meal in game

Foods now calculate their attributes maximum hearts, healing rate and duration based on the hunger value they provide. After eating, the food bar shows the remaining time. You can go to the config page to configure the position and style of the bar, and the progress bar.

When a food has less than 20% of its time left, or less than a minute, you can eat it again or swap it for something else. Eating rotten flesh clears the whole meal at once.

For modpack authors

In config/sol_valheim/common.json5 you can set the starting hearts and tune individual foods. For example, doubling bread's saturationModifier makes its timer start at 18 minutes. Run /sol_valheim reload to apply your changes.

Data packs can give players custom effects while they're well fed. With KubeJS, you can also change the slot count for individual players, from two to five, so a quest can award an extra food slot. Example data packs and scripts

Installation

Use Fabric or Forge on Minecraft 1.20.1, and Fabric or NeoForge on 1.21.1. All builds require Cloth Config. On Fabric, install Fabric API as well.

This project is a fork of Spice of Life: Valheim Edition.

This mod is a fork of Spice of Life: Valheim Edition with rewritten logic, fixing a large number of bugs from the original mod, and adding new styles and position adjustment features.

A Better Food System for Modern Minecraft

Spice of Life: Valheim Edition completely overhaul's Minecraft's food meter to work like a proper survival game, taking after Valheim's food slot system, where food lasts for a set amount of time and provides you with health, regeneration, and other benefits.

While not required, it is highly recommended to install a food addon like Farmer's Delight alongside this mod.

HUD

Why Use This Mod?

​Minecraft's food system is inherently unbalanced. As more food items have been added, and become easy to obtain and farm, hunger has become just an annoyance. When your only goal is to keep the meter full enough to sprint (e.g. chugging a stack of bread), the problem can be solved 30 seconds after creating a new world by planting sweetberries or punching a few animals. The only benefit to better foods is eating less often (and regenerating more in combat), but you can get a steady supply of endgame foods in a few hours with farms.

Other mods, like previous Spice of Life editions, attempt to fix this problem by giving the player rewards or punishments for not maintaining a diverse diet. This is layering an extra system on top of the food meter, which most players ignore and continue chugging bread, or find ways to game the system.

In Minecraft Alpha, there was no hunger bar, and you would eat food to heal hearts when you got low. Spice of Life: Valheim Edition essentially replicates this with a more modern take. Like in Valheim, you have three food slots which you must fill. Eating a food item will fill a slot, giving you the benefits of increased health and regeneration until it runs out. You then cannot eat that food again until the timer runs out (or almost runs out).

You will start with three hearts (configurable), and you must eat food to increase that, up to a maximum of an entire extra bar of hearts if you eat healthy modded foods from Farmer's Delight and similar mods. If you have a full stomach, you also get a slight speed boost (also configurable). You can see these stats when you hover over a food item, and when you eat it, it will appear above your hotbar with a timer.

SOL Valheim food info

This is a pretty simple system, but ends up balancing many unrelated aspects of the game:

  • You must plan when to eat and what foods to eat instead of just chugging bread. Survival is more difficult, since you don't start with full hearts, and must eat good food to build up your durability.
  • Combat is harder, since you won't regenerate hearts until you haven't taken damage in a few seconds (though you can still eat Golden Apples whenever you want). Farming and cooking is more rewarding, since you can no longer get by with mediocre foods, and must craft good meals.
  • And, lastly, baking cake is actually useful for once--providing a good source of multiple meals that you can quickly eat after respawning.

You can also reset your currently eaten foods by vomiting, which you can trigger by eating rotten flesh:

rotten flesh vomiting

Every aspect of the mod is configurable, so you can adjust the strength of certain foods, regeneration, and timers As well as the newly added position adjustment

configuration

This does fundamentally change how Minecraft's food works by effectively disabling the food bar entirely, so some other mods may function unexpectedly as if the player is starving or full. Please report any breaking issues to the issue tracker or on Discord.

This mod is theoretically compatible with all mods that modify the vanilla food bar (because the food bar is hidden), but mods that draw additional layers on top of the food bar may need manual compatibility