▣
module · drop-in viewer
OgScenery
The scenery builder for Origocraft. Spawns the static stage — Dawnvale town, the Whispering Wood, the mire, the Sunken Glade, the graveyard, and **Frostmere Reach** (the northern frontier: a snowfield, Frostmere Hold keep, frozen pines, and the Frost-Jarl's hall) — plus the PBR m…
by·posted 3mo ago
What it does
OgScenery
The scenery builder for Origocraft. Spawns the static stage — Dawnvale town, the Whispering Wood, the mire, the Sunken Glade, the graveyard, and Frostmere Reach (the northern frontier: a snowfield, Frostmere Hold keep, frozen pines, and the Frost-Jarl's hall) — plus the PBR materials they use.
ensureMaterials()— idempotently creates theow_*material set.buildScenery()— clears prior scenery (ow_prop/ground) and rebuilds the whole zone. Safe to call repeatedly.clearAll()— despawn scenery only.LAYOUT— the data the controller reads to place actors:playerSpawn,graveyard,townCenter,dungeonCenter,packs,crates.
local Scenery = require("@root::og.OgScenery")
Scenery.buildScenery()
local spawn = Scenery.LAYOUT.playerSpawn
No data dependency. Spawns only from its functions — never at module load — so requiring it is side-effect free.
Discussion
Scoped to this part · feeds back into the world's score.
Sign in to post.sign in
No comments yet. Be the first.