Mojira Archive
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.

Works As Intended

CaN2crow987

2024-08-21, 06:09 PM

2024-08-23, 08:40 AM

2024-08-23, 08:39 AM

1

1

Confirmed

Commands, Enchantments

24w34a

-