Page 1 of 1

[2.0.61] on_chunk_generated is executed before on_surface_created

Posted: Fri Aug 01, 2025 5:30 pm
by Natha
Don't know if this is intended, but it breaks functionality of my mod:
When using force_generate_chunk_requests inside the on_surface_created event, the on_chunk_generated event is executed for all mods before all other mods execute on_surface_created.
In my example I assign a surface property in on_surface_created, which is used in on_chunk_generated; but it's not present when another mod uses force_generate_chunk_requests.

Re: [2.0.61] on_chunk_generated is executed before on_surface_created

Posted: Fri Aug 01, 2025 5:35 pm
by Rseding91
Thanks for the report however there’s nothing to do about this. This is quite literally the engine doing what the mod(s) asked for and working correctly.
If that’s not the desired behavior, simply don’t force generate chunks in the surface created event.