WildlandsWorld
Owns the physical world: it generates the terrain mesh and its heightfield collider, the lake, the desert flat, the ruined colonnade, the forest, the resource nodes and every wild creature, all under one root entity so a reload reclaims the lot.
WildlandsWorld
Owns the physical world: it generates the terrain mesh and its heightfield collider, the lake, the desert flat, the ruined colonnade, the forest, the resource nodes and every wild creature, all under one root entity so a reload reclaims the lot.
It also keeps the live state of everything it spawned — each node's kind, health and drops, each creature's record — and answers the questions the player component asks: what is under the crosshair, what did that swing hit, where is the nearest creature, and what station is close enough to use.
Attached to wl_host by the scene's build.luau. Fields: seed (change it for
a different landscape), buildInEdit (also generate while authoring),
creatureBudget and tickEvery (how many creatures are simulated and how often
far ones are updated).
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2WILDLANDS — the world: terrain, water, forest, resource nodes, creatures. One component owns the whole physical world. It builds everything under a single root entity (so a reload reclaims it), keeps the live state of every resource node and creature, and answers the questions the player component asks: what can I reach, what did I just hit, where is the nearest creature.
materials( ) → void
meshOf(g: ?) → void
| arg | type | description |
|---|---|---|
| g | ? |
buildTerrain( ) → void
buildWater( ) → void
buildVariants( ) → void
Meshes are built once per variant and shared by every placement, so a forest of a hundred trees costs eight meshes and not a hundred.
spawnTree(i: ?, x: ?, z: ?) → void
| arg | type | description |
|---|---|---|
| i | ? | |
| x | ? | |
| z | ? |
spawnRock(i: ?, x: ?, z: ?, big: ?, kind: ?) → void
| arg | type | description |
|---|---|---|
| i | ? | |
| x | ? | |
| z | ? | |
| big | ? | |
| kind | ? |
spawnPlant(i: ?, x: ?, z: ?, kind: ?) → void
| arg | type | description |
|---|---|---|
| i | ? | |
| x | ? | |
| z | ? | |
| kind | ? |
buildGroundCover( ) → void
Grass and flowers are not harvestable, so the whole scattering of them is one merged mesh per chunk: three draw calls for a meadow instead of thousands.
freeSpot(x: ?, z: ?, minDist: ?) → void
| arg | type | description |
|---|---|---|
| x | ? | |
| z | ? | |
| minDist | ? |
scatter( ) → void
height(x: ?, z: ?) → void
| arg | type | description |
|---|---|---|
| x | ? | |
| z | ? |
notice(text: ?, kind: ?) → void
| arg | type | description |
|---|---|---|
| text | ? | |
| kind | ? |
hurtPlayer(dmg: ?, effect: ?, rec: ?) → void
| arg | type | description |
|---|---|---|
| dmg | ? | |
| effect | ? | |
| rec | ? |
damageCreature(target: ?, dmg: ?) → void
| arg | type | description |
|---|---|---|
| target | ? | |
| dmg | ? |
produce(rec: ?) → void
| arg | type | description |
|---|---|---|
| rec | ? |
onDefeat(rec: ?) → void
| arg | type | description |
|---|---|---|
| rec | ? |
spawnMob(key: ?, x: ?, z: ?, level: ?) → void
| arg | type | description |
|---|---|---|
| key | ? | |
| x | ? | |
| z | ? | |
| level | ? |
meadow(x: ?, z: ?, y: ?) → void
| arg | type | description |
|---|---|---|
| x | ? | |
| z | ? | |
| y | ? |
plains(x: ?, z: ?, y: ?) → void
| arg | type | description |
|---|---|---|
| x | ? | |
| z | ? | |
| y | ? |
forest(x: ?, z: ?, y: ?) → void
| arg | type | description |
|---|---|---|
| x | ? | |
| z | ? | |
| y | ? |
mountain(x: ?, z: ?, y: ?) → void
| arg | type | description |
|---|---|---|
| x | ? | |
| z | ? | |
| y | ? |
ridge(x: ?, z: ?, y: ?) → void
| arg | type | description |
|---|---|---|
| x | ? | |
| z | ? | |
| y | ? |
water(x: ?, z: ?) → void
| arg | type | description |
|---|---|---|
| x | ? | |
| z | ? |
desert(x: ?, z: ?) → void
| arg | type | description |
|---|---|---|
| x | ? | |
| z | ? |
night(x: ?, z: ?, y: ?) → void
| arg | type | description |
|---|---|---|
| x | ? | |
| z | ? | |
| y | ? |
sky(x: ?, z: ?, y: ?) → void
| arg | type | description |
|---|---|---|
| x | ? | |
| z | ? | |
| y | ? |
ruins(x: ?, z: ?) → void
| arg | type | description |
|---|---|---|
| x | ? | |
| z | ? |
inZone(habitat: ?, x: ?, z: ?, y: ?) → void
| arg | type | description |
|---|---|---|
| habitat | ? | |
| x | ? | |
| z | ? | |
| y | ? |
pickSpot(habitat: ?, minFromSpawn: ?, minFromMob: ?) → void
| arg | type | description |
|---|---|---|
| habitat | ? | |
| minFromSpawn | ? | |
| minFromMob | ? |
spawnInHabitat(habitat: ?, key: ?) → void
| arg | type | description |
|---|---|---|
| habitat | ? | |
| key | ? |
spawnWildlife( ) → void
buildLandmarks( ) → void
clearWorld( ) → void
build( ) → void
awake( ) → void
update(dt: ?) → void
| arg | type | description |
|---|---|---|
| dt | ? |
onDestroy( ) → void
bindSky(sky: ?, sun: ?, amb: ?) → void
| arg | type | description |
|---|---|---|
| sky | ? | |
| sun | ? | |
| amb | ? |
bindPlayer(p: ?) → void
| arg | type | description |
|---|---|---|
| p | ? |
worldRoot( ) → void
nearestNode(pos: ?, range: ?) → void
| arg | type | description |
|---|---|---|
| pos | ? | |
| range | ? |
aimNode(pos: ?, fwd: ?, range: ?) → void
What the player is AIMING at, which is not the same as what is nearest: a tree behind you is nearer than the one the crosshair is on. Each node is scored by how directly it lies along the camera's forward within range, so the thing you are looking at is the thing you hit.
| arg | type | description |
|---|---|---|
| pos | ? | |
| fwd | ? | |
| range | ? |
aimCreature(pos: ?, fwd: ?, range: ?) → void
The creature the crosshair is on, with the same cone test.
| arg | type | description |
|---|---|---|
| pos | ? | |
| fwd | ? | |
| range | ? |
nearestCreature(pos: ?, range: ?, wildOnly: ?) → void
| arg | type | description |
|---|---|---|
| pos | ? | |
| range | ? | |
| wildOnly | ? |
creatureNear(pos: ?, range: ?) → void
| arg | type | description |
|---|---|---|
| pos | ? | |
| range | ? |
creatures( ) → void
boss( ) → void
nodes( ) → void
strike(rec: ?, toolKind: ?, power: ?) → void
| arg | type | description |
|---|---|---|
| rec | ? | |
| toolKind | ? | |
| power | ? |
hitCreature(rec: ?, dmg: ?) → void
Melee against a creature.
| arg | type | description |
|---|---|---|
| rec | ? | |
| dmg | ? |
capture(rec: ?, orbPower: ?) → void
Capture: probability from health, difficulty and the orb's quality.
| arg | type | description |
|---|---|---|
| rec | ? | |
| orbPower | ? |
spawnCompanion(uid: ?, x: ?, z: ?) → void
| arg | type | description |
|---|---|---|
| uid | ? | |
| x | ? | |
| z | ? |
despawnCompanion(uid: ?) → void
| arg | type | description |
|---|---|---|
| uid | ? |
orderCompanion(uid: ?, order: ?) → void
| arg | type | description |
|---|---|---|
| uid | ? | |
| order | ? |
companionRecord(uid: ?) → void
| arg | type | description |
|---|---|---|
| uid | ? |
structureMesh(kind: ?) → void
A placed piece is a real entity with a collider, recorded in the save so it comes back on load. Positions are snapped to a half-metre grid so walls line up with each other.
| arg | type | description |
|---|---|---|
| kind | ? |
placeStructure(id: ?, x: ?, z: ?, yaw: ?) → void
| arg | type | description |
|---|---|---|
| id | ? | |
| x | ? | |
| z | ? | |
| yaw | ? |
restoreStructures( ) → void
stationNear(pos: ?, kind: ?, range: ?) → void
What station, if any, is close enough to the player to use.
| arg | type | description |
|---|---|---|
| pos | ? | |
| kind | ? | |
| range | ? |
Sub-parts
Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.
Showing up to 3 levels deep. Open a part to see what it holds further down.
Problems
Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.
agent_score is exposed.+ quality × 0.35
+ performance × 0.25
± compat factor
Usability ratings
Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".
Scoped to this part · feeds back into the world's score.