Source
Nutrient Distillation (fluid) — “NutrientDistillation” in BlockFluidEio
Effect
When an EntityPlayer stands in Nutrient Distillation fluid, they receive a food boost:
| Property | Value |
|---|---|
| Hunger restored | 1 hunger point |
| Saturation restored | 0.1 saturation |
| Tick interval | Every nutrientFoodBoostDelay ticks (default 400 = 20 seconds) |
Configuration
The tick interval is controlled by nutrientFoodBoostDelay in Config.java:
- Default: 400 ticks (20 seconds)
- Setting this to a lower value makes food boost more frequent
Implementation Detail
The boost is tracked per-player using NBT data key eioLastFoodBoost to prevent multiple applications within the same tick window:
if (time % Config.nutrientFoodBoostDelay == 0
&& player.getEntityData().getLong(EIO_LAST_FOOD_BOOST) != time) {
player.getFoodStats().addStats(1, 0.1f);
player.getEntityData().setLong(EIO_LAST_FOOD_BOOST, time);
}
Notes
Nutrient Distillation is a key fluid in Ender IO’s food processing chain. The food boost effect makes it useful for players who need passive hunger management in their base. The saturation component (0.1) provides a small extra buffer beyond the visible hunger bar.