Skip to content

Spawners randomly stop working #17

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
anonisnap opened this issue Sep 29, 2021 · 2 comments · May be fixed by #34
Open

Spawners randomly stop working #17

anonisnap opened this issue Sep 29, 2021 · 2 comments · May be fixed by #34
Labels
Bug Report Something isn't working

Comments

@anonisnap
Copy link

Description (Required)

I noticed after having played on a server for around a month, that randomly Electric Spawners would stop spawning for extended periods of time, upwards of minutes at a time, with plenty of power supplying them. Recently this has become a permanent issue, with some spawners refusing to spawn mobs in certain locations.

When a spawner, which refuses to spawn mobs in a location is moved to a new chunk far away, it starts spawning again with no issues. But moving it back to it's former location, it continues to not spawn anything.

In this image, 2 Electric Spawners are visible, a Skeleton on the left, and Cave spider on the right. You can see that a Cave Spider is spawned, and that spawner works without any issues. But the Skeleton spawner on the left has not been spawning for weeks. Both of these are in the same chunk as well.

My thoughts

The only thing I could point to, which could help solve this mystery, would be, that for each Spawner / Block Location, the plugin might think a different block is placed, leaving it to not care about the spawner. Or, that the block gets forgotten by Slimefun 4 itself.

Steps to reproduce the Issue (Required)

I'm unsure of how to reproduce this. Being unsure of what's causing this, it's hard to reproduce

Expected behavior (Required)

Both spawners should spawn mobs

Environment (Required)

Minecraft and Slimefun Version
Addons

@anonisnap anonisnap added the Bug Report Something isn't working label Sep 29, 2021
@Boomer-1
Copy link

Boomer-1 commented Mar 30, 2023

this sounds a lot like a block storage issue, where the sf data is lost. if you mine up the spawner and it's a cs-corelib head that may confirm it. or if you are unable to access the gui of the spawner

@James-P-Bennett
Copy link

James-P-Bennett commented Jan 31, 2025

I've observed this happening and after some troubleshooting I have found out the following:

  • Electric spawners that quit working can still be picked up.

  • No matter what changes placing new electric spawners in that same block doesn't resolve the issue.

Equipping the Slimefun debug fish, spawning a test block then clearing block data, breaking the test block then replacing it with a spawner completely fixes the issue.

So based on this, it's safe to assume that somehow the block state of the spawner or the block that the spawner is in is getting messed up.

EDIT: It was a timings issue. Refer to my PR for the fix.

@James-P-Bennett James-P-Bennett linked a pull request Feb 5, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Report Something isn't working
Development

Successfully merging a pull request may close this issue.

3 participants