Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Pilzinsel64 committed Apr 20, 2024
2 parents 73dface + 93579a8 commit d81f2f1
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,20 +51,3 @@ I'm using this for an NPC that has a little field of Redstone Flowers. The NPC w
### Adjust light level for hostile mobs spawn

There is an option to adjust the required light level needed for hostile mobs to spawn. This were initially inteded to set the light level to 0, like it is in Minecraft 1.18+, because we really don't want Monsters at day int he forest in a mostly peaceful world. They are fine at night and fine at thunderstorm and also fine in Nehter and The End, but that's all.

## Experimental Options

### Disable chunk loading on request

Two experimental options for loading chunks on request has been added.
This can be used to prevent Mods (and core Minecraft itself) from loading chunks whenever a block is requested there. This also means "ghost loading" or "cascade loading" chunks.
Can help with performance, but only turn on this option if you really know what you do!

Basically for a Mod, if it needs a Block at Position XYZ, it calls `getBlock()` or `getTileEntity()` or `getEntity`. By default, this methods will load the chunk where the block or entity is loaced in. Often this is not expected and in some cases can cause lags. G.g. AE2 or Ender IO Conduits or any other multiblock structure can be a cause for such a behavior. Even Minecraft's Grass block that wants to extend its Grass to nearby dirt blocks.
There is one configruation field in the `WorldServer` object called `loadChunkOnProvideRequest` that is true by default. Setting this to false only loads chunks when explicitely loaded via e.g. `loadChunk(x, y, z)`.

If `disableChunkLoadingOnRequest` is `true`, ensure to check all your chunk loaders for functionality.
Think about switching to my fork of Chicken Chunks. I added a fix to load the chunk before requesting the block (that's how it should be done in general).

Also set `autoLoadChunksOnTicketCreation` to `true` if you don't know what you do!
This continues functionality of chunk loading tickers. So anytime whenever a chunk loading ticket is created by a Mod, the chunks will be also loaded (Forge itself doesn't that automatically).

0 comments on commit d81f2f1

Please sign in to comment.