mojira.dev
MCPE-165613

minecraft:durability component ignored the missing required fields in older format versions

In the format versions 1.18.0 or later, if you do not fill in the max_durability parameter, Minecraft will print an error whose description is "missing required field(s)".

But in the format versions older than 1.18.0, such as 1.16.100, if you do not fill in the parameter above, nothing happens.

Even if you fill in the max_damage parameter which was valid in Minecraft 1.16.100.56 instead, the durability of the item is still 0 and there is no error reported. It means that max_damage parameter could not be upgrade to the max_durability parameter of format version 1.18.0.

Strangely, when replacing minecraft:durability with minecraft:damageable, a valid component in Minecraft 1.16.100.56 and 1.16.100.57, there is no error whether you fill in the max_durability parameter or the max_damage parameter as well. In fact, it will not be upgrade to minecraft:durability of format version 1.16.100 or 1.18.0, it just does not work at all.

Comments 2

Thank you for your report!

However, this issue has been temporarily closed as Awaiting Response.

Is this still an issue in the latest version? If yes, could you please attach an example addon showcasing the issue?

This ticket will automatically reopen when you reply.

Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📓 Project Summary – 📧 Suggestions – 📖 Minecraft Wiki

Cleaning up old tickets: This ticket had been set to 'Awaiting Response', but has not received a response from the reporter (~3 months+) so is being closed as Incomplete. If you feel this is still a valid issue then please comment, or create a new ticket following the Issue Guidelines which includes steps to reproduce the problem.

Quick Links:
📓 Issue Guidelines – 💬 Mojang Support – 📧 Suggestions – 📖 Minecraft Wiki

2190303755

(Unassigned)

Unconfirmed

Multiple

Windows 11 22H2

1.19.60.24 Preview

Retrieved