Lighting
This page describes how to add lighting to a minestom instance
Setting the chunk supplier
To use the LightingChunk class, you can call the InstanceContainer#setChunkSupplier(LightingChunk::new)
method. By default lighting will be generated for chunks when they are sent to the client.
An example of using this method:
Precalculating Lighting
To load preload chunks and calculate lighting before players join, you can use the following code:
Last updated