Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-269840

Custom saturation modifier sub-component does not override existing saturation statistic for food items

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 24w12a
    • None
    • Confirmed
    • Commands
    • Normal
    • Platform

      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_modifier value of choice, such as the following:
        /give @s bread[food={nutrition:6,saturation_modifier:7.2}]
      • Take note of the player's foodSaturationLevel tag value. Note that it does not increase according to the saturation_modifier value.

       

            Unassigned Unassigned
            gassug3 Matthew
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: