mojira.dev
MC-269336

Crash with set_enchantments item modifier above level 255

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

  1. Add the attached data pack.

  2. Get a random item on the hotbar.

  3. Run /item modify entity @s hotbar.0 test:level_256

  4. 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.

Attachments

Comments 0

No comments.

apple502j

slicedlime

Plausible

Platform

Very Important

Crash, Enchantments

24w10a, 24w11a

24w12a

Retrieved