-
Bug
-
Resolution: Fixed
-
1.21.1, 24w36a
-
None
-
Confirmed
-
Data Packs, Loot tables
-
Important
-
Platform
Steps to reproduce:
- Create/open a world with the attached data pack applied: MC-276433.zip
- Run /loot give @s loot test:test
- While holding the enchanted book, run /data get entity @s SelectedItem.components."!minecraft:enchantments"
Observed result:
The command outputs:
<username> has the following entity data: {}
Expected result:
The command outputs:
Found no elements matching SelectedItem.components."!minecraft:enchantments"
Steps to reproduce (vanilla):
- Go to a trial chamber
- Open ominous vaults until you get an enchanted book. Keep opening ominous vaults until you get a wind burst enchanted book.
- Disenchant the book you just obtained from the ominous vault using a grindstone
- Try to enchant the book you just disenchanted in an enchantment table
- Try to stack the book with other normal books
Observed result:
The book that was obtained and disenchanted from the trial chambers will not stack with other books and cannot be enchanted. After checking with advanced tooltips, this book only has 8 components, compared to normal book items with 9 components. After examining this glitched item in an nbt editor, the book had a minecraft:enchantments component removed. This is what was causing the book to not stack with other normal book items and not be enchantable by normal means.
Expected result:
The book that was obtained and disenchanted from the trial chambers should stack with other books and should be enchanted.
Notes:
This does not happen with other enchanted items, nor does it happen when name is set to minecraft:enchanted_book instead of minecraft:book.