Skip to content

Timing fix #34

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 7 commits into
base: master
Choose a base branch
from

Conversation

James-P-Bennett
Copy link

@James-P-Bennett James-P-Bennett commented Feb 5, 2025

Removed the shared lifetime counter, fixing synchronization issues. This will prevent Electric Spawners from randomly failing across servers.

Fixes #17 & #32

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.
After testing revealed limited per-spawner activity.
Found that the timing system itself was causing spawners to operate one at a time
Removed timing checks entirely, allowing spawners to work independently

Minor unicode text adjustments.
Uses Sf BlockStorage to determine last spawn tick, configurable delay in yml to balance spawns to a reasonable rate.
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.

Spawners randomly stop working
1 participant