The minecraft:set_random_dyes item modifier accepts an unbounded number_of_dyes value such as 2147483647 leading to a game crash.
Steps to reproduce:
Create a new world
Run the following command:
/loot spawn ~ ~ ~ loot {pools:[{rolls:1,entries:[{type:"minecraft:item",name:"minecraft:leather_helmet",modifier:{type:"minecraft:set_random_dyes",number_of_dyes:2147483647}}]}]}Observe the crash.
Observed result:
The game crashes.
Expected result:number_of_dyes in minecraft:set_random_dyes should be bounded to a safe maximum so it cannot trigger an OutOfMemoryError crash.
Comments 0
No comments.