test / test (push) Successful in 1m42s
New setting strata_world_size: small, medium (default) or large (2000, 3200 or 4200 columns) or infinite. The size is fixed when a world is created and kept in mod storage; worlds made before this (they already have env_meta.txt) stay infinite. - Past |x| = half every plane cell is strata_core:world_edge, an invisible, walkable, undiggable wall. is_protected refuses cells past it and creatures don't spawn there. - The last 220 columns are the ocean biome: land eases to a sand beach, then the sea floor falls to y = -17 (still the surface layer). Sea water fills to SEA_LEVEL only past the beach, so it is held in and doesn't flow when woken. - mg.set_world_size, mg.in_world, mg.ocean_t for other systems and tests. Tests: 3 new cases in tests/world_size.lua (the stored size, the edge, beach and sea shape in every size, and a generated shore that stays at rest, with reach refused past the edge). The test world runs infinite. 106/106 pass, no ERROR lines. A probe server confirmed new worlds get medium, keep it across restarts, and older worlds stay infinite. Closes #23 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
14 lines
776 B
Plaintext
14 lines
776 B
Plaintext
# Trail the character with a vertical deadzone and look-ahead. Turn off for a
|
|
# camera rigidly fixed to the character.
|
|
strata_smooth_camera (Smooth camera follow) bool true
|
|
|
|
# How far in front of the gameplay plane the camera sits, in nodes. The field
|
|
# of view narrows to match, so the same area stays visible. Further back means
|
|
# the view turns less when aiming at blocks. Server-side; restart to apply.
|
|
strata_camera_distance (Camera distance) int 44 16 80
|
|
|
|
# Width of new worlds: small (2000 blocks), medium (3200) or large (4200),
|
|
# with an ocean and an invisible wall at each side; or infinite. Fixed when
|
|
# a world is created. Worlds made before this setting existed stay infinite.
|
|
strata_world_size (World size for new worlds) enum medium small,medium,large,infinite
|