Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @EventHandler(ignoreCancelled = true)
- public void spawnTest(CreatureSpawnEvent e){
- CreatureSpawnEvent.SpawnReason spawnReason = e.getSpawnReason();
- if(spawnReason.equals(CreatureSpawnEvent.SpawnReason.NATURAL)){
- e.getEntity().getWorld().spawnEntity(e.getEntity().getLocation(), e.getEntity().getType());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement