mojira.dev
MC-271349

/loot replace on brewing stands requires the slot to be empty

Valid potion items can no longer be replaced in a brewing stand unless that slot is empty.

How to reproduce

  1. Place a brewing stand

  2. Stand inside the brewing stand’s block space

  3. Use the /loot command to insert a glass bottle in the first slot:
    /loot replace block ~ ~ ~ container.0 loot {type:"minecraft:generic",pools:[{rolls:1,entries:[{type:"minecraft:item",name:"minecraft:glass_bottle",weight:1}]}]}

  4. Now use a similar command to replace this item with a random potion:
    /loot replace block ~ ~ ~ container.0 loot {type:"minecraft:generic",pools:[{rolls:1,entries:[{type:"minecraft:item",name:"minecraft:potion",weight:1,modifier:{type:"minecraft:set_random_potion"}}]}]}
    ❌ Dropped 0 items" is printed to chat, and the glass bottle remains in the slot

  5. Take out the glass bottle and re-run the command from step 4
    ✔ The command succeeds, and the brewing stand now has a random potion in it

  6. Repeat these two commands while standing on a chest
    ✔ Both succeed- the second command correctly replaces the glass bottle with a random potion

Comments 1

Misode

(Unassigned)

Confirmed

Platform

Normal

Commands

1.20.6, 1.21.1, 24w36a, 26.4 Snapshot 3

Retrieved