Saturation Module
Overview
The saturation module allows you to interact with and set custom saturation and hunger values for the Saturation mod on Lunar Client.
- Ability to interact with the saturation mod of a player.
- Ability to set custom hunger on an item.
- Ability to set custom saturation on an item.
This module only changes the displayed values, you'll need to change the actual hunger and saturation levels server-side.
Integration
How to set custom hunger level of an item
You set a custom NBT, with the tag lunar{hunger:{value}}
then set the {value}
to the value of the hunger level you want to display on the item. The value should be an integer.
How to set custom saturation level of an item
You set a custom NBT, with the tag lunar{saturation:{value}}
then set the {value}
to the value of the saturation level you want to display on the item. The value should be a float.
Sample Code
Explore each integration by cycling through each tab, to find the best fit for your requirements and needs.
Custom Saturation & Hunger
/summon item ~ ~1 ~ {Item:{id:"minecraft:apple",Count:1b,tag:{lunar:{hunger:22,saturation:3}}}}
/summon item ~ ~1 ~ {Item:{id:"minecraft:apple",Count:1b,tag:{lunar:{hunger:7,saturation:7}}}}
/summon item ~ ~1 ~ {Item:{id:"minecraft:apple",Count:1b,tag:{lunar:{hunger:30,saturation:26}}}}