Multiverse-Core icon indicating copy to clipboard operation
Multiverse-Core copied to clipboard

[Enchantment] Use setSpawnFlags() to control monster spawning

Open MarioG1 opened this issue 11 years ago • 3 comments

At the moment you just cancel the spawn events of mobs/animals to control mob/animal spawning. A much better way is to use setSpawnFlags(boolean allowMonsters, boolean allowAnimals) to disable/enable monster and animals pawning.

This will also fix #1424 in an better way. The gamerule doMobSpawning prevents all mobs (animals and monsters) from spawning.

MarioG1 avatar Jul 30 '14 07:07 MarioG1

@dumptruckman @FernFerret you should look into the PropertyValidator's in MVWorld.java because the are never called which leads to some problems/not working foundations.

MarioG1 avatar Aug 01 '14 12:08 MarioG1

If you have a suggestion about spawning mobs, by all means, make pull request.

FlippantCactus avatar Aug 01 '14 19:08 FlippantCactus

The current spawn control is somewhat of a mess. The future of multiverse likely does not include individual mob type control and will use the more efficient means available in bukkit. If you want to make a PR updating this feature, please do.

dumptruckman avatar Aug 01 '14 20:08 dumptruckman