mojira.dev
MC-275798

The stored_enchantments component does not prevent enchanting enchantable items in enchanting tables

The bug:

The enchanted book can be enchanted again after enchanting when I try to enchant a book with the enchantment value of 64.

Steps to reproduce:

  1. Give yourself any item with the enchantable component and the stored_enchantments component.

    /give @s arrow[enchantable={value:1},stored_enchantments={levels:{protection:3}}]
  2. Enchant it in a enchanting table.

or

  1. Give a book with any enchantment value greater than 1.

    /give @s book[enchantable={value:2}]
  2. Enchant it in a enchanting table twice.

Observed Behavior:

The enchanting button is highlighted.

Expected Behavior:

None of the buttons are highlighted so you can't enchant the item.

Comments 1

Thank you for your report!
After consideration, the issue is being closed as Working as Intended.

Please note, that mechanics of the game may change between updates.
Things such as graphics, sounds, world creation, biomes, redstone, villagers, and animals may not work the same in current versions.

Full Version HistorySnapshot Version HistoryThe official Minecraft feedback site

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

CaN2crow987

(Unassigned)

Confirmed

Commands, Enchantments

24w34a

Retrieved