Paper icon indicating copy to clipboard operation
Paper copied to clipboard

API for nerfing mobs from spawners

Open Machine-Maker opened this issue 3 years ago • 11 comments

Closes #2411 (sorta) Provides an api for setting spawners nerf'd status. If spigot's setting is true, that overrides it.

Machine-Maker avatar Dec 07 '20 02:12 Machine-Maker

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.

stale[bot] avatar Feb 05 '21 11:02 stale[bot]

Still valid regardless of the attached issue.

Machine-Maker avatar Feb 05 '21 17:02 Machine-Maker

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

electronicboy avatar Feb 05 '21 19:02 electronicboy

Rebased after the NMS repackage

Machine-Maker avatar Mar 21 '21 23:03 Machine-Maker

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.

stale[bot] avatar May 21 '21 03:05 stale[bot]

Yep, a tri-state setup is better, and this has been refactored to use such.

Machine-Maker avatar May 21 '21 03:05 Machine-Maker

Rebased for 1.17.1

Machine-Maker avatar Jul 08 '21 01:07 Machine-Maker

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.

stale[bot] avatar Sep 07 '21 08:09 stale[bot]

Rebased for 1.18.1

Machine-Maker avatar Dec 25 '21 01:12 Machine-Maker

Can probably use the adventure tristate util enum when rebased

Owen1212055 avatar Oct 23 '22 01:10 Owen1212055

Updated to use the existing TriState type.

Machine-Maker avatar Feb 19 '23 00:02 Machine-Maker

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.

Machine-Maker avatar Dec 27 '23 22:12 Machine-Maker