Re:Pumpkin: A Modern Minecraft server written in Rust
by alex_medvedev on Tuesday October 15, 2024 @02:19PM
(#41851460)
Will definitely take a look at this, Thank you. Im btw studied the Minecraft code already so i often use the decompiled code as reference.
Mojang made large improvements to the lighting engine in 1.20, bringing it in line with the performance mods Phosphor[1] and Starlight[2]. Despite being deprecated now, they might still offer some useful insight into how to approach such a system in a performant way. You'll need to be mindful of the licenses, but it's likely easier than reverse-engineering Minecraft (even with mappings).
[1] https://github.com/CaffeineMC/phosphor-fabric
[2] https://github.com/PaperMC/Starlight