Paper
Paper copied to clipboard
API for nerfing mobs from spawners
Closes #2411 (sorta) Provides an api for setting spawners nerf'd status. If spigot's setting is true, that overrides it.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Still valid regardless of the attached issue.
I'm dizzy but the way this is implemented seems semi flawed, if the intent is to allow plugins to set specific behaviors, it would make sense for this to be some form of tristate vs on/off, with "default" as one of those states
Rebased after the NMS repackage
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Yep, a tri-state setup is better, and this has been refactored to use such.
Rebased for 1.17.1
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Rebased for 1.18.1
Can probably use the adventure tristate util enum when rebased
Updated to use the existing TriState type.
This can just be done via a plugin without this API. Just mark spawners via PDC and listen to the spawner spawn event to set entities as unaware.