Use this command:
/give @s minecraft:diamond[minecraft:food={nutrition:1,saturation_modifier:0,eat_seconds:0.049,can_always_eat:true}] 64
when food.eat_seconds <0.05,the food won't be eaten
when food.eat_seconds ≥0.05,it will be eaten
Use this command:
/give @s minecraft:diamond[minecraft:food={nutrition:1,saturation_modifier:0,eat_seconds:0.049,can_always_eat:true}] 64
when food.eat_seconds <0.05,the food won't be eaten
when food.eat_seconds ≥0.05,it will be eaten
Confirmed
Platform
Low
Commands
24w12a, 24w13a, 1.20.6, 1.21 Pre-Release 2, 1.21.1
24w34a
Retrieved
Can confirm.