mojira.dev
MC-313515

Using the `set_random_dyes` loot function on stacks of items reduces them to one item

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:

  1. 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] 3
  2. Hold 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}
  3. 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.

Attachments

Comments 1

Avoma

(Unassigned)

Unconfirmed

Commands, Data Packs, Loot tables

26.3, 26.4 Snapshot 10

Retrieved