-
Bug
-
Resolution: Fixed
-
24w10a, 24w11a
-
None
-
Plausible
-
Crash, Enchantments
-
Very Important
-
Platform
Summary
set_enchantments item modifier accepts enchantment levels above 255. Applying said item modifier and saving the item stack causes the game to crash because enchantment levels above 255 can no longer be saved after 24w09a.
Steps to Reproduce
- Add the attached data pack.
- Get a random item on the hotbar.
- Run /item modify entity @s hotbar.0 test:level_256
- Pause the game to save
Expected Result
The command response is sent and the game does not crash.
Actual Result
The command response cannot be delivered, and the game crashes upon saving.