Creating Locations - Valheim-Modding/Wiki GitHub Wiki
Page is work in progress
Some notes on ZoneSystem.ZoneLocation
fields
ZoneLocation.minAltitude & maxAltitude
The y coordinates are not the value used for these fields. The game puts sea level at y = 30 and then calculates these fields relative to that y value.
minAltitude and maxAltitude are checked after subtracting water level
So:
- minAltitude = 0 → At sea level (Y = 30)
- minAltitude = 5 → 5 meters above water (Y = 35)
- minAltitude = -5 → 5 meters below water (Y = 25)