Skip to content

Clarify parameters of blockMobSpawns setting and list#324

Closed
LazyFlesh wants to merge 5 commits into
masterfrom
be-clearer-on-blocking
Closed

Clarify parameters of blockMobSpawns setting and list#324
LazyFlesh wants to merge 5 commits into
masterfrom
be-clearer-on-blocking

Conversation

@LazyFlesh

@LazyFlesh LazyFlesh commented Jul 8, 2026

Copy link
Copy Markdown

Summary

I encountered confusion, both my own and others', on why mobs weren't spawning with certain settings of block mob spawns in claimed chunks with empty lists.

The code interprets an empty list as "block all mob types", which i assume is because the original coder assumed that if mob blocking is on and the ist is empty, that is what it should do, and will be interpreted as such by the players.

Further, it was assumed that the setting blocked normal mob spawns, not ALL, and so forced spawns would still work... but they don't. This doesn't work like mob repellator or chandelier/mega torch, it blocks all spawns, including forced, spawners, breeding mobs, etc.

This pr updates the Config comments to be clearer, so it's not left up to interpretation.

This closes GTNewHorizons/GT-New-Horizons-Modpack#25765 if merged. The spawn events to be blocked are more clearly defined, so confusion should be minimised.

Checklist

  • I have tested this PR in DevEnv
  • I have tested this PR in Fullpack
  • This PR is in compliance with the GTNH AI Policy
  • This PR requires another PR in order to merge

@LazyFlesh LazyFlesh added Enhancement Improve an existing mechanic. Please explain the change with a before/after comparison. Affects Balance Change affecting balance. Requires admin approval before merging. Bug Fix Fixes a bug. Please link it in the PR if an issue exists for it. labels Jul 8, 2026
@LazyFlesh LazyFlesh changed the title Be clearer on the parameters of the spawn block Clarify parameters and add config for blocking special/forced spawns Jul 8, 2026
@LazyFlesh

Copy link
Copy Markdown
Author

revert attempt to swap to same event listener as mob repellator/mega torch/etc. as it's just not working.

@LazyFlesh LazyFlesh changed the title Clarify parameters and add config for blocking special/forced spawns Clarify parameters of blockMobSpawns setting and list Jul 8, 2026
@LazyFlesh

Copy link
Copy Markdown
Author

conflicts with #325, as it changed the way the spawn prevention works.

@LazyFlesh LazyFlesh closed this Jul 13, 2026
@Dream-Master
Dream-Master deleted the be-clearer-on-blocking branch July 14, 2026 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Affects Balance Change affecting balance. Requires admin approval before merging. Bug Fix Fixes a bug. Please link it in the PR if an issue exists for it. Enhancement Improve an existing mechanic. Please explain the change with a before/after comparison.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ServerUtilities claim mob-spawn blocking also kills bred baby animals — breeding silently fails in claimed chunks

1 participant