Skip to content

Conversation

OfficialTheosis
Copy link

PSA: This is a duplicate of #13108 - I didn't know that making it my new main branch and deleting the old one would cause the original PR to be closed. Sorry - I hope it is acceptable to open this new one. It is exactly the same.

This is my first PR, so I apologise in advance if it is inherently flawed, but it seems to work fine in my testing.

This setting aims to solve the problem that servers with protected regions around their world's spawn point will probably have, where said regions may disable mob spawning via a WorldGuard flag for example, and as a result, the server will continuously try to spawn mobs there, never being able to meet the mob caps due to the cancelled spawns, potentially wasting a considerable amount of time per tick.

It allows you to set a square radius, in chunks, around the world's spawn chunk (by spawn chunk, I just mean the chunk that the world's spawn point happens to be inside). The chunks within this radius will not be considered for mob spawning.

  • If set to -1 (default) or lower, the feature will be disabled (vanilla behaviour).
  • If set to 0, only the spawn chunk will not be considered for mob spawning.
  • If set to anything higher than 0, a square radius of chunks around the spawn chunk will all not be considered for mob spawning.

Solves #13107

@OfficialTheosis OfficialTheosis requested a review from a team as a code owner September 29, 2025 20:59
@github-project-automation github-project-automation bot moved this to Awaiting review in Paper PR Queue Sep 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Awaiting review
Development

Successfully merging this pull request may close these issues.

1 participant