mojira.dev
MC-267054

Enchants level capped at 255 when integer limit is 2147483647

So when i give myself an item that has a enchant over lvl 255 like so: /give @p acacia_sign{Enchantments:[{id:fortune,lvl:123456}]} 1

The enchant that is shown on the item has lvl of 255, the functionality of the enchant is also like lvl 255

[media]

but when i use /data get entity @s it shows the exact level of enchant

[media]

The integer limit in 32bit is 2147483647 so it is weird that enchants are capped at 255

Linked issues

Attachments

Comments 1

Thank you for your report!
We're tracking this issue in MC-231508, so this ticket is being resolved and linked as a duplicate.

That ticket has already been resolved as working as intended, which means this is not considered a bug and won't be fixed. Please do not leave a comment on the linked ticket.

If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.

Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki

Mrkq

(Unassigned)

Unconfirmed

(Unassigned)

item

1.20.2

Retrieved