# Leftover
Banks the hunger and saturation that would normally be wasted when eating while full, so you can use them later.
## How to play
1. Craft a syringe: 3 iron nuggets + 1 glass bottle -> 4 syringes
2. Craft the "Leftover" Experimental Reagent: 1 syringe + 1 golden carrot
3. Right-click the reagent to unlock the ability permanently (saved with your world, kept on death)
4. Once unlocked:
- You can keep eating even with a full hunger bar; the excess goes into storage
- A blue storage bar and a number appear above the hunger bar
- Press V (rebindable) to put stored food back into hunger/saturation
- When hunger and saturation are both full, V converts storage into instant healing (4 points = 1 heart by default)
- On death, 60 stored points are spent automatically to keep you alive, like a Totem of Undying (configurable)
- Anything that does not fit stays stored, nothing is wasted
## Config
`config/leftover-common.toml`:
- `maxStore`: storage cap, 40 points by default (per bar)
- `pointsPerHeart`: healing exchange rate, 4 points per heart by default
- `deathSaveCost`: points spent to survive death, 60 by default, 0 disables it
- `showHud`: toggle the storage bar
## Requirements
- Minecraft 1.20.1
- Forge 47.x
- Required on both client and server
## License
MIT
# 余粮 Leftover
把“吃饱时吃东西浪费掉的饥饿值和饱和度”存起来,之后再取回来用。
## 怎么玩
1. 合成注射器:3 个铁粒 + 1 个玻璃瓶 → 4 个注射器
2. 合成“余粮”实验型试剂:1 个注射器 + 1 根金胡萝卜
3. 右键注射试剂,永久解锁(存进存档,死亡不丢)
4. 解锁后:
- 饥饿条满了也能继续吃东西,多余部分进入存粮
- 饥饿条上方显示蓝色存粮条和数值
- 按 V(可改键)把存粮填回饥饿值和饱和度
- 饥饿和饱食都满时,V 会把存粮转化为瞬间治疗(默认 4 点余粮 = 1 颗心)
- 死亡时自动消耗 60 点存粮抵消死亡,效果同不死图腾(数值可配置)
- 放不下的存粮会保留,不会浪费
## 配置
`config/leftover-common.toml`:
- `maxStore`:存粮上限,默认 40 点(饥饿、饱和度各自封顶)
- `pointsPerHeart`:治疗兑换率,默认 4 点余粮换 1 颗心
- `deathSaveCost`:死亡保命消耗,默认 60 点,设为 0 关闭
- `showHud`:是否显示存粮条
## 环境
- Minecraft 1.20.1
- Forge 47.x
- 客户端与服务端都需要安装
## 许可证
MIT