Mojira Archive
MC-270926

"foodSaturationLevel" can be negative

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.

 

 

Fixed

beebee

[Mojang] Gegy

2024-04-19, 02:18 PM

2024-05-06, 01:38 PM

2024-05-06, 01:38 PM

2

0

Community Consensus

Low

Platform

Commands

1.20.5 Release Candidate 2, 1.20.5

24w19a