/give @p apple[food={nutrition:2,saturation:0.4,is_meat:false,can_always_eat:false,eat_seconds:1}] 1
Running this command will give an error that the component minecraft:food is malformed, and it says that no key eat_sound in MapLike[{can_always_eat:0b,eat_seconds:1,is_meat:0b,nutrition:2,saturation:0.4d}]
The expected output is that the command is successfully executed and the player is given an apple with the components.
This has been tested in 1.20.6rc1 and gives the same results as being in 1.20.5
Attachments
Comments 3
It does not work before 1.20.6. I was able to reproduce and get an apple. This does not work for any April Fools Snapshots
I cannot reproduce this error with the provided command:
I was able to get an apple as expected. Could you please upload a screenshot of this issue occurring with the F3 screen enabled?