Skip to content

Comments

Implemented Toggle Mob AI Function#33

Closed
James-P-Bennett wants to merge 6 commits intoSlimefun-Addon-Community:masterfrom
James-P-Bennett:master
Closed

Implemented Toggle Mob AI Function#33
James-P-Bennett wants to merge 6 commits intoSlimefun-Addon-Community:masterfrom
James-P-Bennett:master

Conversation

@James-P-Bennett
Copy link

Added a new feature to ElectricSpawners that allows control over whether or not mobs have AI.

  • Added config options to force-disable AI globally or set default state
  • Added an in-game toggle button in the spawner GUI (unless force-disabled)
  • Mobs spawned will respect these AI settings via setAware
  • Some minor grammatical corrections in the error logging messages

image

Added a new feature to Electric Spawners that allows control over whether or not mobs have AI.

- Added config options to force-disable AI globally or set default state
- Added an in-game toggle button in the spawner GUI (unless force-disabled)
- Mobs spawned will respect these AI settings
Replaced the shared lifetime counter with per-spawner timing using world ticks, fixing synchronization issues. Added a 20-tick spawn cooldown to ensure consistent and reliable spawning, preventing Electric Spawners from randomly failing.
Updated to support 1.21 Experimental Slimefun

Tested and confirmed working on all versions up to 1.21.4, officially supports 1.21.2
@James-P-Bennett
Copy link
Author

Closing this PR — replaced with clean branch per maintainer’s request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants