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
- Set difficulty to peaceful
- Place a command block with this command: /summon zombie ~ ~1 ~
- Place a chain command block after it with this command: /execute if entity @e[type=minecraft:zombie,distance=..4] run say ZOMBIE DETECTED
- Activate the first command block
→
Observe how the command block said "ZOMBIE DETECTED"
2014-10-31, 06:14 PM
2024-12-04, 02:57 PM
28
14
/summon, difficulty, mixed-bugs-hallway, monster, peaceful, spawn, tick
Minecraft 1.8.1-pre3 - 1.20.4
Minecraft 1.8.1-pre3, Minecraft 16w05a, Minecraft 16w40a, Minecraft 1.11.2, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 19w12b, Minecraft 19w13b, Minecraft 19w14a, Minecraft 19w14b, 1.15.2, 20w07a, 20w08a, 20w09a, 20w10a, 20w11a, 20w12a, 20w13a, 20w21a, 1.16 Pre-release 2, 1.16 Pre-release 3, 1.16 Pre-release 5, 20w28a, 20w29a, 20w30a, 1.16.2 Pre-release 1, 1.16.2, 1.16.3, 20w46a, 20w51a, 21w03a, 1.16.5, 21w05b, 21w06a, 21w07a, 21w08b, 21w15a, 21w17a, 21w20a, 1.17 Pre-release 1, 1.17.1, 1.18.1, 1.18.2, 1.19, 1.19.1, 1.19.2, 1.20.3 Release Candidate 1, 1.20.4
-