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

"foodSaturationLevel" can be negative

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.20.5 Release Candidate 2, 1.20.5
    • None
    • Community Consensus
    • Commands
    • Low
    • Platform

      Question:

      saturation level can be negative?

      How to reproduce:

      Give yourself an item with negative saturation:

       

      /give @s minecraft:grass_block[food={can_always_eat:true,eat_seconds:0.05,nutrition:0,saturation:-1}] 64

       

      Expected behavior:

      Item Stack Component "saturation" can be negative
      However, the saturation level cannot be lower than 0 after eating.

      Or Component "saturation" cannot be negative

      What actually happened:
      The saturation level can become negative.

       

       

            gegy1000 [Mojang] Gegy
            Kirby46994 beebee
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              CHK: