All versions
2.2.3
Release
Subchunks + Loot Tables10 months ago 13
Compatibility
Minecraft: Java Edition
1.21.9–1.21.11
Platform
Data Pack
Changes
Optimization!
I figured out that I can just use a loot table for all my random block selection needs. In addition, this version splits chunks into 16x16x16 subchunks, and generates the subchunks individually. This gets rid of most of the insane lag spikes. However, the game is still slow due to large numbers of block entities being rendered at once. (And the lag spikes from generating subchunks are still noticeable.)
Due to the huge speed-up, it now attempts to generate up to 2 subchunks every 40 ticks (2 seconds).
I plan to make it even faster by generating each layer (Y-level) of each subchunk individually.


