Crash when set_ominous_bottle_amplifier item modifier sets out-of-range amplifier
Summary
This is yet another "item modifier setting invalid component causing crash" bug. Here, the new set_ominous_bottle_amplifier item modifier does not clamp or validate the amplifier, causing a crash.
Steps to Reproduce
- Give yourself a stick.
- Run the following command:
/item modify entity @s hotbar.0 {function:"set_ominous_bottle_amplifier",amplifier:10} - Pause the game.
Expected Result
The game does not crash.
Actual Result
The game crashes.
2024-03-29, 02:31 AM
2024-04-16, 11:42 AM
2024-04-16, 11:42 AM
2
2
1216329