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
Set the difficulty to Peaceful
/setblock ~ ~ ~ minecraft:dispenser[facing=up]{Items:[{Slot:4b,id:"witch_spawn_egg",count:64}]}Place a button on the dispenser
Press the button
❌ You hear a witch cackleInspect 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.