Mojira Archive
MC-271182

Give commands with the minecraft:food component don't seem to work

/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

Awaiting Response

CaptainFlame54

2024-04-27, 12:20 AM

2024-05-07, 08:23 PM

2024-05-07, 08:23 PM

0

1

Unconfirmed

(Unassigned)

1.20.5, 1.20.6 Release Candidate 1

-