World shape for dimension

This commit is contained in:
2026-11-06 22:49:43 -03:00
parent 7458a2d42a
commit 818ce22dd6
60 changed files with 749 additions and 349 deletions
+6
View File
@@ -360,6 +360,12 @@ function client_context(listing: ModListing): ClientContext {
structuredClone(need_client().level.get_block_data(x, y, z)?.[field]) as never,
biome_at: (x, z) => rules_world.biome_at(x, z),
season_at: (x, z) => rules_world.season_at(x, z),
get min_y() {
return need_client().level.shape.min_y;
},
get max_y() {
return need_client().level.shape.max_y;
},
get time() {
return need_client().level.time;
},