Mojira Archive
MC-226165

You can use spawn eggs to spawn baby entities in spawn protection

The Bug:

Players without operator permissions cannot spawn entities in spawn protection using spawn eggs, however, if a player were to use a spawn egg on an entity, a baby entity would be summoned.

Steps to Reproduce:

  1. Start a server, join it, give operator permissions to yourself, and switch into creative mode.
  2. Set the world spawn to your current location and summon a villager by using the commands provided below.
    /setworldspawn ~ ~ ~
    /summon minecraft:villager ~ ~ ~ {NoAI:1b}
  3. Obtain a villager spawn egg.
  4. Switch into survival mode, remove your operator permissions, and grant anyone else with them in order to activate spawn protection.
  5. Attempt to use the villager spawn egg whilst looking at the previously summoned villager.
  6. Take note as to whether or not you can use spawn eggs to spawn baby entities in spawn protection.

Observed Behavior:

Baby entities can be spawned.

Expected Behavior:

Baby entities would not be spawned.

Unresolved

[Mod] Avoma

2021-05-23, 04:55 PM

2024-12-09, 01:00 PM

3

2

Confirmed

Items

spawn-protection

1.16.5 - 1.21.41.16.5, 21w20a, 1.17.1, 1.18.1, 1.18.2, 1.19, 1.19.2, 1.19.3, 1.19.4, 1.20.1, 1.21, 1.21.4

-