OpenCubicChunks / CubicChunks

Infinite* height mod for Minecraft
MIT License
536 stars 69 forks source link

Mod compatibility events #368

Open Barteks2x opened 6 years ago

Barteks2x commented 6 years ago

Some mods use some Chunk-related events ad expect them to be already filled with blocks at the moment the event is fired (ZeroCore multiblocks for example).

Firing the chunk load event whenever a Cube is loaded will in some cases make things work, but is also likely to break other mods. Another potentially useful mode would be firing the event for the chunk, but only with the block data for the cube actually being loaded (a cube wrapped as a chunk). This would likely make mekanism work better.

The configuration should look something like this:

compat_event_chunkload {
    S:"modid"=cubeload
    S:"modid2"=cubeload_delta
}
Barteks2x commented 6 years ago

This is also needed to at least partially fix #367

Barteks2x commented 5 years ago

Parts of what is needed for this already implemented in https://github.com/OpenCubicChunks/CubicChunks/commit/2ea63388f183ea51de5db9bbd8ca06b0ef669d66