The Bug:
Using the set_random_dyes loot function on stacks of items reduces them to one item.
Loot functions such as set_name keep the count of the items they change. However, the set_random_dyes loot function reduces stacks to a single item, therefore introducing an inconsistency.
Steps to Reproduce:
Obtain a stack of three leather boots by using the command provided below.
/give @s minecraft:leather_boots[minecraft:max_stack_size=64,!minecraft:max_damage] 3Hold the boots in your main hand and dye them by using the command provided below.
/item modify entity @s weapon.mainhand {type:"minecraft:set_random_dyes",number_of_dyes:1}Observe if only one pair of leather boots is left.
Observed Behavior:
Using the set_random_dyes loot function on stacks of items reduces them to one item.
Expected Behavior:
Using the set_random_dyes loot function on stacks of items would not reduce them to one item.