[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: |
|
||||||||
| 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" |
| Comments |
| Comment by md_5 [ 16/Dec/18 ] |
|
Villagers only spawn at chunk gen or via breeding The chunk gen issue is part of the larger linked ticket |
| Comment by md_5 [ 16/Dec/18 ] |
|
Since whatversion? |