Modifying a food item's saturation_modifier statistic via the food component has unexpected effects, rather than overriding the saturation values for the food item. This does not occur when modifying the nutrition statistic.
Expected result:
saturation_modifier value overrides the existing saturation value on a food item, as it does with the nutrition value.
Actual result:
The saturation_modifier value is offset by some arbitrary amount which can be verified by checking the player's data.
Steps to reproduce:
Enter the following command with a food item and
saturation_modifiervalue of choice, such as the following:/give @s bread[food={nutrition:6,saturation_modifier:7.2}]Take note of the player's
foodSaturationLeveltag value. Note that it does not increase according to thesaturation_modifiervalue.
⚠️ Please do not mark Unreleased Versions as affected. You don't have access to them yet.
-- I am a bot. This action was performed automatically! If you think it was incorrect, please notify us on Discord or Reddit