Skip to content

[Enchantment] Use setSpawnFlags() to control monster spawning #1469

Description

@MarioG1

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    State: Open to PROpen to anyone who frees like contributing to MV.Type: IdeaSuggestion for a new feature or enhancement.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions