[SPIGOT-4533] SpawnCreatureEvent not firing for Villager spawns. Created: 16/Dec/18  Updated: 16/Dec/18  Resolved: 16/Dec/18

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Jesse Prescott Assignee: Unassigned
Resolution: Invalid Votes: 0
Labels: Bukkit, Craftbukkit

Issue Links:
Relates
relates to SPIGOT-4534 CreatureSpawnEvent's with SpawnReason... Resolved
Version: This server is running CraftBukkit version git-Spigot-140f654-b446cb5 (MC: 1.13.2) (Implementing API version 1.13.2-R0.1-SNAPSHOT)
Guidelines Read: Yes

 Description   

The Bukkit event CreatureSpawnEvent is no longer firing for Villager spawns other than via a Spawn Egg.

Recreating the error:

1) Fresh Spigot install, with no other plugins.

2) Create a basic plugin with the following event registered to the PluginManager:

@EventHandler(priority = EventPriority.MONITOR)
public void onCreatureSpawnEvent(CreatureSpawnEvent event) {  
    if(event.getEntityType() == EntityType.VILLAGER) { 
        Bukkit.broadcastMessage(event.getSpawnReason().name()); 
    } 
} 

3) Confirm that spawning a villager with a spawn egg broadcasts the message "SPAWNER_EGG"
4) Locate the nearest village. (Use /locate Village)
5) Travel to the village and note that no message broadcasts occur at all (There should be CHUNK_GEN or NATURAL appearing).



 Comments   
Comment by md_5 [ 16/Dec/18 ]

Villagers only spawn at chunk gen or via breeding
https://minecraft.gamepedia.com/Villager
As far as I can tell there is no time they just naturally spawn.

The chunk gen issue is part of the larger linked ticket

Comment by md_5 [ 16/Dec/18 ]

Since whatversion?

Generated at Sat Dec 13 13:37:35 UTC 2025 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.