Skip to content

Implemented Toggle Mob AI Function #33

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

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
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.

1 participant