mojira.dev
MC-304862

Activating a dispenser with a hostile mob spawn egg in Peaceful mode consumes the egg and plays a sound

Activating a dispenser with a hostile mob spawn egg in peaceful mode consumes the egg and plays a sound. Neither of these things happen when the player attempts to use the spawn egg normally.

To reproduce

  1. Set the difficulty to Peaceful

  2. /setblock ~ ~ ~ minecraft:dispenser[facing=up]{Items:[{Slot:4b,id:"witch_spawn_egg",count:64}]}

  3. Place a button on the dispenser

  4. Press the button
    ❌ You hear a witch cackle

  5. Inspect the dispenser
    ❌ A spawn egg has been consumed, and only 63 remain

Expected behavior

The spawn attempt would have completely failed, just as it would have it you had used the egg yourself.

Comments 0

No comments.

clamlol

(Unassigned)

Confirmed

Gameplay

Low

Items, Mob spawning

1.21.11 Release Candidate 2

Retrieved