Mojira Archive
MC-73881

Summoning monsters in peaceful difficulty spawns monster for 1 tick

The bug

When you summon a monster, it does not only flash, but also really exists for one tick. This may cause unnecessary CPU usage because the pathfinding algorithm maybe already starts.

How to reproduce

  1. Set difficulty to peaceful
  2. Place a command block with this command: /summon zombie ~ ~1 ~
  3. Place a chain command block after it with this command: /execute if entity @e[type=minecraft:zombie,distance=..4] run say ZOMBIE DETECTED
  4. Activate the first command block
    Observe how the command block said "ZOMBIE DETECTED"