Desarrollo tempranoPre-1.0: la sintaxis puede cambiar.Historial de versionesGitHub
Metroidvania espacial Pixel 3D

Starfall Protocol

El Arca Helios se está apagando. Aterriza en la abandonada estación Kepler, explora sectores conectados, recupera habilidades y lleva su núcleo estelar a casa.

Pulsa Intro o Start para comenzar. Disfruta del vuelo inicial o salta las escenas para aterrizar en Kepler. Abre el juego completo para tener más espacio.

Abrir el juego completo en otra pestaña
Starfall Protocol

Cargando juego…

Licencia del juego

Ver código fuente
starfall.rune
#!RUNE
import "assets.rune"
import "station.rune"
import "logic.rune"
import "combat.rune"
import "warden.rune"
import "plasma.rune"
import "effects.rune"
import "recovery.rune"
import "ship.rune"
import "cinematics.rune"
import "hydroponics.rune"
import "rootheart.rune"
import "foundry.rune"
import "iron_cantor.rune"
import "escape.rune"
import "navigation.rune"
import "bonus_rooms.rune"
import "upgrade_vaults.rune"
import "portals.rune"
import "rewards.rune"
import "discovery.rune"
import "curator.rune"
import "controls.rune"
import "sound.rune"
import "shell.rune"

@App
name = Starfall Protocol
type = pixel-3d
runtime = hybrid
scene = starfall
resolution = [432,270]
tick_rate = 30
port = 3025
shell = starfall_cabinet

@Perspective/starfall
fov = 72

@Scene/starfall
logic = starfall
map = orbit
world = world
camera = camera
perspective = starfall
title_scene = starfall_title
things = ["scenery","portals","ship","ship_flames","pickups","beacons","enemies","boss_warning","boss","root_warning","rootheart","machinery","shuttle","magnet_fx","gravity_consoles","forge_warning","forge_guardian","curator_warning","curator","shots","seal_shell","portal_aura","arrival_ring","avatar","discovery_item","rifle","effects","muzzle","charge_fx","ghost"]
persistence = {"key":"starfall-campaign-v1","state":"campaign"}
controls = starfall
render_radius = 96
ui = ui
pause_ui = pause_ui
restart_action = return_to_title
click_to_start = false
mouse_look = false
presentation = {
    "defeat": "SUIT OFFLINE",
    "instructions": [
        "A D / ARROWS MOVE - SPACE JUMP",
        "CLICK / X FIRE - W / UP AIM HIGH",
        "FIND JUMP JETS AND PLASMA TO OPEN NEW PATHS",
        "P PAUSE / MAP - F FULLSCREEN - V SOUND"
    ],
    "objective": "RECOVER THE CORE. RETURN TO YOUR SHIP.",
    "subtitle": "A SIGNAL FROM A DEAD STATION",
    "title": "STARFALL PROTOCOL",
    "victory": "SIGNAL RESTORED"
}

@Map/orbit
floor = "#060b1b"
sky = {"seed":701,"zenith":"#060b1b","horizon":"#060b1b","cloud":"#060b1b","speed":0}
legend = {".":{}}
grid:
    "..."
    "..."
    "..."

@Page/starfall
logic = starfall
view:
    canvas data-rune-pixel-3d=true

@Map/hydroponics
floor = "#081a1c"
sky = {"seed":704,"zenith":"#051719","horizon":"#0a2528","cloud":"#0a2528","speed":0.03}
legend = {".":{}}
grid:
    "..."
    "..."
    "..."

@Map/foundry
floor = "#16101c"
sky = {"seed":709,"zenith":"#100e1b","horizon":"#281b29","cloud":"#281b29","speed":0.025}
legend = {".":{}}
grid:
    "..."
    "..."
    "..."
assets.rune
@Palette/sf
colors = {
    "A": "#6dce8c",
    "B": "#314e40",
    "C": "#a4efd0",
    "D": "#182c2e",
    "E": "#b9d970",
    "F": "#4d7a5a",
    "G": "#986b44",
    "H": "#4e3d47",
    "I": "#c59765",
    "J": "#483654",
    "K": "#a58bd0",
    "L": "#201b2e",
    "M": "#f7c47c",
    "N": "#7a6b75",
    "a": "#8ea5b6",
    "b": "#348ab5",
    "c": "#58efd5",
    "d": "#050d20",
    "e": "#344657",
    "f": "#263343",
    "g": "#252734",
    "h": "#283953",
    "i": "#66717d",
    "j": "#393b3c",
    "k": "#10182e",
    "l": "#b59a62",
    "m": "#3a4354",
    "n": "#2c3b4b",
    "o": "#ee985c",
    "p": "#a178df",
    "q": "#69583f",
    "r": "#f06b82",
    "s": "#536582",
    "t": "#376469",
    "u": "#304956",
    "v": "#b5fff2",
    "w": "#e1f5ef",
    "y": "#ffe4a1"
}

@Texture/sf/hull
palette = sf
size = [8,8]
pixels:
    "eeeeeeee"
    "effffffe"
    "effnfffe"
    "effffffe"
    "eeeffeee"
    "fffeffff"
    "nffeffnf"
    "fffeffff"

@Texture/sf/edge
palette = sf
size = [8,8]
pixels:
    "ttttnttt"
    "uuunnuuu"
    "nnefnnen"
    "nnnnnnnn"
    "eenfnnee"
    "ffeeeeff"
    "ffffffff"
    "ffffffff"

@Texture/sf/plasma
palette = sf
size = [8,8]
pixels:
    "pkpppkpp"
    "ppwppwpp"
    "ppwppwpp"
    "pppppppp"
    "pkpppkpp"
    "ppwppwpp"
    "ppwppwpp"
    "pppppppp"

@Texture/sf/reactor
palette = sf
size = [8,8]
pixels:
    "qqqqjqqq"
    "jjjnnjjj"
    "nnefnnen"
    "nnnnnnnn"
    "eenfnnee"
    "ffeeeeff"
    "ffffffff"
    "ffffffff"

@Model/sf/bolt
palette = sf
unit = 0.125
blocks:
    {"from": [-2, -1, -1], "size": [4, 2, 2], "color": "y"}

@Model/sf/plasma_bolt
palette = sf
unit = 0.125
blocks:
    {"from": [-3, -1, -1], "size": [6, 2, 2], "color": "c"}
    {"from": [-1, -2, -2], "size": [2, 4, 4], "color": "w"}

@Model/sf/enemy_bolt
palette = sf
unit = 0.125
blocks:
    {"from": [-1, -1, -1], "size": [2, 2, 2], "color": "r"}
    {"from": [-2, -1, 0], "size": [4, 2, 1], "color": "o"}

@Model/sf/jets
palette = sf
unit = 0.125
blocks:
    {"from": [-3, -2, 0], "size": [2, 4, 6], "color": "w"}
    {"from": [1, -2, 0], "size": [2, 4, 6], "color": "w"}
    {"from": [-3, -2, -2], "size": [2, 4, 2], "color": "c"}
    {"from": [1, -2, -2], "size": [2, 4, 2], "color": "c"}
    {"from": [-1, -1, 2], "size": [2, 2, 2], "color": "o"}

@Model/sf/plasma_cell
palette = sf
unit = 0.125
blocks:
    {"from": [-3, -2, 0], "size": [6, 4, 2], "color": "s"}
    {"from": [-2, -1, 2], "size": [4, 2, 5], "color": "c"}
    {"from": [-3, -2, 7], "size": [6, 4, 2], "color": "w"}

@Model/sf/core
palette = sf
unit = 0.125
blocks:
    {"from": [-3, -3, 1], "size": [6, 6, 6], "color": "o"}
    {"from": [-2, -2, 0], "size": [4, 4, 8], "color": "y"}
    {"from": [-4, -1, 2], "size": [8, 2, 4], "color": "y"}
    {"from": [-1, -4, 2], "size": [2, 8, 4], "color": "y"}

@Model/sf/beacon
palette = sf
unit = 0.125
blocks:
    {"from": [-4, -3, 0], "size": [8, 6, 1], "color": "s"}
    {"from": [-2, -2, 1], "size": [4, 4, 9], "color": "b"}
    {"from": [-1, 2, 3], "size": [2, 1, 6], "color": "c"}
    {"from": [-3, -3, 10], "size": [6, 6, 1], "color": "w"}

@Model/sf/ship
palette = sf
unit = 0.125
blocks:
    {"from": [-14, -4, 3], "size": [25, 8, 5], "color": "s"}
    {"from": [-10, -3, 8], "size": [13, 6, 4], "color": "w"}
    {"from": [-6, 2, 8], "size": [8, 1, 3], "color": "c"}
    {"from": [10, -3, 4], "size": [6, 6, 3], "color": "w"}
    {"from": [-14, -4, 2], "size": [3, 8, 7], "color": "o"}
    {"from": [-10, -3, 0], "size": [3, 6, 3], "color": "h"}
    {"from": [7, -3, 0], "size": [3, 6, 3], "color": "h"}

@Model/sf/truss
palette = sf
unit = 0.5
blocks:
    {"from": [0, -1, 0], "size": [1, 1, 32], "color": "h"}
    {"from": [-2, -1, 16], "size": [4, 1, 1], "color": "h"}
    {"from": [-2, -1, 26], "size": [4, 1, 1], "color": "h"}
    {"from": [0, 0, 30], "size": [1, 1, 1], "color": "b"}

@Model/sf/star
palette = sf
unit = 0.125
blocks:
    {"from": [0, 0, 0], "size": [1, 1, 1], "color": "w"}

@Model/sf/planet
palette = sf
unit = 0.125
blocks:
    {"from": [-12, -1, -8], "size": [24, 2, 16], "color": "b"}
    {"from": [-9, -1, -12], "size": [18, 2, 24], "color": "b"}
    {"from": [-5, 1, -10], "size": [6, 1, 18], "color": "p"}
    {"from": [-16, -2, -2], "size": [32, 1, 3], "color": "s"}

@Model/sf/gate_frame
palette = sf
unit = 0.5
blocks:
    {"from": [-1, 0, 0], "size": [1, 1, 32], "color": "s"}
    {"from": [2, 0, 0], "size": [1, 1, 32], "color": "s"}
    {"from": [-1, 0, 32], "size": [4, 1, 1], "color": "p"}

@Model/sf/pilot_idle
palette = sf
unit = 0.125
blocks:
    {"from": [-2, -2, 4], "size": [5, 4, 5], "color": "w"}
    {"from": [-2, -2, 4], "size": [5, 4, 1], "color": "k"}
    {"from": [-2, -1, 9], "size": [4, 2, 1], "color": "s"}
    {"from": [-3, -2, 10], "size": [6, 4, 3], "color": "w"}
    {"from": [-2, -2, 13], "size": [4, 4, 1], "color": "a"}
    {"from": [-4, -2, 5], "size": [2, 4, 4], "color": "o"}
    {"from": [-5, -1, 5], "size": [1, 2, 3], "color": "s"}
    {"from": [-4, -1, 4], "size": [2, 2, 1], "color": "k"}
    {"from": [-2, -1, 14], "size": [1, 1, 1], "color": "s"}
    {"from": [-2, -3, 10], "size": [5, 1, 3], "color": "d"}
    {"from": [-1, -4, 11], "size": [4, 1, 1], "color": "c"}
    {"from": [-1, -3, 7], "size": [2, 1, 2], "color": "h"}
    {"from": [-1, -4, 8], "size": [1, 1, 1], "color": "c"}
    {"from": [1, -3, 6], "size": [1, 1, 1], "color": "o"}
    {"from": [-2, 2, 10], "size": [5, 1, 3], "color": "d"}
    {"from": [-1, 3, 11], "size": [4, 1, 1], "color": "c"}
    {"from": [-1, 2, 7], "size": [2, 1, 2], "color": "h"}
    {"from": [-1, 3, 8], "size": [1, 1, 1], "color": "c"}
    {"from": [1, 2, 6], "size": [1, 1, 1], "color": "o"}
    {"from": [-2, -1, 1], "size": [2, 3, 3], "color": "h"}
    {"from": [-2, -2, 2], "size": [2, 1, 1], "color": "a"}
    {"from": [-2, -2, 0], "size": [3, 4, 1], "color": "s"}
    {"from": [-1, 1, 0], "size": [2, 1, 1], "color": "o"}
    {"from": [1, -1, 1], "size": [2, 3, 3], "color": "h"}
    {"from": [1, -2, 2], "size": [2, 1, 1], "color": "a"}
    {"from": [1, -2, 0], "size": [3, 4, 1], "color": "s"}
    {"from": [2, 1, 0], "size": [2, 1, 1], "color": "o"}
    {"from": [1, -2, 8], "size": [2, 4, 2], "color": "o"}
    {"from": [2, -2, 7], "size": [3, 4, 2], "color": "w"}
    {"from": [4, -2, 7], "size": [1, 4, 2], "color": "k"}

@Model/sf/pilot_idle_hit
palette = sf
unit = 0.125
blocks:
    {"from": [-2, -2, 4], "size": [5, 4, 5], "color": "w"}
    {"from": [-2, -2, 4], "size": [5, 4, 1], "color": "w"}
    {"from": [-2, -1, 9], "size": [4, 2, 1], "color": "w"}
    {"from": [-3, -2, 10], "size": [6, 4, 3], "color": "w"}
    {"from": [-2, -2, 13], "size": [4, 4, 1], "color": "w"}
    {"from": [-4, -2, 5], "size": [2, 4, 4], "color": "w"}
    {"from": [-5, -1, 5], "size": [1, 2, 3], "color": "w"}
    {"from": [-4, -1, 4], "size": [2, 2, 1], "color": "w"}
    {"from": [-2, -1, 14], "size": [1, 1, 1], "color": "w"}
    {"from": [-2, -3, 10], "size": [5, 1, 3], "color": "v"}
    {"from": [-1, -4, 11], "size": [4, 1, 1], "color": "v"}
    {"from": [-1, -3, 7], "size": [2, 1, 2], "color": "w"}
    {"from": [-1, -4, 8], "size": [1, 1, 1], "color": "v"}
    {"from": [1, -3, 6], "size": [1, 1, 1], "color": "w"}
    {"from": [-2, 2, 10], "size": [5, 1, 3], "color": "v"}
    {"from": [-1, 3, 11], "size": [4, 1, 1], "color": "v"}
    {"from": [-1, 2, 7], "size": [2, 1, 2], "color": "w"}
    {"from": [-1, 3, 8], "size": [1, 1, 1], "color": "v"}
    {"from": [1, 2, 6], "size": [1, 1, 1], "color": "w"}
    {"from": [-2, -1, 1], "size": [2, 3, 3], "color": "w"}
    {"from": [-2, -2, 2], "size": [2, 1, 1], "color": "w"}
    {"from": [-2, -2, 0], "size": [3, 4, 1], "color": "w"}
    {"from": [-1, 1, 0], "size": [2, 1, 1], "color": "w"}
    {"from": [1, -1, 1], "size": [2, 3, 3], "color": "w"}
    {"from": [1, -2, 2], "size": [2, 1, 1], "color": "w"}
    {"from": [1, -2, 0], "size": [3, 4, 1], "color": "w"}
    {"from": [2, 1, 0], "size": [2, 1, 1], "color": "w"}
    {"from": [1, -2, 8], "size": [2, 4, 2], "color": "w"}
    {"from": [2, -2, 7], "size": [3, 4, 2], "color": "w"}
    {"from": [4, -2, 7], "size": [1, 4, 2], "color": "w"}

@Model/sf/pilot_idle_up
palette = sf
unit = 0.125
blocks:
    {"from": [-2, -2, 4], "size": [5, 4, 5], "color": "w"}
    {"from": [-2, -2, 4], "size": [5, 4, 1], "color": "k"}
    {"from": [-2, -1, 9], "size": [4, 2, 1], "color": "s"}
    {"from": [-3, -2, 10], "size": [6, 4, 3], "color": "w"}
    {"from": [-2, -2, 13], "size": [4, 4, 1], "color": "a"}
    {"from": [-4, -2, 5], "size": [2, 4, 4], "color": "o"}
    {"from": [-5, -1, 5], "size": [1, 2, 3], "color": "s"}
    {"from": [-4, -1, 4], "size": [2, 2, 1], "color": "k"}
    {"from": [-2, -1, 14], "size": [1, 1, 1], "color": "s"}
    {"from": [-2, -3, 10], "size": [5, 1, 3], "color": "d"}
    {"from": [-1, -4, 11], "size": [4, 1, 1], "color": "c"}
    {"from": [-1, -3, 7], "size": [2, 1, 2], "color": "h"}
    {"from": [-1, -4, 8], "size": [1, 1, 1], "color": "c"}
    {"from": [1, -3, 6], "size": [1, 1, 1], "color": "o"}
    {"from": [-2, 2, 10], "size": [5, 1, 3], "color": "d"}
    {"from": [-1, 3, 11], "size": [4, 1, 1], "color": "c"}
    {"from": [-1, 2, 7], "size": [2, 1, 2], "color": "h"}
    {"from": [-1, 3, 8], "size": [1, 1, 1], "color": "c"}
    {"from": [1, 2, 6], "size": [1, 1, 1], "color": "o"}
    {"from": [-2, -1, 1], "size": [2, 3, 3], "color": "h"}
    {"from": [-2, -2, 2], "size": [2, 1, 1], "color": "a"}
    {"from": [-2, -2, 0], "size": [3, 4, 1], "color": "s"}
    {"from": [-1, 1, 0], "size": [2, 1, 1], "color": "o"}
    {"from": [1, -1, 1], "size": [2, 3, 3], "color": "h"}
    {"from": [1, -2, 2], "size": [2, 1, 1], "color": "a"}
    {"from": [1, -2, 0], "size": [3, 4, 1], "color": "s"}
    {"from": [2, 1, 0], "size": [2, 1, 1], "color": "o"}
    {"from": [-1, -2, 8], "size": [2, 4, 2], "color": "o"}
    {"from": [-1, -2, 10], "size": [2, 4, 2], "color": "w"}
    {"from": [-1, -2, 12], "size": [2, 4, 1], "color": "k"}

@Model/sf/pilot_idle_up_hit
palette = sf
unit = 0.125
blocks:
    {"from": [-2, -2, 4], "size": [5, 4, 5], "color": "w"}
    {"from": [-2, -2, 4], "size": [5, 4, 1], "color": "w"}
    {"from": [-2, -1, 9], "size": [4, 2, 1], "color": "w"}
    {"from": [-3, -2, 10], "size": [6, 4, 3], "color": "w"}
    {"from": [-2, -2, 13], "size": [4, 4, 1], "color": "w"}
    {"from": [-4, -2, 5], "size": [2, 4, 4], "color": "w"}
    {"from": [-5, -1, 5], "size": [1, 2, 3], "color": "w"}
    {"from": [-4, -1, 4], "size": [2, 2, 1], "color": "w"}
    {"from": [-2, -1, 14], "size": [1, 1, 1], "color": "w"}
    {"from": [-2, -3, 10], "size": [5, 1, 3], "color": "v"}
    {"from": [-1, -4, 11], "size": [4, 1, 1], "color": "v"}
    {"from": [-1, -3, 7], "size": [2, 1, 2], "color": "w"}
    {"from": [-1, -4, 8], "size": [1, 1, 1], "color": "v"}
    {"from": [1, -3, 6], "size": [1, 1, 1], "color": "w"}
    {"from": [-2, 2, 10], "size": [5, 1, 3], "color": "v"}
    {"from": [-1, 3, 11], "size": [4, 1, 1], "color": "v"}
    {"from": [-1, 2, 7], "size": [2, 1, 2], "color": "w"}
    {"from": [-1, 3, 8], "size": [1, 1, 1], "color": "v"}
    {"from": [1, 2, 6], "size": [1, 1, 1], "color": "w"}
    {"from": [-2, -1, 1], "size": [2, 3, 3], "color": "w"}
    {"from": [-2, -2, 2], "size": [2, 1, 1], "color": "w"}
    {"from": [-2, -2, 0], "size": [3, 4, 1], "color": "w"}
    {"from": [-1, 1, 0], "size": [2, 1, 1], "color": "w"}
    {"from": [1, -1, 1], "size": [2, 3, 3], "color": "w"}
    {"from": [1, -2, 2], "size": [2, 1, 1], "color": "w"}
    {"from": [1, -2, 0], "size": [3, 4, 1], "color": "w"}
    {"from": [2, 1, 0], "size": [2, 1, 1], "color": "w"}
    {"from": [-1, -2, 8], "size": [2, 4, 2], "color": "w"}
    {"from": [-1, -2, 10], "size": [2, 4, 2], "color": "w"}
    {"from": [-1, -2, 12], "size": [2, 4, 1], "color": "w"}

@Model/sf/pilot_run0
palette = sf
unit = 0.125
blocks:
    {"from": [-2, -2, 4], "size": [5, 4, 5], "color": "w"}
    {"from": [-2, -2, 4], "size": [5, 4, 1], "color": "k"}
    {"from": [-2, -1, 9], "size": [4, 2, 1], "color": "s"}
    {"from": [-3, -2, 10], "size": [6, 4, 3], "color": "w"}
    {"from": [-2, -2, 13], "size": [4, 4, 1], "color": "a"}
    {"from": [-4, -2, 5], "size": [2, 4, 4], "color": "o"}
    {"from": [-5, -1, 5], "size": [1, 2, 3], "color": "s"}
    {"from": [-4, -1, 4], "size": [2, 2, 1], "color": "k"}
    {"from": [-2, -1, 14], "size": [1, 1, 1], "color": "s"}
    {"from": [-2, -3, 10], "size": [5, 1, 3], "color": "d"}
    {"from": [-1, -4, 11], "size": [4, 1, 1], "color": "c"}
    {"from": [-1, -3, 7], "size": [2, 1, 2], "color": "h"}
    {"from": [-1, -4, 8], "size": [1, 1, 1], "color": "c"}
    {"from": [1, -3, 6], "size": [1, 1, 1], "color": "o"}
    {"from": [-2, 2, 10], "size": [5, 1, 3], "color": "d"}
    {"from": [-1, 3, 11], "size": [4, 1, 1], "color": "c"}
    {"from": [-1, 2, 7], "size": [2, 1, 2], "color": "h"}
    {"from": [-1, 3, 8], "size": [1, 1, 1], "color": "c"}
    {"from": [1, 2, 6], "size": [1, 1, 1], "color": "o"}
    {"from": [-4, -1, 1], "size": [2, 3, 3], "color": "h"}
    {"from": [-4, -2, 2], "size": [2, 1, 1], "color": "a"}
    {"from": [-4, -2, 0], "size": [3, 4, 1], "color": "s"}
    {"from": [-3, 1, 0], "size": [2, 1, 1], "color": "o"}
    {"from": [2, -1, 3], "size": [2, 3, 3], "color": "h"}
    {"from": [2, -2, 4], "size": [2, 1, 1], "color": "a"}
    {"from": [2, -2, 2], "size": [3, 4, 1], "color": "s"}
    {"from": [3, 1, 2], "size": [2, 1, 1], "color": "o"}
    {"from": [1, -2, 8], "size": [2, 4, 2], "color": "o"}
    {"from": [2, -2, 7], "size": [3, 4, 2], "color": "w"}
    {"from": [4, -2, 7], "size": [1, 4, 2], "color": "k"}

@Model/sf/pilot_run0_hit
palette = sf
unit = 0.125
blocks:
    {"from": [-2, -2, 4], "size": [5, 4, 5], "color": "w"}
    {"from": [-2, -2, 4], "size": [5, 4, 1], "color": "w"}
    {"from": [-2, -1, 9], "size": [4, 2, 1], "color": "w"}
    {"from": [-3, -2, 10], "size": [6, 4, 3], "color": "w"}
    {"from": [-2, -2, 13], "size": [4, 4, 1], "color": "w"}
    {"from": [-4, -2, 5], "size": [2, 4, 4], "color": "w"}
    {"from": [-5, -1, 5], "size": [1, 2, 3], "color": "w"}
    {"from": [-4, -1, 4], "size": [2, 2, 1], "color": "w"}
    {"from": [-2, -1, 14], "size": [1, 1, 1], "color": "w"}
    {"from": [-2, -3, 10], "size": [5, 1, 3], "color": "v"}
    {"from": [-1, -4, 11], "size": [4, 1, 1], "color": "v"}
    {"from": [-1, -3, 7], "size": [2, 1, 2], "color": "w"}
    {"from": [-1, -4, 8], "size": [1, 1, 1], "color": "v"}
    {"from": [1, -3, 6], "size": [1, 1, 1], "color": "w"}
    {"from": [-2, 2, 10], "size": [5, 1, 3], "color": "v"}
    {"from": [-1, 3, 11], "size": [4, 1, 1], "color": "v"}
    {"from": [-1, 2, 7], "size": [2, 1, 2], "color": "w"}
    {"from": [-1, 3, 8], "size": [1, 1, 1], "color": "v"}
    {"from": [1, 2, 6], "size": [1, 1, 1], "color": "w"}
    {"from": [-4, -1, 1], "size": [2, 3, 3], "color": "w"}
    {"from": [-4, -2, 2], "size": [2, 1, 1], "color": "w"}
    {"from": [-4, -2, 0], "size": [3, 4, 1], "color": "w"}
    {"from": [-3, 1, 0], "size": [2, 1, 1], "color": "w"}
    {"from": [2, -1, 3], "size": [2, 3, 3], "color": "w"}
    {"from": [2, -2, 4], "size": [2, 1, 1], "color": "w"}
    {"from": [2, -2, 2], "size": [3, 4, 1], "color": "w"}
    {"from": [3, 1, 2], "size": [2, 1, 1], "color": "w"}
    {"from": [1, -2, 8], "size": [2, 4, 2], "color": "w"}
    {"from": [2, -2, 7], "size": [3, 4, 2], "color": "w"}
    {"from": [4, -2, 7], "size": [1, 4, 2], "color": "w"}

@Model/sf/pilot_run0_up
palette = sf
unit = 0.125
blocks:
    {"from": [-2, -2, 4], "size": [5, 4, 5], "color": "w"}
    {"from": [-2, -2, 4], "size": [5, 4, 1], "color": "k"}
    {"from": [-2, -1, 9], "size": [4, 2, 1], "color": "s"}
    {"from": [-3, -2, 10], "size": [6, 4, 3], "color": "w"}
    {"from": [-2, -2, 13], "size": [4, 4, 1], "color": "a"}
    {"from": [-4, -2, 5], "size": [2, 4, 4], "color": "o"}
    {"from": [-5, -1, 5], "size": [1, 2, 3], "color": "s"}
    {"from": [-4, -1, 4], "size": [2, 2, 1], "color": "k"}
    {"from": [-2, -1, 14], "size": [1, 1, 1], "color": "s"}
    {"from": [-2, -3, 10], "size": [5, 1, 3], "color": "d"}
    {"from": [-1, -4, 11], "size": [4, 1, 1], "color": "c"}
    {"from": [-1, -3, 7], "size": [2, 1, 2], "color": "h"}
    {"from": [-1, -4, 8], "size": [1, 1, 1], "color": "c"}
    {"from": [1, -3, 6], "size": [1, 1, 1], "color": "o"}
    {"from": [-2, 2, 10], "size": [5, 1, 3], "color": "d"}
    {"from": [-1, 3, 11], "size": [4, 1, 1], "color": "c"}
    {"from": [-1, 2, 7], "size": [2, 1, 2], "color": "h"}
    {"from": [-1, 3, 8], "size": [1, 1, 1], "color": "c"}
    {"from": [1, 2, 6], "size": [1, 1, 1], "color": "o"}
    {"from": [-4, -1, 1], "size": [2, 3, 3], "color": "h"}
    {"from": [-4, -2, 2], "size": [2, 1, 1], "color": "a"}
    {"from": [-4, -2, 0], "size": [3, 4, 1], "color": "s"}
    {"from": [-3, 1, 0], "size": [2, 1, 1], "color": "o"}
    {"from": [2, -1, 3], "size": [2, 3, 3], "color": "h"}
    {"from": [2, -2, 4], "size": [2, 1, 1], "color": "a"}
    {"from": [2, -2, 2], "size": [3, 4, 1], "color": "s"}
    {"from": [3, 1, 2], "size": [2, 1, 1], "color": "o"}
    {"from": [-1, -2, 8], "size": [2, 4, 2], "color": "o"}
    {"from": [-1, -2, 10], "size": [2, 4, 2], "color": "w"}
    {"from": [-1, -2, 12], "size": [2, 4, 1], "color": "k"}

@Model/sf/pilot_run0_up_hit
palette = sf
unit = 0.125
blocks:
    {"from": [-2, -2, 4], "size": [5, 4, 5], "color": "w"}
    {"from": [-2, -2, 4], "size": [5, 4, 1], "color": "w"}
    {"from": [-2, -1, 9], "size": [4, 2, 1], "color": "w"}
    {"from": [-3, -2, 10], "size": [6, 4, 3], "color": "w"}
    {"from": [-2, -2, 13], "size": [4, 4, 1], "color": "w"}
    {"from": [-4, -2, 5], "size": [2, 4, 4], "color": "w"}
    {"from": [-5, -1, 5], "size": [1, 2, 3], "color": "w"}
    {"from": [-4, -1, 4], "size": [2, 2, 1], "color": "w"}
    {"from": [-2, -1, 14], "size": [1, 1, 1], "color": "w"}
    {"from": [-2, -3, 10], "size": [5, 1, 3], "color": "v"}
    {"from": [-1, -4, 11], "size": [4, 1, 1], "color": "v"}
    {"from": [-1, -3, 7], "size": [2, 1, 2], "color": "w"}
    {"from": [-1, -4, 8], "size": [1, 1, 1], "color": "v"}
    {"from": [1, -3, 6], "size": [1, 1, 1], "color": "w"}
    {"from": [-2, 2, 10], "size": [5, 1, 3], "color": "v"}
    {"from": [-1, 3, 11], "size": [4, 1, 1], "color": "v"}
    {"from": [-1, 2, 7], "size": [2, 1, 2], "color": "w"}
    {"from": [-1, 3, 8], "size": [1, 1, 1], "color": "v"}
    {"from": [1, 2, 6], "size": [1, 1, 1], "color": "w"}
    {"from": [-4, -1, 1], "size": [2, 3, 3], "color": "w"}
    {"from": [-4, -2, 2], "size": [2, 1, 1], "color": "w"}
    {"from": [-4, -2, 0], "size": [3, 4, 1], "color": "w"}
    {"from": [-3, 1, 0], "size": [2, 1, 1], "color": "w"}
    {"from": [2, -1, 3], "size": [2, 3, 3], "color": "w"}
    {"from": [2, -2, 4], "size": [2, 1, 1], "color": "w"}
    {"from": [2, -2, 2], "size": [3, 4, 1], "color": "w"}
    {"from": [3, 1, 2], "size": [2, 1, 1], "color": "w"}
    {"from": [-1, -2, 8], "size": [2, 4, 2], "color": "w"}
    {"from": [-1, -2, 10], "size": [2, 4, 2], "color": "w"}
    {"from": [-1, -2, 12], "size": [2, 4, 1], "color": "w"}

@Model/sf/pilot_run1
palette = sf
unit = 0.125
blocks:
    {"from": [-2, -2, 4], "size": [5, 4, 5], "color": "w"}
    {"from": [-2, -2, 4], "size": [5, 4, 1], "color": "k"}
    {"from": [-2, -1, 9], "size": [4, 2, 1], "color": "s"}
    {"from": [-3, -2, 10], "size": [6, 4, 3], "color": "w"}
    {"from": [-2, -2, 13], "size": [4, 4, 1], "color": "a"}
    {"from": [-4, -2, 5], "size": [2, 4, 4], "color": "o"}
    {"from": [-5, -1, 5], "size": [1, 2, 3], "color": "s"}
    {"from": [-4, -1, 4], "size": [2, 2, 1], "color": "k"}
    {"from": [-2, -1, 14], "size": [1, 1, 1], "color": "s"}
    {"from": [-2, -3, 10], "size": [5, 1, 3], "color": "d"}
    {"from": [-1, -4, 11], "size": [4, 1, 1], "color": "c"}
    {"from": [-1, -3, 7], "size": [2, 1, 2], "color": "h"}
    {"from": [-1, -4, 8], "size": [1, 1, 1], "color": "c"}
    {"from": [1, -3, 6], "size": [1, 1, 1], "color": "o"}
    {"from": [-2, 2, 10], "size": [5, 1, 3], "color": "d"}
    {"from": [-1, 3, 11], "size": [4, 1, 1], "color": "c"}
    {"from": [-1, 2, 7], "size": [2, 1, 2], "color": "h"}
    {"from": [-1, 3, 8], "size": [1, 1, 1], "color": "c"}
    {"from": [1, 2, 6], "size": [1, 1, 1], "color": "o"}
    {"from": [-2, -1, 2], "size": [2, 3, 3], "color": "h"}
    {"from": [-2, -2, 3], "size": [2, 1, 1], "color": "a"}
    {"from": [-2, -2, 1], "size": [3, 4, 1], "color": "s"}
    {"from": [-1, 1, 1], "size": [2, 1, 1], "color": "o"}
    {"from": [1, -1, 1], "size": [2, 3, 3], "color": "h"}
    {"from": [1, -2, 2], "size": [2, 1, 1], "color": "a"}
    {"from": [1, -2, 0], "size": [3, 4, 1], "color": "s"}
    {"from": [2, 1, 0], "size": [2, 1, 1], "color": "o"}
    {"from": [1, -2, 8], "size": [2, 4, 2], "color": "o"}
    {"from": [2, -2, 7], "size": [3, 4, 2], "color": "w"}
    {"from": [4, -2, 7], "size": [1, 4, 2], "color": "k"}

@Model/sf/pilot_run1_hit
palette = sf
unit = 0.125
blocks:
    {"from": [-2, -2, 4], "size": [5, 4, 5], "color": "w"}
    {"from": [-2, -2, 4], "size": [5, 4, 1], "color": "w"}
    {"from": [-2, -1, 9], "size": [4, 2, 1], "color": "w"}
    {"from": [-3, -2, 10], "size": [6, 4, 3], "color": "w"}
    {"from": [-2, -2, 13], "size": [4, 4, 1], "color": "w"}
    {"from": [-4, -2, 5], "size": [2, 4, 4], "color": "w"}
    {"from": [-5, -1, 5], "size": [1, 2, 3], "color": "w"}
    {"from": [-4, -1, 4], "size": [2, 2, 1], "color": "w"}
    {"from": [-2, -1, 14], "size": [1, 1, 1], "color": "w"}
    {"from": [-2, -3, 10], "size": [5, 1, 3], "color": "v"}
    {"from": [-1, -4, 11], "size": [4, 1, 1], "color": "v"}
    {"from": [-1, -3, 7], "size": [2, 1, 2], "color": "w"}
    {"from": [-1, -4, 8], "size": [1, 1, 1], "color": "v"}
    {"from": [1, -3, 6], "size": [1, 1, 1], "color": "w"}
    {"from": [-2, 2, 10], "size": [5, 1, 3], "color": "v"}
    {"from": [-1, 3, 11], "size": [4, 1, 1], "color": "v"}
    {"from": [-1, 2, 7], "size": [2, 1, 2], "color": "w"}
    {"from": [-1, 3, 8], "size": [1, 1, 1], "color": "v"}
    {"from": [1, 2, 6], "size": [1, 1, 1], "color": "w"}
    {"from": [-2, -1, 2], "size": [2, 3, 3], "color": "w"}
    {"from": [-2, -2, 3], "size": [2, 1, 1], "color": "w"}
    {"from": [-2, -2, 1], "size": [3, 4, 1], "color": "w"}
    {"from": [-1, 1, 1], "size": [2, 1, 1], "color": "w"}
    {"from": [1, -1, 1], "size": [2, 3, 3], "color": "w"}
    {"from": [1, -2, 2], "size": [2, 1, 1], "color": "w"}
    {"from": [1, -2, 0], "size": [3, 4, 1], "color": "w"}
    {"from": [2, 1, 0], "size": [2, 1, 1], "color": "w"}
    {"from": [1, -2, 8], "size": [2, 4, 2], "color": "w"}
    {"from": [2, -2, 7], "size": [3, 4, 2], "color": "w"}
    {"from": [4, -2, 7], "size": [1, 4, 2], "color": "w"}

@Model/sf/pilot_run1_up
palette = sf
unit = 0.125
blocks:
    {"from": [-2, -2, 4], "size": [5, 4, 5], "color": "w"}
    {"from": [-2, -2, 4], "size": [5, 4, 1], "color": "k"}
    {"from": [-2, -1, 9], "size": [4, 2, 1], "color": "s"}
    {"from": [-3, -2, 10], "size": [6, 4, 3], "color": "w"}
    {"from": [-2, -2, 13], "size": [4, 4, 1], "color": "a"}
    {"from": [-4, -2, 5], "size": [2, 4, 4], "color": "o"}
    {"from": [-5, -1, 5], "size": [1, 2, 3], "color": "s"}
    {"from": [-4, -1, 4], "size": [2, 2, 1], "color": "k"}
    {"from": [-2, -1, 14], "size": [1, 1, 1], "color": "s"}
    {"from": [-2, -3, 10], "size": [5, 1, 3], "color": "d"}
    {"from": [-1, -4, 11], "size": [4, 1, 1], "color": "c"}
    {"from": [-1, -3, 7], "size": [2, 1, 2], "color": "h"}
    {"from": [-1, -4, 8], "size": [1, 1, 1], "color": "c"}
    {"from": [1, -3, 6], "size": [1, 1, 1], "color": "o"}
    {"from": [-2, 2, 10], "size": [5, 1, 3], "color": "d"}
    {"from": [-1, 3, 11], "size": [4, 1, 1], "color": "c"}
    {"from": [-1, 2, 7], "size": [2, 1, 2], "color": "h"}
    {"from": [-1, 3, 8], "size": [1, 1, 1], "color": "c"}
    {"from": [1, 2, 6], "size": [1, 1, 1], "color": "o"}
    {"from": [-2, -1, 2], "size": [2, 3, 3], "color": "h"}
    {"from": [-2, -2, 3], "size": [2, 1, 1], "color": "a"}
    {"from": [-2, -2, 1], "size": [3, 4, 1], "color": "s"}
    {"from": [-1, 1, 1], "size": [2, 1, 1], "color": "o"}
    {"from": [1, -1, 1], "size": [2, 3, 3], "color": "h"}
    {"from": [1, -2, 2], "size": [2, 1, 1], "color": "a"}
    {"from": [1, -2, 0], "size": [3, 4, 1], "color": "s"}
    {"from": [2, 1, 0], "size": [2, 1, 1], "color": "o"}
    {"from": [-1, -2, 8], "size": [2, 4, 2], "color": "o"}
    {"from": [-1, -2, 10], "size": [2, 4, 2], "color": "w"}
    {"from": [-1, -2, 12], "size": [2, 4, 1], "color": "k"}

@Model/sf/pilot_run1_up_hit
palette = sf
unit = 0.125
blocks:
    {"from": [-2, -2, 4], "size": [5, 4, 5], "color": "w"}
    {"from": [-2, -2, 4], "size": [5, 4, 1], "color": "w"}
    {"from": [-2, -1, 9], "size": [4, 2, 1], "color": "w"}
    {"from": [-3, -2, 10], "size": [6, 4, 3], "color": "w"}
    {"from": [-2, -2, 13], "size": [4, 4, 1], "color": "w"}
    {"from": [-4, -2, 5], "size": [2, 4, 4], "color": "w"}
    {"from": [-5, -1, 5], "size": [1, 2, 3], "color": "w"}
    {"from": [-4, -1, 4], "size": [2, 2, 1], "color": "w"}
    {"from": [-2, -1, 14], "size": [1, 1, 1], "color": "w"}
    {"from": [-2, -3, 10], "size": [5, 1, 3], "color": "v"}
    {"from": [-1, -4, 11], "size": [4, 1, 1], "color": "v"}
    {"from": [-1, -3, 7], "size": [2, 1, 2], "color": "w"}
    {"from": [-1, -4, 8], "size": [1, 1, 1], "color": "v"}
    {"from": [1, -3, 6], "size": [1, 1, 1], "color": "w"}
    {"from": [-2, 2, 10], "size": [5, 1, 3], "color": "v"}
    {"from": [-1, 3, 11], "size": [4, 1, 1], "color": "v"}
    {"from": [-1, 2, 7], "size": [2, 1, 2], "color": "w"}
    {"from": [-1, 3, 8], "size": [1, 1, 1], "color": "v"}
    {"from": [1, 2, 6], "size": [1, 1, 1], "color": "w"}
    {"from": [-2, -1, 2], "size": [2, 3, 3], "color": "w"}
    {"from": [-2, -2, 3], "size": [2, 1, 1], "color": "w"}
    {"from": [-2, -2, 1], "size": [3, 4, 1], "color": "w"}
    {"from": [-1, 1, 1], "size": [2, 1, 1], "color": "w"}
    {"from": [1, -1, 1], "size": [2, 3, 3], "color": "w"}
    {"from": [1, -2, 2], "size": [2, 1, 1], "color": "w"}
    {"from": [1, -2, 0], "size": [3, 4, 1], "color": "w"}
    {"from": [2, 1, 0], "size": [2, 1, 1], "color": "w"}
    {"from": [-1, -2, 8], "size": [2, 4, 2], "color": "w"}
    {"from": [-1, -2, 10], "size": [2, 4, 2], "color": "w"}
    {"from": [-1, -2, 12], "size": [2, 4, 1], "color": "w"}

@Model/sf/pilot_run2
palette = sf
unit = 0.125
blocks:
    {"from": [-2, -2, 4], "size": [5, 4, 5], "color": "w"}
    {"from": [-2, -2, 4], "size": [5, 4, 1], "color": "k"}
    {"from": [-2, -1, 9], "size": [4, 2, 1], "color": "s"}
    {"from": [-3, -2, 10], "size": [6, 4, 3], "color": "w"}
    {"from": [-2, -2, 13], "size": [4, 4, 1], "color": "a"}
    {"from": [-4, -2, 5], "size": [2, 4, 4], "color": "o"}
    {"from": [-5, -1, 5], "size": [1, 2, 3], "color": "s"}
    {"from": [-4, -1, 4], "size": [2, 2, 1], "color": "k"}
    {"from": [-2, -1, 14], "size": [1, 1, 1], "color": "s"}
    {"from": [-2, -3, 10], "size": [5, 1, 3], "color": "d"}
    {"from": [-1, -4, 11], "size": [4, 1, 1], "color": "c"}
    {"from": [-1, -3, 7], "size": [2, 1, 2], "color": "h"}
    {"from": [-1, -4, 8], "size": [1, 1, 1], "color": "c"}
    {"from": [1, -3, 6], "size": [1, 1, 1], "color": "o"}
    {"from": [-2, 2, 10], "size": [5, 1, 3], "color": "d"}
    {"from": [-1, 3, 11], "size": [4, 1, 1], "color": "c"}
    {"from": [-1, 2, 7], "size": [2, 1, 2], "color": "h"}
    {"from": [-1, 3, 8], "size": [1, 1, 1], "color": "c"}
    {"from": [1, 2, 6], "size": [1, 1, 1], "color": "o"}
    {"from": [1, -1, 1], "size": [2, 3, 3], "color": "h"}
    {"from": [1, -2, 2], "size": [2, 1, 1], "color": "a"}
    {"from": [1, -2, 0], "size": [3, 4, 1], "color": "s"}
    {"from": [2, 1, 0], "size": [2, 1, 1], "color": "o"}
    {"from": [-3, -1, 3], "size": [2, 3, 3], "color": "h"}
    {"from": [-3, -2, 4], "size": [2, 1, 1], "color": "a"}
    {"from": [-3, -2, 2], "size": [3, 4, 1], "color": "s"}
    {"from": [-2, 1, 2], "size": [2, 1, 1], "color": "o"}
    {"from": [1, -2, 8], "size": [2, 4, 2], "color": "o"}
    {"from": [2, -2, 7], "size": [3, 4, 2], "color": "w"}
    {"from": [4, -2, 7], "size": [1, 4, 2], "color": "k"}

@Model/sf/pilot_run2_hit
palette = sf
unit = 0.125
blocks:
    {"from": [-2, -2, 4], "size": [5, 4, 5], "color": "w"}
    {"from": [-2, -2, 4], "size": [5, 4, 1], "color": "w"}
    {"from": [-2, -1, 9], "size": [4, 2, 1], "color": "w"}
    {"from": [-3, -2, 10], "size": [6, 4, 3], "color": "w"}
    {"from": [-2, -2, 13], "size": [4, 4, 1], "color": "w"}
    {"from": [-4, -2, 5], "size": [2, 4, 4], "color": "w"}
    {"from": [-5, -1, 5], "size": [1, 2, 3], "color": "w"}
    {"from": [-4, -1, 4], "size": [2, 2, 1], "color": "w"}
    {"from": [-2, -1, 14], "size": [1, 1, 1], "color": "w"}
    {"from": [-2, -3, 10], "size": [5, 1, 3], "color": "v"}
    {"from": [-1, -4, 11], "size": [4, 1, 1], "color": "v"}
    {"from": [-1, -3, 7], "size": [2, 1, 2], "color": "w"}
    {"from": [-1, -4, 8], "size": [1, 1, 1], "color": "v"}
    {"from": [1, -3, 6], "size": [1, 1, 1], "color": "w"}
    {"from": [-2, 2, 10], "size": [5, 1, 3], "color": "v"}
    {"from": [-1, 3, 11], "size": [4, 1, 1], "color": "v"}
    {"from": [-1, 2, 7], "size": [2, 1, 2], "color": "w"}
    {"from": [-1, 3, 8], "size": [1, 1, 1], "color": "v"}
    {"from": [1, 2, 6], "size": [1, 1, 1], "color": "w"}
    {"from": [1, -1, 1], "size": [2, 3, 3], "color": "w"}
    {"from": [1, -2, 2], "size": [2, 1, 1], "color": "w"}
    {"from": [1, -2, 0], "size": [3, 4, 1], "color": "w"}
    {"from": [2, 1, 0], "size": [2, 1, 1], "color": "w"}
    {"from": [-3, -1, 3], "size": [2, 3, 3], "color": "w"}
    {"from": [-3, -2, 4], "size": [2, 1, 1], "color": "w"}
    {"from": [-3, -2, 2], "size": [3, 4, 1], "color": "w"}
    {"from": [-2, 1, 2], "size": [2, 1, 1], "color": "w"}
    {"from": [1, -2, 8], "size": [2, 4, 2], "color": "w"}
    {"from": [2, -2, 7], "size": [3, 4, 2], "color": "w"}
    {"from": [4, -2, 7], "size": [1, 4, 2], "color": "w"}

@Model/sf/pilot_run2_up
palette = sf
unit = 0.125
blocks:
    {"from": [-2, -2, 4], "size": [5, 4, 5], "color": "w"}
    {"from": [-2, -2, 4], "size": [5, 4, 1], "color": "k"}
    {"from": [-2, -1, 9], "size": [4, 2, 1], "color": "s"}
    {"from": [-3, -2, 10], "size": [6, 4, 3], "color": "w"}
    {"from": [-2, -2, 13], "size": [4, 4, 1], "color": "a"}
    {"from": [-4, -2, 5], "size": [2, 4, 4], "color": "o"}
    {"from": [-5, -1, 5], "size": [1, 2, 3], "color": "s"}
    {"from": [-4, -1, 4], "size": [2, 2, 1], "color": "k"}
    {"from": [-2, -1, 14], "size": [1, 1, 1], "color": "s"}
    {"from": [-2, -3, 10], "size": [5, 1, 3], "color": "d"}
    {"from": [-1, -4, 11], "size": [4, 1, 1], "color": "c"}
    {"from": [-1, -3, 7], "size": [2, 1, 2], "color": "h"}
    {"from": [-1, -4, 8], "size": [1, 1, 1], "color": "c"}
    {"from": [1, -3, 6], "size": [1, 1, 1], "color": "o"}
    {"from": [-2, 2, 10], "size": [5, 1, 3], "color": "d"}
    {"from": [-1, 3, 11], "size": [4, 1, 1], "color": "c"}
    {"from": [-1, 2, 7], "size": [2, 1, 2], "color": "h"}
    {"from": [-1, 3, 8], "size": [1, 1, 1], "color": "c"}
    {"from": [1, 2, 6], "size": [1, 1, 1], "color": "o"}
    {"from": [1, -1, 1], "size": [2, 3, 3], "color": "h"}
    {"from": [1, -2, 2], "size": [2, 1, 1], "color": "a"}
    {"from": [1, -2, 0], "size": [3, 4, 1], "color": "s"}
    {"from": [2, 1, 0], "size": [2, 1, 1], "color": "o"}
    {"from": [-3, -1, 3], "size": [2, 3, 3], "color": "h"}
    {"from": [-3, -2, 4], "size": [2, 1, 1], "color": "a"}
    {"from": [-3, -2, 2], "size": [3, 4, 1], "color": "s"}
    {"from": [-2, 1, 2], "size": [2, 1, 1], "color": "o"}
    {"from": [-1, -2, 8], "size": [2, 4, 2], "color": "o"}
    {"from": [-1, -2, 10], "size": [2, 4, 2], "color": "w"}
    {"from": [-1, -2, 12], "size": [2, 4, 1], "color": "k"}

@Model/sf/pilot_run2_up_hit
palette = sf
unit = 0.125
blocks:
    {"from": [-2, -2, 4], "size": [5, 4, 5], "color": "w"}
    {"from": [-2, -2, 4], "size": [5, 4, 1], "color": "w"}
    {"from": [-2, -1, 9], "size": [4, 2, 1], "color": "w"}
    {"from": [-3, -2, 10], "size": [6, 4, 3], "color": "w"}
    {"from": [-2, -2, 13], "size": [4, 4, 1], "color": "w"}
    {"from": [-4, -2, 5], "size": [2, 4, 4], "color": "w"}
    {"from": [-5, -1, 5], "size": [1, 2, 3], "color": "w"}
    {"from": [-4, -1, 4], "size": [2, 2, 1], "color": "w"}
    {"from": [-2, -1, 14], "size": [1, 1, 1], "color": "w"}
    {"from": [-2, -3, 10], "size": [5, 1, 3], "color": "v"}
    {"from": [-1, -4, 11], "size": [4, 1, 1], "color": "v"}
    {"from": [-1, -3, 7], "size": [2, 1, 2], "color": "w"}
    {"from": [-1, -4, 8], "size": [1, 1, 1], "color": "v"}
    {"from": [1, -3, 6], "size": [1, 1, 1], "color": "w"}
    {"from": [-2, 2, 10], "size": [5, 1, 3], "color": "v"}
    {"from": [-1, 3, 11], "size": [4, 1, 1], "color": "v"}
    {"from": [-1, 2, 7], "size": [2, 1, 2], "color": "w"}
    {"from": [-1, 3, 8], "size": [1, 1, 1], "color": "v"}
    {"from": [1, 2, 6], "size": [1, 1, 1], "color": "w"}
    {"from": [1, -1, 1], "size": [2, 3, 3], "color": "w"}
    {"from": [1, -2, 2], "size": [2, 1, 1], "color": "w"}
    {"from": [1, -2, 0], "size": [3, 4, 1], "color": "w"}
    {"from": [2, 1, 0], "size": [2, 1, 1], "color": "w"}
    {"from": [-3, -1, 3], "size": [2, 3, 3], "color": "w"}
    {"from": [-3, -2, 4], "size": [2, 1, 1], "color": "w"}
    {"from": [-3, -2, 2], "size": [3, 4, 1], "color": "w"}
    {"from": [-2, 1, 2], "size": [2, 1, 1], "color": "w"}
    {"from": [-1, -2, 8], "size": [2, 4, 2], "color": "w"}
    {"from": [-1, -2, 10], "size": [2, 4, 2], "color": "w"}
    {"from": [-1, -2, 12], "size": [2, 4, 1], "color": "w"}

@Model/sf/pilot_run3
palette = sf
unit = 0.125
blocks:
    {"from": [-2, -2, 4], "size": [5, 4, 5], "color": "w"}
    {"from": [-2, -2, 4], "size": [5, 4, 1], "color": "k"}
    {"from": [-2, -1, 9], "size": [4, 2, 1], "color": "s"}
    {"from": [-3, -2, 10], "size": [6, 4, 3], "color": "w"}
    {"from": [-2, -2, 13], "size": [4, 4, 1], "color": "a"}
    {"from": [-4, -2, 5], "size": [2, 4, 4], "color": "o"}
    {"from": [-5, -1, 5], "size": [1, 2, 3], "color": "s"}
    {"from": [-4, -1, 4], "size": [2, 2, 1], "color": "k"}
    {"from": [-2, -1, 14], "size": [1, 1, 1], "color": "s"}
    {"from": [-2, -3, 10], "size": [5, 1, 3], "color": "d"}
    {"from": [-1, -4, 11], "size": [4, 1, 1], "color": "c"}
    {"from": [-1, -3, 7], "size": [2, 1, 2], "color": "h"}
    {"from": [-1, -4, 8], "size": [1, 1, 1], "color": "c"}
    {"from": [1, -3, 6], "size": [1, 1, 1], "color": "o"}
    {"from": [-2, 2, 10], "size": [5, 1, 3], "color": "d"}
    {"from": [-1, 3, 11], "size": [4, 1, 1], "color": "c"}
    {"from": [-1, 2, 7], "size": [2, 1, 2], "color": "h"}
    {"from": [-1, 3, 8], "size": [1, 1, 1], "color": "c"}
    {"from": [1, 2, 6], "size": [1, 1, 1], "color": "o"}
    {"from": [-1, -1, 1], "size": [2, 3, 3], "color": "h"}
    {"from": [-1, -2, 2], "size": [2, 1, 1], "color": "a"}
    {"from": [-1, -2, 0], "size": [3, 4, 1], "color": "s"}
    {"from": [0, 1, 0], "size": [2, 1, 1], "color": "o"}
    {"from": [1, -1, 2], "size": [2, 3, 3], "color": "h"}
    {"from": [1, -2, 3], "size": [2, 1, 1], "color": "a"}
    {"from": [1, -2, 1], "size": [3, 4, 1], "color": "s"}
    {"from": [2, 1, 1], "size": [2, 1, 1], "color": "o"}
    {"from": [1, -2, 8], "size": [2, 4, 2], "color": "o"}
    {"from": [2, -2, 7], "size": [3, 4, 2], "color": "w"}
    {"from": [4, -2, 7], "size": [1, 4, 2], "color": "k"}

@Model/sf/pilot_run3_hit
palette = sf
unit = 0.125
blocks:
    {"from": [-2, -2, 4], "size": [5, 4, 5], "color": "w"}
    {"from": [-2, -2, 4], "size": [5, 4, 1], "color": "w"}
    {"from": [-2, -1, 9], "size": [4, 2, 1], "color": "w"}
    {"from": [-3, -2, 10], "size": [6, 4, 3], "color": "w"}
    {"from": [-2, -2, 13], "size": [4, 4, 1], "color": "w"}
    {"from": [-4, -2, 5], "size": [2, 4, 4], "color": "w"}
    {"from": [-5, -1, 5], "size": [1, 2, 3], "color": "w"}
    {"from": [-4, -1, 4], "size": [2, 2, 1], "color": "w"}
    {"from": [-2, -1, 14], "size": [1, 1, 1], "color": "w"}
    {"from": [-2, -3, 10], "size": [5, 1, 3], "color": "v"}
    {"from": [-1, -4, 11], "size": [4, 1, 1], "color": "v"}
    {"from": [-1, -3, 7], "size": [2, 1, 2], "color": "w"}
    {"from": [-1, -4, 8], "size": [1, 1, 1], "color": "v"}
    {"from": [1, -3, 6], "size": [1, 1, 1], "color": "w"}
    {"from": [-2, 2, 10], "size": [5, 1, 3], "color": "v"}
    {"from": [-1, 3, 11], "size": [4, 1, 1], "color": "v"}
    {"from": [-1, 2, 7], "size": [2, 1, 2], "color": "w"}
    {"from": [-1, 3, 8], "size": [1, 1, 1], "color": "v"}
    {"from": [1, 2, 6], "size": [1, 1, 1], "color": "w"}
    {"from": [-1, -1, 1], "size": [2, 3, 3], "color": "w"}
    {"from": [-1, -2, 2], "size": [2, 1, 1], "color": "w"}
    {"from": [-1, -2, 0], "size": [3, 4, 1], "color": "w"}
    {"from": [0, 1, 0], "size": [2, 1, 1], "color": "w"}
    {"from": [1, -1, 2], "size": [2, 3, 3], "color": "w"}
    {"from": [1, -2, 3], "size": [2, 1, 1], "color": "w"}
    {"from": [1, -2, 1], "size": [3, 4, 1], "color": "w"}
    {"from": [2, 1, 1], "size": [2, 1, 1], "color": "w"}
    {"from": [1, -2, 8], "size": [2, 4, 2], "color": "w"}
    {"from": [2, -2, 7], "size": [3, 4, 2], "color": "w"}
    {"from": [4, -2, 7], "size": [1, 4, 2], "color": "w"}

@Model/sf/pilot_run3_up
palette = sf
unit = 0.125
blocks:
    {"from": [-2, -2, 4], "size": [5, 4, 5], "color": "w"}
    {"from": [-2, -2, 4], "size": [5, 4, 1], "color": "k"}
    {"from": [-2, -1, 9], "size": [4, 2, 1], "color": "s"}
    {"from": [-3, -2, 10], "size": [6, 4, 3], "color": "w"}
    {"from": [-2, -2, 13], "size": [4, 4, 1], "color": "a"}
    {"from": [-4, -2, 5], "size": [2, 4, 4], "color": "o"}
    {"from": [-5, -1, 5], "size": [1, 2, 3], "color": "s"}
    {"from": [-4, -1, 4], "size": [2, 2, 1], "color": "k"}
    {"from": [-2, -1, 14], "size": [1, 1, 1], "color": "s"}
    {"from": [-2, -3, 10], "size": [5, 1, 3], "color": "d"}
    {"from": [-1, -4, 11], "size": [4, 1, 1], "color": "c"}
    {"from": [-1, -3, 7], "size": [2, 1, 2], "color": "h"}
    {"from": [-1, -4, 8], "size": [1, 1, 1], "color": "c"}
    {"from": [1, -3, 6], "size": [1, 1, 1], "color": "o"}
    {"from": [-2, 2, 10], "size": [5, 1, 3], "color": "d"}
    {"from": [-1, 3, 11], "size": [4, 1, 1], "color": "c"}
    {"from": [-1, 2, 7], "size": [2, 1, 2], "color": "h"}
    {"from": [-1, 3, 8], "size": [1, 1, 1], "color": "c"}
    {"from": [1, 2, 6], "size": [1, 1, 1], "color": "o"}
    {"from": [-1, -1, 1], "size": [2, 3, 3], "color": "h"}
    {"from": [-1, -2, 2], "size": [2, 1, 1], "color": "a"}
    {"from": [-1, -2, 0], "size": [3, 4, 1], "color": "s"}
    {"from": [0, 1, 0], "size": [2, 1, 1], "color": "o"}
    {"from": [1, -1, 2], "size": [2, 3, 3], "color": "h"}
    {"from": [1, -2, 3], "size": [2, 1, 1], "color": "a"}
    {"from": [1, -2, 1], "size": [3, 4, 1], "color": "s"}
    {"from": [2, 1, 1], "size": [2, 1, 1], "color": "o"}
    {"from": [-1, -2, 8], "size": [2, 4, 2], "color": "o"}
    {"from": [-1, -2, 10], "size": [2, 4, 2], "color": "w"}
    {"from": [-1, -2, 12], "size": [2, 4, 1], "color": "k"}

@Model/sf/pilot_run3_up_hit
palette = sf
unit = 0.125
blocks:
    {"from": [-2, -2, 4], "size": [5, 4, 5], "color": "w"}
    {"from": [-2, -2, 4], "size": [5, 4, 1], "color": "w"}
    {"from": [-2, -1, 9], "size": [4, 2, 1], "color": "w"}
    {"from": [-3, -2, 10], "size": [6, 4, 3], "color": "w"}
    {"from": [-2, -2, 13], "size": [4, 4, 1], "color": "w"}
    {"from": [-4, -2, 5], "size": [2, 4, 4], "color": "w"}
    {"from": [-5, -1, 5], "size": [1, 2, 3], "color": "w"}
    {"from": [-4, -1, 4], "size": [2, 2, 1], "color": "w"}
    {"from": [-2, -1, 14], "size": [1, 1, 1], "color": "w"}
    {"from": [-2, -3, 10], "size": [5, 1, 3], "color": "v"}
    {"from": [-1, -4, 11], "size": [4, 1, 1], "color": "v"}
    {"from": [-1, -3, 7], "size": [2, 1, 2], "color": "w"}
    {"from": [-1, -4, 8], "size": [1, 1, 1], "color": "v"}
    {"from": [1, -3, 6], "size": [1, 1, 1], "color": "w"}
    {"from": [-2, 2, 10], "size": [5, 1, 3], "color": "v"}
    {"from": [-1, 3, 11], "size": [4, 1, 1], "color": "v"}
    {"from": [-1, 2, 7], "size": [2, 1, 2], "color": "w"}
    {"from": [-1, 3, 8], "size": [1, 1, 1], "color": "v"}
    {"from": [1, 2, 6], "size": [1, 1, 1], "color": "w"}
    {"from": [-1, -1, 1], "size": [2, 3, 3], "color": "w"}
    {"from": [-1, -2, 2], "size": [2, 1, 1], "color": "w"}
    {"from": [-1, -2, 0], "size": [3, 4, 1], "color": "w"}
    {"from": [0, 1, 0], "size": [2, 1, 1], "color": "w"}
    {"from": [1, -1, 2], "size": [2, 3, 3], "color": "w"}
    {"from": [1, -2, 3], "size": [2, 1, 1], "color": "w"}
    {"from": [1, -2, 1], "size": [3, 4, 1], "color": "w"}
    {"from": [2, 1, 1], "size": [2, 1, 1], "color": "w"}
    {"from": [-1, -2, 8], "size": [2, 4, 2], "color": "w"}
    {"from": [-1, -2, 10], "size": [2, 4, 2], "color": "w"}
    {"from": [-1, -2, 12], "size": [2, 4, 1], "color": "w"}

@Model/sf/pilot_air
palette = sf
unit = 0.125
blocks:
    {"from": [-2, -2, 4], "size": [5, 4, 5], "color": "w"}
    {"from": [-2, -2, 4], "size": [5, 4, 1], "color": "k"}
    {"from": [-2, -1, 9], "size": [4, 2, 1], "color": "s"}
    {"from": [-3, -2, 10], "size": [6, 4, 3], "color": "w"}
    {"from": [-2, -2, 13], "size": [4, 4, 1], "color": "a"}
    {"from": [-4, -2, 5], "size": [2, 4, 4], "color": "o"}
    {"from": [-5, -1, 5], "size": [1, 2, 3], "color": "s"}
    {"from": [-4, -1, 4], "size": [2, 2, 1], "color": "k"}
    {"from": [-2, -1, 14], "size": [1, 1, 1], "color": "s"}
    {"from": [-2, -3, 10], "size": [5, 1, 3], "color": "d"}
    {"from": [-1, -4, 11], "size": [4, 1, 1], "color": "c"}
    {"from": [-1, -3, 7], "size": [2, 1, 2], "color": "h"}
    {"from": [-1, -4, 8], "size": [1, 1, 1], "color": "c"}
    {"from": [1, -3, 6], "size": [1, 1, 1], "color": "o"}
    {"from": [-2, 2, 10], "size": [5, 1, 3], "color": "d"}
    {"from": [-1, 3, 11], "size": [4, 1, 1], "color": "c"}
    {"from": [-1, 2, 7], "size": [2, 1, 2], "color": "h"}
    {"from": [-1, 3, 8], "size": [1, 1, 1], "color": "c"}
    {"from": [1, 2, 6], "size": [1, 1, 1], "color": "o"}
    {"from": [-3, -1, 3], "size": [2, 3, 3], "color": "h"}
    {"from": [-3, -2, 4], "size": [2, 1, 1], "color": "a"}
    {"from": [-3, -2, 2], "size": [3, 4, 1], "color": "s"}
    {"from": [-2, 1, 2], "size": [2, 1, 1], "color": "o"}
    {"from": [2, -1, 4], "size": [2, 3, 3], "color": "h"}
    {"from": [2, -2, 5], "size": [2, 1, 1], "color": "a"}
    {"from": [2, -2, 3], "size": [3, 4, 1], "color": "s"}
    {"from": [3, 1, 3], "size": [2, 1, 1], "color": "o"}
    {"from": [1, -2, 8], "size": [2, 4, 2], "color": "o"}
    {"from": [2, -2, 7], "size": [3, 4, 2], "color": "w"}
    {"from": [4, -2, 7], "size": [1, 4, 2], "color": "k"}

@Model/sf/pilot_air_hit
palette = sf
unit = 0.125
blocks:
    {"from": [-2, -2, 4], "size": [5, 4, 5], "color": "w"}
    {"from": [-2, -2, 4], "size": [5, 4, 1], "color": "w"}
    {"from": [-2, -1, 9], "size": [4, 2, 1], "color": "w"}
    {"from": [-3, -2, 10], "size": [6, 4, 3], "color": "w"}
    {"from": [-2, -2, 13], "size": [4, 4, 1], "color": "w"}
    {"from": [-4, -2, 5], "size": [2, 4, 4], "color": "w"}
    {"from": [-5, -1, 5], "size": [1, 2, 3], "color": "w"}
    {"from": [-4, -1, 4], "size": [2, 2, 1], "color": "w"}
    {"from": [-2, -1, 14], "size": [1, 1, 1], "color": "w"}
    {"from": [-2, -3, 10], "size": [5, 1, 3], "color": "v"}
    {"from": [-1, -4, 11], "size": [4, 1, 1], "color": "v"}
    {"from": [-1, -3, 7], "size": [2, 1, 2], "color": "w"}
    {"from": [-1, -4, 8], "size": [1, 1, 1], "color": "v"}
    {"from": [1, -3, 6], "size": [1, 1, 1], "color": "w"}
    {"from": [-2, 2, 10], "size": [5, 1, 3], "color": "v"}
    {"from": [-1, 3, 11], "size": [4, 1, 1], "color": "v"}
    {"from": [-1, 2, 7], "size": [2, 1, 2], "color": "w"}
    {"from": [-1, 3, 8], "size": [1, 1, 1], "color": "v"}
    {"from": [1, 2, 6], "size": [1, 1, 1], "color": "w"}
    {"from": [-3, -1, 3], "size": [2, 3, 3], "color": "w"}
    {"from": [-3, -2, 4], "size": [2, 1, 1], "color": "w"}
    {"from": [-3, -2, 2], "size": [3, 4, 1], "color": "w"}
    {"from": [-2, 1, 2], "size": [2, 1, 1], "color": "w"}
    {"from": [2, -1, 4], "size": [2, 3, 3], "color": "w"}
    {"from": [2, -2, 5], "size": [2, 1, 1], "color": "w"}
    {"from": [2, -2, 3], "size": [3, 4, 1], "color": "w"}
    {"from": [3, 1, 3], "size": [2, 1, 1], "color": "w"}
    {"from": [1, -2, 8], "size": [2, 4, 2], "color": "w"}
    {"from": [2, -2, 7], "size": [3, 4, 2], "color": "w"}
    {"from": [4, -2, 7], "size": [1, 4, 2], "color": "w"}

@Model/sf/pilot_air_up
palette = sf
unit = 0.125
blocks:
    {"from": [-2, -2, 4], "size": [5, 4, 5], "color": "w"}
    {"from": [-2, -2, 4], "size": [5, 4, 1], "color": "k"}
    {"from": [-2, -1, 9], "size": [4, 2, 1], "color": "s"}
    {"from": [-3, -2, 10], "size": [6, 4, 3], "color": "w"}
    {"from": [-2, -2, 13], "size": [4, 4, 1], "color": "a"}
    {"from": [-4, -2, 5], "size": [2, 4, 4], "color": "o"}
    {"from": [-5, -1, 5], "size": [1, 2, 3], "color": "s"}
    {"from": [-4, -1, 4], "size": [2, 2, 1], "color": "k"}
    {"from": [-2, -1, 14], "size": [1, 1, 1], "color": "s"}
    {"from": [-2, -3, 10], "size": [5, 1, 3], "color": "d"}
    {"from": [-1, -4, 11], "size": [4, 1, 1], "color": "c"}
    {"from": [-1, -3, 7], "size": [2, 1, 2], "color": "h"}
    {"from": [-1, -4, 8], "size": [1, 1, 1], "color": "c"}
    {"from": [1, -3, 6], "size": [1, 1, 1], "color": "o"}
    {"from": [-2, 2, 10], "size": [5, 1, 3], "color": "d"}
    {"from": [-1, 3, 11], "size": [4, 1, 1], "color": "c"}
    {"from": [-1, 2, 7], "size": [2, 1, 2], "color": "h"}
    {"from": [-1, 3, 8], "size": [1, 1, 1], "color": "c"}
    {"from": [1, 2, 6], "size": [1, 1, 1], "color": "o"}
    {"from": [-3, -1, 3], "size": [2, 3, 3], "color": "h"}
    {"from": [-3, -2, 4], "size": [2, 1, 1], "color": "a"}
    {"from": [-3, -2, 2], "size": [3, 4, 1], "color": "s"}
    {"from": [-2, 1, 2], "size": [2, 1, 1], "color": "o"}
    {"from": [2, -1, 4], "size": [2, 3, 3], "color": "h"}
    {"from": [2, -2, 5], "size": [2, 1, 1], "color": "a"}
    {"from": [2, -2, 3], "size": [3, 4, 1], "color": "s"}
    {"from": [3, 1, 3], "size": [2, 1, 1], "color": "o"}
    {"from": [-1, -2, 8], "size": [2, 4, 2], "color": "o"}
    {"from": [-1, -2, 10], "size": [2, 4, 2], "color": "w"}
    {"from": [-1, -2, 12], "size": [2, 4, 1], "color": "k"}

@Model/sf/pilot_air_up_hit
palette = sf
unit = 0.125
blocks:
    {"from": [-2, -2, 4], "size": [5, 4, 5], "color": "w"}
    {"from": [-2, -2, 4], "size": [5, 4, 1], "color": "w"}
    {"from": [-2, -1, 9], "size": [4, 2, 1], "color": "w"}
    {"from": [-3, -2, 10], "size": [6, 4, 3], "color": "w"}
    {"from": [-2, -2, 13], "size": [4, 4, 1], "color": "w"}
    {"from": [-4, -2, 5], "size": [2, 4, 4], "color": "w"}
    {"from": [-5, -1, 5], "size": [1, 2, 3], "color": "w"}
    {"from": [-4, -1, 4], "size": [2, 2, 1], "color": "w"}
    {"from": [-2, -1, 14], "size": [1, 1, 1], "color": "w"}
    {"from": [-2, -3, 10], "size": [5, 1, 3], "color": "v"}
    {"from": [-1, -4, 11], "size": [4, 1, 1], "color": "v"}
    {"from": [-1, -3, 7], "size": [2, 1, 2], "color": "w"}
    {"from": [-1, -4, 8], "size": [1, 1, 1], "color": "v"}
    {"from": [1, -3, 6], "size": [1, 1, 1], "color": "w"}
    {"from": [-2, 2, 10], "size": [5, 1, 3], "color": "v"}
    {"from": [-1, 3, 11], "size": [4, 1, 1], "color": "v"}
    {"from": [-1, 2, 7], "size": [2, 1, 2], "color": "w"}
    {"from": [-1, 3, 8], "size": [1, 1, 1], "color": "v"}
    {"from": [1, 2, 6], "size": [1, 1, 1], "color": "w"}
    {"from": [-3, -1, 3], "size": [2, 3, 3], "color": "w"}
    {"from": [-3, -2, 4], "size": [2, 1, 1], "color": "w"}
    {"from": [-3, -2, 2], "size": [3, 4, 1], "color": "w"}
    {"from": [-2, 1, 2], "size": [2, 1, 1], "color": "w"}
    {"from": [2, -1, 4], "size": [2, 3, 3], "color": "w"}
    {"from": [2, -2, 5], "size": [2, 1, 1], "color": "w"}
    {"from": [2, -2, 3], "size": [3, 4, 1], "color": "w"}
    {"from": [3, 1, 3], "size": [2, 1, 1], "color": "w"}
    {"from": [-1, -2, 8], "size": [2, 4, 2], "color": "w"}
    {"from": [-1, -2, 10], "size": [2, 4, 2], "color": "w"}
    {"from": [-1, -2, 12], "size": [2, 4, 1], "color": "w"}

@Model/sf/rifle
palette = sf
unit = 0.125
blocks:
    {"from": [3, -2, 7], "size": [4, 4, 2], "color": "s"}
    {"from": [6, -1, 7], "size": [2, 2, 2], "color": "k"}
    {"from": [8, -1, 7], "size": [1, 2, 2], "color": "o"}
    {"from": [4, 2, 8], "size": [2, 1, 1], "color": "o"}
    {"from": [4, -1, 6], "size": [1, 2, 1], "color": "k"}

@Model/sf/rifle_plasma
palette = sf
unit = 0.125
blocks:
    {"from": [3, -2, 7], "size": [4, 4, 2], "color": "s"}
    {"from": [6, -1, 7], "size": [2, 2, 2], "color": "k"}
    {"from": [8, -1, 7], "size": [1, 2, 2], "color": "c"}
    {"from": [4, 2, 8], "size": [2, 1, 1], "color": "c"}
    {"from": [4, -1, 6], "size": [1, 2, 1], "color": "k"}

@Model/sf/rifle_up
palette = sf
unit = 0.125
blocks:
    {"from": [-1, -2, 12], "size": [2, 4, 2], "color": "s"}
    {"from": [-1, -1, 14], "size": [2, 2, 1], "color": "k"}
    {"from": [-1, -1, 15], "size": [2, 2, 1], "color": "o"}
    {"from": [0, 1, 12], "size": [1, 1, 2], "color": "o"}

@Model/sf/rifle_up_plasma
palette = sf
unit = 0.125
blocks:
    {"from": [-1, -2, 12], "size": [2, 4, 2], "color": "s"}
    {"from": [-1, -1, 14], "size": [2, 2, 1], "color": "k"}
    {"from": [-1, -1, 15], "size": [2, 2, 1], "color": "c"}
    {"from": [0, 1, 12], "size": [1, 1, 2], "color": "c"}

@Model/sf/drone
palette = sf
unit = 0.125
blocks:
    {"from": [-3, -2, -2], "size": [6, 4, 4], "color": "h"}
    {"from": [-2, -2, 2], "size": [4, 4, 1], "color": "s"}
    {"from": [-6, -2, -1], "size": [3, 4, 2], "color": "p"}
    {"from": [3, -2, -1], "size": [3, 4, 2], "color": "p"}
    {"from": [-7, -1, -2], "size": [1, 2, 4], "color": "s"}
    {"from": [6, -1, -2], "size": [1, 2, 4], "color": "s"}
    {"from": [-5, -1, -2], "size": [2, 2, 1], "color": "k"}
    {"from": [3, -1, -2], "size": [2, 2, 1], "color": "k"}
    {"from": [-2, -3, -1], "size": [4, 1, 3], "color": "s"}
    {"from": [-1, -4, 0], "size": [2, 1, 1], "color": "r"}
    {"from": [-5, -3, 0], "size": [1, 1, 1], "color": "o"}
    {"from": [4, -3, 0], "size": [1, 1, 1], "color": "o"}
    {"from": [-2, 2, -1], "size": [4, 1, 3], "color": "s"}
    {"from": [-1, 3, 0], "size": [2, 1, 1], "color": "r"}
    {"from": [-5, 2, 0], "size": [1, 1, 1], "color": "o"}
    {"from": [4, 2, 0], "size": [1, 1, 1], "color": "o"}
    {"from": [-5, -1, -3], "size": [2, 2, 1], "color": "r"}
    {"from": [3, -1, -3], "size": [2, 2, 1], "color": "r"}

@Model/sf/drone_thrust
palette = sf
unit = 0.125
blocks:
    {"from": [-3, -2, -2], "size": [6, 4, 4], "color": "h"}
    {"from": [-2, -2, 2], "size": [4, 4, 1], "color": "s"}
    {"from": [-6, -2, -1], "size": [3, 4, 2], "color": "p"}
    {"from": [3, -2, -1], "size": [3, 4, 2], "color": "p"}
    {"from": [-7, -1, -2], "size": [1, 2, 4], "color": "s"}
    {"from": [6, -1, -2], "size": [1, 2, 4], "color": "s"}
    {"from": [-5, -1, -2], "size": [2, 2, 1], "color": "k"}
    {"from": [3, -1, -2], "size": [2, 2, 1], "color": "k"}
    {"from": [-2, -3, -1], "size": [4, 1, 3], "color": "s"}
    {"from": [-1, -4, 0], "size": [2, 1, 1], "color": "r"}
    {"from": [-5, -3, 0], "size": [1, 1, 1], "color": "o"}
    {"from": [4, -3, 0], "size": [1, 1, 1], "color": "o"}
    {"from": [-2, 2, -1], "size": [4, 1, 3], "color": "s"}
    {"from": [-1, 3, 0], "size": [2, 1, 1], "color": "r"}
    {"from": [-5, 2, 0], "size": [1, 1, 1], "color": "o"}
    {"from": [4, 2, 0], "size": [1, 1, 1], "color": "o"}
    {"from": [-5, -1, -4], "size": [2, 2, 2], "color": "o"}
    {"from": [3, -1, -4], "size": [2, 2, 2], "color": "o"}
    {"from": [-5, -1, -5], "size": [1, 2, 1], "color": "y"}
    {"from": [4, -1, -5], "size": [1, 2, 1], "color": "y"}

@Model/sf/drone_hit
palette = sf
unit = 0.125
blocks:
    {"from": [-3, -2, -2], "size": [6, 4, 4], "color": "w"}
    {"from": [-2, -2, 2], "size": [4, 4, 1], "color": "w"}
    {"from": [-6, -2, -1], "size": [3, 4, 2], "color": "w"}
    {"from": [3, -2, -1], "size": [3, 4, 2], "color": "w"}
    {"from": [-7, -1, -2], "size": [1, 2, 4], "color": "w"}
    {"from": [6, -1, -2], "size": [1, 2, 4], "color": "w"}
    {"from": [-5, -1, -2], "size": [2, 2, 1], "color": "w"}
    {"from": [3, -1, -2], "size": [2, 2, 1], "color": "w"}
    {"from": [-2, -3, -1], "size": [4, 1, 3], "color": "w"}
    {"from": [-1, -4, 0], "size": [2, 1, 1], "color": "w"}
    {"from": [-5, -3, 0], "size": [1, 1, 1], "color": "w"}
    {"from": [4, -3, 0], "size": [1, 1, 1], "color": "w"}
    {"from": [-2, 2, -1], "size": [4, 1, 3], "color": "w"}
    {"from": [-1, 3, 0], "size": [2, 1, 1], "color": "w"}
    {"from": [-5, 2, 0], "size": [1, 1, 1], "color": "w"}
    {"from": [4, 2, 0], "size": [1, 1, 1], "color": "w"}





@Model/sf/spark
palette = sf
unit = 0.125
blocks:
    {"from": [-1, -1, -1], "size": [2, 2, 2], "color": "y"}
    {"from": [0, -1, 1], "size": [1, 2, 1], "color": "w"}

@Model/sf/scrap
palette = sf
unit = 0.125
blocks:
    {"from": [-1, -1, -1], "size": [3, 2, 2], "color": "s"}
    {"from": [-1, 0, 1], "size": [2, 1, 1], "color": "p"}

@Model/sf/blast
palette = sf
unit = 0.125
blocks:
    {"from": [-4, -1, -4], "size": [8, 2, 1], "color": "o"}
    {"from": [-4, -1, 3], "size": [8, 2, 1], "color": "o"}
    {"from": [-4, -1, -3], "size": [1, 2, 6], "color": "y"}
    {"from": [3, -1, -3], "size": [1, 2, 6], "color": "y"}

@Model/sf/exhaust
palette = sf
unit = 0.125
blocks:
    {"from": [-1, -1, -2], "size": [2, 2, 3], "color": "c"}
    {"from": [0, 0, -3], "size": [1, 1, 2], "color": "v"}

@Model/sf/muzzle
palette = sf
unit = 0.125
blocks:
    {"from": [-2, -1, -1], "size": [4, 2, 2], "color": "y"}
    {"from": [-1, -1, -2], "size": [2, 2, 4], "color": "o"}
    {"from": [-1, 0, -1], "size": [2, 1, 2], "color": "w"}

@Model/sf/muzzle_plasma
palette = sf
unit = 0.125
blocks:
    {"from": [-2, -1, -1], "size": [4, 2, 2], "color": "c"}
    {"from": [-1, -1, -2], "size": [2, 2, 4], "color": "v"}
    {"from": [-1, 0, -1], "size": [2, 1, 2], "color": "w"}

@Model/sf/pilot_down0
palette = sf
unit = 0.125
blocks:
    {"from": [-1, -2, 1], "size": [5, 4, 5], "color": "w"}
    {"from": [-1, -2, 1], "size": [5, 4, 1], "color": "k"}
    {"from": [-1, -1, 6], "size": [4, 2, 1], "color": "s"}
    {"from": [-2, -2, 7], "size": [6, 4, 3], "color": "w"}
    {"from": [-1, -2, 10], "size": [4, 4, 1], "color": "a"}
    {"from": [-3, -2, 2], "size": [2, 4, 4], "color": "o"}
    {"from": [-4, -1, 2], "size": [1, 2, 3], "color": "s"}
    {"from": [-3, -1, 1], "size": [2, 2, 1], "color": "k"}
    {"from": [-1, -1, 11], "size": [1, 1, 1], "color": "s"}
    {"from": [-1, -3, 7], "size": [5, 1, 3], "color": "d"}
    {"from": [0, -4, 8], "size": [4, 1, 1], "color": "c"}
    {"from": [0, -3, 4], "size": [2, 1, 2], "color": "h"}
    {"from": [0, -4, 5], "size": [1, 1, 1], "color": "c"}
    {"from": [2, -3, 3], "size": [1, 1, 1], "color": "o"}
    {"from": [-1, 2, 7], "size": [5, 1, 3], "color": "d"}
    {"from": [0, 3, 8], "size": [4, 1, 1], "color": "c"}
    {"from": [0, 2, 4], "size": [2, 1, 2], "color": "h"}
    {"from": [0, 3, 5], "size": [1, 1, 1], "color": "c"}
    {"from": [2, 2, 3], "size": [1, 1, 1], "color": "o"}
    {"from": [-1, -1, 0], "size": [2, 3, 2], "color": "h"}
    {"from": [-1, -2, 0], "size": [2, 1, 1], "color": "a"}
    {"from": [-1, -2, 0], "size": [3, 4, 1], "color": "s"}
    {"from": [0, 1, 0], "size": [2, 1, 1], "color": "o"}
    {"from": [2, -1, 0], "size": [2, 3, 2], "color": "h"}
    {"from": [2, -2, 0], "size": [2, 1, 1], "color": "a"}
    {"from": [2, -2, 0], "size": [3, 4, 1], "color": "s"}
    {"from": [3, 1, 0], "size": [2, 1, 1], "color": "o"}
    {"from": [2, -2, 5], "size": [2, 4, 2], "color": "o"}
    {"from": [3, -2, 4], "size": [3, 4, 2], "color": "w"}
    {"from": [5, -2, 4], "size": [1, 4, 2], "color": "k"}

@Model/sf/pilot_down1
palette = sf
unit = 0.125
blocks:
    {"from": [-2, -2, 0], "size": [5, 4, 5], "color": "w"}
    {"from": [-2, -2, 0], "size": [1, 4, 5], "color": "k"}
    {"from": [3, -1, 1], "size": [1, 2, 4], "color": "s"}
    {"from": [4, -2, 0], "size": [3, 4, 6], "color": "w"}
    {"from": [7, -2, 1], "size": [1, 4, 4], "color": "a"}
    {"from": [-1, -2, 5], "size": [4, 4, 2], "color": "o"}
    {"from": [-1, -1, 7], "size": [3, 2, 1], "color": "s"}
    {"from": [-2, -1, 5], "size": [1, 2, 2], "color": "k"}
    {"from": [8, -1, 4], "size": [1, 1, 1], "color": "s"}
    {"from": [4, -3, 0], "size": [3, 1, 5], "color": "d"}
    {"from": [5, -4, 0], "size": [1, 1, 4], "color": "c"}
    {"from": [1, -3, 2], "size": [2, 1, 2], "color": "h"}
    {"from": [2, -4, 3], "size": [1, 1, 1], "color": "c"}
    {"from": [0, -3, 1], "size": [1, 1, 1], "color": "o"}
    {"from": [4, 2, 0], "size": [3, 1, 5], "color": "d"}
    {"from": [5, 3, 0], "size": [1, 1, 4], "color": "c"}
    {"from": [1, 2, 2], "size": [2, 1, 2], "color": "h"}
    {"from": [2, 3, 3], "size": [1, 1, 1], "color": "c"}
    {"from": [0, 2, 1], "size": [1, 1, 1], "color": "o"}
    {"from": [-5, -1, 3], "size": [3, 3, 2], "color": "h"}
    {"from": [-4, -2, 3], "size": [1, 1, 2], "color": "a"}
    {"from": [-6, -2, 2], "size": [1, 4, 3], "color": "s"}
    {"from": [-6, 1, 2], "size": [1, 1, 2], "color": "o"}
    {"from": [-5, -1, 0], "size": [3, 3, 2], "color": "h"}
    {"from": [-4, -2, 0], "size": [1, 1, 2], "color": "a"}
    {"from": [-6, -2, 0], "size": [1, 4, 3], "color": "s"}
    {"from": [-6, 1, 0], "size": [1, 1, 2], "color": "o"}
    {"from": [2, -2, 0], "size": [2, 4, 2], "color": "o"}
    {"from": [1, -2, 0], "size": [2, 4, 3], "color": "w"}
    {"from": [1, -2, 0], "size": [2, 4, 1], "color": "k"}

@Model/sf/ghost
palette = sf
unit = 0.125
blocks:
    {"from": [-3, -1, 2], "size": [6, 3, 3], "color": "c"}
    {"from": [-2, -1, 5], "size": [4, 3, 1], "color": "v"}
    {"from": [-2, -1, 0], "size": [4, 3, 2], "color": "v"}
    {"from": [-1, -1, -2], "size": [2, 3, 2], "color": "c"}
    {"from": [-2, -2, 3], "size": [1, 1, 1], "color": "d"}
    {"from": [1, -2, 3], "size": [1, 1, 1], "color": "d"}
    {"from": [-1, -2, 1], "size": [2, 1, 1], "color": "w"}
    {"from": [-2, 2, 3], "size": [1, 1, 1], "color": "d"}
    {"from": [1, 2, 3], "size": [1, 1, 1], "color": "d"}
    {"from": [-1, 2, 1], "size": [2, 1, 1], "color": "w"}
    {"from": [-2, -1, -3], "size": [1, 2, 1], "color": "c"}
    {"from": [1, -1, -3], "size": [1, 2, 1], "color": "c"}

@Model/sf/ghost_drift
palette = sf
unit = 0.125
blocks:
    {"from": [-3, -1, 2], "size": [6, 3, 3], "color": "c"}
    {"from": [-2, -1, 5], "size": [4, 3, 1], "color": "v"}
    {"from": [-2, -1, 0], "size": [4, 3, 2], "color": "v"}
    {"from": [-1, -1, -2], "size": [2, 3, 2], "color": "c"}
    {"from": [-2, -2, 3], "size": [1, 1, 1], "color": "d"}
    {"from": [1, -2, 3], "size": [1, 1, 1], "color": "d"}
    {"from": [-1, -2, 1], "size": [2, 1, 1], "color": "w"}
    {"from": [-2, 2, 3], "size": [1, 1, 1], "color": "d"}
    {"from": [1, 2, 3], "size": [1, 1, 1], "color": "d"}
    {"from": [-1, 2, 1], "size": [2, 1, 1], "color": "w"}
    {"from": [-3, -1, -2], "size": [2, 2, 1], "color": "c"}
    {"from": [-3, -1, -3], "size": [1, 2, 1], "color": "v"}

@Palette/sf_hud
colors = {
    ".": "transparent",
    "c": "#58efd5",
    "h": "#283953",
    "k": "#10182e",
    "r": "#f06b82",
    "s": "#536582",
    "w": "#b5fff2"
}

@Sprite/sf/life_full
palette = sf_hud
size = [12,6]
pixels:
    ".ssssssssss."
    "skwwwwwwwwks"
    "skccccccccks"
    "skccccccccks"
    "skhhhhhhhhks"
    ".ssssssssss."

@Sprite/sf/life_empty
palette = sf_hud
size = [12,6]
pixels:
    ".ssssssssss."
    "skkkkkkkkkks"
    "skhhhhhhhhks"
    "skhhhhhhhhks"
    "skkkkkkkkkks"
    ".ssssssssss."

@Sprite/sf/life_critical
palette = sf_hud
size = [12,6]
pixels:
    ".ssssssssss."
    "skrrrrrrrrks"
    "skrrrrrrrrks"
    "skrrrrrrrrks"
    "skhhhhhhhhks"
    ".ssssssssss."

@Texture/sf/temple_stone
palette = sf
size = [8,8]
pixels:
    "gggmgggg"
    "gmmmmmgg"
    "gmgmmgmg"
    "gmmmmmgg"
    "gggggggg"
    "mmgggmmm"
    "mgmmmgmm"
    "mmgggmmm"

@Texture/sf/temple_trim
palette = sf
size = [8,8]
pixels:
    "qqqqjqqq"
    "jjjjjjjj"
    "ggmggmgg"
    "gggggggg"
    "gmmggmmg"
    "gggggggg"
    "gggggggg"
    "mggggggm"

@Model/sf/temple_pillar
palette = sf
unit = 0.5
blocks:
    {"from": [-3, -2, 0], "size": [6, 4, 1], "color": "m"}
    {"from": [-2, -2, 1], "size": [4, 4, 1], "color": "i"}
    {"from": [-2, -1, 2], "size": [4, 2, 23], "color": "m"}
    {"from": [-1, 1, 3], "size": [2, 1, 20], "color": "g"}
    {"from": [-3, -2, 25], "size": [6, 4, 1], "color": "i"}
    {"from": [-4, -2, 26], "size": [8, 4, 1], "color": "m"}
    {"from": [-2, 1, 5], "size": [1, 1, 2], "color": "q"}
    {"from": [1, 1, 5], "size": [1, 1, 2], "color": "q"}
    {"from": [-2, 1, 10], "size": [1, 1, 2], "color": "q"}
    {"from": [1, 1, 10], "size": [1, 1, 2], "color": "q"}
    {"from": [-2, 1, 15], "size": [1, 1, 2], "color": "q"}
    {"from": [1, 1, 15], "size": [1, 1, 2], "color": "q"}
    {"from": [-2, 1, 20], "size": [1, 1, 2], "color": "q"}
    {"from": [1, 1, 20], "size": [1, 1, 2], "color": "q"}

@Model/sf/temple_brazier
palette = sf
unit = 0.25
blocks:
    {"from": [-2, -1, 0], "size": [4, 3, 1], "color": "i"}
    {"from": [-1, -1, 1], "size": [2, 3, 3], "color": "q"}
    {"from": [-3, -2, 4], "size": [6, 4, 1], "color": "m"}
    {"from": [-2, -1, 5], "size": [4, 2, 2], "color": "c"}
    {"from": [-1, -1, 7], "size": [2, 2, 2], "color": "v"}

@Model/sf/temple_sigil
palette = sf
unit = 0.25
blocks:
    {"from": [-7, -1, 0], "size": [14, 1, 1], "color": "q"}
    {"from": [-7, -1, 13], "size": [14, 1, 1], "color": "q"}
    {"from": [-7, -1, 1], "size": [1, 1, 12], "color": "q"}
    {"from": [6, -1, 1], "size": [1, 1, 12], "color": "q"}
    {"from": [-1, 0, 2], "size": [2, 1, 10], "color": "t"}
    {"from": [-5, 0, 6], "size": [10, 1, 2], "color": "t"}
    {"from": [-2, 1, 5], "size": [4, 1, 4], "color": "c"}

@Model/sf/temple_altar
palette = sf
unit = 0.25
blocks:
    {"from": [-6, -3, 0], "size": [12, 6, 1], "color": "m"}
    {"from": [-4, -2, 1], "size": [8, 4, 1], "color": "i"}
    {"from": [-2, -2, 2], "size": [4, 4, 2], "color": "q"}
    {"from": [-4, -3, 4], "size": [8, 6, 1], "color": "m"}
    {"from": [-2, 3, 1], "size": [1, 1, 2], "color": "c"}
    {"from": [1, 3, 1], "size": [1, 1, 2], "color": "c"}

@Model/sf/warden
palette = sf
unit = 0.1875
blocks:
    {"from": [-8, -3, 0], "size": [5, 6, 2], "color": "g"}
    {"from": [-8, -3, 2], "size": [4, 6, 5], "color": "m"}
    {"from": [-8, -4, 4], "size": [4, 1, 2], "color": "l"}
    {"from": [-8, 3, 4], "size": [4, 1, 2], "color": "l"}
    {"from": [4, -3, 0], "size": [5, 6, 2], "color": "g"}
    {"from": [4, -3, 2], "size": [4, 6, 5], "color": "m"}
    {"from": [4, -4, 4], "size": [4, 1, 2], "color": "l"}
    {"from": [4, 3, 4], "size": [4, 1, 2], "color": "l"}
    {"from": [-9, -3, 7], "size": [18, 6, 13], "color": "m"}
    {"from": [-10, -4, 19], "size": [20, 8, 3], "color": "i"}
    {"from": [-5, -3, 22], "size": [10, 6, 6], "color": "g"}
    {"from": [-6, -3, 28], "size": [12, 6, 2], "color": "l"}
    {"from": [-6, -3, 30], "size": [2, 6, 2], "color": "i"}
    {"from": [-1, -3, 30], "size": [2, 6, 3], "color": "i"}
    {"from": [4, -3, 30], "size": [2, 6, 2], "color": "i"}
    {"from": [-14, -3, 9], "size": [4, 6, 10], "color": "m"}
    {"from": [-14, -4, 9], "size": [4, 1, 3], "color": "l"}
    {"from": [-14, 3, 9], "size": [4, 1, 3], "color": "l"}
    {"from": [-14, -3, 19], "size": [4, 6, 2], "color": "g"}
    {"from": [10, -3, 9], "size": [4, 6, 10], "color": "m"}
    {"from": [10, -4, 9], "size": [4, 1, 3], "color": "l"}
    {"from": [10, 3, 9], "size": [4, 1, 3], "color": "l"}
    {"from": [10, -3, 19], "size": [4, 6, 2], "color": "g"}
    {"from": [-4, -4, 24], "size": [8, 1, 2], "color": "r"}
    {"from": [-2, -5, 24], "size": [4, 1, 1], "color": "y"}
    {"from": [-8, -4, 9], "size": [3, 1, 1], "color": "q"}
    {"from": [-8, -4, 13], "size": [3, 1, 1], "color": "q"}
    {"from": [-8, -4, 17], "size": [3, 1, 1], "color": "q"}
    {"from": [5, -4, 9], "size": [3, 1, 1], "color": "q"}
    {"from": [5, -4, 13], "size": [3, 1, 1], "color": "q"}
    {"from": [5, -4, 17], "size": [3, 1, 1], "color": "q"}
    {"from": [-4, -4, 10], "size": [8, 1, 8], "color": "g"}
    {"from": [-3, -5, 11], "size": [6, 1, 6], "color": "p"}
    {"from": [-1, -6, 12], "size": [2, 1, 4], "color": "r"}
    {"from": [-4, -5, 10], "size": [2, 1, 8], "color": "i"}
    {"from": [2, -5, 10], "size": [2, 1, 8], "color": "i"}
    {"from": [-4, 3, 24], "size": [8, 1, 2], "color": "r"}
    {"from": [-2, 4, 24], "size": [4, 1, 1], "color": "y"}
    {"from": [-8, 3, 9], "size": [3, 1, 1], "color": "q"}
    {"from": [-8, 3, 13], "size": [3, 1, 1], "color": "q"}
    {"from": [-8, 3, 17], "size": [3, 1, 1], "color": "q"}
    {"from": [5, 3, 9], "size": [3, 1, 1], "color": "q"}
    {"from": [5, 3, 13], "size": [3, 1, 1], "color": "q"}
    {"from": [5, 3, 17], "size": [3, 1, 1], "color": "q"}
    {"from": [-4, 3, 10], "size": [8, 1, 8], "color": "g"}
    {"from": [-3, 4, 11], "size": [6, 1, 6], "color": "p"}
    {"from": [-1, 5, 12], "size": [2, 1, 4], "color": "r"}
    {"from": [-4, 4, 10], "size": [2, 1, 8], "color": "i"}
    {"from": [2, 4, 10], "size": [2, 1, 8], "color": "i"}

@Model/sf/warden_awaken
palette = sf
unit = 0.1875
blocks:
    {"from": [-8, -3, 0], "size": [5, 6, 2], "color": "g"}
    {"from": [-8, -3, 2], "size": [4, 6, 5], "color": "m"}
    {"from": [-8, -4, 4], "size": [4, 1, 2], "color": "l"}
    {"from": [-8, 3, 4], "size": [4, 1, 2], "color": "l"}
    {"from": [4, -3, 0], "size": [5, 6, 2], "color": "g"}
    {"from": [4, -3, 2], "size": [4, 6, 5], "color": "m"}
    {"from": [4, -4, 4], "size": [4, 1, 2], "color": "l"}
    {"from": [4, 3, 4], "size": [4, 1, 2], "color": "l"}
    {"from": [-9, -3, 7], "size": [18, 6, 13], "color": "m"}
    {"from": [-10, -4, 19], "size": [20, 8, 3], "color": "i"}
    {"from": [-5, -3, 22], "size": [10, 6, 6], "color": "g"}
    {"from": [-6, -3, 28], "size": [12, 6, 2], "color": "l"}
    {"from": [-6, -3, 30], "size": [2, 6, 2], "color": "i"}
    {"from": [-1, -3, 30], "size": [2, 6, 3], "color": "i"}
    {"from": [4, -3, 30], "size": [2, 6, 2], "color": "i"}
    {"from": [-14, -3, 15], "size": [4, 6, 10], "color": "m"}
    {"from": [-14, -4, 15], "size": [4, 1, 3], "color": "l"}
    {"from": [-14, 3, 15], "size": [4, 1, 3], "color": "l"}
    {"from": [-14, -3, 25], "size": [4, 6, 2], "color": "g"}
    {"from": [10, -3, 15], "size": [4, 6, 10], "color": "m"}
    {"from": [10, -4, 15], "size": [4, 1, 3], "color": "l"}
    {"from": [10, 3, 15], "size": [4, 1, 3], "color": "l"}
    {"from": [10, -3, 25], "size": [4, 6, 2], "color": "g"}
    {"from": [-4, -4, 24], "size": [8, 1, 2], "color": "r"}
    {"from": [-2, -5, 24], "size": [4, 1, 1], "color": "y"}
    {"from": [-8, -4, 9], "size": [3, 1, 1], "color": "q"}
    {"from": [-8, -4, 13], "size": [3, 1, 1], "color": "q"}
    {"from": [-8, -4, 17], "size": [3, 1, 1], "color": "q"}
    {"from": [5, -4, 9], "size": [3, 1, 1], "color": "q"}
    {"from": [5, -4, 13], "size": [3, 1, 1], "color": "q"}
    {"from": [5, -4, 17], "size": [3, 1, 1], "color": "q"}
    {"from": [-4, -4, 10], "size": [8, 1, 8], "color": "g"}
    {"from": [-3, -5, 11], "size": [6, 1, 6], "color": "p"}
    {"from": [-1, -6, 12], "size": [2, 1, 4], "color": "r"}
    {"from": [-4, -5, 10], "size": [2, 1, 8], "color": "i"}
    {"from": [2, -5, 10], "size": [2, 1, 8], "color": "i"}
    {"from": [-4, 3, 24], "size": [8, 1, 2], "color": "r"}
    {"from": [-2, 4, 24], "size": [4, 1, 1], "color": "y"}
    {"from": [-8, 3, 9], "size": [3, 1, 1], "color": "q"}
    {"from": [-8, 3, 13], "size": [3, 1, 1], "color": "q"}
    {"from": [-8, 3, 17], "size": [3, 1, 1], "color": "q"}
    {"from": [5, 3, 9], "size": [3, 1, 1], "color": "q"}
    {"from": [5, 3, 13], "size": [3, 1, 1], "color": "q"}
    {"from": [5, 3, 17], "size": [3, 1, 1], "color": "q"}
    {"from": [-4, 3, 10], "size": [8, 1, 8], "color": "g"}
    {"from": [-3, 4, 11], "size": [6, 1, 6], "color": "p"}
    {"from": [-1, 5, 12], "size": [2, 1, 4], "color": "r"}
    {"from": [-4, 4, 10], "size": [2, 1, 8], "color": "i"}
    {"from": [2, 4, 10], "size": [2, 1, 8], "color": "i"}

@Model/sf/warden_charge
palette = sf
unit = 0.1875
blocks:
    {"from": [-8, -3, 0], "size": [5, 6, 2], "color": "g"}
    {"from": [-8, -3, 2], "size": [4, 6, 5], "color": "m"}
    {"from": [-8, -4, 4], "size": [4, 1, 2], "color": "l"}
    {"from": [-8, 3, 4], "size": [4, 1, 2], "color": "l"}
    {"from": [4, -3, 0], "size": [5, 6, 2], "color": "g"}
    {"from": [4, -3, 2], "size": [4, 6, 5], "color": "m"}
    {"from": [4, -4, 4], "size": [4, 1, 2], "color": "l"}
    {"from": [4, 3, 4], "size": [4, 1, 2], "color": "l"}
    {"from": [-9, -3, 7], "size": [18, 6, 13], "color": "m"}
    {"from": [-10, -4, 19], "size": [20, 8, 3], "color": "i"}
    {"from": [-5, -3, 22], "size": [10, 6, 6], "color": "g"}
    {"from": [-6, -3, 28], "size": [12, 6, 2], "color": "l"}
    {"from": [-6, -3, 30], "size": [2, 6, 2], "color": "i"}
    {"from": [-1, -3, 30], "size": [2, 6, 3], "color": "i"}
    {"from": [4, -3, 30], "size": [2, 6, 2], "color": "i"}
    {"from": [-14, -3, 15], "size": [4, 6, 10], "color": "m"}
    {"from": [-14, -4, 15], "size": [4, 1, 3], "color": "l"}
    {"from": [-14, 3, 15], "size": [4, 1, 3], "color": "l"}
    {"from": [-14, -3, 25], "size": [4, 6, 2], "color": "g"}
    {"from": [10, -3, 15], "size": [4, 6, 10], "color": "m"}
    {"from": [10, -4, 15], "size": [4, 1, 3], "color": "l"}
    {"from": [10, 3, 15], "size": [4, 1, 3], "color": "l"}
    {"from": [10, -3, 25], "size": [4, 6, 2], "color": "g"}
    {"from": [-4, -4, 24], "size": [8, 1, 2], "color": "r"}
    {"from": [-2, -5, 24], "size": [4, 1, 1], "color": "y"}
    {"from": [-8, -4, 9], "size": [3, 1, 1], "color": "q"}
    {"from": [-8, -4, 13], "size": [3, 1, 1], "color": "q"}
    {"from": [-8, -4, 17], "size": [3, 1, 1], "color": "q"}
    {"from": [5, -4, 9], "size": [3, 1, 1], "color": "q"}
    {"from": [5, -4, 13], "size": [3, 1, 1], "color": "q"}
    {"from": [5, -4, 17], "size": [3, 1, 1], "color": "q"}
    {"from": [-4, -4, 10], "size": [8, 1, 8], "color": "g"}
    {"from": [-3, -5, 11], "size": [6, 1, 6], "color": "o"}
    {"from": [-1, -6, 12], "size": [2, 1, 4], "color": "r"}
    {"from": [-4, -5, 10], "size": [2, 1, 8], "color": "i"}
    {"from": [2, -5, 10], "size": [2, 1, 8], "color": "i"}
    {"from": [-4, 3, 24], "size": [8, 1, 2], "color": "r"}
    {"from": [-2, 4, 24], "size": [4, 1, 1], "color": "y"}
    {"from": [-8, 3, 9], "size": [3, 1, 1], "color": "q"}
    {"from": [-8, 3, 13], "size": [3, 1, 1], "color": "q"}
    {"from": [-8, 3, 17], "size": [3, 1, 1], "color": "q"}
    {"from": [5, 3, 9], "size": [3, 1, 1], "color": "q"}
    {"from": [5, 3, 13], "size": [3, 1, 1], "color": "q"}
    {"from": [5, 3, 17], "size": [3, 1, 1], "color": "q"}
    {"from": [-4, 3, 10], "size": [8, 1, 8], "color": "g"}
    {"from": [-3, 4, 11], "size": [6, 1, 6], "color": "o"}
    {"from": [-1, 5, 12], "size": [2, 1, 4], "color": "r"}
    {"from": [-4, 4, 10], "size": [2, 1, 8], "color": "i"}
    {"from": [2, 4, 10], "size": [2, 1, 8], "color": "i"}

@Model/sf/warden_crouch
palette = sf
unit = 0.1875
blocks:
    {"from": [-8, -3, 2], "size": [5, 6, 2], "color": "g"}
    {"from": [-8, -3, 4], "size": [4, 6, 5], "color": "m"}
    {"from": [-8, -4, 6], "size": [4, 1, 2], "color": "l"}
    {"from": [-8, 3, 6], "size": [4, 1, 2], "color": "l"}
    {"from": [4, -3, 2], "size": [5, 6, 2], "color": "g"}
    {"from": [4, -3, 4], "size": [4, 6, 5], "color": "m"}
    {"from": [4, -4, 6], "size": [4, 1, 2], "color": "l"}
    {"from": [4, 3, 6], "size": [4, 1, 2], "color": "l"}
    {"from": [-9, -3, 3], "size": [18, 6, 13], "color": "m"}
    {"from": [-10, -4, 15], "size": [20, 8, 3], "color": "i"}
    {"from": [-5, -3, 18], "size": [10, 6, 6], "color": "g"}
    {"from": [-6, -3, 24], "size": [12, 6, 2], "color": "l"}
    {"from": [-6, -3, 26], "size": [2, 6, 2], "color": "i"}
    {"from": [-1, -3, 26], "size": [2, 6, 3], "color": "i"}
    {"from": [4, -3, 26], "size": [2, 6, 2], "color": "i"}
    {"from": [-14, -3, 6], "size": [4, 6, 10], "color": "m"}
    {"from": [-14, -4, 6], "size": [4, 1, 3], "color": "l"}
    {"from": [-14, 3, 6], "size": [4, 1, 3], "color": "l"}
    {"from": [-14, -3, 16], "size": [4, 6, 2], "color": "g"}
    {"from": [10, -3, 6], "size": [4, 6, 10], "color": "m"}
    {"from": [10, -4, 6], "size": [4, 1, 3], "color": "l"}
    {"from": [10, 3, 6], "size": [4, 1, 3], "color": "l"}
    {"from": [10, -3, 16], "size": [4, 6, 2], "color": "g"}
    {"from": [-4, -4, 20], "size": [8, 1, 2], "color": "r"}
    {"from": [-2, -5, 20], "size": [4, 1, 1], "color": "y"}
    {"from": [-8, -4, 5], "size": [3, 1, 1], "color": "q"}
    {"from": [-8, -4, 9], "size": [3, 1, 1], "color": "q"}
    {"from": [-8, -4, 13], "size": [3, 1, 1], "color": "q"}
    {"from": [5, -4, 5], "size": [3, 1, 1], "color": "q"}
    {"from": [5, -4, 9], "size": [3, 1, 1], "color": "q"}
    {"from": [5, -4, 13], "size": [3, 1, 1], "color": "q"}
    {"from": [-4, -4, 6], "size": [8, 1, 8], "color": "g"}
    {"from": [-3, -5, 7], "size": [6, 1, 6], "color": "p"}
    {"from": [-1, -6, 8], "size": [2, 1, 4], "color": "r"}
    {"from": [-4, -5, 6], "size": [2, 1, 8], "color": "i"}
    {"from": [2, -5, 6], "size": [2, 1, 8], "color": "i"}
    {"from": [-4, 3, 20], "size": [8, 1, 2], "color": "r"}
    {"from": [-2, 4, 20], "size": [4, 1, 1], "color": "y"}
    {"from": [-8, 3, 5], "size": [3, 1, 1], "color": "q"}
    {"from": [-8, 3, 9], "size": [3, 1, 1], "color": "q"}
    {"from": [-8, 3, 13], "size": [3, 1, 1], "color": "q"}
    {"from": [5, 3, 5], "size": [3, 1, 1], "color": "q"}
    {"from": [5, 3, 9], "size": [3, 1, 1], "color": "q"}
    {"from": [5, 3, 13], "size": [3, 1, 1], "color": "q"}
    {"from": [-4, 3, 6], "size": [8, 1, 8], "color": "g"}
    {"from": [-3, 4, 7], "size": [6, 1, 6], "color": "p"}
    {"from": [-1, 5, 8], "size": [2, 1, 4], "color": "r"}
    {"from": [-4, 4, 6], "size": [2, 1, 8], "color": "i"}
    {"from": [2, 4, 6], "size": [2, 1, 8], "color": "i"}

@Model/sf/warden_leap
palette = sf
unit = 0.1875
blocks:
    {"from": [-8, -3, 2], "size": [5, 6, 2], "color": "g"}
    {"from": [-8, -3, 4], "size": [4, 6, 5], "color": "m"}
    {"from": [-8, -4, 6], "size": [4, 1, 2], "color": "l"}
    {"from": [-8, 3, 6], "size": [4, 1, 2], "color": "l"}
    {"from": [4, -3, 2], "size": [5, 6, 2], "color": "g"}
    {"from": [4, -3, 4], "size": [4, 6, 5], "color": "m"}
    {"from": [4, -4, 6], "size": [4, 1, 2], "color": "l"}
    {"from": [4, 3, 6], "size": [4, 1, 2], "color": "l"}
    {"from": [-9, -3, 3], "size": [18, 6, 13], "color": "m"}
    {"from": [-10, -4, 15], "size": [20, 8, 3], "color": "i"}
    {"from": [-5, -3, 18], "size": [10, 6, 6], "color": "g"}
    {"from": [-6, -3, 24], "size": [12, 6, 2], "color": "l"}
    {"from": [-6, -3, 26], "size": [2, 6, 2], "color": "i"}
    {"from": [-1, -3, 26], "size": [2, 6, 3], "color": "i"}
    {"from": [4, -3, 26], "size": [2, 6, 2], "color": "i"}
    {"from": [-14, -3, 6], "size": [4, 6, 10], "color": "m"}
    {"from": [-14, -4, 6], "size": [4, 1, 3], "color": "l"}
    {"from": [-14, 3, 6], "size": [4, 1, 3], "color": "l"}
    {"from": [-14, -3, 16], "size": [4, 6, 2], "color": "g"}
    {"from": [10, -3, 6], "size": [4, 6, 10], "color": "m"}
    {"from": [10, -4, 6], "size": [4, 1, 3], "color": "l"}
    {"from": [10, 3, 6], "size": [4, 1, 3], "color": "l"}
    {"from": [10, -3, 16], "size": [4, 6, 2], "color": "g"}
    {"from": [-4, -4, 20], "size": [8, 1, 2], "color": "r"}
    {"from": [-2, -5, 20], "size": [4, 1, 1], "color": "y"}
    {"from": [-8, -4, 5], "size": [3, 1, 1], "color": "q"}
    {"from": [-8, -4, 9], "size": [3, 1, 1], "color": "q"}
    {"from": [-8, -4, 13], "size": [3, 1, 1], "color": "q"}
    {"from": [5, -4, 5], "size": [3, 1, 1], "color": "q"}
    {"from": [5, -4, 9], "size": [3, 1, 1], "color": "q"}
    {"from": [5, -4, 13], "size": [3, 1, 1], "color": "q"}
    {"from": [-4, -4, 6], "size": [8, 1, 8], "color": "g"}
    {"from": [-3, -5, 7], "size": [6, 1, 6], "color": "p"}
    {"from": [-1, -6, 8], "size": [2, 1, 4], "color": "r"}
    {"from": [-4, -5, 6], "size": [2, 1, 8], "color": "i"}
    {"from": [2, -5, 6], "size": [2, 1, 8], "color": "i"}
    {"from": [-4, 3, 20], "size": [8, 1, 2], "color": "r"}
    {"from": [-2, 4, 20], "size": [4, 1, 1], "color": "y"}
    {"from": [-8, 3, 5], "size": [3, 1, 1], "color": "q"}
    {"from": [-8, 3, 9], "size": [3, 1, 1], "color": "q"}
    {"from": [-8, 3, 13], "size": [3, 1, 1], "color": "q"}
    {"from": [5, 3, 5], "size": [3, 1, 1], "color": "q"}
    {"from": [5, 3, 9], "size": [3, 1, 1], "color": "q"}
    {"from": [5, 3, 13], "size": [3, 1, 1], "color": "q"}
    {"from": [-4, 3, 6], "size": [8, 1, 8], "color": "g"}
    {"from": [-3, 4, 7], "size": [6, 1, 6], "color": "p"}
    {"from": [-1, 5, 8], "size": [2, 1, 4], "color": "r"}
    {"from": [-4, 4, 6], "size": [2, 1, 8], "color": "i"}
    {"from": [2, 4, 6], "size": [2, 1, 8], "color": "i"}

@Model/sf/warden_open
palette = sf
unit = 0.1875
blocks:
    {"from": [-8, -3, 0], "size": [5, 6, 2], "color": "g"}
    {"from": [-8, -3, 2], "size": [4, 6, 5], "color": "m"}
    {"from": [-8, -4, 4], "size": [4, 1, 2], "color": "l"}
    {"from": [-8, 3, 4], "size": [4, 1, 2], "color": "l"}
    {"from": [4, -3, 0], "size": [5, 6, 2], "color": "g"}
    {"from": [4, -3, 2], "size": [4, 6, 5], "color": "m"}
    {"from": [4, -4, 4], "size": [4, 1, 2], "color": "l"}
    {"from": [4, 3, 4], "size": [4, 1, 2], "color": "l"}
    {"from": [-9, -3, 7], "size": [18, 6, 13], "color": "m"}
    {"from": [-10, -4, 19], "size": [20, 8, 3], "color": "i"}
    {"from": [-5, -3, 22], "size": [10, 6, 6], "color": "g"}
    {"from": [-6, -3, 28], "size": [12, 6, 2], "color": "l"}
    {"from": [-6, -3, 30], "size": [2, 6, 2], "color": "i"}
    {"from": [-1, -3, 30], "size": [2, 6, 3], "color": "i"}
    {"from": [4, -3, 30], "size": [2, 6, 2], "color": "i"}
    {"from": [-14, -3, 9], "size": [4, 6, 10], "color": "m"}
    {"from": [-14, -4, 9], "size": [4, 1, 3], "color": "l"}
    {"from": [-14, 3, 9], "size": [4, 1, 3], "color": "l"}
    {"from": [-14, -3, 19], "size": [4, 6, 2], "color": "g"}
    {"from": [10, -3, 9], "size": [4, 6, 10], "color": "m"}
    {"from": [10, -4, 9], "size": [4, 1, 3], "color": "l"}
    {"from": [10, 3, 9], "size": [4, 1, 3], "color": "l"}
    {"from": [10, -3, 19], "size": [4, 6, 2], "color": "g"}
    {"from": [-4, -4, 24], "size": [8, 1, 2], "color": "r"}
    {"from": [-2, -5, 24], "size": [4, 1, 1], "color": "y"}
    {"from": [-8, -4, 9], "size": [3, 1, 1], "color": "q"}
    {"from": [-8, -4, 13], "size": [3, 1, 1], "color": "q"}
    {"from": [-8, -4, 17], "size": [3, 1, 1], "color": "q"}
    {"from": [5, -4, 9], "size": [3, 1, 1], "color": "q"}
    {"from": [5, -4, 13], "size": [3, 1, 1], "color": "q"}
    {"from": [5, -4, 17], "size": [3, 1, 1], "color": "q"}
    {"from": [-4, -4, 10], "size": [8, 1, 8], "color": "g"}
    {"from": [-3, -5, 11], "size": [6, 1, 6], "color": "c"}
    {"from": [-1, -6, 12], "size": [2, 1, 4], "color": "v"}
    {"from": [-6, -5, 10], "size": [2, 1, 8], "color": "i"}
    {"from": [4, -5, 10], "size": [2, 1, 8], "color": "i"}
    {"from": [-4, 3, 24], "size": [8, 1, 2], "color": "r"}
    {"from": [-2, 4, 24], "size": [4, 1, 1], "color": "y"}
    {"from": [-8, 3, 9], "size": [3, 1, 1], "color": "q"}
    {"from": [-8, 3, 13], "size": [3, 1, 1], "color": "q"}
    {"from": [-8, 3, 17], "size": [3, 1, 1], "color": "q"}
    {"from": [5, 3, 9], "size": [3, 1, 1], "color": "q"}
    {"from": [5, 3, 13], "size": [3, 1, 1], "color": "q"}
    {"from": [5, 3, 17], "size": [3, 1, 1], "color": "q"}
    {"from": [-4, 3, 10], "size": [8, 1, 8], "color": "g"}
    {"from": [-3, 4, 11], "size": [6, 1, 6], "color": "c"}
    {"from": [-1, 5, 12], "size": [2, 1, 4], "color": "v"}
    {"from": [-6, 4, 10], "size": [2, 1, 8], "color": "i"}
    {"from": [4, 4, 10], "size": [2, 1, 8], "color": "i"}

@Model/sf/warden_breathe
palette = sf
unit = 0.1875
blocks:
    {"from": [-8, -3, 0], "size": [5, 6, 2], "color": "g"}
    {"from": [-8, -3, 2], "size": [4, 6, 5], "color": "m"}
    {"from": [-8, -4, 4], "size": [4, 1, 2], "color": "l"}
    {"from": [-8, 3, 4], "size": [4, 1, 2], "color": "l"}
    {"from": [4, -3, 0], "size": [5, 6, 2], "color": "g"}
    {"from": [4, -3, 2], "size": [4, 6, 5], "color": "m"}
    {"from": [4, -4, 4], "size": [4, 1, 2], "color": "l"}
    {"from": [4, 3, 4], "size": [4, 1, 2], "color": "l"}
    {"from": [-9, -3, 7], "size": [18, 6, 13], "color": "m"}
    {"from": [-10, -4, 18], "size": [20, 8, 3], "color": "i"}
    {"from": [-5, -3, 21], "size": [10, 6, 6], "color": "g"}
    {"from": [-6, -3, 27], "size": [12, 6, 2], "color": "l"}
    {"from": [-6, -3, 29], "size": [2, 6, 2], "color": "i"}
    {"from": [-1, -3, 29], "size": [2, 6, 3], "color": "i"}
    {"from": [4, -3, 29], "size": [2, 6, 2], "color": "i"}
    {"from": [-14, -3, 8], "size": [4, 6, 10], "color": "m"}
    {"from": [-14, -4, 8], "size": [4, 1, 3], "color": "l"}
    {"from": [-14, 3, 8], "size": [4, 1, 3], "color": "l"}
    {"from": [-14, -3, 18], "size": [4, 6, 2], "color": "g"}
    {"from": [10, -3, 8], "size": [4, 6, 10], "color": "m"}
    {"from": [10, -4, 8], "size": [4, 1, 3], "color": "l"}
    {"from": [10, 3, 8], "size": [4, 1, 3], "color": "l"}
    {"from": [10, -3, 18], "size": [4, 6, 2], "color": "g"}
    {"from": [-4, -4, 23], "size": [8, 1, 2], "color": "r"}
    {"from": [-2, -5, 23], "size": [4, 1, 1], "color": "y"}
    {"from": [-8, -4, 8], "size": [3, 1, 1], "color": "q"}
    {"from": [-8, -4, 12], "size": [3, 1, 1], "color": "q"}
    {"from": [-8, -4, 16], "size": [3, 1, 1], "color": "q"}
    {"from": [5, -4, 8], "size": [3, 1, 1], "color": "q"}
    {"from": [5, -4, 12], "size": [3, 1, 1], "color": "q"}
    {"from": [5, -4, 16], "size": [3, 1, 1], "color": "q"}
    {"from": [-4, -4, 9], "size": [8, 1, 8], "color": "g"}
    {"from": [-3, -5, 10], "size": [6, 1, 6], "color": "c"}
    {"from": [-1, -6, 11], "size": [2, 1, 4], "color": "v"}
    {"from": [-6, -5, 9], "size": [2, 1, 8], "color": "i"}
    {"from": [4, -5, 9], "size": [2, 1, 8], "color": "i"}
    {"from": [-4, 3, 23], "size": [8, 1, 2], "color": "r"}
    {"from": [-2, 4, 23], "size": [4, 1, 1], "color": "y"}
    {"from": [-8, 3, 8], "size": [3, 1, 1], "color": "q"}
    {"from": [-8, 3, 12], "size": [3, 1, 1], "color": "q"}
    {"from": [-8, 3, 16], "size": [3, 1, 1], "color": "q"}
    {"from": [5, 3, 8], "size": [3, 1, 1], "color": "q"}
    {"from": [5, 3, 12], "size": [3, 1, 1], "color": "q"}
    {"from": [5, 3, 16], "size": [3, 1, 1], "color": "q"}
    {"from": [-4, 3, 9], "size": [8, 1, 8], "color": "g"}
    {"from": [-3, 4, 10], "size": [6, 1, 6], "color": "c"}
    {"from": [-1, 5, 11], "size": [2, 1, 4], "color": "v"}
    {"from": [-6, 4, 9], "size": [2, 1, 8], "color": "i"}
    {"from": [4, 4, 9], "size": [2, 1, 8], "color": "i"}

@Model/sf/warden_walk0
palette = sf
unit = 0.1875
blocks:
    {"from": [-10, -3, 0], "size": [5, 6, 2], "color": "g"}
    {"from": [-10, -3, 2], "size": [4, 6, 5], "color": "m"}
    {"from": [-10, -4, 4], "size": [4, 1, 2], "color": "l"}
    {"from": [-10, 3, 4], "size": [4, 1, 2], "color": "l"}
    {"from": [6, -3, 0], "size": [5, 6, 2], "color": "g"}
    {"from": [6, -3, 2], "size": [4, 6, 5], "color": "m"}
    {"from": [6, -4, 4], "size": [4, 1, 2], "color": "l"}
    {"from": [6, 3, 4], "size": [4, 1, 2], "color": "l"}
    {"from": [-9, -3, 7], "size": [18, 6, 13], "color": "m"}
    {"from": [-10, -4, 19], "size": [20, 8, 3], "color": "i"}
    {"from": [-5, -3, 22], "size": [10, 6, 6], "color": "g"}
    {"from": [-6, -3, 28], "size": [12, 6, 2], "color": "l"}
    {"from": [-6, -3, 30], "size": [2, 6, 2], "color": "i"}
    {"from": [-1, -3, 30], "size": [2, 6, 3], "color": "i"}
    {"from": [4, -3, 30], "size": [2, 6, 2], "color": "i"}
    {"from": [-14, -3, 9], "size": [4, 6, 10], "color": "m"}
    {"from": [-14, -4, 9], "size": [4, 1, 3], "color": "l"}
    {"from": [-14, 3, 9], "size": [4, 1, 3], "color": "l"}
    {"from": [-14, -3, 19], "size": [4, 6, 2], "color": "g"}
    {"from": [10, -3, 9], "size": [4, 6, 10], "color": "m"}
    {"from": [10, -4, 9], "size": [4, 1, 3], "color": "l"}
    {"from": [10, 3, 9], "size": [4, 1, 3], "color": "l"}
    {"from": [10, -3, 19], "size": [4, 6, 2], "color": "g"}
    {"from": [-4, -4, 24], "size": [8, 1, 2], "color": "r"}
    {"from": [-2, -5, 24], "size": [4, 1, 1], "color": "y"}
    {"from": [-8, -4, 9], "size": [3, 1, 1], "color": "q"}
    {"from": [-8, -4, 13], "size": [3, 1, 1], "color": "q"}
    {"from": [-8, -4, 17], "size": [3, 1, 1], "color": "q"}
    {"from": [5, -4, 9], "size": [3, 1, 1], "color": "q"}
    {"from": [5, -4, 13], "size": [3, 1, 1], "color": "q"}
    {"from": [5, -4, 17], "size": [3, 1, 1], "color": "q"}
    {"from": [-4, -4, 10], "size": [8, 1, 8], "color": "g"}
    {"from": [-3, -5, 11], "size": [6, 1, 6], "color": "p"}
    {"from": [-1, -6, 12], "size": [2, 1, 4], "color": "r"}
    {"from": [-4, -5, 10], "size": [2, 1, 8], "color": "i"}
    {"from": [2, -5, 10], "size": [2, 1, 8], "color": "i"}
    {"from": [-4, 3, 24], "size": [8, 1, 2], "color": "r"}
    {"from": [-2, 4, 24], "size": [4, 1, 1], "color": "y"}
    {"from": [-8, 3, 9], "size": [3, 1, 1], "color": "q"}
    {"from": [-8, 3, 13], "size": [3, 1, 1], "color": "q"}
    {"from": [-8, 3, 17], "size": [3, 1, 1], "color": "q"}
    {"from": [5, 3, 9], "size": [3, 1, 1], "color": "q"}
    {"from": [5, 3, 13], "size": [3, 1, 1], "color": "q"}
    {"from": [5, 3, 17], "size": [3, 1, 1], "color": "q"}
    {"from": [-4, 3, 10], "size": [8, 1, 8], "color": "g"}
    {"from": [-3, 4, 11], "size": [6, 1, 6], "color": "p"}
    {"from": [-1, 5, 12], "size": [2, 1, 4], "color": "r"}
    {"from": [-4, 4, 10], "size": [2, 1, 8], "color": "i"}
    {"from": [2, 4, 10], "size": [2, 1, 8], "color": "i"}

@Model/sf/warden_walk1
palette = sf
unit = 0.1875
blocks:
    {"from": [-8, -3, 0], "size": [5, 6, 2], "color": "g"}
    {"from": [-8, -3, 2], "size": [4, 6, 5], "color": "m"}
    {"from": [-8, -4, 4], "size": [4, 1, 2], "color": "l"}
    {"from": [-8, 3, 4], "size": [4, 1, 2], "color": "l"}
    {"from": [4, -3, 0], "size": [5, 6, 2], "color": "g"}
    {"from": [4, -3, 2], "size": [4, 6, 5], "color": "m"}
    {"from": [4, -4, 4], "size": [4, 1, 2], "color": "l"}
    {"from": [4, 3, 4], "size": [4, 1, 2], "color": "l"}
    {"from": [-9, -3, 7], "size": [18, 6, 13], "color": "m"}
    {"from": [-10, -4, 19], "size": [20, 8, 3], "color": "i"}
    {"from": [-5, -3, 22], "size": [10, 6, 6], "color": "g"}
    {"from": [-6, -3, 28], "size": [12, 6, 2], "color": "l"}
    {"from": [-6, -3, 30], "size": [2, 6, 2], "color": "i"}
    {"from": [-1, -3, 30], "size": [2, 6, 3], "color": "i"}
    {"from": [4, -3, 30], "size": [2, 6, 2], "color": "i"}
    {"from": [-14, -3, 9], "size": [4, 6, 10], "color": "m"}
    {"from": [-14, -4, 9], "size": [4, 1, 3], "color": "l"}
    {"from": [-14, 3, 9], "size": [4, 1, 3], "color": "l"}
    {"from": [-14, -3, 19], "size": [4, 6, 2], "color": "g"}
    {"from": [10, -3, 9], "size": [4, 6, 10], "color": "m"}
    {"from": [10, -4, 9], "size": [4, 1, 3], "color": "l"}
    {"from": [10, 3, 9], "size": [4, 1, 3], "color": "l"}
    {"from": [10, -3, 19], "size": [4, 6, 2], "color": "g"}
    {"from": [-4, -4, 24], "size": [8, 1, 2], "color": "r"}
    {"from": [-2, -5, 24], "size": [4, 1, 1], "color": "y"}
    {"from": [-8, -4, 9], "size": [3, 1, 1], "color": "q"}
    {"from": [-8, -4, 13], "size": [3, 1, 1], "color": "q"}
    {"from": [-8, -4, 17], "size": [3, 1, 1], "color": "q"}
    {"from": [5, -4, 9], "size": [3, 1, 1], "color": "q"}
    {"from": [5, -4, 13], "size": [3, 1, 1], "color": "q"}
    {"from": [5, -4, 17], "size": [3, 1, 1], "color": "q"}
    {"from": [-4, -4, 10], "size": [8, 1, 8], "color": "g"}
    {"from": [-3, -5, 11], "size": [6, 1, 6], "color": "p"}
    {"from": [-1, -6, 12], "size": [2, 1, 4], "color": "r"}
    {"from": [-4, -5, 10], "size": [2, 1, 8], "color": "i"}
    {"from": [2, -5, 10], "size": [2, 1, 8], "color": "i"}
    {"from": [-4, 3, 24], "size": [8, 1, 2], "color": "r"}
    {"from": [-2, 4, 24], "size": [4, 1, 1], "color": "y"}
    {"from": [-8, 3, 9], "size": [3, 1, 1], "color": "q"}
    {"from": [-8, 3, 13], "size": [3, 1, 1], "color": "q"}
    {"from": [-8, 3, 17], "size": [3, 1, 1], "color": "q"}
    {"from": [5, 3, 9], "size": [3, 1, 1], "color": "q"}
    {"from": [5, 3, 13], "size": [3, 1, 1], "color": "q"}
    {"from": [5, 3, 17], "size": [3, 1, 1], "color": "q"}
    {"from": [-4, 3, 10], "size": [8, 1, 8], "color": "g"}
    {"from": [-3, 4, 11], "size": [6, 1, 6], "color": "p"}
    {"from": [-1, 5, 12], "size": [2, 1, 4], "color": "r"}
    {"from": [-4, 4, 10], "size": [2, 1, 8], "color": "i"}
    {"from": [2, 4, 10], "size": [2, 1, 8], "color": "i"}

@Model/sf/warden_walk2
palette = sf
unit = 0.1875
blocks:
    {"from": [-6, -3, 0], "size": [5, 6, 2], "color": "g"}
    {"from": [-6, -3, 2], "size": [4, 6, 5], "color": "m"}
    {"from": [-6, -4, 4], "size": [4, 1, 2], "color": "l"}
    {"from": [-6, 3, 4], "size": [4, 1, 2], "color": "l"}
    {"from": [2, -3, 0], "size": [5, 6, 2], "color": "g"}
    {"from": [2, -3, 2], "size": [4, 6, 5], "color": "m"}
    {"from": [2, -4, 4], "size": [4, 1, 2], "color": "l"}
    {"from": [2, 3, 4], "size": [4, 1, 2], "color": "l"}
    {"from": [-9, -3, 7], "size": [18, 6, 13], "color": "m"}
    {"from": [-10, -4, 19], "size": [20, 8, 3], "color": "i"}
    {"from": [-5, -3, 22], "size": [10, 6, 6], "color": "g"}
    {"from": [-6, -3, 28], "size": [12, 6, 2], "color": "l"}
    {"from": [-6, -3, 30], "size": [2, 6, 2], "color": "i"}
    {"from": [-1, -3, 30], "size": [2, 6, 3], "color": "i"}
    {"from": [4, -3, 30], "size": [2, 6, 2], "color": "i"}
    {"from": [-14, -3, 9], "size": [4, 6, 10], "color": "m"}
    {"from": [-14, -4, 9], "size": [4, 1, 3], "color": "l"}
    {"from": [-14, 3, 9], "size": [4, 1, 3], "color": "l"}
    {"from": [-14, -3, 19], "size": [4, 6, 2], "color": "g"}
    {"from": [10, -3, 9], "size": [4, 6, 10], "color": "m"}
    {"from": [10, -4, 9], "size": [4, 1, 3], "color": "l"}
    {"from": [10, 3, 9], "size": [4, 1, 3], "color": "l"}
    {"from": [10, -3, 19], "size": [4, 6, 2], "color": "g"}
    {"from": [-4, -4, 24], "size": [8, 1, 2], "color": "r"}
    {"from": [-2, -5, 24], "size": [4, 1, 1], "color": "y"}
    {"from": [-8, -4, 9], "size": [3, 1, 1], "color": "q"}
    {"from": [-8, -4, 13], "size": [3, 1, 1], "color": "q"}
    {"from": [-8, -4, 17], "size": [3, 1, 1], "color": "q"}
    {"from": [5, -4, 9], "size": [3, 1, 1], "color": "q"}
    {"from": [5, -4, 13], "size": [3, 1, 1], "color": "q"}
    {"from": [5, -4, 17], "size": [3, 1, 1], "color": "q"}
    {"from": [-4, -4, 10], "size": [8, 1, 8], "color": "g"}
    {"from": [-3, -5, 11], "size": [6, 1, 6], "color": "p"}
    {"from": [-1, -6, 12], "size": [2, 1, 4], "color": "r"}
    {"from": [-4, -5, 10], "size": [2, 1, 8], "color": "i"}
    {"from": [2, -5, 10], "size": [2, 1, 8], "color": "i"}
    {"from": [-4, 3, 24], "size": [8, 1, 2], "color": "r"}
    {"from": [-2, 4, 24], "size": [4, 1, 1], "color": "y"}
    {"from": [-8, 3, 9], "size": [3, 1, 1], "color": "q"}
    {"from": [-8, 3, 13], "size": [3, 1, 1], "color": "q"}
    {"from": [-8, 3, 17], "size": [3, 1, 1], "color": "q"}
    {"from": [5, 3, 9], "size": [3, 1, 1], "color": "q"}
    {"from": [5, 3, 13], "size": [3, 1, 1], "color": "q"}
    {"from": [5, 3, 17], "size": [3, 1, 1], "color": "q"}
    {"from": [-4, 3, 10], "size": [8, 1, 8], "color": "g"}
    {"from": [-3, 4, 11], "size": [6, 1, 6], "color": "p"}
    {"from": [-1, 5, 12], "size": [2, 1, 4], "color": "r"}
    {"from": [-4, 4, 10], "size": [2, 1, 8], "color": "i"}
    {"from": [2, 4, 10], "size": [2, 1, 8], "color": "i"}

@Model/sf/warden_walk3
palette = sf
unit = 0.1875
blocks:
    {"from": [-8, -3, 0], "size": [5, 6, 2], "color": "g"}
    {"from": [-8, -3, 2], "size": [4, 6, 5], "color": "m"}
    {"from": [-8, -4, 4], "size": [4, 1, 2], "color": "l"}
    {"from": [-8, 3, 4], "size": [4, 1, 2], "color": "l"}
    {"from": [4, -3, 0], "size": [5, 6, 2], "color": "g"}
    {"from": [4, -3, 2], "size": [4, 6, 5], "color": "m"}
    {"from": [4, -4, 4], "size": [4, 1, 2], "color": "l"}
    {"from": [4, 3, 4], "size": [4, 1, 2], "color": "l"}
    {"from": [-9, -3, 7], "size": [18, 6, 13], "color": "m"}
    {"from": [-10, -4, 19], "size": [20, 8, 3], "color": "i"}
    {"from": [-5, -3, 22], "size": [10, 6, 6], "color": "g"}
    {"from": [-6, -3, 28], "size": [12, 6, 2], "color": "l"}
    {"from": [-6, -3, 30], "size": [2, 6, 2], "color": "i"}
    {"from": [-1, -3, 30], "size": [2, 6, 3], "color": "i"}
    {"from": [4, -3, 30], "size": [2, 6, 2], "color": "i"}
    {"from": [-14, -3, 9], "size": [4, 6, 10], "color": "m"}
    {"from": [-14, -4, 9], "size": [4, 1, 3], "color": "l"}
    {"from": [-14, 3, 9], "size": [4, 1, 3], "color": "l"}
    {"from": [-14, -3, 19], "size": [4, 6, 2], "color": "g"}
    {"from": [10, -3, 9], "size": [4, 6, 10], "color": "m"}
    {"from": [10, -4, 9], "size": [4, 1, 3], "color": "l"}
    {"from": [10, 3, 9], "size": [4, 1, 3], "color": "l"}
    {"from": [10, -3, 19], "size": [4, 6, 2], "color": "g"}
    {"from": [-4, -4, 24], "size": [8, 1, 2], "color": "r"}
    {"from": [-2, -5, 24], "size": [4, 1, 1], "color": "y"}
    {"from": [-8, -4, 9], "size": [3, 1, 1], "color": "q"}
    {"from": [-8, -4, 13], "size": [3, 1, 1], "color": "q"}
    {"from": [-8, -4, 17], "size": [3, 1, 1], "color": "q"}
    {"from": [5, -4, 9], "size": [3, 1, 1], "color": "q"}
    {"from": [5, -4, 13], "size": [3, 1, 1], "color": "q"}
    {"from": [5, -4, 17], "size": [3, 1, 1], "color": "q"}
    {"from": [-4, -4, 10], "size": [8, 1, 8], "color": "g"}
    {"from": [-3, -5, 11], "size": [6, 1, 6], "color": "p"}
    {"from": [-1, -6, 12], "size": [2, 1, 4], "color": "r"}
    {"from": [-4, -5, 10], "size": [2, 1, 8], "color": "i"}
    {"from": [2, -5, 10], "size": [2, 1, 8], "color": "i"}
    {"from": [-4, 3, 24], "size": [8, 1, 2], "color": "r"}
    {"from": [-2, 4, 24], "size": [4, 1, 1], "color": "y"}
    {"from": [-8, 3, 9], "size": [3, 1, 1], "color": "q"}
    {"from": [-8, 3, 13], "size": [3, 1, 1], "color": "q"}
    {"from": [-8, 3, 17], "size": [3, 1, 1], "color": "q"}
    {"from": [5, 3, 9], "size": [3, 1, 1], "color": "q"}
    {"from": [5, 3, 13], "size": [3, 1, 1], "color": "q"}
    {"from": [5, 3, 17], "size": [3, 1, 1], "color": "q"}
    {"from": [-4, 3, 10], "size": [8, 1, 8], "color": "g"}
    {"from": [-3, 4, 11], "size": [6, 1, 6], "color": "p"}
    {"from": [-1, 5, 12], "size": [2, 1, 4], "color": "r"}
    {"from": [-4, 4, 10], "size": [2, 1, 8], "color": "i"}
    {"from": [2, 4, 10], "size": [2, 1, 8], "color": "i"}

@Model/sf/warden_hit
palette = sf
unit = 0.1875
blocks:
    {"from": [-8, -3, 0], "size": [5, 6, 2], "color": "w"}
    {"from": [-8, -3, 2], "size": [4, 6, 5], "color": "w"}
    {"from": [-8, -4, 4], "size": [4, 1, 2], "color": "w"}
    {"from": [-8, 3, 4], "size": [4, 1, 2], "color": "w"}
    {"from": [4, -3, 0], "size": [5, 6, 2], "color": "w"}
    {"from": [4, -3, 2], "size": [4, 6, 5], "color": "w"}
    {"from": [4, -4, 4], "size": [4, 1, 2], "color": "w"}
    {"from": [4, 3, 4], "size": [4, 1, 2], "color": "w"}
    {"from": [-9, -3, 7], "size": [18, 6, 13], "color": "w"}
    {"from": [-10, -4, 19], "size": [20, 8, 3], "color": "w"}
    {"from": [-5, -3, 22], "size": [10, 6, 6], "color": "w"}
    {"from": [-6, -3, 28], "size": [12, 6, 2], "color": "w"}
    {"from": [-6, -3, 30], "size": [2, 6, 2], "color": "w"}
    {"from": [-1, -3, 30], "size": [2, 6, 3], "color": "w"}
    {"from": [4, -3, 30], "size": [2, 6, 2], "color": "w"}
    {"from": [-14, -3, 9], "size": [4, 6, 10], "color": "w"}
    {"from": [-14, -4, 9], "size": [4, 1, 3], "color": "w"}
    {"from": [-14, 3, 9], "size": [4, 1, 3], "color": "w"}
    {"from": [-14, -3, 19], "size": [4, 6, 2], "color": "w"}
    {"from": [10, -3, 9], "size": [4, 6, 10], "color": "w"}
    {"from": [10, -4, 9], "size": [4, 1, 3], "color": "w"}
    {"from": [10, 3, 9], "size": [4, 1, 3], "color": "w"}
    {"from": [10, -3, 19], "size": [4, 6, 2], "color": "w"}
    {"from": [-4, -4, 24], "size": [8, 1, 2], "color": "w"}
    {"from": [-2, -5, 24], "size": [4, 1, 1], "color": "w"}
    {"from": [-8, -4, 9], "size": [3, 1, 1], "color": "w"}
    {"from": [-8, -4, 13], "size": [3, 1, 1], "color": "w"}
    {"from": [-8, -4, 17], "size": [3, 1, 1], "color": "w"}
    {"from": [5, -4, 9], "size": [3, 1, 1], "color": "w"}
    {"from": [5, -4, 13], "size": [3, 1, 1], "color": "w"}
    {"from": [5, -4, 17], "size": [3, 1, 1], "color": "w"}
    {"from": [-4, -4, 10], "size": [8, 1, 8], "color": "w"}
    {"from": [-3, -5, 11], "size": [6, 1, 6], "color": "v"}
    {"from": [-1, -6, 12], "size": [2, 1, 4], "color": "w"}
    {"from": [-6, -5, 10], "size": [2, 1, 8], "color": "w"}
    {"from": [4, -5, 10], "size": [2, 1, 8], "color": "w"}
    {"from": [-4, 3, 24], "size": [8, 1, 2], "color": "w"}
    {"from": [-2, 4, 24], "size": [4, 1, 1], "color": "w"}
    {"from": [-8, 3, 9], "size": [3, 1, 1], "color": "w"}
    {"from": [-8, 3, 13], "size": [3, 1, 1], "color": "w"}
    {"from": [-8, 3, 17], "size": [3, 1, 1], "color": "w"}
    {"from": [5, 3, 9], "size": [3, 1, 1], "color": "w"}
    {"from": [5, 3, 13], "size": [3, 1, 1], "color": "w"}
    {"from": [5, 3, 17], "size": [3, 1, 1], "color": "w"}
    {"from": [-4, 3, 10], "size": [8, 1, 8], "color": "w"}
    {"from": [-3, 4, 11], "size": [6, 1, 6], "color": "v"}
    {"from": [-1, 5, 12], "size": [2, 1, 4], "color": "w"}
    {"from": [-6, 4, 10], "size": [2, 1, 8], "color": "w"}
    {"from": [4, 4, 10], "size": [2, 1, 8], "color": "w"}

@Model/sf/warden_warning
palette = sf
unit = 0.1875
blocks:
    {"from": [-10, -1, 0], "size": [20, 2, 1], "color": "r"}
    {"from": [-10, -1, 1], "size": [2, 2, 1], "color": "o"}
    {"from": [8, -1, 1], "size": [2, 2, 1], "color": "o"}

@Model/sf/temple_wave
palette = sf
unit = 0.1875
blocks:
    {"from": [-1, -1, -2], "size": [2, 2, 4], "color": "o"}
    {"from": [-2, -1, -1], "size": [4, 2, 2], "color": "r"}
    {"from": [0, 0, 0], "size": [1, 1, 2], "color": "y"}

@Sprite/sf/warden_portrait
palette = sf_hud
size = [8,8]
pixels:
    "s.sss.s."
    "ssssssss"
    "skkkkkks"
    "skrrrrks"
    ".skkks.."
    "sscccss."
    ".scccs.."
    "..sss..."

@Model/sf/charge_orb
palette = sf
unit = 0.125
blocks:
    {"from":[-1,-1,-1],"size":[2,2,2],"color":"c"}
    {"from":[-3,0,0],"size":[1,1,1],"color":"p"}
    {"from":[2,0,0],"size":[1,1,1],"color":"p"}
    {"from":[0,0,-3],"size":[1,1,1],"color":"p"}
    {"from":[0,0,2],"size":[1,1,1],"color":"p"}

@Model/sf/charge_ready
palette = sf
unit = 0.125
blocks:
    {"from":[-2,-1,-2],"size":[4,2,4],"color":"c"}
    {"from":[-1,1,-1],"size":[2,1,2],"color":"w"}
    {"from":[-4,0,0],"size":[2,1,1],"color":"v"}
    {"from":[2,0,0],"size":[2,1,1],"color":"v"}
    {"from":[0,0,-4],"size":[1,1,2],"color":"v"}
    {"from":[0,0,2],"size":[1,1,2],"color":"v"}

@Model/sf/charged_bolt
palette = sf
unit = 0.125
blocks:
    {"from":[-3,-1,-2],"size":[6,2,4],"color":"c"}
    {"from":[-2,1,-1],"size":[4,1,2],"color":"w"}
    {"from":[-1,-1,-3],"size":[2,2,1],"color":"p"}
    {"from":[-1,-1,2],"size":[2,2,1],"color":"p"}

@Model/sf/seal_shell
palette = sf
unit = 0.5
blocks:
    {"from":[-1,-4,0],"size":[2,8,32],"color":"p"}
    {"from":[-1,4,2],"size":[2,1,2],"color":"c"}
    {"from":[-1,4,8],"size":[2,1,2],"color":"c"}
    {"from":[-1,4,14],"size":[2,1,2],"color":"c"}
    {"from":[-1,4,20],"size":[2,1,2],"color":"c"}
    {"from":[-1,4,26],"size":[2,1,2],"color":"c"}

@Model/sf/ship_flight
palette = sf
unit = 0.125
blocks:
    {"from": [-14, -4, 3], "size": [25, 8, 5], "color": "s"}
    {"from": [-10, -3, 8], "size": [13, 6, 4], "color": "w"}
    {"from": [-6, 2, 8], "size": [8, 1, 3], "color": "c"}
    {"from": [10, -3, 4], "size": [6, 6, 3], "color": "w"}
    {"from": [-14, -4, 2], "size": [3, 8, 7], "color": "o"}
    {"from": [-10, -3, 2], "size": [3, 6, 1], "color": "h"}
    {"from": [7, -3, 2], "size": [3, 6, 1], "color": "h"}
    {"from": [-12, 4, 5], "size": [2, 1, 1], "color": "c"}

@Model/sf/ship_flight_lit
palette = sf
unit = 0.125
blocks:
    {"from": [-14, -4, 3], "size": [25, 8, 5], "color": "s"}
    {"from": [-10, -3, 8], "size": [13, 6, 4], "color": "w"}
    {"from": [-6, 2, 8], "size": [8, 1, 3], "color": "c"}
    {"from": [10, -3, 4], "size": [6, 6, 3], "color": "w"}
    {"from": [-14, -4, 2], "size": [3, 8, 7], "color": "o"}
    {"from": [-10, -3, 2], "size": [3, 6, 1], "color": "h"}
    {"from": [7, -3, 2], "size": [3, 6, 1], "color": "h"}
    {"from": [-12, 4, 5], "size": [2, 1, 1], "color": "w"}

@Model/sf/ship_exhaust
palette = sf
unit = 0.25
blocks:
    {"from": [-1, -1, -4], "size": [2, 2, 4], "color": "c"}
    {"from": [0, 0, -6], "size": [1, 1, 5], "color": "v"}

@Model/sf/ship_exhaust_long
palette = sf
unit = 0.25
blocks:
    {"from": [-1, -1, -5], "size": [2, 2, 5], "color": "c"}
    {"from": [0, 0, -8], "size": [1, 1, 6], "color": "v"}

@Model/sf/landing_dust
palette = sf
unit = 0.125
blocks:
    {"from": [-2, -1, 0], "size": [4, 2, 1], "color": "a"}
    {"from": [-1, -1, 1], "size": [2, 2, 1], "color": "s"}

@Texture/sf/garden_moss
palette = sf
size = [8,8]
pixels:
    "ABBBBABB"
    "BBBBBBBB"
    "BBFBBBFB"
    "BBBBBBBB"
    "BDDBBDBB"
    "DDDDDDDD"
    "DDBDDDDD"
    "DDDDDDDD"

@Texture/sf/garden_wall
palette = sf
size = [8,8]
pixels:
    "DDDDDDDD"
    "DBBDDDDD"
    "DDDDDDDD"
    "DDDDBDDD"
    "DDDDDDDD"
    "DDDBBDDD"
    "DDDDDDDD"
    "DDDDDDDD"

@Texture/sf/garden_glass
palette = sf
size = [8,8]
pixels:
    "ttttnttt"
    "uuunnuuu"
    "nnBfnnBn"
    "nnnnnnnn"
    "BBnfnnBB"
    "ffBBBBff"
    "ffffffff"
    "ffffffff"

@Model/sf/garden_tree
palette = sf
unit = 0.25
blocks:
    {"from": [-2, -2, 0], "size": [4, 4, 25], "color": "B"}
    {"from": [-1, 2, 2], "size": [2, 1, 20], "color": "D"}
    {"from": [-10, -2, 16], "size": [10, 3, 3], "color": "F"}
    {"from": [0, -2, 20], "size": [10, 3, 3], "color": "F"}
    {"from": [-12, -3, 22], "size": [24, 6, 4], "color": "B"}
    {"from": [-9, -4, 26], "size": [18, 8, 3], "color": "F"}
    {"from": [-5, -3, 29], "size": [10, 6, 3], "color": "A"}
    {"from": [-9, 3, 20], "size": [2, 1, 6], "color": "A"}
    {"from": [6, 3, 18], "size": [1, 1, 8], "color": "A"}

@Model/sf/hanging_vine
palette = sf
unit = 0.25
blocks:
    {"from": [0, 0, -24], "size": [1, 1, 24], "color": "B"}
    {"from": [-2, 0, -22], "size": [3, 1, 2], "color": "A"}
    {"from": [0, 0, -20], "size": [3, 1, 2], "color": "F"}
    {"from": [-2, 0, -17], "size": [3, 1, 2], "color": "A"}
    {"from": [0, 0, -15], "size": [3, 1, 2], "color": "F"}
    {"from": [-2, 0, -12], "size": [3, 1, 2], "color": "A"}
    {"from": [0, 0, -10], "size": [3, 1, 2], "color": "F"}
    {"from": [-2, 0, -7], "size": [3, 1, 2], "color": "A"}
    {"from": [0, 0, -5], "size": [3, 1, 2], "color": "F"}
    {"from": [-2, 0, -2], "size": [3, 1, 2], "color": "A"}
    {"from": [0, 0, 0], "size": [3, 1, 2], "color": "F"}

@Model/sf/glow_flower
palette = sf
unit = 0.125
blocks:
    {"from": [-1, -1, 0], "size": [2, 2, 7], "color": "B"}
    {"from": [-4, -2, 6], "size": [8, 4, 2], "color": "A"}
    {"from": [-2, -4, 6], "size": [4, 8, 2], "color": "A"}
    {"from": [-2, -2, 8], "size": [4, 4, 3], "color": "E"}
    {"from": [-1, 2, 8], "size": [2, 1, 2], "color": "C"}

@Model/sf/broken_greenhouse
palette = sf
unit = 0.25
blocks:
    {"from": [-12, -1, 0], "size": [1, 2, 28], "color": "F"}
    {"from": [11, -1, 0], "size": [1, 2, 28], "color": "F"}
    {"from": [-12, -1, 27], "size": [24, 2, 1], "color": "F"}
    {"from": [-10, -1, 26], "size": [6, 1, 1], "color": "t"}
    {"from": [6, -1, 26], "size": [4, 1, 1], "color": "t"}
    {"from": [-12, -1, 8], "size": [5, 2, 1], "color": "F"}
    {"from": [7, -1, 18], "size": [5, 2, 1], "color": "F"}

@Model/sf/garden_hatch
palette = sf
unit = 0.25
blocks:
    {"from": [-5, -1, 0], "size": [2, 3, 12], "color": "B"}
    {"from": [3, -1, 0], "size": [2, 3, 12], "color": "B"}
    {"from": [-5, -1, 12], "size": [10, 3, 2], "color": "F"}
    {"from": [-3, -1, 1], "size": [6, 1, 11], "color": "D"}
    {"from": [-4, 2, 2], "size": [1, 1, 9], "color": "A"}
    {"from": [3, 2, 2], "size": [1, 1, 9], "color": "A"}
    {"from": [-1, 1, 5], "size": [2, 1, 3], "color": "A"}

@Model/sf/shortcut_hatch
palette = sf
unit = 0.25
blocks:
    {"from": [-5, -1, 0], "size": [2, 3, 12], "color": "B"}
    {"from": [3, -1, 0], "size": [2, 3, 12], "color": "B"}
    {"from": [-5, -1, 12], "size": [10, 3, 2], "color": "F"}
    {"from": [-3, -1, 1], "size": [6, 1, 11], "color": "D"}
    {"from": [-4, 2, 2], "size": [1, 1, 9], "color": "c"}
    {"from": [3, 2, 2], "size": [1, 1, 9], "color": "c"}
    {"from": [-1, 1, 5], "size": [2, 1, 3], "color": "c"}

@Model/sf/dash_cell
palette = sf
unit = 0.125
blocks:
    {"from": [-3, -2, 0], "size": [6, 4, 2], "color": "s"}
    {"from": [-2, -1, 2], "size": [4, 2, 5], "color": "A"}
    {"from": [-3, -2, 7], "size": [6, 4, 2], "color": "w"}
    {"from": [2, 1, 3], "size": [3, 1, 2], "color": "C"}
    {"from": [4, 1, 4], "size": [2, 1, 1], "color": "C"}

@Model/sf/dash_gap_left
palette = sf
unit = 0.25
blocks:
    {"from": [-1, -1, 0], "size": [1, 1, 5], "color": "s"}
    {"from": [-5, -1, 5], "size": [10, 1, 7], "color": "f"}
    {"from": [-4, 0, 8], "size": [1, 1, 1], "color": "A"}
    {"from": [-3, 0, 7], "size": [1, 1, 1], "color": "A"}
    {"from": [-3, 0, 9], "size": [1, 1, 1], "color": "A"}
    {"from": [-2, 0, 6], "size": [1, 1, 1], "color": "A"}
    {"from": [-2, 0, 10], "size": [1, 1, 1], "color": "A"}
    {"from": [0, 0, 8], "size": [1, 1, 1], "color": "A"}
    {"from": [1, 0, 7], "size": [1, 1, 1], "color": "A"}
    {"from": [1, 0, 9], "size": [1, 1, 1], "color": "A"}
    {"from": [2, 0, 6], "size": [1, 1, 1], "color": "A"}
    {"from": [2, 0, 10], "size": [1, 1, 1], "color": "A"}


@Model/sf/dash_gap_right
palette = sf
unit = 0.25
blocks:
    {"from": [0, -1, 0], "size": [1, 1, 5], "color": "s"}
    {"from": [-5, -1, 5], "size": [10, 1, 7], "color": "f"}
    {"from": [3, 0, 8], "size": [1, 1, 1], "color": "A"}
    {"from": [2, 0, 7], "size": [1, 1, 1], "color": "A"}
    {"from": [2, 0, 9], "size": [1, 1, 1], "color": "A"}
    {"from": [1, 0, 6], "size": [1, 1, 1], "color": "A"}
    {"from": [1, 0, 10], "size": [1, 1, 1], "color": "A"}
    {"from": [-1, 0, 8], "size": [1, 1, 1], "color": "A"}
    {"from": [-2, 0, 7], "size": [1, 1, 1], "color": "A"}
    {"from": [-2, 0, 9], "size": [1, 1, 1], "color": "A"}
    {"from": [-3, 0, 6], "size": [1, 1, 1], "color": "A"}
    {"from": [-3, 0, 10], "size": [1, 1, 1], "color": "A"}
@Model/sf/repair_pod
palette = sf
unit = 0.125
blocks:
    {"from": [-3, -2, 0], "size": [6, 4, 7], "color": "w"}
    {"from": [-1, 2, 1], "size": [2, 1, 5], "color": "A"}
    {"from": [-2, 2, 3], "size": [4, 1, 1], "color": "A"}

@Model/sf/garden_relay
palette = sf
unit = 0.125
blocks:
    {"from": [-4, -3, 0], "size": [8, 6, 2], "color": "B"}
    {"from": [-2, -2, 2], "size": [4, 4, 6], "color": "A"}
    {"from": [-1, -1, 1], "size": [2, 2, 8], "color": "E"}
    {"from": [-4, -1, 4], "size": [8, 2, 2], "color": "C"}

@Model/sf/skimmer
palette = sf
unit = 0.125
blocks:
    {"from": [-3, -2, -2], "size": [6, 4, 4], "color": "F"}
    {"from": [-2, -2, 2], "size": [4, 4, 1], "color": "A"}
    {"from": [-2, 2, 0], "size": [1, 1, 1], "color": "r"}
    {"from": [1, 2, 0], "size": [1, 1, 1], "color": "r"}
    {"from": [-1, -2, -3], "size": [2, 4, 1], "color": "E"}
    {"from": [-8, -1, 0], "size": [5, 2, 1], "color": "A"}
    {"from": [3, -1, 0], "size": [5, 2, 1], "color": "A"}

@Model/sf/skimmer_wing
palette = sf
unit = 0.125
blocks:
    {"from": [-3, -2, -2], "size": [6, 4, 4], "color": "F"}
    {"from": [-2, -2, 2], "size": [4, 4, 1], "color": "A"}
    {"from": [-2, 2, 0], "size": [1, 1, 1], "color": "r"}
    {"from": [1, 2, 0], "size": [1, 1, 1], "color": "r"}
    {"from": [-1, -2, -3], "size": [2, 4, 1], "color": "E"}
    {"from": [-7, -1, 1], "size": [4, 2, 3], "color": "A"}
    {"from": [3, -1, 1], "size": [4, 2, 3], "color": "A"}

@Model/sf/skimmer_hit
palette = sf
unit = 0.125
blocks:
    {"from": [-3, -2, -2], "size": [6, 4, 4], "color": "w"}
    {"from": [-2, -2, 2], "size": [4, 4, 1], "color": "w"}
    {"from": [-2, 2, 0], "size": [1, 1, 1], "color": "w"}
    {"from": [1, 2, 0], "size": [1, 1, 1], "color": "w"}
    {"from": [-1, -2, -3], "size": [2, 4, 1], "color": "w"}

@Model/sf/spore_bolt
palette = sf
unit = 0.125
blocks:
    {"from": [-1, -1, -1], "size": [2, 2, 2], "color": "E"}
    {"from": [-2, -1, 0], "size": [4, 2, 1], "color": "A"}

@Model/sf/pollen
palette = sf
unit = 0.125
blocks:
    {"from": [-1, -1, -1], "size": [2, 2, 2], "color": "A"}
    {"from": [0, 0, 1], "size": [1, 1, 1], "color": "C"}

@Model/sf/rootheart_closed
palette = sf
unit = 0.125
blocks:
    {"from": [-8, -3, 0], "size": [16, 6, 2], "color": "B"}
    {"from": [-6, -2, 2], "size": [12, 4, 3], "color": "F"}
    {"from": [-3, -3, 5], "size": [6, 6, 9], "color": "B"}
    {"from": [-5, -3, 12], "size": [10, 6, 9], "color": "F"}
    {"from": [-3, -2, 21], "size": [6, 4, 3], "color": "E"}
    {"from": [-7, -2, 10], "size": [3, 4, 13], "color": "A"}
    {"from": [4, -2, 10], "size": [3, 4, 13], "color": "A"}
    {"from": [-5, 3, 10], "size": [10, 1, 10], "color": "D"}
    {"from": [-3, 4, 12], "size": [6, 1, 6], "color": "p"}
    {"from": [-1, 5, 13], "size": [2, 1, 4], "color": "r"}

@Model/sf/rootheart_open
palette = sf
unit = 0.125
blocks:
    {"from": [-8, -3, 0], "size": [16, 6, 2], "color": "B"}
    {"from": [-6, -2, 2], "size": [12, 4, 3], "color": "F"}
    {"from": [-3, -3, 5], "size": [6, 6, 9], "color": "B"}
    {"from": [-5, -3, 12], "size": [10, 6, 9], "color": "F"}
    {"from": [-3, -2, 21], "size": [6, 4, 3], "color": "E"}
    {"from": [-11, -2, 10], "size": [3, 4, 13], "color": "A"}
    {"from": [8, -2, 10], "size": [3, 4, 13], "color": "A"}
    {"from": [-5, 3, 10], "size": [10, 1, 10], "color": "D"}
    {"from": [-3, 4, 12], "size": [6, 1, 6], "color": "C"}
    {"from": [-1, 5, 13], "size": [2, 1, 4], "color": "w"}

@Model/sf/rootheart_breathe
palette = sf
unit = 0.125
blocks:
    {"from": [-8, -3, 0], "size": [16, 6, 2], "color": "B"}
    {"from": [-6, -2, 2], "size": [12, 4, 3], "color": "F"}
    {"from": [-3, -3, 5], "size": [6, 6, 9], "color": "B"}
    {"from": [-5, -3, 12], "size": [10, 6, 9], "color": "F"}
    {"from": [-3, -2, 21], "size": [6, 4, 3], "color": "E"}
    {"from": [-10, -2, 10], "size": [3, 4, 13], "color": "A"}
    {"from": [7, -2, 10], "size": [3, 4, 13], "color": "A"}
    {"from": [-5, 3, 10], "size": [10, 1, 10], "color": "D"}
    {"from": [-3, 4, 12], "size": [6, 1, 6], "color": "C"}
    {"from": [-1, 5, 13], "size": [2, 1, 4], "color": "w"}

@Model/sf/rootheart_hit
palette = sf
unit = 0.125
blocks:
    {"from": [-8, -3, 0], "size": [16, 6, 2], "color": "w"}
    {"from": [-6, -2, 2], "size": [12, 4, 3], "color": "w"}
    {"from": [-3, -3, 5], "size": [6, 6, 9], "color": "w"}
    {"from": [-5, -3, 12], "size": [10, 6, 9], "color": "w"}
    {"from": [-3, -2, 21], "size": [6, 4, 3], "color": "w"}
    {"from": [-3, 4, 12], "size": [6, 2, 6], "color": "C"}

@Model/sf/root_warning
palette = sf
unit = 0.125
blocks:
    {"from": [-5, -1, 0], "size": [10, 2, 1], "color": "r"}
    {"from": [-5, -1, 1], "size": [1, 2, 1], "color": "o"}
    {"from": [4, -1, 1], "size": [1, 2, 1], "color": "o"}

@Model/sf/root_spike
palette = sf
unit = 0.125
blocks:
    {"from": [-4, -1, 0], "size": [8, 2, 2], "color": "B"}
    {"from": [-2, -1, 2], "size": [4, 2, 7], "color": "A"}
    {"from": [-1, -1, 9], "size": [2, 2, 3], "color": "E"}

@Model/sf/pilot_dash
palette = sf
unit = 0.125
blocks:
    {"from": [-3, -2, 4], "size": [5, 4, 5], "color": "w"}
    {"from": [-3, -2, 4], "size": [5, 4, 1], "color": "k"}
    {"from": [-2, -1, 9], "size": [4, 2, 1], "color": "s"}
    {"from": [-2, -2, 10], "size": [6, 4, 3], "color": "w"}
    {"from": [-1, -2, 13], "size": [4, 4, 1], "color": "a"}
    {"from": [-4, -2, 5], "size": [2, 4, 4], "color": "o"}
    {"from": [-5, -1, 5], "size": [1, 2, 3], "color": "s"}
    {"from": [-5, -1, 4], "size": [2, 2, 1], "color": "k"}
    {"from": [-1, -1, 14], "size": [1, 1, 1], "color": "s"}
    {"from": [-1, -3, 10], "size": [5, 1, 3], "color": "d"}
    {"from": [0, -4, 11], "size": [4, 1, 1], "color": "c"}
    {"from": [-1, -3, 7], "size": [2, 1, 2], "color": "h"}
    {"from": [-1, -4, 8], "size": [1, 1, 1], "color": "c"}
    {"from": [1, -3, 6], "size": [1, 1, 1], "color": "o"}
    {"from": [-1, 2, 10], "size": [5, 1, 3], "color": "d"}
    {"from": [0, 3, 11], "size": [4, 1, 1], "color": "c"}
    {"from": [-1, 2, 7], "size": [2, 1, 2], "color": "h"}
    {"from": [-1, 3, 8], "size": [1, 1, 1], "color": "c"}
    {"from": [1, 2, 6], "size": [1, 1, 1], "color": "o"}
    {"from": [-4, -1, 3], "size": [2, 3, 3], "color": "h"}
    {"from": [-4, -2, 4], "size": [2, 1, 1], "color": "a"}
    {"from": [-4, -2, 2], "size": [3, 4, 1], "color": "s"}
    {"from": [-3, 1, 2], "size": [2, 1, 1], "color": "o"}
    {"from": [1, -1, 4], "size": [2, 3, 3], "color": "h"}
    {"from": [2, -2, 5], "size": [2, 1, 1], "color": "a"}
    {"from": [1, -2, 3], "size": [3, 4, 1], "color": "s"}
    {"from": [2, 1, 3], "size": [2, 1, 1], "color": "o"}
    {"from": [1, -2, 8], "size": [2, 4, 2], "color": "o"}
    {"from": [2, -2, 7], "size": [3, 4, 2], "color": "w"}
    {"from": [4, -2, 7], "size": [1, 4, 2], "color": "k"}

@Model/sf/dash_echo
palette = sf
unit = 0.125
blocks:
    {"from": [-4, -1, -2], "size": [8, 2, 4], "color": "c"}
    {"from": [-7, -1, 0], "size": [3, 2, 1], "color": "A"}
    {"from": [-9, -1, -1], "size": [2, 2, 1], "color": "C"}

@Texture/sf/forge_floor
palette = sf
size = [8,8]
pixels:
    "HHHHHHHH"
    "HGHHLHGH"
    "HHHHHHHH"
    "HHLHHHHH"
    "HHHHHHHH"
    "HHHHHLHH"
    "HGHHLHGH"
    "HHHHHHHH"

@Texture/sf/forge_wall
palette = sf
size = [8,8]
pixels:
    "LLLLLLLL"
    "LJLLLLLL"
    "LLLLLLLL"
    "LLLLLJLL"
    "LLLLLLLL"
    "LLJLLLLL"
    "LLLLLLLL"
    "LLLLLLLL"

@Texture/sf/forge_rail
palette = sf
size = [8,8]
pixels:
    "GGGGHGGG"
    "HHHLLHHH"
    "HHJHHJHH"
    "HHHHHHHH"
    "HJJHHJJH"
    "LLJJJJLL"
    "LLLLLLLL"
    "LLLLLLLL"

@Model/sf/foundry_girder
palette = sf
unit = 0.5
blocks:
    {"from": [-3, -2, 0], "size": [6, 4, 1], "color": "H"}
    {"from": [-1, -1, 1], "size": [2, 2, 31], "color": "J"}
    {"from": [-3, -2, 28], "size": [6, 4, 1], "color": "H"}
    {"from": [-2, 1, 6], "size": [4, 1, 1], "color": "G"}
    {"from": [-2, 1, 18], "size": [4, 1, 1], "color": "G"}

@Model/sf/foundry_coil
palette = sf
unit = 0.25
blocks:
    {"from": [-4, -2, 0], "size": [8, 4, 1], "color": "N"}
    {"from": [-2, -1, 1], "size": [4, 2, 8], "color": "J"}
    {"from": [-4, -2, 3], "size": [8, 4, 1], "color": "G"}
    {"from": [-4, -2, 6], "size": [8, 4, 1], "color": "G"}
    {"from": [-3, 2, 4], "size": [6, 1, 2], "color": "K"}

@Model/sf/foundry_piston
palette = sf
unit = 0.25
blocks:
    {"from": [-8, -2, 0], "size": [16, 4, 2], "color": "H"}
    {"from": [-3, -1, 2], "size": [6, 2, 16], "color": "N"}
    {"from": [-6, -2, 18], "size": [12, 4, 3], "color": "G"}
    {"from": [-2, 1, 3], "size": [4, 1, 10], "color": "J"}

@Model/sf/furnace_pool
palette = sf
unit = 0.25
blocks:
    {"from": [-16, -3, 0], "size": [32, 6, 1], "color": "G"}
    {"from": [-15, -2, 1], "size": [30, 4, 1], "color": "o"}
    {"from": [-12, -1, 2], "size": [8, 2, 1], "color": "M"}
    {"from": [3, -1, 2], "size": [9, 2, 1], "color": "M"}

@Model/sf/gravity_sigil
palette = sf
unit = 0.25
blocks:
    {"from": [-7, -1, 0], "size": [14, 1, 1], "color": "G"}
    {"from": [-7, -1, 13], "size": [14, 1, 1], "color": "G"}
    {"from": [-7, -1, 1], "size": [1, 1, 12], "color": "G"}
    {"from": [6, -1, 1], "size": [1, 1, 12], "color": "G"}
    {"from": [-1, 0, 3], "size": [2, 1, 8], "color": "K"}
    {"from": [-4, 0, 7], "size": [8, 1, 2], "color": "K"}
    {"from": [-2, 0, 10], "size": [4, 1, 2], "color": "K"}

@Model/sf/magnetic_shuttle
palette = sf
unit = 0.25
blocks:
    {"from": [-10,-4,0], "size": [20,8,2], "color": "N"}
    {"from": [-9,4,0], "size": [18,1,1], "color": "G"}
    {"from": [-8,-3,2], "size": [3,6,4], "color": "J"}
    {"from": [5,-3,2], "size": [3,6,4], "color": "J"}
    {"from": [-1,-1,6], "size": [2,2,14], "color": "s"}
    {"from": [-3,-2,19], "size": [6,4,2], "color": "J"}
    {"from": [-8,4,-1], "size": [16,1,1], "color": "c"}

@Model/sf/carrier_rail
palette = sf
unit = 0.5
blocks:
    {"from": [-28,-1,0], "size": [28,2,1], "color": "N"}
    {"from": [0,-1,0], "size": [28,2,1], "color": "N"}
    {"from": [-28,1,0], "size": [28,1,1], "color": "G"}
    {"from": [0,1,0], "size": [28,1,1], "color": "G"}
    {"from": [-26,-1,1], "size": [1,2,4], "color": "s"}
    {"from": [25,-1,1], "size": [1,2,4], "color": "s"}

@Model/sf/carrier_sign
palette = sf
unit = 0.125
blocks:
    {"from": [-1,-1,0], "size": [1,1,5], "color": "s"}
    {"from": [-6,-1,5], "size": [12,1,13], "color": "f"}
    {"from": [-5,0,16], "size": [10,1,1], "color": "c"}
    {"from": [-1,0,11], "size": [2,1,5], "color": "K"}
    {"from": [-2,0,9], "size": [4,1,3], "color": "w"}
    {"from": [-3,0,6], "size": [2,1,3], "color": "w"}
    {"from": [1,0,6], "size": [2,1,3], "color": "w"}

@Model/sf/magnet_lock
palette = sf
unit = 0.125
blocks:
    {"from": [-3,-2,0], "size": [6,1,1], "color": "c"}
    {"from": [-3,1,0], "size": [6,1,1], "color": "c"}
    {"from": [-3,-1,0], "size": [1,2,1], "color": "K"}
    {"from": [2,-1,0], "size": [1,2,1], "color": "K"}

@Model/sf/magnetic_glove
palette = sf
unit = 0.125
blocks:
    {"from": [-3,-2,0], "size": [6,4,2], "color": "N"}
    {"from": [-3,-2,2], "size": [6,4,5], "color": "w"}
    {"from": [-4,-1,3], "size": [2,3,3], "color": "s"}
    {"from": [-3,-2,7], "size": [1,4,2], "color": "J"}
    {"from": [-1,-2,7], "size": [1,4,3], "color": "J"}
    {"from": [1,-2,7], "size": [2,4,2], "color": "J"}
    {"from": [-2,2,3], "size": [4,1,3], "color": "c"}
    {"from": [-1,3,4], "size": [2,1,1], "color": "K"}

@Model/sf/gravity_console
palette = sf
unit = 0.125
blocks:
    {"from": [-4, -3, 0], "size": [8, 6, 1], "color": "H"}
    {"from": [-2, -2, 1], "size": [4, 4, 5], "color": "N"}
    {"from": [-4, -2, 6], "size": [8, 4, 5], "color": "J"}
    {"from": [-3, 2, 7], "size": [6, 1, 3], "color": "o"}
    {"from": [-1, 3, 8], "size": [2, 1, 1], "color": "w"}

@Model/sf/gravity_console_low
palette = sf
unit = 0.125
blocks:
    {"from": [-4, -3, 0], "size": [8, 6, 1], "color": "H"}
    {"from": [-2, -2, 1], "size": [4, 4, 5], "color": "N"}
    {"from": [-4, -2, 6], "size": [8, 4, 5], "color": "J"}
    {"from": [-3, 2, 7], "size": [6, 1, 3], "color": "K"}
    {"from": [-1, 3, 8], "size": [2, 1, 1], "color": "w"}

@Model/sf/foundry_hatch
palette = sf
unit = 0.25
blocks:
    {"from": [-5, -1, 0], "size": [2, 3, 12], "color": "H"}
    {"from": [3, -1, 0], "size": [2, 3, 12], "color": "H"}
    {"from": [-5, -1, 12], "size": [10, 3, 2], "color": "G"}
    {"from": [-3, -1, 1], "size": [6, 1, 11], "color": "L"}
    {"from": [-4, 2, 2], "size": [1, 1, 9], "color": "K"}
    {"from": [3, 2, 2], "size": [1, 1, 9], "color": "K"}
    {"from": [-1, 1, 5], "size": [2, 1, 3], "color": "I"}

@Model/sf/foundry_bulkhead
palette = sf
unit = 0.5
blocks:
    {"from": [-1, 0, 0], "size": [1, 1, 32], "color": "N"}
    {"from": [2, 0, 0], "size": [1, 1, 32], "color": "N"}
    {"from": [-1, 0, 32], "size": [4, 1, 1], "color": "G"}

@Model/sf/foundry_relay
palette = sf
unit = 0.125
blocks:
    {"from": [-4, -3, 0], "size": [8, 6, 2], "color": "H"}
    {"from": [-2, -2, 2], "size": [4, 4, 6], "color": "K"}
    {"from": [-1, -1, 1], "size": [2, 2, 8], "color": "M"}
    {"from": [-4, -1, 4], "size": [8, 2, 2], "color": "c"}

@Model/sf/forge_sentry
palette = sf
unit = 0.125
blocks:
    {"from": [-4, -2, -2], "size": [8, 4, 4], "color": "H"}
    {"from": [-2, -2, 2], "size": [4, 4, 1], "color": "N"}
    {"from": [-6, -1, -1], "size": [2, 2, 2], "color": "G"}
    {"from": [4, -1, -1], "size": [2, 2, 2], "color": "G"}
    {"from": [-2, 2, -1], "size": [4, 1, 2], "color": "o"}
    {"from": [-1, 3, 0], "size": [2, 1, 1], "color": "M"}

@Model/sf/forge_sentry_vent
palette = sf
unit = 0.125
blocks:
    {"from": [-4, -2, -2], "size": [8, 4, 4], "color": "H"}
    {"from": [-2, -2, 2], "size": [4, 4, 1], "color": "N"}
    {"from": [-6, -1, -1], "size": [2, 2, 2], "color": "G"}
    {"from": [4, -1, -1], "size": [2, 2, 2], "color": "G"}
    {"from": [-2, 2, -1], "size": [4, 1, 2], "color": "o"}
    {"from": [-1, 3, 0], "size": [2, 1, 1], "color": "K"}
    {"from": [-3, -1, -3], "size": [2, 2, 1], "color": "o"}
    {"from": [1, -1, -3], "size": [2, 2, 1], "color": "o"}

@Model/sf/forge_sentry_hit
palette = sf
unit = 0.125
blocks:
    {"from": [-4, -2, -2], "size": [8, 4, 4], "color": "w"}
    {"from": [-2, -2, 2], "size": [4, 4, 1], "color": "w"}
    {"from": [-6, -1, -1], "size": [2, 2, 2], "color": "w"}
    {"from": [4, -1, -1], "size": [2, 2, 2], "color": "w"}
    {"from": [-2, 2, -1], "size": [4, 1, 2], "color": "w"}

@Model/sf/cantor_guard
palette = sf
unit = 0.15625
blocks:
    {"from": [-7, -3, 0], "size": [5, 6, 2], "color": "H"}
    {"from": [2, -3, 0], "size": [5, 6, 2], "color": "H"}
    {"from": [-6, -3, 2], "size": [4, 6, 5], "color": "N"}
    {"from": [2, -3, 2], "size": [4, 6, 5], "color": "N"}
    {"from": [-8, -3, 7], "size": [16, 6, 12], "color": "J"}
    {"from": [-9, -4, 19], "size": [18, 8, 3], "color": "G"}
    {"from": [-5, -3, 22], "size": [10, 6, 4], "color": "H"}
    {"from": [-4, 3, 23], "size": [8, 1, 1], "color": "M"}
    {"from": [-4, -4, 23], "size": [8, 1, 1], "color": "M"}
    {"from": [-3, -3, 26], "size": [6, 6, 2], "color": "I"}
    {"from": [-12, -3, 8], "size": [4, 6, 10], "color": "H"}
    {"from": [-12, -3, 6], "size": [4, 6, 2], "color": "I"}
    {"from": [8, -3, 8], "size": [4, 6, 10], "color": "H"}
    {"from": [8, -3, 6], "size": [4, 6, 2], "color": "I"}
    {"from": [-4, -4, 9], "size": [8, 1, 8], "color": "L"}
    {"from": [-3, -5, 10], "size": [6, 1, 6], "color": "o"}
    {"from": [-1, -6, 11], "size": [2, 1, 4], "color": "M"}
    {"from": [-4, -5, 9], "size": [2, 1, 8], "color": "N"}
    {"from": [2, -5, 9], "size": [2, 1, 8], "color": "N"}
    {"from": [-4, 3, 9], "size": [8, 1, 8], "color": "L"}
    {"from": [-3, 4, 10], "size": [6, 1, 6], "color": "o"}
    {"from": [-1, 5, 11], "size": [2, 1, 4], "color": "M"}
    {"from": [-4, 4, 9], "size": [2, 1, 8], "color": "N"}
    {"from": [2, 4, 9], "size": [2, 1, 8], "color": "N"}

@Model/sf/cantor_raise
palette = sf
unit = 0.15625
blocks:
    {"from": [-7, -3, 0], "size": [5, 6, 2], "color": "H"}
    {"from": [2, -3, 0], "size": [5, 6, 2], "color": "H"}
    {"from": [-6, -3, 2], "size": [4, 6, 5], "color": "N"}
    {"from": [2, -3, 2], "size": [4, 6, 5], "color": "N"}
    {"from": [-8, -3, 7], "size": [16, 6, 12], "color": "J"}
    {"from": [-9, -4, 19], "size": [18, 8, 3], "color": "G"}
    {"from": [-5, -3, 22], "size": [10, 6, 4], "color": "H"}
    {"from": [-4, 3, 23], "size": [8, 1, 1], "color": "M"}
    {"from": [-4, -4, 23], "size": [8, 1, 1], "color": "M"}
    {"from": [-3, -3, 26], "size": [6, 6, 2], "color": "I"}
    {"from": [-12, -3, 18], "size": [4, 6, 10], "color": "H"}
    {"from": [-12, -3, 28], "size": [4, 6, 2], "color": "I"}
    {"from": [8, -3, 18], "size": [4, 6, 10], "color": "H"}
    {"from": [8, -3, 28], "size": [4, 6, 2], "color": "I"}
    {"from": [-4, -4, 9], "size": [8, 1, 8], "color": "L"}
    {"from": [-3, -5, 10], "size": [6, 1, 6], "color": "o"}
    {"from": [-1, -6, 11], "size": [2, 1, 4], "color": "M"}
    {"from": [-4, -5, 9], "size": [2, 1, 8], "color": "N"}
    {"from": [2, -5, 9], "size": [2, 1, 8], "color": "N"}
    {"from": [-4, 3, 9], "size": [8, 1, 8], "color": "L"}
    {"from": [-3, 4, 10], "size": [6, 1, 6], "color": "o"}
    {"from": [-1, 5, 11], "size": [2, 1, 4], "color": "M"}
    {"from": [-4, 4, 9], "size": [2, 1, 8], "color": "N"}
    {"from": [2, 4, 9], "size": [2, 1, 8], "color": "N"}

@Model/sf/cantor_open
palette = sf
unit = 0.15625
blocks:
    {"from": [-7, -3, 0], "size": [5, 6, 2], "color": "H"}
    {"from": [2, -3, 0], "size": [5, 6, 2], "color": "H"}
    {"from": [-6, -3, 2], "size": [4, 6, 5], "color": "N"}
    {"from": [2, -3, 2], "size": [4, 6, 5], "color": "N"}
    {"from": [-8, -3, 7], "size": [16, 6, 12], "color": "J"}
    {"from": [-9, -4, 19], "size": [18, 8, 3], "color": "G"}
    {"from": [-5, -3, 22], "size": [10, 6, 4], "color": "H"}
    {"from": [-4, 3, 23], "size": [8, 1, 1], "color": "M"}
    {"from": [-4, -4, 23], "size": [8, 1, 1], "color": "M"}
    {"from": [-3, -3, 26], "size": [6, 6, 2], "color": "I"}
    {"from": [-12, -3, 8], "size": [4, 6, 10], "color": "H"}
    {"from": [-12, -3, 6], "size": [4, 6, 2], "color": "I"}
    {"from": [8, -3, 8], "size": [4, 6, 10], "color": "H"}
    {"from": [8, -3, 6], "size": [4, 6, 2], "color": "I"}
    {"from": [-4, -4, 9], "size": [8, 1, 8], "color": "L"}
    {"from": [-3, -5, 10], "size": [6, 1, 6], "color": "c"}
    {"from": [-1, -6, 11], "size": [2, 1, 4], "color": "w"}
    {"from": [-6, -5, 9], "size": [2, 1, 8], "color": "N"}
    {"from": [4, -5, 9], "size": [2, 1, 8], "color": "N"}
    {"from": [-4, 3, 9], "size": [8, 1, 8], "color": "L"}
    {"from": [-3, 4, 10], "size": [6, 1, 6], "color": "c"}
    {"from": [-1, 5, 11], "size": [2, 1, 4], "color": "w"}
    {"from": [-6, 4, 9], "size": [2, 1, 8], "color": "N"}
    {"from": [4, 4, 9], "size": [2, 1, 8], "color": "N"}

@Model/sf/cantor_vent
palette = sf
unit = 0.15625
blocks:
    {"from": [-7, -3, 0], "size": [5, 6, 2], "color": "H"}
    {"from": [2, -3, 0], "size": [5, 6, 2], "color": "H"}
    {"from": [-6, -3, 2], "size": [4, 6, 5], "color": "N"}
    {"from": [2, -3, 2], "size": [4, 6, 5], "color": "N"}
    {"from": [-8, -3, 7], "size": [16, 6, 12], "color": "J"}
    {"from": [-9, -4, 19], "size": [18, 8, 3], "color": "G"}
    {"from": [-5, -3, 22], "size": [10, 6, 4], "color": "H"}
    {"from": [-4, 3, 23], "size": [8, 1, 1], "color": "M"}
    {"from": [-4, -4, 23], "size": [8, 1, 1], "color": "M"}
    {"from": [-3, -3, 26], "size": [6, 6, 2], "color": "I"}
    {"from": [-12, -3, 8], "size": [4, 6, 10], "color": "H"}
    {"from": [-12, -3, 6], "size": [4, 6, 2], "color": "I"}
    {"from": [8, -3, 8], "size": [4, 6, 10], "color": "H"}
    {"from": [8, -3, 6], "size": [4, 6, 2], "color": "I"}
    {"from": [-4, -4, 9], "size": [8, 1, 8], "color": "L"}
    {"from": [-3, -5, 10], "size": [6, 1, 6], "color": "c"}
    {"from": [-1, -6, 11], "size": [2, 1, 4], "color": "w"}
    {"from": [-6, -5, 9], "size": [2, 1, 8], "color": "N"}
    {"from": [4, -5, 9], "size": [2, 1, 8], "color": "N"}
    {"from": [-4, 3, 9], "size": [8, 1, 8], "color": "L"}
    {"from": [-3, 4, 10], "size": [6, 1, 6], "color": "c"}
    {"from": [-1, 5, 11], "size": [2, 1, 4], "color": "w"}
    {"from": [-6, 4, 9], "size": [2, 1, 8], "color": "N"}
    {"from": [4, 4, 9], "size": [2, 1, 8], "color": "N"}
    {"from": [-10, -1, 20], "size": [2, 2, 3], "color": "K"}
    {"from": [8, -1, 20], "size": [2, 2, 3], "color": "K"}

@Model/sf/cantor_hit
palette = sf
unit = 0.15625
blocks:
    {"from": [-7, -3, 0], "size": [5, 6, 2], "color": "w"}
    {"from": [2, -3, 0], "size": [5, 6, 2], "color": "w"}
    {"from": [-6, -3, 2], "size": [4, 6, 5], "color": "w"}
    {"from": [2, -3, 2], "size": [4, 6, 5], "color": "w"}
    {"from": [-8, -3, 7], "size": [16, 6, 12], "color": "w"}
    {"from": [-9, -4, 19], "size": [18, 8, 3], "color": "w"}
    {"from": [-5, -3, 22], "size": [10, 6, 4], "color": "w"}
    {"from": [-4, 3, 23], "size": [8, 1, 1], "color": "w"}
    {"from": [-4, -4, 23], "size": [8, 1, 1], "color": "w"}
    {"from": [-3, -3, 26], "size": [6, 6, 2], "color": "w"}
    {"from": [-3, 4, 10], "size": [6, 1, 6], "color": "c"}

@Model/sf/cantor_warning
palette = sf
unit = 0.125
blocks:
    {"from": [-9, -1, 0], "size": [18, 2, 1], "color": "o"}
    {"from": [-8, -1, 1], "size": [2, 2, 1], "color": "M"}
    {"from": [6, -1, 1], "size": [2, 2, 1], "color": "M"}

@Model/sf/forge_wave
palette = sf
unit = 0.125
blocks:
    {"from": [-1, -1, -2], "size": [2, 2, 4], "color": "o"}
    {"from": [-2, -1, -1], "size": [4, 2, 2], "color": "K"}
    {"from": [0, 0, 0], "size": [1, 1, 2], "color": "M"}


@Model/sf/hunter
palette = sf
unit = 0.125
blocks:
    {"from": [-3, -2, -3], "size": [6, 4, 6], "color": "s"}
    {"from": [0, -1, -2], "size": [5, 3, 4], "color": "s"}
    {"from": [3, 2, -1], "size": [2, 1, 2], "color": "o"}
    {"from": [-2, 2, -1], "size": [3, 1, 2], "color": "o"}
    {"from": [-1, 2, -3], "size": [2, 1, 1], "color": "d"}
    {"from": [-5, -1, -1], "size": [3, 2, 2], "color": "s"}
    {"from": [-8, -1, -3], "size": [3, 2, 2], "color": "p"}
    {"from": [3, -1, -1], "size": [3, 2, 2], "color": "s"}
    {"from": [6, -1, -3], "size": [3, 2, 2], "color": "p"}
    {"from": [-2, -1, -5], "size": [1, 2, 2], "color": "s"}
    {"from": [1, -1, -5], "size": [1, 2, 2], "color": "s"}

@Model/sf/hunter_wing
palette = sf
unit = 0.125
blocks:
    {"from": [-3, -2, -3], "size": [6, 4, 6], "color": "s"}
    {"from": [0, -1, -2], "size": [5, 3, 4], "color": "s"}
    {"from": [3, 2, -1], "size": [2, 1, 2], "color": "o"}
    {"from": [-2, 2, -1], "size": [3, 1, 2], "color": "o"}
    {"from": [-1, 2, -3], "size": [2, 1, 1], "color": "d"}
    {"from": [-5, -1, 4], "size": [3, 2, 2], "color": "s"}
    {"from": [-8, -1, 2], "size": [3, 2, 2], "color": "p"}
    {"from": [3, -1, 4], "size": [3, 2, 2], "color": "s"}
    {"from": [6, -1, 2], "size": [3, 2, 2], "color": "p"}
    {"from": [-2, -1, -5], "size": [1, 2, 2], "color": "s"}
    {"from": [1, -1, -5], "size": [1, 2, 2], "color": "s"}

@Model/sf/hunter_windup
palette = sf
unit = 0.125
blocks:
    {"from": [-3, -2, -3], "size": [6, 4, 6], "color": "s"}
    {"from": [0, -1, -2], "size": [5, 3, 4], "color": "s"}
    {"from": [3, 2, -1], "size": [2, 1, 2], "color": "y"}
    {"from": [-2, 2, -1], "size": [3, 1, 2], "color": "y"}
    {"from": [-1, 2, -3], "size": [2, 1, 1], "color": "d"}
    {"from": [-5, -1, 4], "size": [3, 2, 2], "color": "s"}
    {"from": [-8, -1, 2], "size": [3, 2, 2], "color": "p"}
    {"from": [3, -1, 4], "size": [3, 2, 2], "color": "s"}
    {"from": [6, -1, 2], "size": [3, 2, 2], "color": "p"}
    {"from": [-2, -1, -5], "size": [1, 2, 2], "color": "s"}
    {"from": [1, -1, -5], "size": [1, 2, 2], "color": "s"}
    {"from": [-4, 2, 5], "size": [8, 1, 1], "color": "r"}
    {"from": [-1, 2, 4], "size": [2, 1, 3], "color": "o"}

@Model/sf/hunter_lunge
palette = sf
unit = 0.125
blocks:
    {"from": [-3, -2, -3], "size": [6, 4, 6], "color": "s"}
    {"from": [0, -1, -2], "size": [5, 3, 4], "color": "s"}
    {"from": [3, 2, -1], "size": [2, 1, 2], "color": "o"}
    {"from": [-2, 2, -1], "size": [3, 1, 2], "color": "o"}
    {"from": [-1, 2, -3], "size": [2, 1, 1], "color": "d"}
    {"from": [-5, -1, -1], "size": [3, 2, 2], "color": "s"}
    {"from": [-8, -1, -3], "size": [3, 2, 2], "color": "p"}
    {"from": [3, -1, -1], "size": [3, 2, 2], "color": "s"}
    {"from": [6, -1, -3], "size": [3, 2, 2], "color": "p"}
    {"from": [-2, -1, -5], "size": [1, 2, 2], "color": "s"}
    {"from": [1, -1, -5], "size": [1, 2, 2], "color": "s"}
    {"from": [-8, 0, -1], "size": [4, 1, 2], "color": "o"}
    {"from": [-11, 0, 0], "size": [3, 1, 1], "color": "r"}

@Model/sf/hunter_hit
palette = sf
unit = 0.125
blocks:
    {"from": [-3, -2, -3], "size": [6, 4, 6], "color": "w"}
    {"from": [0, -1, -2], "size": [5, 3, 4], "color": "w"}
    {"from": [3, 2, -1], "size": [2, 1, 2], "color": "o"}
    {"from": [-2, 2, -1], "size": [3, 1, 2], "color": "o"}
    {"from": [-1, 2, -3], "size": [2, 1, 1], "color": "d"}
    {"from": [-5, -1, -1], "size": [3, 2, 2], "color": "w"}
    {"from": [-8, -1, -3], "size": [3, 2, 2], "color": "p"}
    {"from": [3, -1, -1], "size": [3, 2, 2], "color": "w"}
    {"from": [6, -1, -3], "size": [3, 2, 2], "color": "p"}
    {"from": [-2, -1, -5], "size": [1, 2, 2], "color": "w"}
    {"from": [1, -1, -5], "size": [1, 2, 2], "color": "w"}

@Model/sf/crawler
palette = sf
unit = 0.125
blocks:
    {"from": [-5, -2, -2], "size": [10, 4, 3], "color": "p"}
    {"from": [-3, -2, 1], "size": [6, 4, 3], "color": "f"}
    {"from": [-2, -1, 4], "size": [4, 2, 1], "color": "p"}
    {"from": [2, 0, 2], "size": [5, 2, 1], "color": "r"}
    {"from": [-2, 2, 1], "size": [4, 1, 2], "color": "r"}
    {"from": [-4, -2, -3], "size": [8, 1, 1], "color": "s"}
    {"from": [-5, 1, -4], "size": [2, 2, 3], "color": "p"}
    {"from": [-5, -3, -4], "size": [2, 2, 3], "color": "p"}
    {"from": [-5, 2, -5], "size": [3, 1, 1], "color": "s"}
    {"from": [0, 1, -4], "size": [2, 2, 3], "color": "p"}
    {"from": [0, -3, -4], "size": [2, 2, 3], "color": "p"}
    {"from": [0, 2, -5], "size": [3, 1, 1], "color": "s"}
    {"from": [3, 1, -4], "size": [2, 2, 3], "color": "p"}
    {"from": [3, -3, -4], "size": [2, 2, 3], "color": "p"}
    {"from": [3, 2, -5], "size": [3, 1, 1], "color": "s"}

@Model/sf/crawler_walk
palette = sf
unit = 0.125
blocks:
    {"from": [-5, -2, -2], "size": [10, 4, 3], "color": "p"}
    {"from": [-3, -2, 1], "size": [6, 4, 3], "color": "f"}
    {"from": [-2, -1, 4], "size": [4, 2, 1], "color": "p"}
    {"from": [2, 0, 2], "size": [5, 2, 1], "color": "r"}
    {"from": [-2, 2, 1], "size": [4, 1, 2], "color": "r"}
    {"from": [-4, -2, -3], "size": [8, 1, 1], "color": "s"}
    {"from": [-4, 1, -4], "size": [2, 2, 3], "color": "p"}
    {"from": [-4, -3, -4], "size": [2, 2, 3], "color": "p"}
    {"from": [-4, 2, -5], "size": [3, 1, 1], "color": "s"}
    {"from": [-1, 1, -4], "size": [2, 2, 3], "color": "p"}
    {"from": [-1, -3, -4], "size": [2, 2, 3], "color": "p"}
    {"from": [-1, 2, -5], "size": [3, 1, 1], "color": "s"}
    {"from": [4, 1, -4], "size": [2, 2, 3], "color": "p"}
    {"from": [4, -3, -4], "size": [2, 2, 3], "color": "p"}
    {"from": [4, 2, -5], "size": [3, 1, 1], "color": "s"}

@Model/sf/crawler_charge
palette = sf
unit = 0.125
blocks:
    {"from": [-5, -2, -2], "size": [10, 4, 3], "color": "p"}
    {"from": [-3, -2, 1], "size": [6, 4, 3], "color": "f"}
    {"from": [-2, -1, 4], "size": [4, 2, 1], "color": "p"}
    {"from": [2, 0, 2], "size": [5, 2, 1], "color": "y"}
    {"from": [-2, 2, 1], "size": [4, 1, 2], "color": "y"}
    {"from": [-4, -2, -3], "size": [8, 1, 1], "color": "s"}
    {"from": [-5, 1, -4], "size": [2, 2, 3], "color": "p"}
    {"from": [-5, -3, -4], "size": [2, 2, 3], "color": "p"}
    {"from": [-5, 2, -5], "size": [3, 1, 1], "color": "s"}
    {"from": [0, 1, -4], "size": [2, 2, 3], "color": "p"}
    {"from": [0, -3, -4], "size": [2, 2, 3], "color": "p"}
    {"from": [0, 2, -5], "size": [3, 1, 1], "color": "s"}
    {"from": [3, 1, -4], "size": [2, 2, 3], "color": "p"}
    {"from": [3, -3, -4], "size": [2, 2, 3], "color": "p"}
    {"from": [3, 2, -5], "size": [3, 1, 1], "color": "s"}
    {"from": [6, 0, 1], "size": [2, 2, 3], "color": "o"}
    {"from": [7, 0, 2], "size": [2, 2, 1], "color": "y"}

@Model/sf/crawler_hit
palette = sf
unit = 0.125
blocks:
    {"from": [-5, -2, -2], "size": [10, 4, 3], "color": "w"}
    {"from": [-3, -2, 1], "size": [6, 4, 3], "color": "f"}
    {"from": [-2, -1, 4], "size": [4, 2, 1], "color": "w"}
    {"from": [2, 0, 2], "size": [5, 2, 1], "color": "r"}
    {"from": [-2, 2, 1], "size": [4, 1, 2], "color": "r"}
    {"from": [-4, -2, -3], "size": [8, 1, 1], "color": "s"}
    {"from": [-5, 1, -4], "size": [2, 2, 3], "color": "w"}
    {"from": [-5, -3, -4], "size": [2, 2, 3], "color": "w"}
    {"from": [-5, 2, -5], "size": [3, 1, 1], "color": "s"}
    {"from": [0, 1, -4], "size": [2, 2, 3], "color": "w"}
    {"from": [0, -3, -4], "size": [2, 2, 3], "color": "w"}
    {"from": [0, 2, -5], "size": [3, 1, 1], "color": "s"}
    {"from": [3, 1, -4], "size": [2, 2, 3], "color": "w"}
    {"from": [3, -3, -4], "size": [2, 2, 3], "color": "w"}
    {"from": [3, 2, -5], "size": [3, 1, 1], "color": "s"}

@Model/sf/pilot_duck
palette = sf
unit = 0.1
blocks:
    {"from": [-4, -2, 0], "size": [7, 4, 1], "color": "s"}
    {"from": [-3, -2, 1], "size": [5, 4, 2], "color": "h"}
    {"from": [-3, -2, 3], "size": [6, 4, 2], "color": "w"}
    {"from": [-5, -2, 2], "size": [2, 4, 3], "color": "o"}
    {"from": [-4, -1, 5], "size": [6, 3, 2], "color": "w"}
    {"from": [-3, -2, 7], "size": [4, 4, 1], "color": "a"}
    {"from": [-3, 2, 5], "size": [5, 1, 2], "color": "d"}
    {"from": [-2, 3, 5], "size": [4, 1, 1], "color": "c"}
    {"from": [-3, -3, 5], "size": [5, 1, 2], "color": "d"}
    {"from": [-2, -4, 5], "size": [4, 1, 1], "color": "c"}
    {"from": [2, -2, 3], "size": [3, 4, 1], "color": "o"}

@Model/sf/pilot_duck_hit
palette = sf
unit = 0.1
blocks:
    {"from": [-4, -2, 0], "size": [7, 4, 1], "color": "w"}
    {"from": [-3, -2, 1], "size": [5, 4, 2], "color": "w"}
    {"from": [-3, -2, 3], "size": [6, 4, 2], "color": "w"}
    {"from": [-5, -2, 2], "size": [2, 4, 3], "color": "w"}
    {"from": [-4, -1, 5], "size": [6, 3, 2], "color": "w"}
    {"from": [-3, -2, 7], "size": [4, 4, 1], "color": "w"}
    {"from": [-3, 2, 5], "size": [5, 1, 2], "color": "w"}
    {"from": [-2, 3, 5], "size": [4, 1, 1], "color": "v"}
    {"from": [-3, -3, 5], "size": [5, 1, 2], "color": "w"}
    {"from": [-2, -4, 5], "size": [4, 1, 1], "color": "v"}
    {"from": [2, -2, 3], "size": [3, 4, 1], "color": "w"}


@Model/sf/drone_charge
palette = sf
unit = 0.125
blocks:
    {"from": [-3, -2, -2], "size": [6, 4, 4], "color": "h"}
    {"from": [-2, -2, 2], "size": [4, 4, 1], "color": "s"}
    {"from": [-6, -2, -1], "size": [3, 4, 2], "color": "p"}
    {"from": [3, -2, -1], "size": [3, 4, 2], "color": "p"}
    {"from": [-7, -1, -2], "size": [1, 2, 4], "color": "s"}
    {"from": [6, -1, -2], "size": [1, 2, 4], "color": "s"}
    {"from": [-5, -1, -2], "size": [2, 2, 1], "color": "k"}
    {"from": [3, -1, -2], "size": [2, 2, 1], "color": "k"}
    {"from": [-2, -3, -1], "size": [4, 1, 3], "color": "s"}
    {"from": [-1, -4, 0], "size": [2, 1, 1], "color": "y"}
    {"from": [-5, -3, 0], "size": [1, 1, 1], "color": "y"}
    {"from": [4, -3, 0], "size": [1, 1, 1], "color": "y"}
    {"from": [-2, 2, -1], "size": [4, 1, 3], "color": "s"}
    {"from": [-1, 3, 0], "size": [2, 1, 1], "color": "y"}
    {"from": [-5, 2, 0], "size": [1, 1, 1], "color": "y"}
    {"from": [4, 2, 0], "size": [1, 1, 1], "color": "y"}
    {"from": [-5, -1, -3], "size": [2, 2, 1], "color": "y"}
    {"from": [3, -1, -3], "size": [2, 2, 1], "color": "y"}
    {"from": [-4, 2, 3], "size": [8, 1, 1], "color": "y"}

@Model/sf/skimmer_charge
palette = sf
unit = 0.125
blocks:
    {"from": [-3, -2, -2], "size": [6, 4, 4], "color": "F"}
    {"from": [-2, -2, 2], "size": [4, 4, 1], "color": "y"}
    {"from": [-2, 2, 0], "size": [1, 1, 1], "color": "y"}
    {"from": [1, 2, 0], "size": [1, 1, 1], "color": "y"}
    {"from": [-1, -2, -3], "size": [2, 4, 1], "color": "E"}
    {"from": [-8, -1, 0], "size": [5, 2, 1], "color": "y"}
    {"from": [3, -1, 0], "size": [5, 2, 1], "color": "y"}
    {"from": [-4, 2, 3], "size": [8, 1, 1], "color": "y"}

@Model/sf/forge_sentry_charge
palette = sf
unit = 0.125
blocks:
    {"from": [-4, -2, -2], "size": [8, 4, 4], "color": "H"}
    {"from": [-2, -2, 2], "size": [4, 4, 1], "color": "N"}
    {"from": [-6, -1, -1], "size": [2, 2, 2], "color": "G"}
    {"from": [4, -1, -1], "size": [2, 2, 2], "color": "G"}
    {"from": [-2, 2, -1], "size": [4, 1, 2], "color": "y"}
    {"from": [-1, 3, 0], "size": [2, 1, 1], "color": "y"}
    {"from": [-4, 2, 3], "size": [8, 1, 1], "color": "y"}

@Model/sf/bonus_hatch
palette = sf
unit = 0.25
blocks:
    {"from": [-5, -1, 0], "size": [2, 3, 12], "color": "B"}
    {"from": [3, -1, 0], "size": [2, 3, 12], "color": "B"}
    {"from": [-5, -1, 12], "size": [10, 3, 2], "color": "F"}
    {"from": [-3, -1, 1], "size": [6, 1, 11], "color": "D"}
    {"from": [-4, 2, 2], "size": [1, 1, 9], "color": "p"}
    {"from": [3, 2, 2], "size": [1, 1, 9], "color": "p"}
    {"from": [-1, 1, 5], "size": [2, 1, 3], "color": "p"}

@Model/sf/overcharge_cell
palette = sf
unit = 0.125
blocks:
    {"from": [-3, -2, 0], "size": [6, 4, 2], "color": "s"}
    {"from": [-2, -1, 2], "size": [4, 2, 5], "color": "y"}
    {"from": [-3, -2, 7], "size": [6, 4, 2], "color": "w"}

@Model/sf/armor_cell
palette = sf
unit = 0.125
blocks:
    {"from": [-4, -2, 0], "size": [8, 4, 2], "color": "s"}
    {"from": [-3, -2, 2], "size": [6, 4, 6], "color": "w"}
    {"from": [-2, 2, 3], "size": [4, 1, 4], "color": "c"}
    {"from": [-4, -1, 3], "size": [1, 2, 4], "color": "p"}
    {"from": [3, -1, 3], "size": [1, 2, 4], "color": "p"}

@Model/sf/upgrade_pedestal
palette = sf
unit = 0.25
blocks:
    {"from": [-6, -4, 0], "size": [12, 8, 1], "color": "f"}
    {"from": [-5, -3, 1], "size": [10, 6, 2], "color": "s"}
    {"from": [-6, -4, 3], "size": [12, 8, 1], "color": "w"}
    {"from": [-4, 4, 1], "size": [8, 1, 1], "color": "c"}

@Model/sf/garden_pedestal
palette = sf
unit = 0.25
blocks:
    {"from": [-6, -4, 0], "size": [12, 8, 1], "color": "f"}
    {"from": [-5, -3, 1], "size": [10, 6, 2], "color": "s"}
    {"from": [-6, -4, 3], "size": [12, 8, 1], "color": "w"}
    {"from": [-4, 4, 1], "size": [8, 1, 1], "color": "A"}

@Model/sf/tunnel_arrow
palette = sf
unit = 0.125
blocks:
    {"from": [-1, 0, 4], "size": [2, 1, 6], "color": "c"}
    {"from": [-4, 0, 4], "size": [8, 1, 1], "color": "c"}
    {"from": [-3, 0, 3], "size": [6, 1, 1], "color": "c"}
    {"from": [-2, 0, 2], "size": [4, 1, 1], "color": "c"}
    {"from": [-1, 0, 1], "size": [2, 1, 1], "color": "c"}
    {"from": [-5, -1, 0], "size": [10, 1, 12], "color": "f"}


@Model/sf/pilot_hang0
palette = sf
unit = 0.125
blocks:
    {"from": [-2, -2, 4], "size": [5, 4, 5], "color": "w"}
    {"from": [-2, -2, 4], "size": [5, 4, 1], "color": "k"}
    {"from": [-2, -1, 9], "size": [4, 2, 1], "color": "s"}
    {"from": [-3, -2, 10], "size": [6, 4, 3], "color": "w"}
    {"from": [-2, -2, 13], "size": [4, 4, 1], "color": "a"}
    {"from": [-4, -2, 5], "size": [2, 4, 4], "color": "o"}
    {"from": [-5, -1, 5], "size": [1, 2, 3], "color": "s"}
    {"from": [-4, -1, 4], "size": [2, 2, 1], "color": "k"}
    {"from": [-2, -1, 14], "size": [1, 1, 1], "color": "s"}
    {"from": [-2, -3, 10], "size": [5, 1, 3], "color": "d"}
    {"from": [-1, -4, 11], "size": [4, 1, 1], "color": "c"}
    {"from": [-1, -3, 7], "size": [2, 1, 2], "color": "h"}
    {"from": [-1, -4, 8], "size": [1, 1, 1], "color": "c"}
    {"from": [1, -3, 6], "size": [1, 1, 1], "color": "o"}
    {"from": [-2, 2, 10], "size": [5, 1, 3], "color": "d"}
    {"from": [-1, 3, 11], "size": [4, 1, 1], "color": "c"}
    {"from": [-1, 2, 7], "size": [2, 1, 2], "color": "h"}
    {"from": [-1, 3, 8], "size": [1, 1, 1], "color": "c"}
    {"from": [1, 2, 6], "size": [1, 1, 1], "color": "o"}
    {"from": [-1, -1, 1], "size": [2, 3, 3], "color": "h"}
    {"from": [-1, -2, 2], "size": [2, 1, 1], "color": "a"}
    {"from": [-1, -2, 0], "size": [3, 4, 1], "color": "s"}
    {"from": [0, 1, 0], "size": [2, 1, 1], "color": "o"}
    {"from": [0, -1, 1], "size": [2, 3, 3], "color": "h"}
    {"from": [0, -2, 2], "size": [2, 1, 1], "color": "a"}
    {"from": [0, -2, 0], "size": [3, 4, 1], "color": "s"}
    {"from": [1, 1, 0], "size": [2, 1, 1], "color": "o"}
    {"from": [1,-2,8], "size": [2,4,2], "color": "o"}
    {"from": [2,-2,7], "size": [3,4,2], "color": "w"}
    {"from": [4,-2,7], "size": [1,4,2], "color": "k"}
    {"from": [-4, -3, 9], "size": [2, 6, 7], "color": "w"}
    {"from": [-4, -3, 16], "size": [3, 6, 2], "color": "J"}
    {"from": [-3, -3, 18], "size": [3, 6, 1], "color": "c"}


@Model/sf/pilot_hang0_hit
palette = sf
unit = 0.125
blocks:
    {"from": [-2, -2, 4], "size": [5, 4, 5], "color": "o"}
    {"from": [-2, -2, 4], "size": [5, 4, 1], "color": "k"}
    {"from": [-2, -1, 9], "size": [4, 2, 1], "color": "o"}
    {"from": [-3, -2, 10], "size": [6, 4, 3], "color": "o"}
    {"from": [-2, -2, 13], "size": [4, 4, 1], "color": "a"}
    {"from": [-4, -2, 5], "size": [2, 4, 4], "color": "o"}
    {"from": [-5, -1, 5], "size": [1, 2, 3], "color": "o"}
    {"from": [-4, -1, 4], "size": [2, 2, 1], "color": "k"}
    {"from": [-2, -1, 14], "size": [1, 1, 1], "color": "o"}
    {"from": [-2, -3, 10], "size": [5, 1, 3], "color": "d"}
    {"from": [-1, -4, 11], "size": [4, 1, 1], "color": "c"}
    {"from": [-1, -3, 7], "size": [2, 1, 2], "color": "o"}
    {"from": [-1, -4, 8], "size": [1, 1, 1], "color": "c"}
    {"from": [1, -3, 6], "size": [1, 1, 1], "color": "o"}
    {"from": [-2, 2, 10], "size": [5, 1, 3], "color": "d"}
    {"from": [-1, 3, 11], "size": [4, 1, 1], "color": "c"}
    {"from": [-1, 2, 7], "size": [2, 1, 2], "color": "o"}
    {"from": [-1, 3, 8], "size": [1, 1, 1], "color": "c"}
    {"from": [1, 2, 6], "size": [1, 1, 1], "color": "o"}
    {"from": [-1, -1, 1], "size": [2, 3, 3], "color": "o"}
    {"from": [-1, -2, 2], "size": [2, 1, 1], "color": "a"}
    {"from": [-1, -2, 0], "size": [3, 4, 1], "color": "o"}
    {"from": [0, 1, 0], "size": [2, 1, 1], "color": "o"}
    {"from": [0, -1, 1], "size": [2, 3, 3], "color": "o"}
    {"from": [0, -2, 2], "size": [2, 1, 1], "color": "a"}
    {"from": [0, -2, 0], "size": [3, 4, 1], "color": "o"}
    {"from": [1, 1, 0], "size": [2, 1, 1], "color": "o"}
    {"from": [1,-2,8], "size": [2,4,2], "color": "o"}
    {"from": [2,-2,7], "size": [3,4,2], "color": "w"}
    {"from": [4,-2,7], "size": [1,4,2], "color": "k"}
    {"from": [-4, -3, 9], "size": [2, 6, 7], "color": "w"}
    {"from": [-4, -3, 16], "size": [3, 6, 2], "color": "J"}
    {"from": [-3, -3, 18], "size": [3, 6, 1], "color": "c"}


@Model/sf/pilot_hang1
palette = sf
unit = 0.125
blocks:
    {"from": [-2, -2, 4], "size": [5, 4, 5], "color": "w"}
    {"from": [-2, -2, 4], "size": [5, 4, 1], "color": "k"}
    {"from": [-2, -1, 9], "size": [4, 2, 1], "color": "s"}
    {"from": [-3, -2, 10], "size": [6, 4, 3], "color": "w"}
    {"from": [-2, -2, 13], "size": [4, 4, 1], "color": "a"}
    {"from": [-4, -2, 5], "size": [2, 4, 4], "color": "o"}
    {"from": [-5, -1, 5], "size": [1, 2, 3], "color": "s"}
    {"from": [-4, -1, 4], "size": [2, 2, 1], "color": "k"}
    {"from": [-2, -1, 14], "size": [1, 1, 1], "color": "s"}
    {"from": [-2, -3, 10], "size": [5, 1, 3], "color": "d"}
    {"from": [-1, -4, 11], "size": [4, 1, 1], "color": "c"}
    {"from": [-1, -3, 7], "size": [2, 1, 2], "color": "h"}
    {"from": [-1, -4, 8], "size": [1, 1, 1], "color": "c"}
    {"from": [1, -3, 6], "size": [1, 1, 1], "color": "o"}
    {"from": [-2, 2, 10], "size": [5, 1, 3], "color": "d"}
    {"from": [-1, 3, 11], "size": [4, 1, 1], "color": "c"}
    {"from": [-1, 2, 7], "size": [2, 1, 2], "color": "h"}
    {"from": [-1, 3, 8], "size": [1, 1, 1], "color": "c"}
    {"from": [1, 2, 6], "size": [1, 1, 1], "color": "o"}
    {"from": [-3, -1, 1], "size": [2, 3, 3], "color": "h"}
    {"from": [-3, -2, 2], "size": [2, 1, 1], "color": "a"}
    {"from": [-3, -2, 0], "size": [3, 4, 1], "color": "s"}
    {"from": [-2, 1, 0], "size": [2, 1, 1], "color": "o"}
    {"from": [2, -1, 1], "size": [2, 3, 3], "color": "h"}
    {"from": [2, -2, 2], "size": [2, 1, 1], "color": "a"}
    {"from": [2, -2, 0], "size": [3, 4, 1], "color": "s"}
    {"from": [3, 1, 0], "size": [2, 1, 1], "color": "o"}
    {"from": [1,-2,8], "size": [2,4,2], "color": "o"}
    {"from": [2,-2,7], "size": [3,4,2], "color": "w"}
    {"from": [4,-2,7], "size": [1,4,2], "color": "k"}
    {"from": [-4, -3, 9], "size": [2, 6, 7], "color": "w"}
    {"from": [-4, -3, 16], "size": [3, 6, 2], "color": "J"}
    {"from": [-3, -3, 18], "size": [3, 6, 1], "color": "c"}


@Model/sf/pilot_hang1_hit
palette = sf
unit = 0.125
blocks:
    {"from": [-2, -2, 4], "size": [5, 4, 5], "color": "o"}
    {"from": [-2, -2, 4], "size": [5, 4, 1], "color": "k"}
    {"from": [-2, -1, 9], "size": [4, 2, 1], "color": "o"}
    {"from": [-3, -2, 10], "size": [6, 4, 3], "color": "o"}
    {"from": [-2, -2, 13], "size": [4, 4, 1], "color": "a"}
    {"from": [-4, -2, 5], "size": [2, 4, 4], "color": "o"}
    {"from": [-5, -1, 5], "size": [1, 2, 3], "color": "o"}
    {"from": [-4, -1, 4], "size": [2, 2, 1], "color": "k"}
    {"from": [-2, -1, 14], "size": [1, 1, 1], "color": "o"}
    {"from": [-2, -3, 10], "size": [5, 1, 3], "color": "d"}
    {"from": [-1, -4, 11], "size": [4, 1, 1], "color": "c"}
    {"from": [-1, -3, 7], "size": [2, 1, 2], "color": "o"}
    {"from": [-1, -4, 8], "size": [1, 1, 1], "color": "c"}
    {"from": [1, -3, 6], "size": [1, 1, 1], "color": "o"}
    {"from": [-2, 2, 10], "size": [5, 1, 3], "color": "d"}
    {"from": [-1, 3, 11], "size": [4, 1, 1], "color": "c"}
    {"from": [-1, 2, 7], "size": [2, 1, 2], "color": "o"}
    {"from": [-1, 3, 8], "size": [1, 1, 1], "color": "c"}
    {"from": [1, 2, 6], "size": [1, 1, 1], "color": "o"}
    {"from": [-3, -1, 1], "size": [2, 3, 3], "color": "o"}
    {"from": [-3, -2, 2], "size": [2, 1, 1], "color": "a"}
    {"from": [-3, -2, 0], "size": [3, 4, 1], "color": "o"}
    {"from": [-2, 1, 0], "size": [2, 1, 1], "color": "o"}
    {"from": [2, -1, 1], "size": [2, 3, 3], "color": "o"}
    {"from": [2, -2, 2], "size": [2, 1, 1], "color": "a"}
    {"from": [2, -2, 0], "size": [3, 4, 1], "color": "o"}
    {"from": [3, 1, 0], "size": [2, 1, 1], "color": "o"}
    {"from": [1,-2,8], "size": [2,4,2], "color": "o"}
    {"from": [2,-2,7], "size": [3,4,2], "color": "w"}
    {"from": [4,-2,7], "size": [1,4,2], "color": "k"}
    {"from": [-4, -3, 9], "size": [2, 6, 7], "color": "w"}
    {"from": [-4, -3, 16], "size": [3, 6, 2], "color": "J"}
    {"from": [-3, -3, 18], "size": [3, 6, 1], "color": "c"}


@Model/sf/rift_gate0
palette = sf
unit = 0.125
blocks:
    {"from": [-12, -4, 0], "size": [3, 8, 24], "color": "N"}
    {"from": [9, -4, 0], "size": [3, 8, 24], "color": "N"}
    {"from": [-12, -4, 24], "size": [24, 8, 3], "color": "s"}
    {"from": [-10, -4, 0], "size": [20, 8, 1], "color": "J"}
    {"from": [-10, 4, 2], "size": [1, 1, 21], "color": "c"}
    {"from": [9, 4, 2], "size": [1, 1, 21], "color": "c"}
    {"from": [-9, 4, 24], "size": [18, 1, 1], "color": "c"}
    {"from": [-8, 3, 4], "size": [1, 1, 3], "color": "K"}
    {"from": [-8, 3, 10], "size": [1, 1, 3], "color": "K"}
    {"from": [-8, 3, 16], "size": [1, 1, 3], "color": "K"}
    {"from": [7, 3, 4], "size": [1, 1, 3], "color": "K"}
    {"from": [7, 3, 10], "size": [1, 1, 3], "color": "K"}
    {"from": [7, 3, 16], "size": [1, 1, 3], "color": "K"}
    {"from": [-6, 3, 21], "size": [4, 1, 1], "color": "c"}
    {"from": [3, 3, 19], "size": [3, 1, 1], "color": "w"}


@Model/sf/rift_gate1
palette = sf
unit = 0.125
blocks:
    {"from": [-12, -4, 0], "size": [3, 8, 24], "color": "N"}
    {"from": [9, -4, 0], "size": [3, 8, 24], "color": "N"}
    {"from": [-12, -4, 24], "size": [24, 8, 3], "color": "s"}
    {"from": [-10, -4, 0], "size": [20, 8, 1], "color": "J"}
    {"from": [-10, 4, 2], "size": [1, 1, 21], "color": "c"}
    {"from": [9, 4, 2], "size": [1, 1, 21], "color": "c"}
    {"from": [-9, 4, 24], "size": [18, 1, 1], "color": "c"}
    {"from": [-7, 3, 6], "size": [1, 1, 3], "color": "p"}
    {"from": [-7, 3, 12], "size": [1, 1, 3], "color": "p"}
    {"from": [-7, 3, 18], "size": [1, 1, 3], "color": "p"}
    {"from": [6, 3, 6], "size": [1, 1, 3], "color": "p"}
    {"from": [6, 3, 12], "size": [1, 1, 3], "color": "p"}
    {"from": [6, 3, 18], "size": [1, 1, 3], "color": "p"}
    {"from": [-6, 3, 20], "size": [4, 1, 1], "color": "c"}
    {"from": [3, 3, 20], "size": [3, 1, 1], "color": "w"}

@Model/sf/portal_mote
palette = sf
unit = 0.125
blocks:
    {"from":[-1,-1,-1],"size":[2,2,2],"color":"c"}
    {"from":[-2,0,0],"size":[4,1,1],"color":"w"}
    {"from":[0,0,-2],"size":[1,1,4],"color":"K"}

@Model/sf/rift_arrival
palette = sf
unit = 0.125
blocks:
    {"from":[-9,-1,-5],"size":[1,2,10],"color":"c"}
    {"from":[8,-1,-5],"size":[1,2,10],"color":"c"}
    {"from":[-5,-1,8],"size":[10,2,1],"color":"c"}
    {"from":[-5,-1,-9],"size":[10,2,1],"color":"c"}
    {"from":[-7,-1,5],"size":[2,2,2],"color":"w"}
    {"from":[5,-1,5],"size":[2,2,2],"color":"w"}
    {"from":[-7,-1,-7],"size":[2,2,2],"color":"p"}
    {"from":[5,-1,-7],"size":[2,2,2],"color":"p"}


@Model/sf/health_container
palette = sf
unit = 0.125
blocks:
    {"from": [-5, -2, 1], "size": [10, 4, 8], "color": "s"}
    {"from": [-4, 2, 2], "size": [8, 1, 6], "color": "v"}
    {"from": [-3, 3, 5], "size": [2, 1, 2], "color": "w"}
    {"from": [1, 3, 5], "size": [2, 1, 2], "color": "w"}
    {"from": [-2, 3, 3], "size": [4, 1, 3], "color": "p"}
    {"from": [-1, 3, 2], "size": [2, 1, 2], "color": "p"}


@Model/sf/oneup
palette = sf
unit = 0.125
blocks:
    {"from": [-4, -2, 0], "size": [8, 4, 2], "color": "s"}
    {"from": [-4, -2, 2], "size": [8, 4, 7], "color": "A"}
    {"from": [-3, 2, 3], "size": [6, 1, 5], "color": "f"}
    {"from": [0, 3, 4], "size": [1, 1, 4], "color": "w"}
    {"from": [-1, 3, 6], "size": [1, 1, 1], "color": "w"}
    {"from": [-1, 3, 3], "size": [3, 1, 1], "color": "w"}
    {"from": [-3, -2, 9], "size": [6, 4, 1], "color": "c"}


@Model/sf/curator_star
palette = sf
unit = 0.125
blocks:
    {"from": [-3, -1, -1], "size": [6, 2, 2], "color": "p"}
    {"from": [-1, -1, -3], "size": [2, 2, 6], "color": "c"}
    {"from": [-1, 1, -1], "size": [2, 1, 2], "color": "w"}


@Model/sf/curator_warning
palette = sf
unit = 0.125
blocks:
    {"from": [-7, -1, 0], "size": [14, 2, 1], "color": "p"}
    {"from": [-7, -1, 0], "size": [1, 2, 5], "color": "v"}
    {"from": [6, -1, 0], "size": [1, 2, 5], "color": "v"}
    {"from": [-1, 0, 0], "size": [2, 1, 2], "color": "w"}


@Model/sf/curator_pillar
palette = sf
unit = 0.125
blocks:
    {"from": [-7, -2, 0], "size": [14, 4, 1], "color": "p"}
    {"from": [-2, -1, 1], "size": [4, 2, 30], "color": "v"}
    {"from": [-1, 1, 2], "size": [2, 1, 28], "color": "c"}
    {"from": [-5, -1, 4], "size": [1, 2, 21], "color": "p"}
    {"from": [4, -1, 4], "size": [1, 2, 21], "color": "p"}


@Model/sf/observatory_pillar
palette = sf
unit = 0.25
blocks:
    {"from": [-4, -2, 0], "size": [8, 4, 2], "color": "s"}
    {"from": [-2, -1, 2], "size": [4, 2, 28], "color": "N"}
    {"from": [-3, -2, 29], "size": [6, 4, 2], "color": "v"}


@Model/sf/star_lens
palette = sf
unit = 0.25
blocks:
    {"from": [-16, -1, 0], "size": [32, 2, 2], "color": "v"}
    {"from": [-16, -1, 0], "size": [2, 2, 18], "color": "N"}
    {"from": [14, -1, 0], "size": [2, 2, 18], "color": "N"}
    {"from": [-12, -1, 18], "size": [24, 2, 2], "color": "p"}
    {"from": [-1, 0, 2], "size": [2, 1, 14], "color": "c"}
    {"from": [-7, 0, 8], "size": [14, 1, 2], "color": "c"}


@Model/sf/curator_closed
palette = sf
unit = 0.125
blocks:
    {"from": [-8, -4, 4], "size": [16, 8, 14], "color": "N"}
    {"from": [-6, -5, 6], "size": [12, 1, 10], "color": "s"}
    {"from": [-6, 4, 6], "size": [12, 1, 10], "color": "N"}
    {"from": [-3, 5, 9], "size": [6, 1, 5], "color": "c"}
    {"from": [-14, -1, 4], "size": [2, 2, 17], "color": "v"}
    {"from": [12, -1, 4], "size": [2, 2, 17], "color": "v"}
    {"from": [-10, -1, 22], "size": [20, 2, 2], "color": "p"}
    {"from": [-10, -1, 1], "size": [20, 2, 2], "color": "p"}
    {"from": [-12, -1, 20], "size": [3, 2, 3], "color": "c"}
    {"from": [9, -1, 20], "size": [3, 2, 3], "color": "c"}
    {"from": [-12, -1, 2], "size": [3, 2, 3], "color": "c"}
    {"from": [9, -1, 2], "size": [3, 2, 3], "color": "c"}
    {"from": [-6, 5, 10], "size": [12, 1, 3], "color": "v"}
    {"from": [-1, 5, 6], "size": [2, 1, 10], "color": "v"}


@Model/sf/curator_open
palette = sf
unit = 0.125
blocks:
    {"from": [-8, -4, 4], "size": [16, 8, 14], "color": "N"}
    {"from": [-6, -5, 6], "size": [12, 1, 10], "color": "s"}
    {"from": [-6, 4, 6], "size": [12, 1, 10], "color": "p"}
    {"from": [-3, 5, 9], "size": [6, 1, 5], "color": "c"}
    {"from": [-14, -1, 4], "size": [2, 2, 17], "color": "v"}
    {"from": [12, -1, 4], "size": [2, 2, 17], "color": "v"}
    {"from": [-10, -1, 22], "size": [20, 2, 2], "color": "p"}
    {"from": [-10, -1, 1], "size": [20, 2, 2], "color": "p"}
    {"from": [-12, -1, 20], "size": [3, 2, 3], "color": "c"}
    {"from": [9, -1, 20], "size": [3, 2, 3], "color": "c"}
    {"from": [-12, -1, 2], "size": [3, 2, 3], "color": "c"}
    {"from": [9, -1, 2], "size": [3, 2, 3], "color": "c"}


@Model/sf/curator_pulse
palette = sf
unit = 0.125
blocks:
    {"from": [-8, -4, 4], "size": [16, 8, 14], "color": "N"}
    {"from": [-6, -5, 6], "size": [12, 1, 10], "color": "s"}
    {"from": [-6, 4, 6], "size": [12, 1, 10], "color": "p"}
    {"from": [-3, 5, 9], "size": [6, 1, 5], "color": "w"}
    {"from": [-14, -1, 4], "size": [2, 2, 17], "color": "v"}
    {"from": [12, -1, 4], "size": [2, 2, 17], "color": "v"}
    {"from": [-10, -1, 22], "size": [20, 2, 2], "color": "p"}
    {"from": [-10, -1, 1], "size": [20, 2, 2], "color": "p"}
    {"from": [-12, -1, 20], "size": [3, 2, 3], "color": "c"}
    {"from": [9, -1, 20], "size": [3, 2, 3], "color": "c"}
    {"from": [-12, -1, 2], "size": [3, 2, 3], "color": "c"}
    {"from": [9, -1, 2], "size": [3, 2, 3], "color": "c"}


@Model/sf/curator_hit
palette = sf
unit = 0.125
blocks:
    {"from": [-8, -4, 4], "size": [16, 8, 14], "color": "N"}
    {"from": [-6, -5, 6], "size": [12, 1, 10], "color": "s"}
    {"from": [-6, 4, 6], "size": [12, 1, 10], "color": "w"}
    {"from": [-3, 5, 9], "size": [6, 1, 5], "color": "c"}
    {"from": [-14, -1, 4], "size": [2, 2, 17], "color": "v"}
    {"from": [12, -1, 4], "size": [2, 2, 17], "color": "v"}
    {"from": [-10, -1, 22], "size": [20, 2, 2], "color": "p"}
    {"from": [-10, -1, 1], "size": [20, 2, 2], "color": "p"}
    {"from": [-12, -1, 20], "size": [3, 2, 3], "color": "c"}
    {"from": [9, -1, 20], "size": [3, 2, 3], "color": "c"}
    {"from": [-12, -1, 2], "size": [3, 2, 3], "color": "c"}
    {"from": [9, -1, 2], "size": [3, 2, 3], "color": "c"}


@Model/sf/kepler_exterior
palette = sf
unit = 0.5
blocks:
    {"from": [-10, -4, -4], "size": [20, 8, 8], "color": "N"}
    {"from": [-12, -5, -2], "size": [24, 2, 4], "color": "s"}
    {"from": [-18, -1, -1], "size": [8, 2, 2], "color": "h"}
    {"from": [10, -1, -1], "size": [8, 2, 2], "color": "h"}
    {"from": [-26, -2, -8], "size": [8, 4, 18], "color": "J"}
    {"from": [18, -2, -8], "size": [8, 4, 18], "color": "J"}
    {"from": [-24, 2, -7], "size": [1, 1, 16], "color": "c"}
    {"from": [-20, 2, -7], "size": [1, 1, 16], "color": "G"}
    {"from": [20, 2, -7], "size": [1, 1, 16], "color": "p"}
    {"from": [24, 2, -7], "size": [1, 1, 16], "color": "c"}
    {"from": [-8, 4, -1], "size": [16, 1, 1], "color": "G"}
    {"from": [-6, 4, 1], "size": [4, 1, 2], "color": "c"}
    {"from": [2, 4, 1], "size": [4, 1, 2], "color": "p"}
    {"from": [-3, -2, 4], "size": [6, 4, 5], "color": "N"}
    {"from": [-1, -1, 9], "size": [2, 2, 9], "color": "s"}
    {"from": [-10, 1, -5], "size": [20, 9, 1], "color": "h"}
    {"from": [-3, 5, -4], "size": [6, 3, 3], "color": "v"}


@Model/sf/ark_dark
palette = sf
unit = 0.5
blocks:
    {"from": [-24, -4, -4], "size": [32, 8, 8], "color": "N"}
    {"from": [8, -3, -3], "size": [16, 6, 6], "color": "N"}
    {"from": [-28, -2, -2], "size": [4, 4, 4], "color": "s"}
    {"from": [24, -2, -2], "size": [4, 4, 4], "color": "s"}
    {"from": [-22, -5, -3], "size": [30, 1, 6], "color": "s"}
    {"from": [8, -4, -2], "size": [14, 1, 4], "color": "s"}
    {"from": [-26, 4, -5], "size": [32, 7, 1], "color": "h"}
    {"from": [6, 4, -5], "size": [20, 7, 1], "color": "h"}
    {"from": [-20, -2, 4], "size": [8, 4, 5], "color": "N"}
    {"from": [8, -2, 4], "size": [8, 4, 4], "color": "N"}
    {"from": [-18, -1, 9], "size": [2, 2, 6], "color": "s"}
    {"from": [-21, 4, -1], "size": [3, 1, 2], "color": "k"}
    {"from": [-15, 4, -1], "size": [3, 1, 2], "color": "k"}
    {"from": [-9, 4, -1], "size": [3, 1, 2], "color": "k"}
    {"from": [-3, 4, -1], "size": [3, 1, 2], "color": "k"}
    {"from": [3, 4, -1], "size": [3, 1, 2], "color": "k"}
    {"from": [9, 4, -1], "size": [3, 1, 2], "color": "k"}
    {"from": [15, 4, -1], "size": [3, 1, 2], "color": "k"}
    {"from": [21, 4, -1], "size": [3, 1, 2], "color": "k"}


@Model/sf/ark_lit
palette = sf
unit = 0.5
blocks:
    {"from": [-24, -4, -4], "size": [32, 8, 8], "color": "N"}
    {"from": [8, -3, -3], "size": [16, 6, 6], "color": "N"}
    {"from": [-28, -2, -2], "size": [4, 4, 4], "color": "s"}
    {"from": [24, -2, -2], "size": [4, 4, 4], "color": "s"}
    {"from": [-22, -5, -3], "size": [30, 1, 6], "color": "s"}
    {"from": [8, -4, -2], "size": [14, 1, 4], "color": "s"}
    {"from": [-26, 4, -5], "size": [32, 7, 1], "color": "h"}
    {"from": [6, 4, -5], "size": [20, 7, 1], "color": "h"}
    {"from": [-20, -2, 4], "size": [8, 4, 5], "color": "N"}
    {"from": [8, -2, 4], "size": [8, 4, 4], "color": "N"}
    {"from": [-18, -1, 9], "size": [2, 2, 6], "color": "s"}
    {"from": [-21, 4, -1], "size": [3, 1, 2], "color": "c"}
    {"from": [-15, 4, -1], "size": [3, 1, 2], "color": "c"}
    {"from": [-9, 4, -1], "size": [3, 1, 2], "color": "c"}
    {"from": [-3, 4, -1], "size": [3, 1, 2], "color": "c"}
    {"from": [3, 4, -1], "size": [3, 1, 2], "color": "c"}
    {"from": [9, 4, -1], "size": [3, 1, 2], "color": "c"}
    {"from": [15, 4, -1], "size": [3, 1, 2], "color": "c"}
    {"from": [21, 4, -1], "size": [3, 1, 2], "color": "c"}


@Model/sf/distant_ship
palette = sf
unit = 1
blocks:
    {"from": [-1, -1, -1], "size": [3, 3, 3], "color": "w"}

@Model/sf/pilot_present
palette = sf
unit = 0.125
blocks:
    {"from": [-2, -2, 4], "size": [5, 4, 5], "color": "w"}
    {"from": [-2, -2, 4], "size": [5, 4, 1], "color": "k"}
    {"from": [-2, -1, 9], "size": [4, 2, 1], "color": "s"}
    {"from": [-3, -2, 10], "size": [6, 4, 3], "color": "w"}
    {"from": [-2, -2, 13], "size": [4, 4, 1], "color": "a"}
    {"from": [-4, -2, 5], "size": [2, 4, 4], "color": "o"}
    {"from": [-5, -1, 5], "size": [1, 2, 3], "color": "s"}
    {"from": [-4, -1, 4], "size": [2, 2, 1], "color": "k"}
    {"from": [-2, -1, 14], "size": [1, 1, 1], "color": "s"}
    {"from": [-2, -3, 10], "size": [5, 1, 3], "color": "d"}
    {"from": [-1, -4, 11], "size": [4, 1, 1], "color": "c"}
    {"from": [-1, -3, 7], "size": [2, 1, 2], "color": "h"}
    {"from": [-1, -4, 8], "size": [1, 1, 1], "color": "c"}
    {"from": [1, -3, 6], "size": [1, 1, 1], "color": "o"}
    {"from": [-2, 2, 10], "size": [5, 1, 3], "color": "d"}
    {"from": [-1, 3, 11], "size": [4, 1, 1], "color": "c"}
    {"from": [-1, 2, 7], "size": [2, 1, 2], "color": "h"}
    {"from": [-1, 3, 8], "size": [1, 1, 1], "color": "c"}
    {"from": [1, 2, 6], "size": [1, 1, 1], "color": "o"}
    {"from": [-2, -1, 1], "size": [2, 3, 3], "color": "h"}
    {"from": [-2, -2, 2], "size": [2, 1, 1], "color": "a"}
    {"from": [-2, -2, 0], "size": [3, 4, 1], "color": "s"}
    {"from": [-1, 1, 0], "size": [2, 1, 1], "color": "o"}
    {"from": [1, -1, 1], "size": [2, 3, 3], "color": "h"}
    {"from": [1, -2, 2], "size": [2, 1, 1], "color": "a"}
    {"from": [1, -2, 0], "size": [3, 4, 1], "color": "s"}
    {"from": [-5, -2, 7], "size": [2, 4, 4], "color": "w"}
    {"from": [4, -2, 7], "size": [2, 4, 4], "color": "w"}
    {"from": [-5, -2, 11], "size": [2, 4, 2], "color": "o"}
    {"from": [4, -2, 11], "size": [2, 4, 2], "color": "o"}

@Model/sf/pilot_celebrate
palette = sf
unit = 0.125
blocks:
    {"from": [-2, -2, 4], "size": [5, 4, 5], "color": "w"}
    {"from": [-2, -2, 4], "size": [5, 4, 1], "color": "k"}
    {"from": [-2, -1, 9], "size": [4, 2, 1], "color": "s"}
    {"from": [-3, -2, 10], "size": [6, 4, 3], "color": "w"}
    {"from": [-2, -2, 13], "size": [4, 4, 1], "color": "a"}
    {"from": [-4, -2, 5], "size": [2, 4, 4], "color": "o"}
    {"from": [-5, -1, 5], "size": [1, 2, 3], "color": "s"}
    {"from": [-4, -1, 4], "size": [2, 2, 1], "color": "k"}
    {"from": [-2, -1, 14], "size": [1, 1, 1], "color": "s"}
    {"from": [-2, -3, 10], "size": [5, 1, 3], "color": "d"}
    {"from": [-1, -4, 11], "size": [4, 1, 1], "color": "c"}
    {"from": [-1, -3, 7], "size": [2, 1, 2], "color": "h"}
    {"from": [-1, -4, 8], "size": [1, 1, 1], "color": "c"}
    {"from": [1, -3, 6], "size": [1, 1, 1], "color": "o"}
    {"from": [-2, 2, 10], "size": [5, 1, 3], "color": "d"}
    {"from": [-1, 3, 11], "size": [4, 1, 1], "color": "c"}
    {"from": [-1, 2, 7], "size": [2, 1, 2], "color": "h"}
    {"from": [-1, 3, 8], "size": [1, 1, 1], "color": "c"}
    {"from": [1, 2, 6], "size": [1, 1, 1], "color": "o"}
    {"from": [-2, -1, 1], "size": [2, 3, 3], "color": "h"}
    {"from": [-2, -2, 2], "size": [2, 1, 1], "color": "a"}
    {"from": [-2, -2, 0], "size": [3, 4, 1], "color": "s"}
    {"from": [-1, 1, 0], "size": [2, 1, 1], "color": "o"}
    {"from": [1, -1, 1], "size": [2, 3, 3], "color": "h"}
    {"from": [1, -2, 2], "size": [2, 1, 1], "color": "a"}
    {"from": [1, -2, 0], "size": [3, 4, 1], "color": "s"}
    {"from": [-5, -2, 9], "size": [2, 4, 6], "color": "w"}
    {"from": [4, -2, 9], "size": [2, 4, 6], "color": "w"}
    {"from": [-5, -2, 15], "size": [3, 4, 2], "color": "o"}
    {"from": [3, -2, 15], "size": [3, 4, 2], "color": "o"}
    {"from": [-4, -2, 17], "size": [2, 4, 1], "color": "c"}
    {"from": [3, -2, 17], "size": [2, 4, 1], "color": "c"}

@Model/sf/discovery_star
palette = sf
unit = 0.125
blocks:
    {"from": [-3, -1, 0], "size": [7, 2, 1], "color": "y"}
    {"from": [0, -1, -3], "size": [1, 2, 7], "color": "y"}
    {"from": [-1, -1, -1], "size": [3, 2, 3], "color": "w"}
bonus_rooms.rune
@Logic/starfall
action build_bonus_room(kind):
    sector_id = kind
    level_map = kind == "archive" ? "orbit" : "foundry"
    world = {
        "width": kind == "observatory" ? 96: 72,
        "height": kind == "observatory" ? 28: 21,
        "depth": 20,
        "seed": 719,
        "biome": "meadow",
        "materials": [
            "sf/hull",
            "sf/edge",
            "sf/plasma",
            "sf/reactor",
            "sf/temple_stone",
            "sf/temple_trim"
        ],
        "cells": [],
        "spawn": player
    }
    world = voxel_world(
        world.width,
        world.height,
        world.depth,
        world.materials,
        {"seed": world.seed, "biome": world.biome, "spawn": world.spawn, "renderDistance": 128}
    )
    call deck 4, 14, 3, 2
    high = kind == "archive" ? 7 : 11
    call deck 18, 7, high, 2
    call deck 38, 7, high, 2
    call deck 45, 11, high+4, 6
    call deck 56, kind == "observatory" ? 36 : 12, 3, 2
    if kind == "archive":
        # Drop beyond the upgrade balcony, then search the far wall's shelf.
        call deck 64, 3, 7, 2
    world = voxel_fill(world,[3,5,1],[1,4,18],5)
    east_wall = kind == "observatory" ? 92 : 68
    world = voxel_fill(world,[east_wall,5,1],[1,4,18],5)
    world = voxel_fill(world,[4,1,1],[east_wall-4,1,18],5)
    scenery = []
    scenery = entity_group(scenery)
    for x in [8,20,32,44,56,65]:
        scenery.push({"x": x, "y": 3.5, "z": 3, "model": kind == "archive" ? "sf/truss": "sf/foundry_coil"})
    scenery.push({"x": 24, "y": 6.2, "z": high, "model": "sf/dash_gap_right"})
    scenery.push({"x": 50, "y": 4, "z": high + 4, "model": "sf/temple_altar"})
    pickups = [
        {
            "x": 51,
            "y": 7,
            "z": high + 4.5,
            "base": high + 4.5,
            "kind": kind == "archive" ? "capacitor": "armor",
            "model": kind == "archive" ? "sf/overcharge_cell": "sf/armor_cell",
            "visible": kind == "archive" ? !campaign.capacitor: !campaign.armor
        }
    ]
    pickups = entity_group(pickups)
    if kind == "archive":
        call place_oneup "archive",65,7.6
    portals = [
        {
            "x": 6,
            "y": 6.3,
            "z": 3,
            "kind": "bonus_return",
            "label": "RETURN TO STATION",
            "title": "KEPLER STATION",
            "model": "sf/shortcut_hatch",
            "visible": true
        },
        {
            "x": 51,
            "y": 6.3,
            "z": high + 4,
            "kind": "bonus_return",
            "label": "UPGRADE RECOVERED / RETURN TO STATION",
            "title": "KEPLER STATION",
            "model": "sf/shortcut_hatch",
            "visible": true
        }
    ]
    portals = entity_group(portals)
    enemies = entity_group()
    beacons = []
    beacons = entity_group(beacons)
    gravity_consoles = []
    if kind == "observatory":
        portals.push(
            {
                "x": 90,
                "y": 6.3,
                "z": 3,
                "kind": "bonus_return",
                "label": "RETURN TO STATION",
                "title": "KEPLER STATION",
                "model": "sf/rift_gate0",
                "visible": campaign.curator
            }
        )
        portals.push(
            {
                "x": 59,
                "y": 6.3,
                "z": 3,
                "kind": "bonus_return",
                "label": "RETREAT TO STATION",
                "title": "RETREAT TO STATION",
                "model": "sf/rift_gate0",
                "visible": true
            }
        )
        scenery.push(
            {
                "x": 54.5,
                "y": 6.2,
                "z": 15,
                "model": "sf/dash_gap_right",
                "title": "OPTIONAL: VOID CURATOR",
                "titleColor": 12813036
            }
        )
        beacons.push({"x": 63, "y": 7, "z": 3, "model": "sf/beacon", "active": false})
        for x in [65,74,83,91]:
            scenery.push({"x": x, "y": 3.5, "z": 3, "model": "sf/observatory_pillar"})
        scenery.push({"x": 81, "y": 3, "z": 10, "model": "sf/star_lens"})
        curator = {
            "x": 81,
            "y": 7,
            "z": 3.2,
            "hp": 16,
            "max_hp": 16,
            "hit_ticks": 0,
            "model": "sf/curator_closed",
            "visible": !campaign.curator
        }
        curator_warning = {
            "x": 68,
            "y": 8,
            "z": 3.02,
            "model": "sf/curator_warning",
            "visible": false
        }
        curator_clock = 0
        curator_phase = "dormant"
        gravity_consoles = [
            {"x": 12, "y": 6.3, "z": 3, "model": "sf/gravity_console"},
            {"x": 42, "y": 6.3, "z": high, "model": "sf/gravity_console"},
            {"x": 63, "y": 6.3, "z": 3, "model": "sf/gravity_console"}
        ]
    boss = {"visible": false}
    boss_warning = {"visible": false}
    rootheart.visible = false
    root_warning.visible = false
    forge_guardian.visible = false
    forge_warning.visible = false
    shuttle.visible = false
    magnet_fx.visible = false
    machinery = []
    gravity_low = false
    seal_shell = {"visible": false}
    ship.visible = false
    ship_flames = []
    player = {"x": 6, "y": 7, "z": 3, "angle": 0, "pitch": 0, "vz": 0}
    checkpoint = {"x": 6, "z": 3}
cinematics.rune
@Perspective/starfall_title_view
fov = 76

@Camera/starfall_flyover
duration = 36
loop = true
points = [
    {"x":58,"y":45,"height":17,"angle":280,"pitch":-9},
    {"x":66,"y":41,"height":14,"angle":267,"pitch":-7},
    {"x":73,"y":46,"height":18,"angle":255,"pitch":-11},
    {"x":64,"y":51,"height":20,"angle":270,"pitch":-13}
]

@Scene/starfall_title
map = orbit
things = ["title_props"]
camera = starfall_flyover
perspective = starfall_title_view
sky = {"seed":701,"zenith":"#030713","horizon":"#030713","cloud":"#030713","speed":0.01}
heading = STARFALL PROTOCOL
subtitle = ONE LAST FLIGHT. ONE LAST LIGHT.
prompt = ENTER / START: BEGIN EXPEDITION

@Logic/starfall
state:
    title_props = []
    cinema_ticks = 0
    intro_duration = 600
    ending_duration = 270
    credits_duration = 690
    cinema_skip_ready = false
    touch_ui_visible = false
    cinema_skip_hidden = true
    intro_lines = [
        "THE HELIOS ARK",
        "",
        "For generations, the Ark has carried",
        "the last human colony between the stars.",
        "",
        "Now its starcore is fading.",
        "In three cycles, the gardens go dark.",
        "Then the air runs out.",
        "",
        "One signal still answers: KEPLER STATION.",
        "An abandoned power foundry beyond",
        "the edge of the navigation charts.",
        "",
        "Its custodians have sealed the reactor.",
        "Its gardens have learned to hunt.",
        "",
        "You are the Ark's last salvage pilot.",
        "Wake the relays. Recover the starcore.",
        "Bring the light home."
    ]
    ending_lines = [
        "THE STARCORE IS HOME.",
        "",
        "Across the Helios Ark,",
        "dark windows wake with light.",
        "The gardens breathe again.",
        "",
        "One pilot. One impossible flight.",
        "One more dawn."
    ]
    credits_lines = [
        "STARFALL PROTOCOL",
        "",
        "GAME BY DAVE THOMAS",
        "",
        "DESIGN / CODE / WORLDS",
        "DAVE THOMAS",
        "",
        "BUILT WITH RUNE",
        "PIXEL-3D ENGINE",
        "",
        "THANK YOU FOR PLAYING",
        "",
        "EVERY LIGHT IS SOMEONE'S HOME.",
        "",
        "THE HELIOS ARK SAILS ON."
    ]

action build_title_fleet:
    title_props = [
        {"x": 64, "y": 16, "z": 10, "model": "sf/kepler_exterior"},
        {"x": 55, "y": 23, "z": 10, "model": "sf/ship_flight", "scale": 0.7}
    ]
    for i in range(0,72):
        title_props.push(
            {
                "x": 4 + i * 29 % 120,
                "y": 2 + i * 13 % 27,
                "z": 2 + i * 17 % 33,
                "model": "sf/star",
                "scale": i % 5 == 0 ? 1.5: 0.7
            }
        )

action prepare_space_scene:
    world = voxel_world(128, 64, 48, ["sf/hull"], {"renderDistance": 96})
    level_map = "orbit"
    scenery = [{"x": 45, "y": 14, "z": 12, "model": "sf/ark_dark"}]
    for i in range(0,72):
        scenery.push(
            {
                "x": 4 + i * 29 % 120,
                "y": 2 + i * 13 % 27,
                "z": 2 + i * 17 % 36,
                "model": "sf/star",
                "scale": i % 5 == 0 ? 1.5: 0.7
            }
        )
    portals = []
    pickups = []
    enemies = []
    beacons = []
    machinery = []
    gravity_consoles = []
    effects = []
    shots = []
    portal_aura = []
    arrival_ring.visible = false
    boss.visible = false
    boss_warning.visible = false
    rootheart.visible = false
    root_warning.visible = false
    forge_guardian.visible = false
    forge_warning.visible = false
    curator.visible = false
    curator_warning.visible = false
    shuttle.visible = false
    magnet_fx.visible = false
    seal_shell.visible = false
    avatar.visible = false
    rifle.visible = false
    muzzle.visible = false
    charge_fx.visible = false
    ghost.visible = false
    ship_flames = []
    camera = {"x": 64, "y": 45, "z": 14, "angle": 270, "pitch": 0}
    ship.angle = 0
    ship.dissolve = 0
    cinema_ticks = 0

action begin_intro:
    status = "intro"
    call prepare_space_scene
    ship.x = 54
    ship.y = 23
    ship.z = 12
    ship.scale = 1.2
    ship.visible = true
    ship.model = "sf/ship_flight"
    sound.play "sf_ship_launch"
    call sync_music
    call refresh_ui

action begin_landing:
    call build_station
    status = "landing"
    cinematic_ticks = 0
    cinema_skip_hidden = true
    ship.x = 2
    ship.y = 5.5
    ship.z = 15
    ship.scale = 1.2
    ship.angle = 0
    ship.dissolve = 0
    ship.visible = true
    ship.model = "sf/ship_flight"
    camera = {"x": 10, "y": 19, "z": 11, "angle": 270, "pitch": 0}
    sound.play "sf_ship_land"
    call ship_engine_view
    call sync_music
    call refresh_ui

action begin_homecoming:
    campaign.finished = true
    status = "ending"
    call prepare_space_scene
    ship.x = 82
    ship.y = 4
    ship.z = 19
    ship.visible = true
    ship.scale = 0.08
    ship.model = "sf/distant_ship"
    call sync_music
    call refresh_ui

action begin_credits:
    status = "credits"
    cinema_ticks = 0
    ship.visible = false
    ship_flames = []
    scenery[0].model = "sf/ark_lit"
    call refresh_ui

action finish_credits:
    status = "won"
    cinema_skip_hidden = true
    ship.visible = false
    ship_flames = []
    sound.play "sf_win"
    call sync_music
    call refresh_ui

action tick_cinema:
    cinema_ticks += 1
    ticks += 1
    ship_flames = []
    if status == "intro":
        flight = clamp((cinema_ticks-45)/165,0,1)
        ease = flight*flight
        ship.x = 54+28*ease
        ship.y = 23-19*ease
        ship.z = 12+7*ease
        ship.scale = max(0.03,1.2*(1-flight)*(1-flight))
        ship.model = ticks%10 < 5 ? "sf/ship_flight" : "sf/ship_flight_lit"
        if cinema_ticks >= 190:
            ship.model = "sf/distant_ship"
            ship.scale = 0.08
            ship.dissolve = clamp((cinema_ticks-210)/30,0,1)
        ship.visible = cinema_ticks < 240
        if cinema_ticks >= intro_duration:
            call begin_landing
            stop when true
    if status == "ending":
        flight = clamp(cinema_ticks/210,0,1)
        ease = 1-(1-flight)*(1-flight)
        ship.x = 82-28*ease
        ship.y = 4+19*ease
        ship.z = 19-7*ease
        ship.scale = 0.03+1.17*ease
        ship.model = cinema_ticks < 25 ? "sf/distant_ship" : (ticks%10 < 5 ? "sf/ship_flight" : "sf/ship_flight_lit")
        if cinema_ticks >= 180:
            scenery[0].model = "sf/ark_lit"
        if cinema_ticks >= 210:
            ship.model = "sf/ship"
        if cinema_ticks >= ending_duration:
            call begin_credits
            stop when true
    if status == "credits" && cinema_ticks >= credits_duration:
        call finish_credits
        stop when true
    if ship.visible && (status == "intro" ? cinema_ticks < 190 : cinema_ticks < 210):
        for offset in [-1.3,1.1]:
            ship_flames.push(
                {
                    "x": ship.x + offset * ship.scale,
                    "y": ship.y + 0.1,
                    "z": ship.z + 0.2 * ship.scale,
                    "model": "sf/ship_exhaust_long",
                    "scale": ship.scale * 0.8,
                    "visible": true
                }
            )
    call refresh_ui
combat.rune
@Logic/starfall
action fire_weapon(up):
    charged = plasma && charge_ticks >= charge_duration
    cooldown = charged ? 10 : 7
    if !charged:
        sound.play "sf_fire"
    if charged:
        sound.play "sf_plasma_fire"
    shots.push(
        {
            "x": player.x + (up ? 0: facing * 0.8),
            "y": 7,
            "z": player.z + (up ? 1.8: 1) - (ducking ? 0.55: 0),
            "dx": up ? 0: facing * 0.8,
            "dz": up ? 0.7: 0,
            "ttl": 35,
            "hostile": false,
            "damage": charged ? 6: (plasma ? 2: 1),
            "charged": charged,
            "scale": charged ? 1.7: 1,
            "model": charged ? "sf/charged_bolt": (plasma ? "sf/plasma_bolt": "sf/bolt"),
            "visible": true
        }
    )

action enemy_shot(x, z, dx, dz):
    shots.push(
        {
            "x": x,
            "y": 7,
            "z": z,
            "dx": dx,
            "dz": dz,
            "ttl": 100,
            "hostile": true,
            "damage": 1,
            "model": "sf/enemy_bolt",
            "visible": true
        }
    )

# Swept, axis-separated bounds include wings and animated thrusters.
# Test every overlapped voxel, rather than just the enemy's center point.
action enemy_space(enemy, x, z):
    radius = enemy.kind == "hunter" ? 1.4 : (enemy.kind == "crawler" ? 1.15 : (enemy.kind == "spore" ? 1.05 : 0.9))
    bottom = enemy.kind == "hunter" ? 0.65 : (enemy.kind == "crawler" ? 0.625 : 0.65)
    top = enemy.kind == "hunter" ? 0.9 : 0.65
    enemy.space_clear = x-radius >= 0 && x+radius < world.width && z-bottom >= 1 && z+top < world.depth
    stop when !enemy.space_clear
    for bx in range(floor(x-radius), floor(x+radius)+1):
        for bz in range(floor(z-bottom+0.001), floor(z+top-0.001)+1):
            for by in [6,7]:
                if world.cells[(bz*world.height+by)*world.width+bx] != 0:
                    enemy.space_clear = false
    if enemy.kind == "crawler":
        for foot in [-0.65,0.65]:
            if world.cells[(floor(z-0.75)*world.height+7)*world.width+floor(x+foot)] == 0:
                enemy.space_clear = false

action move_enemy(enemy, target_x, target_z):
    dx = target_x-enemy.x
    dz = target_z-enemy.z
    steps = max(1, ceil(max(abs(dx), abs(dz))/0.15))
    for step in range(0, steps):
        call enemy_space enemy, enemy.x+dx/steps, enemy.z
        if enemy.space_clear:
            enemy.x += dx/steps
        call enemy_space enemy, enemy.x, enemy.z+dz/steps
        if enemy.space_clear:
            enemy.z += dz/steps

action update_combat:
    call update_escape_encounters
    for enemy in nearby(enemies, player, 28):
        if enemy.visible:
            if enemy.active_tick > 0 && ticks-enemy.active_tick > 1:
                if enemy.kind == "hunter" || enemy.kind == "crawler":
                    enemy.clock = 0
                if enemy.kind != "hunter" && enemy.kind != "crawler":
                    enemy.targeting = false
                    enemy.cooldown = max(24, enemy.cooldown)
            enemy.active_tick = ticks
            enemy.hit_ticks = max(0, enemy.hit_ticks-1)
            if enemy.kind == "hunter" || enemy.kind == "crawler":
                call update_escape_enemy enemy
            if enemy.kind != "hunter" && enemy.kind != "crawler":
                enemy.model = enemy.hit_ticks > 0 ? "sf/drone_hit" : (ticks%8 < 4 ? "sf/drone" : "sf/drone_thrust")
                if enemy.kind == "spore":
                    enemy.model = enemy.hit_ticks > 0 ? "sf/skimmer_hit" : (ticks%12 < 6 ? "sf/skimmer" : "sf/skimmer_wing")
                if enemy.kind == "forge":
                    enemy.model = enemy.hit_ticks > 0 ? "sf/forge_sentry_hit" : (ticks%12 < 6 ? "sf/forge_sentry" : "sf/forge_sentry_vent")
                call move_enemy enemy, enemy.home+sin(ticks*2+enemy.home)*enemy.span, enemy.base+sin(ticks*4+enemy.home)*0.2
                can_attack = abs(player.x-enemy.x) < 12 && abs(player.z+0.8-enemy.z) < 2.5
                if can_attack && !enemy.targeting:
                    enemy.cooldown = max(24,enemy.cooldown)
                enemy.targeting = can_attack
                enemy.cooldown -= 1
                if can_attack && enemy.cooldown > 0 && enemy.cooldown < 24:
                    if enemy.hit_ticks == 0:
                        enemy.model = enemy.kind == "spore" ? "sf/skimmer_charge" : (enemy.kind == "forge" ? "sf/forge_sentry_charge" : "sf/drone_charge")
                    if enemy.cooldown == 23:
                        sound.play "sf_enemy_lock"
                if enemy.cooldown <= 0 && can_attack:
                    enemy.cooldown = 80
                    direction = player.x < enemy.x ? -1 : 1
                    if enemy.kind != "spore":
                        call enemy_shot enemy.x, enemy.z+0.2, direction*0.22, 0
                    if enemy.kind == "spore":
                        call spore_shot enemy.x, enemy.z+0.2, direction*0.17, -0.005
            if abs(player.x-enemy.x) < 0.8 && enemy.z+0.55 > player.z && enemy.z-0.55 < player.z+body_height:
                call take_damage 1, enemy.x
    call update_warden
    call update_rootheart
    call update_iron_cantor
    call update_curator
    for shot in shots:
        if shot.visible:
            old_x = shot.x
            shot.x += shot.dx
            shot.z += shot.dz
            shot.ttl -= 1
            if shot.ttl <= 0 || shot.x < 1 || shot.x > world.width-1 || shot.z < 1 || shot.z > world.depth-1:
                shot.visible = false
            if shot.visible && shot.hostile && abs(shot.x-player.x) < 0.55 && shot.z > player.z && shot.z < player.z+body_height:
                shot.visible = false
                call take_damage 1, shot.x-shot.dx*4
            # Swept seal hit: both directions work, and bolts cannot skip it.
            crossed_gate = min(old_x, shot.x) <= 63 && max(old_x, shot.x) >= 62
            if sector_id == "station" && shot.visible && !gate_open && crossed_gate && shot.z >= 3 && shot.z < 19:
                shot.visible = false
                if !shot.hostile && !!shot.charged:
                    call breach_seal shot.z
                if !shot.hostile && !shot.charged:
                    notice = plasma ? "Seal resists weak shots. Hold fire until PLASMA READY, then release." : "Violet seal resists standard fire. Find plasma above the western dock."
                    notice_ticks = 100
            if shot.visible && world.cells[(floor(shot.z)*world.height+7)*world.width+floor(shot.x)] != 0:
                shot.visible = false
            if shot.visible && !shot.hostile:
                for enemy in nearby(enemies, shot, 2):
                    if shot.visible && enemy.visible && abs(shot.x-enemy.x) < 0.95 && abs(shot.z-enemy.z-0.2) < 0.65:
                        shot.visible = false
                        enemy.hp -= shot.damage
                        enemy.hit_ticks = 5
                        enemy.model = enemy.kind == "spore" ? "sf/skimmer_hit" : "sf/drone_hit"
                        if enemy.kind == "forge":
                            enemy.model = "sf/forge_sentry_hit"
                        if enemy.kind == "hunter" || enemy.kind == "crawler":
                            enemy.model = "sf/"+enemy.kind+"_hit"
                        call burst shot.x, shot.z, 4
                        sound.play "sf_hit"
                        if enemy.hp <= 0:
                            enemy.visible = false
                            if enemy.kind != "spore":
                                call burst enemy.x, enemy.z, 18
                            if enemy.kind == "spore":
                                call pollen_burst enemy.x, enemy.z, 18
                            sound.play "sf_explode"
                if shot.visible && curator.visible && abs(shot.x-curator.x) < 1.4 && shot.z > curator.z && shot.z < curator.z+3:
                    shot.visible = false
                    call hit_curator shot.damage, shot.x, shot.z
                if shot.visible && forge_guardian.visible && abs(shot.x-forge_guardian.x) < 1.5 && shot.z > forge_guardian.z && shot.z < forge_guardian.z+4.4:
                    shot.visible = false
                    call hit_iron_cantor shot.damage, shot.x, shot.z
                if shot.visible && rootheart.visible && abs(shot.x-rootheart.x) < 1.3 && shot.z > rootheart.z && shot.z < rootheart.z+3:
                    shot.visible = false
                    call hit_rootheart shot.damage, shot.x, shot.z
                if shot.visible && boss.visible && abs(shot.x-boss.x) < 1.9 && shot.z > boss.z && shot.z < boss.z+5.6:
                    shot.visible = false
                    if boss_phase == "exposed":
                        call hit_warden shot.damage, shot.x, shot.z
    shots = shots.filter(shot => shot.visible)
controls.rune
@Controls/starfall
keys:
    KeyA -> left
    ArrowLeft -> left
    KeyD -> right
    ArrowRight -> right
    Space -> jump
    KeyJ -> fire
    KeyX -> fire
    KeyW -> aim_up
    ArrowUp -> aim_up
    KeyS -> duck
    ArrowDown -> duck
    ShiftLeft -> dash
    ShiftRight -> dash
    KeyK -> dash
    KeyE -> use
commands:
    Enter -> host.advance
    KeyP -> host.pause
    KeyF -> host.fullscreen
    KeyV -> host.mute
mouse:
    Left -> fire
gamepad:
    Axis0 -> {"input":"move_x","deadzone":0.18}
    Axis1 -> {"input":"duck_axis","deadzone":0.35}
    Button0 -> jump
    Button2 -> fire
    Button4 -> aim_up
    Button5 -> duck
    Button6 -> {"command":"host.pause"}
    Button1 -> dash
    Button3 -> use
    Button8 -> {"command":"host.advance"}
    Button9 -> {"command":"host.pause"}
touch = {
    "buttons": [
        {
            "anchor": "bottom-right",
            "command": "host.advance",
            "id": "skip",
            "label": "SKIP",
            "offset": [12,12],
            "size": 48,
            "visible": "cinema_skip_ready"
        },
        {
            "id": "jump",
            "input": "jump",
            "label": "JUMP",
            "offset": [80,14],
            "size": 56,
            "visible": "touch_ready"
        },
        {
            "id": "fire",
            "input": "fire",
            "label": "FIRE",
            "offset": [12,14],
            "size": 56,
            "visible": "touch_ready"
        },
        {
            "anchor": "top-right",
            "aria_label": "Pause game",
            "command": "host.pause",
            "id": "pause",
            "label": "II",
            "offset": [12,12],
            "size": 44
        },
        {
            "id": "dash",
            "input": "dash",
            "label": "DASH",
            "offset": [12,82],
            "size": 48,
            "visible": "touch_dash_ready"
        },
        {
            "id": "use",
            "input": "use",
            "label": "USE",
            "offset": [80,82],
            "size": 48,
            "visible": "touch_use_ready"
        }
    ],
    "joystick": {"down":"duck","size":76,"up":"aim_up","visible":"touch_ready","x":"move_x"},
    "visible": "touch_ui_visible"
}
curator.rune
@Logic/starfall
# Optional Observatory guardian: leave the marked starfall, jump low waves, duck bolts.
action reset_curator:
    stop when sector_id != "observatory" || !curator.visible
    curator.hp = curator.max_hp
    curator.x = 81
    curator.z = 3.2
    curator.hit_ticks = 0
    curator.model = "sf/curator_closed"
    curator_clock = 0
    curator_phase = "dormant"
    curator_warning.visible = false

action update_curator:
    curator_warning.visible = false
    stop when sector_id != "observatory" || !curator.visible || recovery_phase != "none" || player.x < 65 || player.z > 7
    curator_clock += 1
    curator.hit_ticks = max(0,curator.hit_ticks-1)
    cycle = curator_clock%200
    curator.x = 81+sin(curator_clock*1.8)*2.3
    curator.z = 3.2+sin(curator_clock*3)*0.18
    curator_phase = cycle >= 75 && cycle < 155 ? "open" : (cycle >= 35 && cycle < 75 ? "focus" : "shield")
    curator.model = curator_phase == "open" ? (cycle%16 < 8 ? "sf/curator_open" : "sf/curator_pulse") : "sf/curator_closed"
    if cycle == 35:
        curator_warning.x = clamp(player.x,65,90)
        sound.play "sf_curator_focus"
    if cycle >= 35 && cycle < 75:
        curator_warning.visible = true
        curator_warning.model = cycle < 65 ? "sf/curator_warning" : "sf/curator_pillar"
        if cycle >= 65 && abs(player.x-curator_warning.x) < 0.85 && player.z < 6.8:
            call take_damage 1, curator_warning.x
    if cycle == 65:
        call curator_shot curator.x,3.55,-0.2
    if cycle == 85 || cycle == 115:
        direction = player.x < curator.x ? -1 : 1
        call curator_shot curator.x,4.3,direction*0.2
    if curator.hit_ticks > 0:
        curator.model = "sf/curator_hit"
    if abs(player.x-curator.x) < 1.3 && player.z < curator.z+3:
        call take_damage 1,curator.x

action curator_shot(x,z,dx):
    shots.push(
        {
            "x": x,
            "y": 7,
            "z": z,
            "dx": dx,
            "dz": 0,
            "ttl": 130,
            "hostile": true,
            "damage": 1,
            "model": "sf/curator_star",
            "visible": true
        }
    )

action hit_curator(damage,x,z):
    stop when !curator.visible || curator_phase != "open"
    curator.hp = max(0,curator.hp-damage)
    curator.hit_ticks = 6
    call burst x,z,5
    sound.play "sf_hit"
    if curator.hp == 0:
        curator.visible = false
        curator_warning.visible = false
        curator_phase = "defeated"
        campaign.curator = true
        shots = []
        call burst curator.x,curator.z+1.5,32
        call claim_boss_container "curator"
        portals[2].visible = true
        notice = "VOID CURATOR SILENCED / HEALTH +1. Observatory return portal online."
        notice_ticks = 210
        sound.play "sf_explode"
discovery.rune
@Logic/starfall
# Transient presentation: rewards are granted before this starts, never on dismissal.
action begin_discovery(kind, model):
    discovery_active = true
    discovery_ticks = 0
    discovery_input_held = true
    discovery_title = "RELIC RECOVERED"
    discovery_help = notice
    if kind == "jets":
        discovery_title = "JUMP JETS ACQUIRED!"
        discovery_help = "Press JUMP again in midair to double jump.|SPACE / controller A / touch JUMP. Reach higher ledges!"
    if kind == "dash":
        discovery_title = "AIR DASH ACQUIRED!"
        discovery_help = "Jump, then DASH to burst across gaps. Landing recharges it.|SHIFT or K / controller B / touch DASH."
    if kind == "plasma":
        discovery_title = "PLASMA CHARGE ACQUIRED!"
        discovery_help = "Hold FIRE until charged, then release to blast violet seals.|Mouse or X / controller X / touch FIRE. Aim up with UP."
    if kind == "glove":
        discovery_title = "MAGNETIC GLOVE ACQUIRED!"
        discovery_help = "Jump underneath the overhead carrier to grab and ride it.|Press JUMP to let go: SPACE / controller A / touch JUMP."
    if kind == "capacitor":
        discovery_title = "PLASMA CAPACITOR ACQUIRED!"
        discovery_help = "Plasma charges 25% faster. Hold FIRE, then release.|This upgrade stays saved between expeditions."
    if kind == "armor":
        discovery_title = "SUIT ARMOR ACQUIRED!"
        discovery_help = "Two extra health cells! Suit fully repaired.|Permanent protection, saved between expeditions."
    if kind == "health":
        discovery_title = "HEALTH CONTAINER ACQUIRED!"
        discovery_help = "Maximum health increased by one. Suit fully repaired!|This health container stays saved between expeditions."
    if kind == "relay" || kind == "foundry_relay":
        discovery_title = kind == "relay" ? "GARDEN RELAY RESTORED!" : "FOUNDRY RELAY RESTORED!"
        discovery_help = kind == "relay" ? "Sector and air dash saved! Return through the cargo portal.|Use jets and dash on the western ledges to reach plasma." : "Sector, glove and plasma saved! The crypt is accessible.|Return to containment and descend into the Reactor Crypt."
    if kind == "core":
        discovery_title = "STARCORE RECOVERED!"
        discovery_help = "The Ark has a future! Bring this light back to your ship.|Reinforcements are inbound. Fight west to the docking ring!"
    discovery_item = {"x": player.x, "y": 7, "z": player.z+1, "model": model, "angle": 0, "scale": 0.85, "visible": true}
    velocity = 0
    dash_ticks = 0
    charge_ticks = 0
    charge_ready = false
    fire_held = false
    aiming_up = false
    ducking = false
    hurt_ticks = 0
    flash = 0
    call sync_music
    sound.play "sf_discovery"
    call discovery_sparkles
    call update_view
    call refresh_ui

action tick_discovery(input):
    discovery_ticks += 1
    # Edge-triggered dismissal: holding fire when collecting cannot skip the reveal.
    held = !!input.jump || !!input.fire || !!input.use
    pressed = held && !discovery_input_held
    discovery_input_held = held
    call update_effects
    if discovery_ticks == 18 || discovery_ticks == 42:
        call discovery_sparkles
    call update_view
    # Auto-resume keeps the expedition flowing; explicit confirmation is available
    # after the lift. The instructions remain in the normal HUD afterward.
    if discovery_ticks >= 150 || (discovery_ticks >= 36 && pressed):
        call finish_discovery
    call refresh_ui

action finish_discovery:
    discovery_active = false
    discovery_item.visible = false
    # Consume confirmation so a jump or charged shot cannot leak into gameplay.
    jump_held = true
    use_held = true
    fire_held = false
    invulnerable = max(invulnerable, 30)
    notice = discovery_help
    notice_ticks = 210
    call sync_music
    call update_view
    call refresh_ui

action pose_discovery:
    lift = clamp(discovery_ticks/18, 0, 1)
    avatar.model = discovery_ticks < 9 ? "sf/pilot_present" : "sf/pilot_celebrate"
    avatar.angle = 0
    avatar.visible = true
    avatar.dissolve = 0
    rifle.visible = false
    muzzle.visible = false
    charge_fx.visible = false
    magnet_fx.visible = false
    discovery_item.x = player.x
    discovery_item.z = player.z+1.2+lift*1.35+sin(discovery_ticks*6)*0.045
    discovery_item.angle = discovery_ticks*3
    discovery_item.scale = 0.65+lift*0.2
    camera.x += (clamp(player.x, 13, world.width-8)-camera.x)*0.12
    camera.z += (clamp(player.z+1.8, 5, world.depth-5)-camera.z)*0.12

action discovery_sparkles:
    for i in range(0,12):
        bearing = i*30+discovery_ticks*5
        effects.push({"x":player.x+cos(bearing)*0.65,"y":7.4,"z":player.z+2+sin(bearing)*0.65,"dx":cos(bearing)*0.035,"dz":sin(bearing)*0.035+0.012,"ttl":30,"life":30,"angle":bearing,"spin":6,"scale":i%2 == 0 ? 0.8 : 0.5,"model":"sf/discovery_star","kind":"container","visible":true})
    effects = effects.slice(max(0,effects.length-96))
effects.rune
@Logic/starfall
# Small deterministic fragments work in browser and QuickJS without physics bodies.
action burst(x, z, count):
    for i in range(0, count):
        bearing = i*137+ticks*17
        speed = 0.07+(i%5)*0.035
        effects.push(
            {
                "x": x,
                "y": 7.3 + (i % 3) * 0.06,
                "z": z,
                "dx": cos(bearing) * speed,
                "dz": sin(bearing) * speed + 0.08,
                "ttl": 14 + i % 5 * 3,
                "life": 14 + i % 5 * 3,
                "angle": bearing,
                "spin": i % 2 == 0 ? 17: -13,
                "scale": i % 3 == 0 ? 1: 0.6,
                "model": i % 3 == 0 ? "sf/scrap": "sf/spark",
                "kind": "debris",
                "visible": true
            }
        )
    if count > 8:
        effects.push(
            {
                "x": x,
                "y": 7.5,
                "z": z,
                "dx": 0,
                "dz": 0,
                "ttl": 9,
                "life": 9,
                "angle": 0,
                "spin": 9,
                "scale": 0.4,
                "model": "sf/blast",
                "kind": "blast",
                "visible": true
            }
        )
    # Cap work even when several drones explode during the same volley.
    effects = effects.slice(max(0, effects.length-96))

action jet_exhaust:
    stop when effects.length >= 96
    effects.push(
        {
            "x": player.x - facing * 0.35,
            "y": 7.2,
            "z": player.z + 0.35,
            "dx": -facing * 0.015,
            "dz": -0.09,
            "ttl": 8,
            "life": 8,
            "angle": 0,
            "spin": 0,
            "scale": 1,
            "model": "sf/exhaust",
            "kind": "exhaust",
            "visible": true
        }
    )

action update_effects:
    for effect in effects:
        effect.ttl -= 1
        effect.x += effect.dx
        effect.z += effect.dz
        effect.angle += effect.spin
        if effect.kind == "debris":
            effect.dz -= 0.014
            effect.dx *= 0.97
            effect.dissolve = clamp(1-effect.ttl/8, 0, 1)
        if effect.kind == "blast":
            effect.scale += 0.22
            effect.dissolve = clamp(1-effect.ttl/effect.life, 0, 1)
        if effect.kind == "container":
            effect.dissolve = clamp(1-effect.ttl/10,0,1)
        if effect.kind == "exhaust":
            effect.scale *= 0.85
        effect.visible = effect.ttl > 0 && effect.z > 1
    effects = effects.filter(effect => effect.visible)
escape.rune
@Logic/starfall
# Armed by the Warden's death, triggered only while carrying the core home.
# These flags live for the whole expedition, including ghost returns and hatch trips.
action arm_escape_encounters:
    stop when escape_active
    escape_active = true
    return_encounters = [
        {"trigger": 116, "hunter": 109, "crawler": 103, "fired": false},
        {"trigger": 74, "hunter": 68, "crawler": 57, "fired": false},
        {"trigger": 46, "hunter": 31, "crawler": 39, "fired": false}
    ]

action update_escape_encounters:
    stop when !escape_active || !core || sector_id != "station"
    for encounter in return_encounters:
        if !encounter.fired && player.x <= encounter.trigger:
            encounter.fired = true
            call escape_enemy "hunter", encounter.hunter, 4, 2.5
            call escape_enemy "crawler", encounter.crawler, 3.7, 2
            sound.play "sf_reinforcements"
            notice = "SECURITY SURGE / Hunters lunge; jump the crawlers' low bolts."
            notice_ticks = 150

action escape_enemy(kind, x, z, span):
    enemies.push(
        {
            "kind": kind,
            "x": x,
            "y": 7,
            "z": z,
            "home": x,
            "base": z,
            "span": span,
            "hp": kind == "hunter" ? 4: 3,
            "hit_ticks": 0,
            "clock": 0,
            "direction": 1,
            "angle": 0,
            "phase": "patrol",
            "visible": true,
            "model": "sf/" + kind
        }
    )
    call burst x, z, 8

action update_escape_enemy(enemy):
    # Idle off-screen; no projectiles or attacks arrive before their encounter.
    stop when abs(player.x-enemy.x) > 13
    enemy.clock += 1
    cycle = enemy.clock%150
    enemy.angle = player.x < enemy.x ? 180 : 0
    if enemy.kind == "hunter":
        enemy.phase = cycle < 28 ? "windup" : (cycle < 46 ? "lunge" : "patrol")
        enemy.model = "sf/hunter"+(ticks%12 < 6 ? "" : "_wing")
        if enemy.phase == "windup":
            enemy.model = "sf/hunter_windup"
            call move_enemy enemy, enemy.x, enemy.base+sin(enemy.clock*16)*0.12
            enemy.direction = player.x < enemy.x ? -1 : 1
        if enemy.phase == "lunge":
            enemy.model = "sf/hunter_lunge"
            enemy.angle = enemy.direction < 0 ? 180 : 0
            call move_enemy enemy, clamp(enemy.x+enemy.direction*0.26, enemy.home-5, enemy.home+5), enemy.z
        if enemy.phase == "patrol":
            call move_enemy enemy, enemy.x+clamp(enemy.home-enemy.x, -0.025, 0.025), enemy.base+sin(enemy.clock*7)*0.25
    if enemy.kind == "crawler":
        enemy.phase = cycle >= 65 && cycle < 95 ? "charge" : "patrol"
        enemy.model = "sf/crawler"+(ticks%12 < 6 ? "" : "_walk")
        if enemy.phase == "patrol":
            call move_enemy enemy, enemy.home+sin(enemy.clock*2)*enemy.span, enemy.z
        if enemy.phase == "charge":
            enemy.model = "sf/crawler_charge"
            if cycle == 65:
                sound.play "sf_crawler_charge"
        if cycle == 95 && abs(player.z-3) < 2:
            direction = player.x < enemy.x ? -1 : 1
            call enemy_shot enemy.x+direction*0.8, 3.55, direction*0.18, 0
    if enemy.hit_ticks > 0:
        enemy.model = "sf/"+enemy.kind+"_hit"
foundry.rune
@Logic/starfall
# Inspect the overhead carrier, then backtrack up to the glove workshop.
action build_foundry:
    sector_id = "foundry"
    level_map = "foundry"
    world = {
        "width": 96,
        "height": 21,
        "depth": 20,
        "seed": 709,
        "biome": "ember",
        "materials": [
            "sf/hull",
            "sf/edge",
            "sf/plasma",
            "sf/reactor",
            "sf/temple_stone",
            "sf/temple_trim",
            "sf/forge_floor",
            "sf/forge_wall",
            "sf/forge_rail"
        ],
        "cells": [],
        "spawn": player
    }
    world = voxel_world(
        world.width,
        world.height,
        world.depth,
        world.materials,
        {"seed": world.seed, "biome": world.biome, "spawn": world.spawn, "renderDistance": 128}
    )
    call deck 4, 16, 3, 7
    call deck 20, 6, 5, 9
    call deck 14, 4, 9, 9
    call deck 5, 9, 13, 9
    # Small overhead maintenance shelf, separate from the glove pedestal.
    call deck 5, 3, 17, 9
    world = voxel_fill(world,[8,5,13],[3,4,1],6)
    magnet_seen = glove_unlocked
    if !magnet_seen:
        world = voxel_fill(world,[13,5,10],[1,4,9],3)
    # A 27-tile furnace span: the moving shuttle is the safe crossing.
    call deck 53, 9, 5, 9
    # An eight-tile rise requires the low-gravity console and jump jets.
    call deck 62, 10, 13, 9
    call deck 72, 5, 9, 7
    call deck 77, 4, 5, 7
    call deck 81, 14, 3, 7
    world = voxel_fill(world,[4,1,1],[91,1,17],8)
    world = voxel_fill(world,[3,5,1],[1,4,17],8)
    world = voxel_fill(world,[95,5,1],[1,4,17],8)
    scenery = []
    scenery = entity_group(scenery)
    for x in [8,18,28,38,48,58,68,78,88]:
        scenery.push({"x": x, "y": 3, "z": 2, "model": "sf/foundry_girder"})
        scenery.push({"x": x, "y": 3.8, "z": 8, "model": "sf/foundry_coil"})
    for x in [29,37,45]:
        scenery.push({"x": x, "y": 7, "z": 1.2, "model": "sf/furnace_pool"})
    scenery.push({"x": 64, "y": 3.7, "z": 12, "model": "sf/gravity_sigil"})
    scenery.push({"x": 9.5, "y": 7, "z": 13, "model": "sf/upgrade_pedestal"})
    scenery.push({"x": 16, "y": 6.2, "z": 9, "model": "sf/dash_gap_left"})
    scenery.push({"x": 24.5, "y": 6.2, "z": 5, "model": "sf/carrier_sign"})
    scenery.push({"x": 39.5, "y": 7, "z": 14, "model": "sf/carrier_rail"})
    machinery = [
        {"x": 18, "y": 3.5, "z": 12, "home": 12, "model": "sf/foundry_piston", "angle": 0},
        {"x": 74, "y": 3.5, "z": 16, "home": 16, "model": "sf/foundry_piston", "angle": 0}
    ]
    gravity_consoles = [
        {"x": 57, "y": 6.3, "z": 5, "model": "sf/gravity_console"},
        {"x": 82, "y": 6.3, "z": 3, "model": "sf/gravity_console"}
    ]
    portals = [
        {
            "x": 6,
            "y": 6.3,
            "z": 3,
            "model": "sf/foundry_hatch",
            "kind": "foundry_return",
            "label": "RETURN TO CONTAINMENT",
            "title": "CONTAINMENT",
            "visible": true
        },
        {
            "x": 92,
            "y": 6.3,
            "z": 3,
            "model": "sf/foundry_hatch",
            "kind": "foundry_exit",
            "label": "CARGO SHORTCUT / FOUNDRY SAVED",
            "title": "CARGO SHORTCUT",
            "visible": foundry_cleared
        }
    ]
    portals = entity_group(portals)
    pickups = [
        {
            "x": 9.5,
            "y": 7,
            "z": 14.9,
            "base": 14.9,
            "kind": "glove",
            "model": "sf/magnetic_glove",
            "visible": !glove_unlocked
        },
        {
            "x": 69,
            "y": 7,
            "z": 13.5,
            "base": 13.5,
            "kind": "repair",
            "model": "sf/repair_pod",
            "visible": true
        },
        {
            "x": 92,
            "y": 7,
            "z": 3.5,
            "base": 3.5,
            "kind": "foundry_relay",
            "model": "sf/foundry_relay",
            "visible": false
        }
    ]
    pickups = entity_group(pickups)
    call place_oneup "foundry",6,17.6
    beacons = [
        {"x": 18, "y": 7, "z": 3, "model": "sf/beacon", "active": false},
        {"x": 55, "y": 7, "z": 5, "model": "sf/beacon", "active": false},
        {"x": 81.5, "y": 7, "z": 3, "model": "sf/beacon", "active": false}
    ]
    beacons = entity_group(beacons)
    enemies = entity_group()
    call forge_sentry 17, 4, 1
    call forge_sentry 59, 6, 1
    call forge_sentry 68, 14, 1
    boss = {"visible": false}
    boss_warning = {"visible": false}
    rootheart.visible = false
    root_warning.visible = false
    forge_guardian = {
        "x": 88,
        "y": 7,
        "z": 3,
        "hp": 24,
        "max_hp": 24,
        "hit_ticks": 0,
        "model": "sf/cantor_guard",
        "visible": !foundry_cleared
    }
    forge_warning = {"x": 88, "y": 9.1, "z": 3.05, "model": "sf/cantor_warning", "visible": false}
    forge_clock = 0
    forge_phase = "dormant"
    foundry_clock = 0
    gravity_low = false
    on_shuttle = false
    shuttle = {
        "x": 28.5,
        "y": 7,
        "z": 9,
        "model": "sf/magnetic_shuttle",
        "visible": true,
        "width": 5
    }
    magnet_fx.visible = false
    seal_shell = {"visible": false}
    ship.visible = false
    ship_flames = []
    player = {"x": 6, "y": 7, "z": 3, "angle": 0, "pitch": 0, "vz": 0}
    checkpoint = {"x": 6, "z": 3}

action toggle_foundry_gravity:
    stop when sector_id != "foundry" && sector_id != "observatory"
    if !glove_unlocked:
        notice = "The magnetic glove is required to synchronize with the gravity console."
        notice_ticks = 120
        stop when true
    gravity_low = !gravity_low
    sound.play "sf_gravity_switch"
    notice = gravity_low ? "LOW GRAVITY ENGAGED. Jump jets can now reach the upper gantry." : "NORMAL GRAVITY RESTORED. Shorter jumps; the glove still grips the carrier."
    notice_ticks = 150
    for console in gravity_consoles:
        console.model = gravity_low ? "sf/gravity_console_low" : "sf/gravity_console"

action update_foundry_machinery:
    if !magnet_seen && player.x >= 23 && player.z >= 4:
        magnet_seen = true
        world = voxel_fill(world,[13,5,10],[1,4,9],0)
        notice = "CARRIER NEEDS A MAGNETIC GRIP. Service workshop unlocked above the entrance. <"
        notice_ticks = 210
        sound.play "sf_hatch"
    previous_shuttle = shuttle.x
    foundry_clock += 1
    shuttle.x = 28.5+(1-cos(foundry_clock*1.2))*11
    if on_shuttle && glove_unlocked:
        player.x += shuttle.x-previous_shuttle
    for machine in machinery:
        machine.z = machine.home+sin(foundry_clock*3+machine.x)*0.8
        machine.angle = 0

# Hands catch within reach of the underside. Release briefly prevents re-grabbing.
action grab_carrier(previous_z, releasing):
    over_shuttle = abs(player.x-shuttle.x) < shuttle.width/2+0.45
    grip_z = shuttle.z-2.4
    caught_carrier = abs(player.z-grip_z) < 0.75 && player.vz != 0 && previous_z < shuttle.z-1.6
    keep_grip = on_shuttle && over_shuttle
    on_shuttle = false
    if glove_unlocked && over_shuttle && !releasing && grip_release_ticks == 0 && (caught_carrier || keep_grip):
        player.z = grip_z
        player.vz = 0
        grounded = false
        jumps = 1
        dash_ready = true
        dash_ticks = 0
        on_shuttle = true

action forge_sentry(x, z, span):
    enemies.push(
        {
            "x": x,
            "y": 7,
            "z": z,
            "home": x,
            "base": z,
            "span": span,
            "hp": 5,
            "hit_ticks": 0,
            "visible": true,
            "model": "sf/forge_sentry",
            "kind": "forge",
            "cooldown": 70
        }
    )
hydroponics.rune
@Logic/starfall
# Sector doors swap bounded volumes while keeping the station's live state.
action use_hatch:
    if sector_id == "jet_vault" || sector_id == "dash_vault":
        for portal in portals:
            if abs(player.x-portal.x) < 1.25 && abs(player.z-portal.z) < 1.5:
                call leave_upgrade_vault
                stop when true
    if sector_id == "foundry" || sector_id == "observatory":
        for console in gravity_consoles:
            if abs(player.x-console.x) < 1.3 && abs(player.z-console.z) < 1.5:
                call toggle_foundry_gravity
                stop when true
    for portal in portals:
        if portal.visible && abs(player.x-portal.x) < 1.25 && abs(player.z-portal.z) < 1.5:
            if portal.kind == "jets_entry" || portal.kind == "dash_entry":
                if portal.kind == "dash_entry" && !jets:
                    notice = "Jump jets are required to reach the upper crypt."
                    notice_ticks = 120
                    stop when true
                call enter_upgrade_vault portal.kind == "jets_entry" ? "jets" : "dash"
                stop when true
            if sector_id == "archive" || sector_id == "observatory":
                call restore_station
                player.x = bonus_return.x
                player.z = bonus_return.z
                call finish_sector_change
                stop when true
            if sector_id == "station" && (portal.kind == "archive_entry" || portal.kind == "observatory_entry"):
                if !jets || !dash_unlocked || (portal.kind == "observatory_entry" && !glove_unlocked):
                    notice = "Optional route locked. Archive needs jets + dash; Observatory also needs the magnetic glove."
                    notice_ticks = 150
                    stop when true
                bonus_return = {"x": portal.x, "z": portal.z}
                call capture_station
                call build_bonus_room portal.kind == "archive_entry" ? "archive" : "observatory"
                call finish_sector_change
                stop when true
            if sector_id == "station":
                if !jets:
                    notice = "Recover jump jets from the nearby cargo bay before entering."
                    notice_ticks = 120
                    stop when true
                entering_foundry = portal.kind == "foundry_entry" || portal.kind == "foundry_shortcut"
                shortcut_entry = portal.kind == "garden_shortcut" || portal.kind == "foundry_shortcut"
                if entering_foundry && (!plasma || !garden_cleared):
                    notice = "Restore Hydroponics and recover plasma before entering the Foundry."
                    notice_ticks = 120
                    stop when true
                call capture_station
                if entering_foundry:
                    call build_foundry
                    if shortcut_entry:
                        player.x = 92
                        checkpoint = {"x": 92, "z": 3}
                if !entering_foundry:
                    call build_hydroponics
                    if shortcut_entry:
                        player.x = 71
                        checkpoint = {"x": 71, "z": 3}
                call finish_sector_change
                stop when true
            if sector_id == "hydroponics" || sector_id == "foundry":
                from_foundry = sector_id == "foundry"
                shortcut_exit = portal.kind == "cargo_shortcut" || portal.kind == "foundry_exit"
                call restore_station
                player.x = from_foundry ? (shortcut_exit ? 58 : 68) : (shortcut_exit ? 37 : 51)
                player.z = 3
                call finish_sector_change
                stop when true

action capture_station:
    station_snapshot = {
        "world": world,
        "pickups": pickups,
        "enemies": enemies,
        "beacons": beacons,
        "scenery": scenery,
        "portals": portals,
        "boss": boss,
        "boss_warning": boss_warning,
        "boss_clock": boss_clock,
        "boss_phase": boss_phase,
        "checkpoint": {"x": checkpoint.x, "z": checkpoint.z},
        "seal_shell": seal_shell
    }

action finish_sector_change:
    if sector_id != "observatory":
        curator.visible = false
        curator_warning.visible = false
    room_changed = true
    player.y = 7
    player.vz = 0
    player.angle = 0
    player.pitch = 0
    velocity = 0
    grounded = true
    ducking = false
    body_height = 1.6
    on_shuttle = false
    jumps = 0
    jump_held = false
    dash_ticks = 0
    dash_ready = true
    dash_held = false
    charge_ticks = 0
    charge_ready = false
    fire_held = false
    cooldown = 0
    shots = []
    effects = []
    health = max_health
    invulnerable = 45
    transition_ticks = 12
    camera.x = clamp(player.x, 13, world.width-13)
    camera.y = 19
    camera.z = clamp(player.z+1.5, 5, world.depth-5)
    notice = sector_id == "hydroponics" ? (garden_cleared ? "Garden relay restored. USE the lit hatch to return to cargo." : "HYDROPONICS / Climb past the repair pod. Double jump to the upper dash crypt.") : "Cargo link restored. Saved sectors and equipment stay with you."
    if sector_id == "foundry":
        notice = foundry_cleared ? "Foundry restored. USE the lit hatch for the cargo shortcut." : "GRAVITY FOUNDRY / Inspect the overhead furnace carrier."
    if sector_id == "archive" || sector_id == "observatory":
        notice = sector_id == "archive" ? "OPTIONAL / Jets up, air dash across the breach. Recover the plasma capacitor." : "OPTIONAL / Engage low gravity, combine jets + dash, recover suit armor."
    notice_ticks = 150
    sound.play "sf_hatch"
    call update_view
    call sync_music
    call refresh_ui

action restore_station:
    sector_id = "station"
    level_map = "orbit"
    world = station_snapshot.world
    pickups = station_snapshot.pickups
    enemies = station_snapshot.enemies
    beacons = station_snapshot.beacons
    scenery = station_snapshot.scenery
    portals = station_snapshot.portals
    portals[1].visible = garden_cleared
    portals[3].visible = foundry_cleared
    if foundry_cleared:
        world = voxel_fill(world, [78,5,3], [1,4,16], 0)
    boss = station_snapshot.boss
    boss_warning = station_snapshot.boss_warning
    boss_clock = station_snapshot.boss_clock
    boss_phase = station_snapshot.boss_phase
    checkpoint = {"x": station_snapshot.checkpoint.x, "z": station_snapshot.checkpoint.z}
    seal_shell = station_snapshot.seal_shell
    ship.visible = true
    rootheart.visible = false
    root_warning.visible = false
    forge_guardian.visible = false
    forge_warning.visible = false
    shuttle.visible = false
    magnet_fx.visible = false
    machinery = []
    gravity_consoles = []
    gravity_low = false
    on_shuttle = false

action build_hydroponics:
    sector_id = "hydroponics"
    level_map = "hydroponics"
    world = {
        "width": 80,
        "height": 21,
        "depth": 26,
        "seed": 704,
        "biome": "meadow",
        "materials": [
            "sf/hull",
            "sf/edge",
            "sf/plasma",
            "sf/reactor",
            "sf/temple_stone",
            "sf/temple_trim",
            "sf/garden_moss",
            "sf/garden_wall",
            "sf/garden_glass"
        ],
        "cells": [],
        "spawn": player
    }
    world = voxel_world(
        world.width,
        world.height,
        world.depth,
        world.materials,
        {"seed": world.seed, "biome": world.biome, "spawn": world.spawn, "renderDistance": 128}
    )
    call deck 4, 18, 3, 7
    call deck 21, 9, 5, 7
    # Twelve empty tiles: double jump alone is insufficient; use the air dash.
    call deck 42, 10, 5, 7
    call deck 52, 5, 4, 7
    call deck 57, 20, 3, 7
    # A western maintenance shaft rewards exploration without bridging the breach.
    call deck 10, 5, 7, 9
    call deck 18, 5, 10, 9
    call deck 10, 6, 13, 9
    call deck 4, 4, 13, 9
    # A canopy shelf above the repair route rewards a second look westward.
    call deck 4, 3, 17, 9
    # Four tiles above the repair pod: reaching this crypt requires the air jump.
    # The east bulkhead funnels the return to the lower dash approach.
    call deck 21, 4, 17, 9
    # Enclose the portal bay, with a clear drop to the lower dash approach.
    world = voxel_fill(world,[27,5,9],[1,4,17],8)
    world = voxel_fill(world,[20,5,23],[8,4,1],9)
    world = voxel_fill(world, [4,1,1], [73,1,17], 8)
    world = voxel_fill(world, [3,5,1], [1,4,17], 8)
    world = voxel_fill(world, [77,5,1], [1,4,17], 8)
    scenery = []
    scenery = entity_group(scenery)
    scenery.push({"x": 29, "y": 6.2, "z": 5, "model": "sf/dash_gap_right"})
    for x in [6,15,24,45,54,63,73]:
        scenery.push({"x": x, "y": 3.3, "z": 3, "model": "sf/garden_tree"})
        scenery.push({"x": x + 1, "y": 4, "z": 12, "model": "sf/hanging_vine"})
    for x in [9,19,27,44,50,60,69,74]:
        scenery.push({"x": x, "y": 8.2, "z": x < 30 || (x >= 42 && x < 52) ? 5: 3, "model": "sf/glow_flower"})
    scenery.push({"x": 34, "y": 3.5, "z": 8, "model": "sf/broken_greenhouse"})
    pickups = [
        {
            "x": 24,
            "y": 7,
            "z": 17.5,
            "base": 17.5,
            "kind": "dash",
            "model": "sf/dash_cell",
            "visible": false
        },
        {
            "x": 12,
            "y": 7,
            "z": 13.5,
            "base": 13.5,
            "kind": "repair",
            "model": "sf/repair_pod",
            "visible": true
        },
        {
            "x": 72,
            "y": 7,
            "z": 3.5,
            "base": 3.5,
            "kind": "relay",
            "model": "sf/garden_relay",
            "visible": !garden_cleared && !rootheart.visible
        }
    ]
    pickups = entity_group(pickups)
    call place_oneup "hydroponics",5,17.6
    portals = [
        {
            "x": 6,
            "y": 6.3,
            "z": 3,
            "kind": "cargo_entry",
            "label": "RETURN TO CARGO",
            "title": "CARGO",
            "model": "sf/garden_hatch",
            "visible": true
        },
        {
            "x": 72,
            "y": 6.3,
            "z": 3,
            "kind": "cargo_shortcut",
            "label": "CARGO SHORTCUT / RELAY SAVED",
            "title": "CARGO SHORTCUT",
            "model": "sf/shortcut_hatch",
            "visible": garden_cleared
        }
    ]
    portals = entity_group(portals)
    portals.push(
        {
            "x": 23.5,
            "y": 6.5,
            "z": 17,
            "model": "sf/rift_gate0",
            "kind": "dash_entry",
            "label": "ENTER DASH CRYPT",
            "title": "DASH CRYPT",
            "visible": true
        }
    )
    beacons = [
        {"x": 18, "y": 7, "z": 3, "model": "sf/beacon", "active": false},
        {"x": 58, "y": 7, "z": 3, "model": "sf/beacon", "active": false}
    ]
    beacons = entity_group(beacons)
    enemies = entity_group()
    call skimmer 17, 4, 1.2
    call skimmer 46, 6, 1.5
    call skimmer 55, 5, 1
    call skimmer 11, 8, 1
    boss = {"visible": false}
    boss_warning = {"visible": false}
    boss_phase = "dormant"
    root_clock = 0
    root_phase = "dormant"
    rootheart = {
        "x": 66,
        "y": 7,
        "z": 3,
        "hp": 18,
        "max_hp": 18,
        "hit_ticks": 0,
        "model": "sf/rootheart_closed",
        "visible": !garden_cleared
    }
    root_warning = {"x": 58, "y": 9.1, "z": 3.05, "model": "sf/root_warning", "visible": false}
    pickups[2].visible = false
    seal_shell = {"visible": false}
    ship.visible = false
    ship_flames = []
    player = {"x": 6, "y": 7, "z": 3, "angle": 0, "pitch": 0, "vz": 0}
    checkpoint = {"x": 6, "z": 3}

action skimmer(x, z, span):
    enemies.push(
        {
            "x": x,
            "y": 7,
            "z": z,
            "home": x,
            "base": z,
            "span": span,
            "hp": 4,
            "hit_ticks": 0,
            "visible": true,
            "model": "sf/skimmer",
            "kind": "spore",
            "cooldown": 70
        }
    )

action dash_trail:
    stop when effects.length >= 96
    effects.push(
        {
            "x": player.x,
            "y": 6.9,
            "z": player.z + 0.7,
            "dx": -dash_direction * 0.04,
            "dz": 0,
            "ttl": 9,
            "life": 9,
            "angle": 0,
            "spin": 0,
            "scale": 0.9,
            "model": "sf/dash_echo",
            "kind": "exhaust",
            "visible": true
        }
    )
iron_cantor.rune
@Logic/starfall
action reset_iron_cantor:
    stop when sector_id != "foundry" || !forge_guardian.visible
    forge_guardian.hp = forge_guardian.max_hp
    forge_guardian.x = 88
    forge_guardian.z = 3
    forge_guardian.hit_ticks = 0
    forge_guardian.model = "sf/cantor_guard"
    forge_clock = 0
    forge_phase = "dormant"
    forge_warning.visible = false

action update_iron_cantor:
    forge_warning.visible = false
    stop when sector_id != "foundry" || !forge_guardian.visible || recovery_phase != "none" || player.x < 80
    forge_clock += 1
    forge_guardian.hit_ticks = max(0,forge_guardian.hit_ticks-1)
    cycle = forge_clock%180
    forge_phase = cycle >= 75 && cycle < 155 ? "vent" : "guard"
    forge_guardian.model = forge_phase == "vent" ? (cycle%16 < 8 ? "sf/cantor_open" : "sf/cantor_vent") : (cycle >= 35 && cycle < 60 ? "sf/cantor_raise" : "sf/cantor_guard")
    forge_guardian.x = 88+sin(forge_clock*2)*0.35
    if forge_guardian.hit_ticks > 0:
        forge_guardian.model = "sf/cantor_hit"
    if cycle >= 35 && cycle < 60:
        forge_warning.visible = true
        forge_warning.x = forge_guardian.x
    if cycle == 60 || cycle == 74:
        direction = player.x < forge_guardian.x ? -1 : 1
        call forge_wave forge_guardian.x+direction*1.4, direction
        sound.play "sf_cantor_slam"
    if abs(player.x-forge_guardian.x) < 1.2 && player.z < 6.5:
        call take_damage 1, forge_guardian.x

action forge_wave(x, direction):
    shots.push(
        {
            "x": x,
            "y": 7,
            "z": 3.55,
            "dx": direction * 0.24,
            "dz": 0,
            "ttl": 100,
            "hostile": true,
            "damage": 1,
            "model": "sf/forge_wave",
            "visible": true
        }
    )

action hit_iron_cantor(damage, x, z):
    stop when forge_phase != "vent" || !forge_guardian.visible
    forge_guardian.hp = max(0,forge_guardian.hp-damage)
    forge_guardian.hit_ticks = 6
    forge_guardian.model = "sf/cantor_hit"
    call burst x,z,5
    sound.play "sf_hit"
    if forge_guardian.hp == 0:
        forge_guardian.visible = false
        call claim_boss_container "cantor"
        forge_warning.visible = false
        forge_phase = "defeated"
        pickups[2].visible = true
        shots = []
        call burst forge_guardian.x,4.5,36
        sound.play "sf_explode"
        notice = "IRON CANTOR SILENCED / HEALTH +1. Collect the relay to save the Foundry and open the crypt."
        notice_ticks = 180
logic.rune
@Logic/starfall
state:
    status = "title"
    campaign = {
        "hydroponics": false,
        "foundry": false,
        "finished": false,
        "capacitor": false,
        "armor": false,
        "curator": false,
        "reward_version": 0,
        "containers": {"rootheart": false, "cantor": false, "warden": false, "curator": false},
        "rooms": {
            "dock": true,
            "cargo": false,
            "containment": false,
            "crypt": false,
            "hydroponics": false,
            "foundry": false,
            "archive": false,
            "observatory": false,
            "jet_vault": false,
            "dash_vault": false
        }
    }
    max_health = 4
    life_pickups = {}
    life_rewards = 0
    curator = {"visible": false, "hp": 0, "max_hp": 16}
    curator_warning = {"visible": false}
    curator_clock = 0
    curator_phase = "dormant"
    charge_duration = 24
    upgrade_snapshot = null
    discovery_active = false
    discovery_ticks = 0
    discovery_title = ""
    discovery_help = ""
    discovery_input_held = false
    discovery_item = {"visible": false}
    portal_aura = []
    arrival_ring = {"visible": false, "model": "sf/rift_arrival", "x": 9, "y": 8, "z": 4}
    current_room = "dock"
    navigation_stamp = ""
    map_nodes = []
    map_links = [
        {"from": "dock", "to": "cargo"},
        {"from": "cargo", "to": "containment"},
        {"from": "containment", "to": "crypt"},
        {"from": "cargo", "to": "hydroponics"},
        {"from": "containment", "to": "foundry"},
        {"from": "cargo", "to": "archive"},
        {"from": "foundry", "to": "observatory"}
    ]
    bonus_return = {"x": 33, "z": 10}
    damage_side = 0
    damage_indicator_ticks = 0
    sector_id = "station"
    level_map = "orbit"
    station_snapshot = null
    portals = []
    garden_cleared = false
    foundry_cleared = false
    glove_unlocked = false
    magnet_seen = false
    grip_release_ticks = 0
    gravity_low = false
    foundry_clock = 0
    on_shuttle = false
    shuttle = {
        "x": 28.5,
        "y": 7,
        "z": 5,
        "visible": false,
        "model": "sf/magnetic_shuttle",
        "width": 5
    }
    magnet_fx = {"x": 9, "y": 7.2, "z": 3, "model": "sf/magnet_lock", "visible": false}
    machinery = []
    gravity_consoles = []
    forge_clock = 0
    forge_phase = "dormant"
    forge_guardian = {"visible": false, "hp": 0, "max_hp": 24}
    forge_warning = {"visible": false}
    dash_unlocked = false
    dash_ready = true
    dash_ticks = 0
    dash_direction = 1
    dash_held = false
    use_held = false
    room_changed = false
    transition_ticks = 0
    root_clock = 0
    root_phase = "dormant"
    rootheart = {"visible": false, "hp": 0, "max_hp": 18}
    root_warning = {"visible": false}
    world = null
    player = {"x": 9, "y": 7, "z": 3, "angle": 0, "pitch": 0, "vz": 0}
    camera = {"x": 13, "y": 19, "z": 5, "angle": 270, "pitch": 0}
    avatar = {"x": 9, "y": 7, "z": 3, "model": "sf/pilot_idle", "angle": 0}
    muzzle = {"x": 10, "y": 7, "z": 4, "model": "sf/bolt", "visible": false}
    rifle = {"x": 9, "y": 7, "z": 3, "model": "sf/rifle", "angle": 0}
    effects = []
    aiming_up = false
    ducking = false
    body_height = 1.6
    flash = 0
    hurt_ticks = 0
    jet_ticks = 0
    charge_ticks = 0
    charge_ready = false
    fire_held = false
    music_track = ""
    seal_age = 0
    seal_shake = 0
    seal_shell = {
        "x": 62.5,
        "y": 7,
        "z": 3,
        "model": "sf/seal_shell",
        "visible": false,
        "dissolve": 0
    }
    charge_fx = {"x": 10, "y": 7.2, "z": 4, "model": "sf/charge_orb", "visible": false}
    recovery_phase = "none"
    recovery_ticks = 0
    recovery_duration = 45
    death_lethal = false
    death_origin = {"x": 9, "z": 3}
    return_target = {"x": 9, "z": 3}
    ghost = {"x": 9, "y": 9.7, "z": 4, "model": "sf/ghost", "visible": false, "angle": 0}
    scenery = []
    pickups = []
    beacons = []
    enemies = []
    shots = []
    boss = {"visible": false}
    boss_warning = {"visible": false}
    checkpoint = {"x": 9, "z": 3}
    health = 4
    lives = 3
    cinematic_ticks = 0
    boarding_origin = 9
    launch_label = "Board station / Enter"
    ship = {"x": 7, "y": 5.5, "z": 3, "model": "sf/ship", "scale": 1.2, "visible": true}
    ship_flames = []
    jets = false
    plasma = false
    gate_open = false
    core = false
    escape_active = false
    return_encounters = []
    facing = 1
    velocity = 0
    grounded = true
    jumps = 0
    jump_held = false
    cooldown = 0
    invulnerable = 0
    ticks = 0
    boss_clock = 0
    boss_phase = "dormant"
    notice = ""
    notice_ticks = 0
    touch_ready = false
    touch_dash_ready = false
    touch_use_ready = false
    title_hidden = false
    ui = {"meters": [], "panel": null}
    pause_ui = {"meters": [], "panel": null}

action initialize:
    campaign.hydroponics = !!campaign.hydroponics
    campaign.finished = !!campaign.finished
    campaign.foundry = !!campaign.foundry
    if campaign.foundry:
        campaign.hydroponics = true
    call new_run
    status = "title"
    call sync_music
    call refresh_ui

action new_run:
    if !campaign.rooms:
        campaign.rooms = {
            "dock": true,
            "cargo": false,
            "containment": false,
            "crypt": false,
            "hydroponics": false,
            "foundry": false,
            "archive": false,
            "observatory": false,
            "jet_vault": false,
            "dash_vault": false
        }
    campaign.capacitor = !!campaign.capacitor
    campaign.armor = !!campaign.armor
    campaign.curator = !!campaign.curator
    if !campaign.containers:
        campaign.containers = {
            "rootheart": false,
            "cantor": false,
            "warden": false,
            "curator": false
        }
    if campaign.reward_version != 1:
        campaign.containers.rootheart = !!campaign.containers.rootheart || !!campaign.hydroponics
        campaign.containers.cantor = !!campaign.containers.cantor || !!campaign.foundry
        campaign.containers.warden = !!campaign.containers.warden || !!campaign.finished
        campaign.containers.curator = !!campaign.containers.curator || campaign.curator
        campaign.reward_version = 1
    call refresh_health_capacity
    life_pickups = {}
    life_rewards = 0
    curator.visible = false
    curator_warning.visible = false
    curator_clock = 0
    curator_phase = "dormant"
    charge_duration = campaign.capacitor ? 18 : 24
    navigation_stamp = ""
    discovery_active = false
    discovery_ticks = 0
    discovery_item = {"visible": false}
    upgrade_snapshot = null
    damage_side = 0
    damage_indicator_ticks = 0
    player = {"x": 9, "y": 7, "z": 3, "angle": 0, "pitch": 0, "vz": 0}
    checkpoint = {"x": 9, "z": 3}
    camera = {"x": 13, "y": 19, "z": 5, "angle": 270, "pitch": 0}
    health = max_health
    lives = 3
    sector_id = "station"
    level_map = "orbit"
    station_snapshot = null
    garden_cleared = !!campaign.hydroponics || !!campaign.foundry
    foundry_cleared = !!campaign.foundry
    glove_unlocked = foundry_cleared
    grip_release_ticks = 0
    gravity_low = false
    foundry_clock = 0
    on_shuttle = false
    shuttle.visible = false
    magnet_fx.visible = false
    machinery = []
    gravity_consoles = []
    forge_guardian.visible = false
    forge_warning.visible = false
    dash_unlocked = garden_cleared
    dash_ready = true
    dash_ticks = 0
    dash_held = false
    use_held = false
    transition_ticks = 0
    portal_aura = []
    arrival_ring = {"visible": false, "model": "sf/rift_arrival", "x": 9, "y": 8, "z": 4}
    rootheart.visible = false
    root_warning.visible = false
    cinematic_ticks = 0
    boarding_origin = 9
    launch_label = "Board station / Enter"
    ship = {"x": 7, "y": 5.5, "z": 3, "model": "sf/ship", "scale": 1.2, "visible": true}
    ship_flames = []
    jets = garden_cleared
    plasma = foundry_cleared
    gate_open = foundry_cleared
    charge_ticks = 0
    charge_ready = false
    fire_held = false
    music_track = ""
    seal_age = 0
    seal_shake = 0
    seal_shell.visible = false
    seal_shell.dissolve = 0
    charge_fx.visible = false
    core = false
    escape_active = false
    return_encounters = []
    facing = 1
    velocity = 0
    grounded = true
    jumps = 0
    jump_held = false
    cooldown = 0
    invulnerable = 0
    ticks = 0
    boss_clock = 0
    boss_phase = "dormant"
    shots = []
    effects = []
    aiming_up = false
    ducking = false
    body_height = 1.6
    flash = 0
    hurt_ticks = 0
    jet_ticks = 0
    recovery_phase = "none"
    recovery_ticks = 0
    death_lethal = false
    ghost.visible = false
    ghost.dissolve = 0
    avatar.dissolve = 0
    notice = "E / USE at the glowing PROPULSION CRYPT portal to find jump jets."
    notice_ticks = 180
    call build_title_fleet
    call build_station
    call update_view

action start:
    if campaign.finished:
        campaign = {"hydroponics": false, "foundry": false, "finished": false}
    call new_run
    call begin_intro

action advance:
    if discovery_active:
        if discovery_ticks >= 36:
            call finish_discovery
        stop when true
    if status == "intro":
        call begin_landing
        stop when true
    if status == "ending":
        call begin_credits
        stop when true
    if status == "credits":
        call finish_credits
        stop when true
    stop when status == "playing" || status == "landing" || status == "departing"
    call start

action return_to_title:
    music.stop
    call initialize

action tick(input):
    if status == "intro" || status == "ending" || status == "credits":
        call tick_cinema
        stop when true
    if status == "landing" || status == "departing":
        call tick_ship
        stop when true
    stop when status != "playing"
    if recovery_phase != "none":
        call tick_recovery
        stop when true
    if discovery_active:
        call tick_discovery input
        stop when true
    room_changed = false
    use_pressed = !!input.use && !use_held
    use_held = !!input.use
    if use_pressed:
        call use_hatch
    stop when room_changed
    ticks += 1
    transition_ticks = max(0, transition_ticks-1)
    notice_ticks = max(0, notice_ticks-1)
    invulnerable = max(0, invulnerable-1)
    cooldown = max(0, cooldown-1)
    flash = max(0, flash-1)
    hurt_ticks = max(0, hurt_ticks-1)
    damage_indicator_ticks = max(0, damage_indicator_ticks-1)
    jet_ticks = max(0, jet_ticks-1)
    grip_release_ticks = max(0, grip_release_ticks-1)
    aiming_up = !!input.aim_up
    ducking = grounded && (!!input.duck || input.duck_axis > 0.5) && !input.jump
    body_height = ducking ? 0.85 : 1.6
    call update_effects
    call update_seal
    if sector_id == "foundry":
        call update_foundry_machinery
    axis = clamp((input.right ? 1 : 0)-(input.left ? 1 : 0)+(input.move_x ? input.move_x : 0), -1, 1)
    velocity += (axis*(ducking ? 0.08 : 0.22)-velocity)*0.6
    if abs(axis) > 0.1:
        facing = axis > 0 ? 1 : -1
    pressed = !!input.jump && !jump_held
    if grounded:
        jumps = 0
        dash_ready = true
    if !!input.dash && !dash_held && dash_unlocked && !grounded && dash_ready:
        dash_ticks = 12
        dash_direction = facing
        dash_ready = false
        sound.play "sf_air_dash"
    dash_held = !!input.dash
    move_delta = velocity
    if dash_ticks > 0:
        move_delta = dash_direction*0.72
        player.vz = 0.035
        dash_ticks -= 1
        if ticks%2 == 0:
            call dash_trail
    if pressed && !grounded && jets && jumps < 2:
        player.vz = 0.46
        jumps = 2
        jet_ticks = 10
        sound.play "sf_jump"
    if pressed && grounded:
        jumps = 1
        sound.play "sf_jump"
    gravity_amount = (sector_id == "foundry" || sector_id == "observatory") && gravity_low ? 0.012 : 0.035
    if sector_id == "foundry" && on_shuttle:
        if pressed:
            player.vz = 0.42
            grip_release_ticks = 28
            jumps = 1
            jet_ticks = 0
            on_shuttle = false
        if !pressed:
            player.vz = gravity_amount
    previous_z = player.z
    player = voxel_move(
        world,
        player,
        move_delta,
        0,
        pressed && grounded,
        {"jumpSpeed": 0.42, "gravity": gravity_amount, "autoStep": false}
    )
    player.y = 7
    grounded = player.vz == 0 && player.z <= previous_z && world.cells[(floor(player.z-0.05)*world.height+7)*world.width+floor(player.x)] != 0
    if sector_id == "foundry":
        call grab_carrier previous_z, pressed
    # Walking off a ledge consumes the ground jump; jets give one air jump.
    if !grounded && jumps == 0:
        jumps = 1
    if !grounded:
        ducking = false
        body_height = 1.6
    jump_held = !!input.jump
    if player.z < 1.3:
        invulnerable = 0
        call take_damage 2
        if recovery_phase == "none":
            call begin_recovery
    if recovery_phase != "none":
        call refresh_ui
        stop when true
    call update_weapon input
    if jet_ticks > 0 && ticks%2 == 0:
        call jet_exhaust
    call update_combat
    call sync_music
    if recovery_phase != "none":
        shots = []
        call refresh_ui
        stop when true
    if status == "playing" && !discovery_active:
        call update_exploration
    if status == "playing":
        call update_view
    call refresh_ui

action update_exploration:
    for item in nearby(pickups, player, 24):
        item.z = item.base + sin(ticks*5)*0.15
        if item.visible && (item.kind != "plasma" || dash_unlocked) && abs(player.x-item.x) < 1 && abs(player.z+0.5-item.z) < 1.3:
            item.visible = false
            sound.play "sf_upgrade"
            notice_ticks = 210
            if item.kind == "jets":
                jets = true
                notice = "JUMP JETS: press jump again in midair. Enter the cargo hatch for Hydroponics."
            if item.kind == "plasma":
                plasma = true
                charge_ticks = 0
                notice = "PLASMA: hold fire until charged, release to blast the violet seal."
            if item.kind == "dash":
                dash_unlocked = true
                notice = "AIR DASH ONLINE: jump, then press SHIFT / K to burst across the breach."
            if item.kind == "oneup" && !life_pickups[item.key]:
                life_pickups[item.key] = true
                life_rewards += 1
                lives += 1
                notice = "1-UP! EXTRA LIFE / "+lives+" LIVES"
                sound.play "sf_oneup"
            if item.kind == "repair":
                health = max_health
                notice = "Repair pod recovered. Suit fully restored."
            if item.kind == "capacitor":
                campaign.capacitor = true
                charge_duration = 18
                notice = "CAPACITOR SAVED / Plasma charge time reduced by 25%."
            if item.kind == "armor":
                campaign.armor = true
                call refresh_health_capacity
                health = max_health
                notice = "ARMOR SAVED / Two additional health cells added to the suit."
            if item.kind == "relay":
                garden_cleared = true
                campaign.hydroponics = true
                portals[1].visible = true
                notice = "HYDROPONICS SAVED. Return to cargo; air dash across the western gap for plasma."
            if item.kind == "glove":
                glove_unlocked = true
                notice = "MAGNETIC GLOVE ONLINE. Jump to grab the carrier underneath; Space releases."
            if item.kind == "foundry_relay":
                foundry_cleared = true
                campaign.foundry = true
                campaign.hydroponics = true
                portals[1].visible = true
                notice = "FOUNDRY SAVED. Crypt bulkhead released. Glove and plasma are banked."
            if item.kind == "core":
                core = true
                notice = "CORE SECURED. Security reinforcements inbound. Fight west to the ship!"
            if item.kind != "repair" && item.kind != "oneup":
                call begin_discovery item.kind, item.model
            if item.kind == "oneup":
                call discovery_sparkles
    stop when discovery_active
    for beacon in beacons:
        if abs(player.x-beacon.x) < 0.9 && abs(player.z-beacon.z) < 0.4 && checkpoint.x != beacon.x:
            checkpoint = {"x": beacon.x, "z": beacon.z}
            health = max_health
            beacon.active = true
            sound.play "sf_beacon"
            notice = "Beacon linked. Suit repaired. Upgrades survive a suit reboot."
            notice_ticks = 120
    if sector_id == "station" && core && player.x < 10 && player.z < 4:
        call begin_departure

action take_damage(amount, source_x):
    stop when status != "playing" || discovery_active || recovery_phase != "none" || invulnerable > 0 || dash_ticks > 0
    health = max(0, health-amount)
    flash = 2
    hurt_ticks = 9
    invulnerable = 45
    damage_side = source_x >= 0 && abs(source_x-player.x) > 0.2 ? (source_x < player.x ? -1 : 1) : 0
    damage_indicator_ticks = 20
    call burst player.x, player.z+0.8, 6
    sound.play "sf_hurt"
    if health == 0:
        call begin_recovery
    call refresh_ui

action respawn:
    player = {"x": return_target.x, "y": 7, "z": return_target.z, "angle": 0, "pitch": 0, "vz": 0}
    velocity = 0
    jumps = 0
    grounded = true
    jump_held = false
    aiming_up = false
    ducking = false
    body_height = 1.6
    jet_ticks = 0
    shots = []
    invulnerable = 75
    if death_lethal:
        health = max_health
    status = "playing"
    recovery_phase = "reform"
    recovery_ticks = 0
    ghost.visible = false
    avatar.dissolve = 1
    notice = "Signal restored. Recovered equipment stays with you."
    notice_ticks = 100

action update_view:
    call update_portal_presentation
    in_temple = sector_id == "station" && player.x >= 96 && player.z < 8
    camera_target = in_temple && boss.visible && boss_phase != "dormant" ? (player.x+boss.x)/2 : player.x+facing*1.4
    in_garden_fight = sector_id == "hydroponics" && rootheart.visible && root_phase != "dormant"
    if in_garden_fight:
        camera_target = (player.x+rootheart.x)/2
    # Keep the arena and its far hatch framed after the Cantor falls, too.
    in_forge_arena = sector_id == "foundry" && player.x >= 79 && player.z < 10
    if in_forge_arena:
        camera_target = 87.5
    if sector_id == "observatory" && player.x >= 65 && player.z < 8:
        camera_target = 78.5
    in_upgrade_vault = sector_id == "jet_vault" || sector_id == "dash_vault"
    camera.x += (clamp(camera_target, 13, world.width-(in_forge_arena ? 6 : (in_upgrade_vault ? 8 : 13)))-camera.x)*0.12
    camera.y += ((sector_id == "observatory" && player.x >= 65 && player.z < 8 ? 24.5 : (in_forge_arena || in_temple ? 20.6 : (in_garden_fight ? 20 : 19)))-camera.y)*0.08
    camera.z += ((in_forge_arena ? 5.5 : (in_temple ? 6 : (in_garden_fight ? 5.5 : clamp(player.z+1.5, 5, world.depth-5))))-camera.z)*0.12
    avatar.x = player.x
    avatar.z = player.z
    avatar.angle = facing == 1 ? 0 : 180
    pose = !grounded ? "air" : (abs(velocity) > 0.03 ? "run"+floor(ticks%16/4) : "idle")
    avatar.model = "sf/pilot_"+pose+(aiming_up ? "_up" : "")+(hurt_ticks > 0 ? "_hit" : "")
    if ducking:
        avatar.model = "sf/pilot_duck"+(hurt_ticks > 0 ? "_hit" : "")
    if dash_ticks > 0:
        avatar.model = "sf/pilot_dash"
    if on_shuttle:
        avatar.model = "sf/pilot_hang"+floor(ticks%24/12)+(hurt_ticks > 0 ? "_hit" : "")
    avatar.dissolve = clamp(transition_ticks/12, 0, 1)
    avatar.visible = hurt_ticks > 0 || invulnerable == 0 || ticks%6 < 3
    # The rifle recoils independently, so the helmet and boots stay planted.
    recoil = cooldown >= 6 ? 0.08 : 0
    rifle.x = player.x-(aiming_up ? 0 : facing*recoil)
    rifle.z = player.z-(aiming_up ? recoil : 0)-(ducking ? 0.55 : 0)
    rifle.angle = avatar.angle
    rifle.dissolve = avatar.dissolve
    rifle.model = "sf/rifle"+(aiming_up ? "_up" : "")+(plasma ? "_plasma" : "")
    rifle.visible = avatar.visible
    muzzle.x = player.x+(aiming_up ? 0 : facing*1.1)
    muzzle.z = player.z+(aiming_up ? 1.95 : 1)-(ducking ? 0.55 : 0)
    muzzle.angle = ticks*37
    muzzle.scale = cooldown == 7 ? 1 : 0.6
    muzzle.model = plasma ? "sf/muzzle_plasma" : "sf/muzzle"
    muzzle.visible = cooldown >= 6 && avatar.visible
    charge_fx.x = muzzle.x
    charge_fx.z = muzzle.z
    charge_fx.angle = ticks*19
    charge_fx.scale = 0.2+charge_ticks/charge_duration*0.65
    charge_fx.model = charge_ticks >= charge_duration ? "sf/charge_ready" : "sf/charge_orb"
    charge_fx.visible = plasma && charge_ticks > 0 && avatar.visible
    magnet_fx.visible = glove_unlocked && on_shuttle
    magnet_fx.x = player.x
    magnet_fx.z = player.z+2.3
    magnet_fx.angle = ticks*12
    if discovery_active:
        call pose_discovery
    if seal_shake > 0:
        camera.x += sin(ticks*133)*0.025*seal_shake/12
        camera.z += cos(ticks*119)*0.018*seal_shake/12

action refresh_ui:
    call update_navigation
    touch_ready = status == "playing" && recovery_phase == "none"
    touch_dash_ready = touch_ready && dash_unlocked
    touch_use_ready = false
    title_hidden = status != "title" && status != "won" && status != "gameover"
    cinema_skip_hidden = status != "intro" && status != "ending" && status != "credits"
    cinema_skip_ready = !cinema_skip_hidden
    touch_ui_visible = title_hidden
    launch_label = status == "gameover" || status == "won" ? "New expedition / Enter" : "Board station / Enter"
    if campaign.hydroponics && !campaign.finished:
        launch_label = "Continue campaign / Enter"
    if campaign.finished:
        launch_label = "New campaign / Enter"
    objective = !jets ? "CARGO BAY > FIND JUMP JETS" : (!plasma ? "< JETS UP WESTERN LEDGES / AIR DASH TO PLASMA" : (!gate_open ? "CHARGE PLASMA AT THE VIOLET SEAL >" : (!core ? "DESCEND INTO THE REACTOR TEMPLE >" : "< RETURN TO YOUR SHIP")))
    if sector_id == "station" && !boss.visible && !core && gate_open:
        objective = "RECOVER THE CORE FROM THE EASTERN ALTAR >"
    sector = player.x < 26 ? "01 / DOCKING RING" : (player.x < 62 ? "02 / SILENT CARGO" : (player.x < 87 ? "03 / CONTAINMENT" : "04 / THE REACTOR CRYPT"))
    if sector_id == "station" && jets && !garden_cleared:
        objective = "CARGO HATCH > RESTORE HYDROPONICS / E USE"
    if sector_id == "station" && gate_open && !foundry_cleared:
        objective = "CONTAINMENT HATCH > RESTORE GRAVITY FOUNDRY / E"
    if sector_id == "foundry":
        sector = "06 / GRAVITY FOUNDRY / "+(gravity_low ? "LOW GRAVITY" : "NORMAL GRAVITY")
        objective = !glove_unlocked ? (magnet_seen ? "< JETS UP TO THE SERVICE WORKSHOP / FIND MAGNETIC GLOVE" : "INSPECT THE FURNACE CROSSING >") : (player.x < 53 ? "JUMP TO GRAB THE OVERHEAD CARRIER >" : (player.x < 73 ? "E AT CONSOLE / LOW GRAVITY TO REACH UPPER GANTRY" : (forge_guardian.visible ? "SILENCE THE IRON CANTOR >" : "RECOVER FOUNDRY RELAY / CARGO SHORTCUT >")))
    if sector_id == "hydroponics":
        sector = "05 / HYDROPONICS / THE OVERGROWTH"
        objective = !dash_unlocked ? "JETS UP PAST THE REPAIR POD / DASH CRYPT >" : (rootheart.visible ? "CROSS THE BREACH / PURGE ROOTHEART >" : (!garden_cleared ? "RECOVER THE GARDEN RELAY >" : "RELAY SAVED / E USE CARGO SHORTCUT >"))
    if sector_id == "archive" || sector_id == "observatory":
        sector = sector_id == "archive" ? "07 / SIGNAL ARCHIVE" : "08 / GRAVITY OBSERVATORY"
        objective = sector_id == "archive" ? "JETS + DASH / RECOVER THE OPTIONAL CAPACITOR >" : "LOW GRAVITY + JETS + DASH / OPTIONAL SUIT ARMOR >"
    if sector_id == "observatory" && player.x >= 60:
        objective = curator.visible ? "OPTIONAL / DEFEAT THE VOID CURATOR >" : "CURATOR SILENCED / HEALTH CONTAINER SAVED"
    if sector_id == "jet_vault" || sector_id == "dash_vault":
        sector = sector_id == "jet_vault" ? "CARGO / PROPULSION CRYPT" : "HYDROPONICS / DASH CRYPT"
        objective = (sector_id == "jet_vault" ? jets : dash_unlocked) ? "UPGRADE RECOVERED / E AT EXIT TO RETURN" : "EXPLORE THE CRYPT / UPGRADE ON THE PEDESTAL >"

    ui = {
        "style": "floating",
        "meters": [
            {
                "label": "HP " + health + "/" + max_health + " / LIVES " + lives,
                "value": health,
                "max": max_health,
                "color": health <= 2 ? 15755890: 5828303,
                "display": "pips",
                "icon": health <= 2 ? "sf/life_critical": "sf/life_full",
                "emptyIcon": "sf/life_empty"
            }
        ],
        "objective": objective,
        "detail": sector + " / " + (jets ? "JETS ": "") + (plasma ? "PLASMA ": "") + (core ? "CORE": "") + (dash_unlocked ? " / DASH": "") + (glove_unlocked ? " / GLOVE": ""),
        "prompt": plasma ? "HOLD CLICK X CHARGE / RELEASE FIRE / S DOWN DUCK": "A D MOVE / SPACE JUMP / CLICK X FIRE / S DOWN DUCK",
        "notice": notice_ticks > 0 ? notice: "",
        "damageDirection": damage_indicator_ticks > 0 ? damage_side: 0,
        "panel": null
    }
    if boss_phase != "dormant" && boss.visible && player.x >= 96:
        ui.meters.push(
            {
                "label": "CRYPT WARDEN",
                "value": boss.hp,
                "max": boss.max_hp,
                "color": boss_phase == "exposed" ? 5828303: 15755890,
                "display": "bar",
                "icon": "sf/warden_portrait"
            }
        )
        ui.notice = boss_phase == "exposed" ? "CORE EXPOSED - FIRE!" : (boss_phase == "windup" || boss_phase == "leap" ? "S / DOWN DUCK UNDER LEAP / LEAVE MARKED LANDING" : (boss_phase == "slam" ? "JUMP THE SHOCKWAVE" : "CRYPT WARDEN / ARMORED"))
    if sector_id == "hydroponics" && rootheart.visible && root_phase != "dormant":
        ui.meters.push(
            {
                "label": "ROOTHEART",
                "value": rootheart.hp,
                "max": rootheart.max_hp,
                "color": root_phase == "open" ? 5828303: 15755890,
                "display": "bar"
            }
        )
        ui.notice = root_phase == "open" ? "BLOOM EXPOSED - FIRE!" : "SPORES INBOUND / JUMP OR AIR DASH"
    if sector_id == "foundry" && forge_guardian.visible && forge_phase != "dormant":
        ui.meters.push(
            {
                "label": "IRON CANTOR",
                "value": forge_guardian.hp,
                "max": forge_guardian.max_hp,
                "color": forge_phase == "vent" ? 5828303: 15755890,
                "display": "bar"
            }
        )
        ui.notice = forge_phase == "vent" ? "FURNACE VENT OPEN - RELEASE CHARGED PLASMA" : "HAMMER RAISED / JUMP THE TWO HEAT WAVES"
    if sector_id == "observatory" && curator.visible && curator_phase != "dormant":
        ui.meters.push(
            {
                "label": "VOID CURATOR",
                "value": curator.hp,
                "max": curator.max_hp,
                "color": curator_phase == "open" ? 11993074: 12813036,
                "display": "bar"
            }
        )
        ui.notice = curator_phase == "open" ? "IRIS OPEN - FIRE / DUCK STAR BOLTS" : "LEAVE THE VIOLET TARGET / JUMP THE LOW STAR WAVE"
    if plasma:
        ui.meters.push(
            {
                "label": charge_ticks >= charge_duration ? "PLASMA READY": "PLASMA CHARGE",
                "value": charge_ticks,
                "max": charge_duration,
                "color": charge_ticks >= charge_duration ? 11993074: 5828303,
                "display": "bar"
            }
        )
        if charge_ticks >= charge_duration:
            ui.prompt = "PLASMA READY - RELEASE FIRE / UP AIM"
    if dash_unlocked && !plasma:
        ui.prompt = "SPACE JUMP / SHIFT K DASH / CLICK X FIRE / S DUCK / E USE"
    for portal in portals:
        if portal.visible && abs(player.x-portal.x) < 1.25 && abs(player.z-portal.z) < 1.5:
            ui.prompt = "E / USE: "+portal.label
            touch_use_ready = touch_ready
    for console in gravity_consoles:
        if abs(player.x-console.x) < 1.3 && abs(player.z-console.z) < 1.5:
            ui.prompt = "E / USE: "+(gravity_low ? "RESTORE NORMAL GRAVITY" : "ENGAGE LOW GRAVITY")
            touch_use_ready = touch_ready
    if on_shuttle:
        ui.prompt = "MAGNETIC GRIP / SPACE TO RELEASE"
    if ducking:
        ui.prompt = "DUCKING / CLICK X FIRE / SPACE TO JUMP"
    if recovery_phase != "none":
        ui.objective = recovery_phase == "collapse" ? "SUIT SIGNAL LOST" : (recovery_phase == "return" ? "GHOST RETURNING TO BEACON" : "REBUILDING SUIT")
        ui.notice = lives+" lives remaining. Equipment and recovered core are safe."
        ui.prompt = "SIGNAL RECOVERY / P PAUSE"
    if status == "title":
        ui.heading = "STARFALL PROTOCOL"
        ui.objective = "A SIGNAL FROM A DEAD STATION"
        ui.prompt = "ENTER / BOARD STATION"
        ui.panel = {
            "title": "RECOVER. UPGRADE. RETURN.",
            "body": "Explore the gardens and gravity furnaces.|Find jets, air dash, plasma and a magnetic glove.|Restore both relays, then brave the crypt.",
            "choices": [],
            "selected": 0,
            "footer": campaign.hydroponics ? (campaign.foundry ? "HYDROPONICS + FOUNDRY COMPLETE / GEAR SAVED": "HYDROPONICS COMPLETE / SAVED GEAR AVAILABLE"): "A CONNECTED SPACE ADVENTURE"
        }
    if status == "landing":
        ui.objective = cinematic_ticks < 72 ? "APPROACHING KEPLER STATION" : "TOUCHDOWN / DISEMBARKING"
        ui.notice = "THREE LIVES. RECOVER THE CORE. MAKE IT HOME."
        ui.prompt = "LANDING SEQUENCE / P PAUSE"
    if status == "departing":
        ui.objective = cinematic_ticks < 30 ? "CORE ABOARD / BOARDING SHIP" : "ENGINES ONLINE / LEAVING KEPLER"
        ui.notice = "Signal restored. Time to go home."
        ui.prompt = "DEPARTURE SEQUENCE / P PAUSE"
    if status == "gameover":
        ui.heading = "GAME OVER"
        ui.objective = "NO LIVES REMAINING"
        ui.prompt = "ENTER / NEW EXPEDITION"
        ui.notice = ""
        ui.panel = {
            "title": "THREE SIGNALS LOST",
            "body": "Your pilot's signal has faded.|Continue with three lives.|Completed sectors and their gear stay saved.",
            "choices": [],
            "selected": 0,
            "footer": campaign.hydroponics ? (campaign.foundry ? "FOUNDRY, GLOVE AND PLASMA ARE BANKED": "HYDROPONICS AND AIR DASH ARE BANKED"): "ENTER / RETRY EXPEDITION"
        }
    if status == "won":
        ui.heading = "SIGNAL RESTORED"
        ui.prompt = "ENTER TO START A NEW EXPEDITION"
        ui.panel = {
            "title": "WELCOME HOME, PILOT",
            "body": "The starcore burns aboard the Helios Ark.|The gardens breathe. The children see another dawn.",
            "choices": [],
            "selected": 0,
            "footer": "GAME BY DAVE THOMAS / EXPEDITION COMPLETE"
        }
    pause_ui = {
        "heading": "SIGNAL ON HOLD",
        "meters": ui.meters,
        "objective": objective,
        "detail": sector,
        "prompt": "P RESUME / V SOUND / F FULLSCREEN",
        "notice": "",
        "panel": {
            "title": "STATION MAP",
            "body": "CARGO <-> GARDENS <-> GRAVITY FOUNDRY|Restore both relays to reach the Reactor Crypt.|SHIFT K dash / E hatches and gravity consoles.|Jump to hang from the carrier; Space releases.",
            "choices": [],
            "selected": 0,
            "footer": "ATTEMPT RESETS AT TITLE / COMPLETED SECTORS STAY SAVED"
        }
    }
    call show_navigation
    if discovery_active:
        ui.objective = discovery_title
        ui.detail = "EQUIPMENT RECOVERED"
        ui.notice = discovery_help
        ui.prompt = discovery_ticks < 36 ? "NEW SIGNAL ACQUIRED" : "ENTER / JUMP / FIRE / USE TO CONTINUE"
        ui.panel = null
        touch_dash_ready = false
        touch_use_ready = false
    if status == "intro" || status == "ending" || status == "credits":
        ui = {
            "meters": [],
            "heading": status == "intro" ? "HELIOS ARK / POWER RESERVE: THREE CYCLES": (status == "ending" ? "HELIOS ARK / SIGNAL RESTORED": "GAME BY DAVE THOMAS"),
            "objective": "",
            "detail": "",
            "notice": "",
            "prompt": status == "credits" ? "ENTER / FINISH CREDITS - P PAUSE": "ENTER / SKIP SCENE - P PAUSE",
            "panel": null,
            "cinema": {
                "lines": status == "intro" ? intro_lines: (status == "ending" ? ending_lines: credits_lines),
                "offset": status == "intro" ? max(
                    0,
                    cinema_ticks - 15
                ) * 0.85: cinema_ticks * (status == "credits" ? 0.75: 0.95),
                "scale": 2,
                "spacing": 18,
                "top": status == "credits" ? 0.18: 0.55,
                "bottom": 0.94,
                "fade": status == "intro" ? max(
                    clamp(1 - cinema_ticks / 18, 0, 1),
                    clamp((cinema_ticks - intro_duration + 18) / 18, 0, 1)
                ): (status == "ending" ? clamp(1 - cinema_ticks / 18, 0, 1): max(0.25, clamp((cinema_ticks - credits_duration + 30) / 30, 0, 1)))
            }
        }
    if status != "playing" && status != "title" && status != "won" && status != "gameover":
        pause_ui = {
            "meters": [],
            "heading": "SIGNAL ON HOLD",
            "objective": "TRANSMISSION PAUSED",
            "detail": "",
            "notice": "",
            "prompt": "P / CONTROLLER START TO RESUME",
            "panel": null
        }
navigation.rune
@Logic/starfall
action update_navigation:
    current_room = sector_id == "station" ? (player.x < 26 ? "dock" : (player.x < 62 ? "cargo" : (player.x < 87 ? "containment" : "crypt"))) : sector_id
    if status == "playing":
        campaign.rooms[current_room] = true
    stamp = current_room+jets+dash_unlocked+plasma+gate_open+garden_cleared+foundry_cleared+glove_unlocked
    if navigation_stamp != stamp:
        navigation_stamp = stamp
        map_nodes = [
            {
                "id": "dock",
                "label": "DOCK",
                "x": 3,
                "y": 75,
                "visited": !!campaign.rooms.dock,
                "locked": false
            },
            {
                "id": "cargo",
                "label": "CARGO",
                "x": 32,
                "y": 75,
                "visited": !!campaign.rooms.cargo,
                "locked": false
            },
            {
                "id": "containment",
                "label": "SEAL",
                "x": 62,
                "y": 75,
                "visited": !!campaign.rooms.containment,
                "locked": !gate_open
            },
            {
                "id": "crypt",
                "label": "CRYPT",
                "x": 95,
                "y": 75,
                "visited": !!campaign.rooms.crypt,
                "locked": !foundry_cleared
            },
            {
                "id": "hydroponics",
                "label": "GARDEN",
                "x": 32,
                "y": 28,
                "visited": !!campaign.rooms.hydroponics,
                "locked": !jets
            },
            {
                "id": "foundry",
                "label": "FOUNDRY",
                "x": 62,
                "y": 28,
                "visited": !!campaign.rooms.foundry,
                "locked": !plasma || !garden_cleared
            },
            {
                "id": "archive",
                "label": "ARCHIVE",
                "x": 3,
                "y": 5,
                "visited": !!campaign.rooms.archive,
                "locked": !jets || !dash_unlocked
            },
            {
                "id": "observatory",
                "label": "OBSERVATORY",
                "x": 95,
                "y": 5,
                "visited": !!campaign.rooms.observatory,
                "locked": !glove_unlocked
            }
        ]
        map_nodes.push(
            {
                "id": "jet_vault",
                "label": "JET TUNNEL",
                "x": 12,
                "y": 40,
                "visited": !!campaign.rooms.jet_vault,
                "locked": false
            }
        )
        map_nodes.push(
            {
                "id": "dash_vault",
                "label": "DASH CRYPT",
                "x": 46,
                "y": 5,
                "visited": !!campaign.rooms.dash_vault,
                "locked": !jets
            }
        )
        map_links = [
            {"from": "dock", "to": "cargo"},
            {"from": "cargo", "to": "containment"},
            {"from": "containment", "to": "crypt"},
            {"from": "cargo", "to": "hydroponics", "shortcut": garden_cleared},
            {"from": "containment", "to": "foundry"},
            {"from": "cargo", "to": "archive"},
            {"from": "foundry", "to": "observatory"}
        ]
        map_links.push({"from": "cargo", "to": "jet_vault"})
        map_links.push({"from": "hydroponics", "to": "dash_vault"})
        if foundry_cleared:
            map_links.push({"from": "cargo", "to": "foundry", "shortcut": true})

action show_navigation:
    pause_ui.map = {
        "nodes": map_nodes,
        "links": map_links,
        "current": current_room,
        "expanded": true
    }
    pause_ui.panel = null
    pause_ui.notice = ""
    pause_ui.prompt = "P RESUME / CYAN YOU / GREEN EXPLORED / RED LOCK / DOTTED SHORTCUTS"
plasma.rune
@Logic/starfall
action update_weapon(input):
    if !plasma && !!input.fire && cooldown == 0:
        call fire_weapon !!input.aim_up
    if plasma && !!input.fire && cooldown == 0:
        if charge_ticks == 0:
            sound.play "sf_plasma_charge"
        charge_ticks = min(charge_duration, charge_ticks+1)
        if charge_ticks == charge_duration && !charge_ready:
            sound.play "sf_plasma_ready"
        charge_ready = charge_ticks == charge_duration
    if plasma && !input.fire && fire_held && charge_ticks > 0:
        call fire_weapon !!input.aim_up
        charge_ticks = 0
        charge_ready = false
    fire_held = !!input.fire

action breach_seal(z):
    stop when gate_open
    if !garden_cleared:
        notice = "RELAY OFFLINE. Restore Hydroponics through the cargo hatch first."
        notice_ticks = 150
        stop when true
    gate_open = true
    world = voxel_fill(world, [62,5,3], [1,4,16], 0)
    seal_shell.x = 62.5
    seal_shell.z = 3
    seal_shell.visible = true
    seal_shell.dissolve = 0
    seal_age = 0
    seal_shake = 12
    call burst 62.5, z, 24
    sound.play "sf_seal_break"
    notice = "Seal destabilized. Reactor wing accessible."
    notice_ticks = 120

action update_seal:
    seal_shake = max(0, seal_shake-1)
    stop when sector_id != "station" || !seal_shell.visible
    seal_age += 1
    shake = max(0, 1-seal_age/36)
    seal_shell.x = 62.5+sin(seal_age*131)*0.07*shake
    seal_shell.z = 3+cos(seal_age*149)*0.035*shake
    seal_shell.dissolve = clamp((seal_age-6)/30, 0, 1)
    if seal_age >= 36:
        seal_shell.visible = false
        seal_shell.x = 62.5
        seal_shell.z = 3

action sync_music:
    desired_track = status == "playing" || status == "landing" || status == "departing" ? "sf_orbit" : ""
    if status == "playing" && recovery_phase == "none" && boss.visible && boss_phase != "dormant" && player.x >= 96:
        desired_track = "sf_warden"
    if status == "playing" && sector_id == "hydroponics":
        desired_track = rootheart.visible && root_phase != "dormant" && recovery_phase == "none" ? "sf_rootheart" : "sf_garden"
    if status == "playing" && sector_id == "foundry":
        desired_track = forge_guardian.visible && forge_phase != "dormant" && recovery_phase == "none" ? "sf_iron_cantor" : "sf_foundry"
    if status == "playing" && sector_id == "observatory" && curator.visible && curator_phase != "dormant" && recovery_phase == "none":
        desired_track = "sf_curator"
    if status == "title":
        desired_track = "sf_title"
    if status == "intro":
        desired_track = "sf_mission"
    if status == "ending" || status == "credits":
        desired_track = "sf_homecoming"
    if discovery_active:
        desired_track = ""
    stop when desired_track == music_track
    music.stop
    music_track = desired_track
    if music_track != "":
        music.play music_track
portals.rune
@Logic/starfall
# Portal shimmer is presentation only: it never changes collision or interactions.
action update_portal_presentation:
    portal_aura = []
    for portal in nearby(portals, player, 26):
        is_rift = portal.model == "sf/rift_gate0" || portal.model == "sf/rift_gate1"
        if is_rift:
            portal.model = ticks%20 < 10 ? "sf/rift_gate0" : "sf/rift_gate1"
            for mote in range(0,6):
                phase = ticks*4+mote*60
                portal_aura.push(
                    {
                        "x": portal.x + cos(phase) * 0.95,
                        "y": portal.y + 0.65,
                        "z": portal.z + 1.5 + sin(phase) * 1.15,
                        "model": "sf/portal_mote",
                        "scale": 0.45 + sin(phase * 2) * 0.12,
                        "visible": true
                    }
                )
    arrival_ring = {
        "x": player.x,
        "y": 8.5,
        "z": player.z + 1,
        "model": "sf/rift_arrival",
        "scale": 0.35 + (1 - transition_ticks / 12) * 1.5,
        "dissolve": 1 - transition_ticks / 12,
        "visible": transition_ticks > 0 && status == "playing" && recovery_phase == "none"
    }
recovery.rune
@Logic/starfall
# Keep the station paused while the pilot's signal returns to the saved beacon.
# The camera follows the ghost continuously, including across long return trips.
action begin_recovery:
    stop when recovery_phase != "none"
    recovery_phase = "collapse"
    recovery_ticks = 0
    death_lethal = health == 0
    if death_lethal:
        lives = max(0, lives-1)
        call reset_warden
        call reset_rootheart
        call reset_iron_cantor
        call reset_curator
    death_origin = {"x": player.x, "z": max(3, player.z)}
    return_target = {"x": checkpoint.x, "z": checkpoint.z}
    recovery_duration = clamp(36+abs(death_origin.x-return_target.x), 45, 105)
    velocity = 0
    player.vz = 0
    aiming_up = false
    ducking = false
    body_height = 1.6
    jet_ticks = 0
    on_shuttle = false
    magnet_fx.visible = false
    dash_ticks = 0
    dash_held = false
    dash_ready = true
    cooldown = 0
    charge_ticks = 0
    charge_ready = false
    fire_held = false
    charge_fx.visible = false
    shots = []
    ghost.visible = false
    avatar.x = death_origin.x
    avatar.z = death_origin.z
    avatar.visible = true
    avatar.dissolve = 0
    avatar.model = "sf/pilot_idle_hit"
    rifle.visible = false
    muzzle.visible = false
    curator_warning.visible = false
    boss_warning.visible = false
    sound.play "sf_signal_lost"
    call sync_music
    call refresh_ui

action tick_recovery:
    ticks += 1
    recovery_ticks += 1
    flash = max(0, flash-1)
    hurt_ticks = max(0, hurt_ticks-1)
    notice_ticks = max(0, notice_ticks-1)
    call update_effects
    call update_seal
    if recovery_phase == "collapse":
        avatar.model = recovery_ticks < 5 ? "sf/pilot_idle_hit" : (recovery_ticks < 13 ? "sf/pilot_down0" : "sf/pilot_down1")
        avatar.dissolve = clamp((recovery_ticks-14)/10, 0, 1)
        if recovery_ticks == 13:
            call burst death_origin.x, death_origin.z+0.4, 8
        if recovery_ticks >= 24:
            if death_lethal && lives == 0:
                call finish_game_over
                stop when true
            recovery_phase = "return"
            recovery_ticks = 0
            avatar.visible = false
            ghost.visible = true
            ghost.dissolve = 0
            ghost.x = death_origin.x
            ghost.z = death_origin.z+0.8
            sound.play "sf_ghost"
    if recovery_phase == "return":
        progress = clamp(recovery_ticks/recovery_duration, 0, 1)
        ease = progress*progress*(3-2*progress)
        ghost.x = death_origin.x+(return_target.x-death_origin.x)*ease
        ghost.z = death_origin.z+(return_target.z-death_origin.z)*ease+0.8+sin(progress*180)*2.5
        ghost.angle = return_target.x < death_origin.x ? 180 : 0
        ghost.model = ticks%12 < 6 ? "sf/ghost" : "sf/ghost_drift"
        ghost.scale = 1+sin(ticks*12)*0.04
        if ticks%3 == 0 && effects.length < 96:
            effects.push(
                {
                    "x": ghost.x,
                    "y": 9.6,
                    "z": ghost.z - 0.3,
                    "dx": 0,
                    "dz": 0.015,
                    "ttl": 12,
                    "life": 12,
                    "angle": 0,
                    "spin": 0,
                    "scale": 0.5,
                    "model": "sf/exhaust",
                    "kind": "exhaust",
                    "visible": true
                }
            )
        camera.x += (clamp(ghost.x, 13, world.width-13)-camera.x)*0.15
        camera.y += (19-camera.y)*0.08
        camera.z += (clamp(ghost.z+1, 5, world.depth-5)-camera.z)*0.12
        if recovery_ticks >= recovery_duration:
            call respawn
            sound.play "sf_beacon"
    if recovery_phase == "reform":
        avatar.visible = true
        avatar.model = "sf/pilot_idle"
        avatar.x = player.x
        avatar.z = player.z
        avatar.dissolve = clamp(1-recovery_ticks/18, 0, 1)
        camera.x += (clamp(player.x, 13, world.width-13)-camera.x)*0.15
        camera.z += (clamp(player.z+1.5, 5, world.depth-5)-camera.z)*0.12
        if recovery_ticks >= 18:
            recovery_phase = "none"
            avatar.dissolve = 0
            flash = 0
            hurt_ticks = 0
            call update_view
    call refresh_ui

action finish_game_over:
    status = "gameover"
    recovery_phase = "none"
    ghost.visible = false
    avatar.visible = false
    rifle.visible = false
    muzzle.visible = false
    charge_fx.visible = false
    shots = []
    effects = []
    flash = 0
    hurt_ticks = 0
    call sync_music
    sound.play "sf_game_over"
    call refresh_ui
rewards.rune
@Logic/starfall
# Boss rewards are campaign progress; four optional caches grant lives once per expedition.
action refresh_health_capacity:
    max_health = 4+(campaign.containers.rootheart ? 1 : 0)+(campaign.containers.cantor ? 1 : 0)+(campaign.containers.warden ? 1 : 0)+(campaign.containers.curator ? 1 : 0)+(campaign.armor ? 2 : 0)

action claim_boss_container(key):
    stop when campaign.containers[key]
    campaign.containers[key] = true
    call refresh_health_capacity
    health = max_health
    call begin_discovery "health", "sf/health_container"

action place_oneup(key, x, z):
    pickups.push(
        {
            "x": x,
            "y": 7,
            "z": z,
            "base": z,
            "kind": "oneup",
            "key": key,
            "model": "sf/oneup",
            "title": "1-UP",
            "titleColor": 11993074,
            "visible": !life_pickups[key]
        }
    )
rootheart.rune
@Logic/starfall
action reset_rootheart:
    stop when sector_id != "hydroponics" || !rootheart.visible
    rootheart.hp = rootheart.max_hp
    rootheart.x = 66
    rootheart.z = 3
    rootheart.hit_ticks = 0
    rootheart.model = "sf/rootheart_closed"
    root_clock = 0
    root_phase = "dormant"
    root_warning.visible = false

action update_rootheart:
    root_warning.visible = false
    stop when sector_id != "hydroponics" || !rootheart.visible || recovery_phase != "none" || player.x < 57
    root_clock += 1
    rootheart.hit_ticks = max(0, rootheart.hit_ticks-1)
    cycle = root_clock%180
    rootheart.x = 66+sin(root_clock*2)*0.6
    rootheart.z = 3+sin(root_clock*4)*0.1
    root_phase = cycle >= 60 && cycle < 140 ? "open" : "closed"
    rootheart.model = root_phase == "open" ? (cycle%16 < 8 ? "sf/rootheart_open" : "sf/rootheart_breathe") : "sf/rootheart_closed"
    if rootheart.hit_ticks > 0:
        rootheart.model = "sf/rootheart_hit"
    if cycle == 30:
        root_warning.x = clamp(player.x, 58, 73)
        sound.play "sf_root_charge"
    if cycle >= 30 && cycle < 66:
        root_warning.visible = true
        root_warning.model = cycle < 54 ? "sf/root_warning" : "sf/root_spike"
        if cycle >= 54 && abs(player.x-root_warning.x) < 0.7 && player.z < 4.6:
            call take_damage 1, root_warning.x
    if cycle == 45:
        direction = player.x < rootheart.x ? -1 : 1
        call spore_shot rootheart.x, 3.8, direction*0.18, 0
    if abs(player.x-rootheart.x) < 1.1 && player.z < rootheart.z+2.4:
        call take_damage 1, rootheart.x

action spore_shot(x, z, dx, dz):
    shots.push(
        {
            "x": x,
            "y": 7,
            "z": z,
            "dx": dx,
            "dz": dz,
            "ttl": 105,
            "hostile": true,
            "damage": 1,
            "model": "sf/spore_bolt",
            "visible": true
        }
    )

action hit_rootheart(damage, x, z):
    stop when root_phase != "open" || !rootheart.visible
    rootheart.hp = max(0, rootheart.hp-damage)
    rootheart.hit_ticks = 5
    rootheart.model = "sf/rootheart_hit"
    call pollen_burst x, z, 5
    sound.play "sf_hit"
    if rootheart.hp == 0:
        rootheart.visible = false
        call claim_boss_container "rootheart"
        root_warning.visible = false
        root_phase = "defeated"
        shots = []
        pickups[2].visible = true
        call pollen_burst rootheart.x, rootheart.z+1, 28
        notice = "ROOTHEART PURGED / HEALTH +1. Collect the relay to bank this sector and open the shortcut."
        notice_ticks = 180
        sound.play "sf_upgrade"

action pollen_burst(x, z, count):
    for i in range(0, count):
        effects.push(
            {
                "x": x,
                "y": 7.3,
                "z": z,
                "dx": cos(i * 137) * 0.12,
                "dz": sin(i * 137) * 0.1,
                "ttl": 18 + i % 4 * 3,
                "life": 27,
                "angle": i * 23,
                "spin": 13,
                "scale": 0.7,
                "model": i % 2 == 0 ? "sf/pollen": "sf/spore_bolt",
                "kind": "exhaust",
                "visible": true
            }
        )
    effects = effects.slice(max(0,effects.length-96))
shell.rune
@Page/starfall_cabinet
title = Starfall Protocol - A signal from a dead station
logic = starfall_cabinet
style = starfall_cabinet
view:
    main .cabinet:
        header .masthead:
            div:
                p .eyebrow "RUNE / PIXEL-3D / EXPEDITION 001"
                h1 "STARFALL PROTOCOL"
            p .tagline "The Ark is going dark. One pilot. One last light."
        section .game-card:
            div .toolbar:
                span .level "KEPLER STATION / ORBIT DECAYING"
                div .buttons:
                    button data-pixel-action="advance" data-pixel-hidden=cinema_skip_hidden "Skip scene / Enter"
                    button data-pixel-pause=true "Pause / P"
                    button data-pixel-mute=true "Sound / V"
                    button data-pixel-fullscreen=true "Fullscreen / F"
            div .game-surface:
                canvas data-rune-pixel-3d=true data-pixel-fit=viewport data-pixel-app-fullscreen=true data-pixel-touch-padding=14 tabindex=0 aria-label="Starfall Protocol, a side-scrolling space adventure. A and D or arrows move, Space jumps, left click or X fires, W or Up aims upward, S or Down ducks. On touch, move the stick up to aim and down to duck. Recover the core and return to your ship."
                button .fullscreen-exit .fullscreen-exit-hud data-pixel-fullscreen=true aria-label="Exit fullscreen" "EXIT"
                div .pause-menu data-pixel-paused=true data-pixel-menu=true hidden=true:
                    h2 "SIGNAL ON HOLD"
                    p "Resume whenever you are ready."
                    button data-pixel-pause=true "Resume expedition / P"
                    button data-pixel-restart=true "Reset to title"
                    button .fullscreen-exit data-pixel-fullscreen=true "Exit fullscreen"
                div .launch data-pixel-hidden=title_hidden:
                    button .primary data-pixel-start=true data-pixel-text=launch_label "Board station / Enter"
            p .status data-pixel-status=true role=status aria-live=polite "Awaiting pilot."
        section .guide aria-label="Pilot briefing":
            div:
                h2 "01 / SUIT UP"
                p "The opening flight and mission briefing precede your landing. Enter or Skip scene advances the story; P pauses cinematics. Your ship lands before controls unlock. A / D or arrows move; Space jumps. Left click or X fires; hold to charge plasma and release to shoot. W / Up aims high. Hold S / Down to duck and fire low; jump to stand. Controller right shoulder or left stick down ducks. On touch, push the movement stick up to aim or down to duck; USE appears near doors and consoles, and DASH appears once unlocked. J still fires as an alternate. Start with four health cells and three lives per attempt. Bosses add permanent health containers. Four rare green 1-UP capsules reward exploring optional ledges; each can be claimed once per expedition. Completed sectors stay saved after game over. P pauses, including landing and takeoff."
            div:
                h2 "02 / OPEN NEW PATHS"
                p "Use E at the glowing Propulsion Crypt portal to find jump jets on their pedestal, then use E at the nearby hatch to enter Hydroponics. Climb Hydroponics past the repair pod, then double jump to the marked upper ledge. Use E at the glowing Dash Crypt portal to recover air dash from its pedestal. Jump, then press Shift / K to cross the greenhouse breach. Defeat Rootheart and collect its relay to save the sector and open a shortcut back to cargo. Controller B dashes and Y uses hatches; touch has DASH and USE buttons."
            div:
                h2 "03 / BRING IT HOME"
                p "Return with Hydroponics air dash: use jets to climb the western ledges, then jump and dash left across the wide gap to plasma. Charge a shot to breach the violet seal. In the Gravity Foundry, inspect the overhead carrier, then climb back to the service workshop for the magnetic glove. Jump to grab its underside and press Space to release, and use E at consoles to switch gravity. Restore its relay to open the Reactor Crypt. Defeat the Warden, then fight hunters and deck crawlers as you bring its core home."
            div:
                h2 "04 / FOLLOW SIDE SIGNALS"
                p "Pause with P, controller Start, or the touch PAUSE button to view the exploration map. V toggles sound. Purple hatches mark optional routes. The Signal Archive on the western middle ledge combines jets and dash for a faster-charging plasma capacitor. The Observatory in eastern containment needs the magnetic glove and a gravity-assisted ascent; its armor adds two health cells. Both upgrades stay saved. Beyond the Observatory armor, descend into the optional Void Curator chamber for another permanent health container. Enemies brighten before firing, and red edge cues show incoming damage direction."
            div:
                h2 "05 / PLAY WITHOUT BROWSER BARS"
                p "Android: tap Fullscreen. iPhone Safari: use Page Menu, then Hide Toolbar for this tab. To launch without Safari bars, add this full game to your Home Screen from Share and enable Open as Web App if offered. Launch Starfall from its new icon. The Home Screen app uses a separate save on iPhone."
                a href="https://vectrune.com/starfall/" "Back to Vectrune"
        footer:
            p "MADE WITH RUNE / PIXEL-3D"
            p "Keyboard / controller / touch. Completed sectors and their gear are saved."

@Logic/starfall_cabinet
state:
    label = "Starfall Protocol"

@Style/starfall_cabinet
rules:
    :root:
        color-scheme = dark
    *:
        box-sizing = border-box
    body:
        margin = 0
        background = #080d1b
        color = #e1f5ef
        font-family = system-ui, sans-serif
    .cabinet:
        max-width = 1120px
        margin = auto
        padding = clamp(16px, 3vw, 40px)
    .masthead:
        display = flex
        align-items = end
        justify-content = space-between
        flex-wrap = wrap
        gap = 20px
        margin-bottom = 24px
    .eyebrow:
        color = #58efd5
        font-size = 10px
        font-weight = 800
        letter-spacing = 3px
        margin = 0 0 12px
    h1:
        font-size = clamp(26px, 4vw, 48px)
        letter-spacing = -2px
        line-height = 1
        margin = 0
    .tagline:
        color = #8c9db8
        max-width = 240px
        font-size = 13px
        line-height = 1.7
        margin = 0
    .game-card:
        border = 1px solid #34435d
        border-radius = 10px
        overflow = hidden
        background = #10182e
        box-shadow = 0 16px 60px #00000060
    .toolbar:
        display = flex
        align-items = center
        justify-content = space-between
        flex-wrap = wrap
        padding = 10px 14px
        gap = 10px
    .level:
        color = #8c9db8
        font-size = 10px
        letter-spacing = 2px
    .buttons:
        display = flex
        gap = 6px
        flex-wrap = wrap
    button:
        -webkit-tap-highlight-color = transparent
        cursor = pointer
        border = 1px solid #34435d
        border-radius = 4px
        background = #18233b
        color = #e1f5ef
        padding = 10px 14px
        min-height = 44px
        font = inherit
        font-size = 12px
        font-weight = 700
    button:hover:
        background = #283953
    button:focus-visible:
        outline = 2px solid #58efd5
        outline-offset = 3px
    .game-surface:
        position = relative
        background = #060b1b
        touch-action = none
        overscroll-behavior = none
        user-select = none
        -webkit-user-select = none
        -webkit-touch-callout = none
    .game-surface *:
        user-select = none
        -webkit-user-select = none
        -webkit-touch-callout = none
    canvas:
        display = block
        width = 100%
        height = auto
        aspect-ratio = 8 / 5
        image-rendering = pixelated
        touch-action = none
        outline-offset = -3px
    .launch:
        position = absolute
        z-index = 7
        bottom = max(32px, calc(env(safe-area-inset-bottom) + 12px))
        left = 0
        right = 0
        display = flex
        align-items = center
        justify-content = center
        flex-wrap = wrap
        gap = 12px 24px
        padding = 8px
        font-size = 12px
        color = #8c9db8
    .primary:
        background = #58efd5
        border-color = #58efd5
        color = #080d1b
        padding = 14px 28px
    .primary:hover:
        background = #b2fff0
    .status:
        text-align = center
        color = #8c9db8
        font-size = 11px
        padding = 0 12px 10px
    .guide:
        display = grid
        grid-template-columns = repeat(auto-fit, minmax(230px, 1fr))
        gap = 28px
        margin-top = 36px
    .guide h2:
        color = #58efd5
        font-size = 11px
        letter-spacing = 2px
    .guide p:
        color = #8c9db8
        font-size = 13px
        line-height = 1.8
    footer:
        display = flex
        justify-content = space-between
        flex-wrap = wrap
        gap = 12px
        border-top = 1px solid #283953
        margin-top = 24px
        padding-top = 16px
        color = #7b8aa3
        font-size = 10px
    .pause-menu:
        position = absolute
        z-index = 8
        inset = 0 0 auto 0
        display = flex
        flex-direction = row
        flex-wrap = wrap
        align-items = center
        justify-content = center
        text-align = center
        gap = 8px
        padding = 8px
        background = #10182ecc
    .pause-menu h2:
        display = none
    .pause-menu p:
        display = none
    [hidden]:
        display = none !important
    .rune-embedded-game .masthead, .rune-embedded-game .guide, .rune-embedded-game footer:
        display = none
    .rune-embedded-game .cabinet:
        padding = 8px
    .fullscreen-exit:
        display = none
    .game-surface:fullscreen .fullscreen-exit, .game-surface.rune-pixel3d-expanded .fullscreen-exit:
        display = inline-block
    .fullscreen-exit-hud:
        position = absolute
        z-index = 9
        top = max(12px, env(safe-area-inset-top))
        right = calc(max(12px, env(safe-area-inset-right)) + 52px)
        width = 52px
        height = 44px
        padding = 4px
        font-size = 11px
        background = #142432dd
    .game-surface:fullscreen canvas[data-pixel-fit=viewport], .game-surface.rune-pixel3d-expanded canvas[data-pixel-fit=viewport]:
        width = 100% !important
        height = 100% !important
        max-width = none !important
        max-height = none !important
        aspect-ratio = auto
    .game-surface:has(.pause-menu:not([hidden])) .rune-control-touch button:
        visibility = hidden
        pointer-events = none
ship.rune
@Logic/starfall
action begin_departure:
    stop when status != "playing"
    status = "departing"
    cinematic_ticks = 0
    boarding_origin = player.x
    velocity = 0
    player.vz = 0
    shots = []
    charge_ticks = 0
    charge_ready = false
    fire_held = false
    charge_fx.visible = false
    muzzle.visible = false
    rifle.visible = false
    ship.x = 7
    ship.z = 3
    ship.visible = true
    ship.model = "sf/ship"
    sound.play "sf_ship_door"
    call refresh_ui

action tick_ship:
    ticks += 1
    cinematic_ticks += 1
    call update_effects
    if status == "landing":
        progress = clamp(cinematic_ticks/72, 0, 1)
        ease = 1-(1-progress)*(1-progress)*(1-progress)
        ship.x = 2+5*ease
        ship.z = 15-12*ease
        ship.model = ticks%10 < 5 ? "sf/ship_flight" : "sf/ship_flight_lit"
        camera.x += ((cinematic_ticks < 72 ? 10 : 13)-camera.x)*0.08
        camera.z += (clamp(ship.z+0.5, 5, 11)-camera.z)*0.1
        avatar.visible = false
        rifle.visible = false
        if cinematic_ticks == 72:
            call ship_dust
            sound.play "sf_ship_door"
        if cinematic_ticks >= 72:
            ship.x = 7
            ship.z = 3
            ship.model = "sf/ship"
            walk = clamp((cinematic_ticks-72)/36, 0, 1)
            avatar.visible = true
            avatar.x = 7.2+1.8*walk
            avatar.z = 3
            avatar.angle = 0
            avatar.dissolve = 0
            avatar.model = "sf/pilot_run"+floor(ticks%16/4)
        if cinematic_ticks >= 108:
            status = "playing"
            ticks = 0
            notice = foundry_cleared ? "Saved sectors restored. Magnetic glove and plasma online." : (garden_cleared ? "Saved sector restored. Jump jets and air dash are ready." : "Touchdown. Find jump jets, then enter the Hydroponics hatch in cargo.")
            notice_ticks = 180
            call update_view
    if status == "departing":
        camera.x += (10-camera.x)*0.08
        camera.z += (clamp(ship.z-0.3, 5, 12)-camera.z)*0.08
        if cinematic_ticks < 30:
            walk = cinematic_ticks/30
            avatar.x = boarding_origin+(7.2-boarding_origin)*walk
            avatar.z = 3
            avatar.angle = 180
            avatar.model = "sf/pilot_run"+floor(ticks%16/4)
            avatar.dissolve = clamp((cinematic_ticks-20)/10, 0, 1)
        if cinematic_ticks == 30:
            call ship_dust
            sound.play "sf_ship_launch"
        if cinematic_ticks >= 30:
            avatar.visible = false
            flight = clamp((cinematic_ticks-30)/90, 0, 1)
            ship.x = 7-5*flight
            ship.z = 3+18*flight*flight
            ship.model = ticks%10 < 5 ? "sf/ship_flight" : "sf/ship_flight_lit"
        if cinematic_ticks >= 120:
            call begin_homecoming
            stop when true
    call ship_engine_view
    call sync_music
    call refresh_ui

action ship_engine_view:
    ship_flames = []
    engines = (status == "landing" && cinematic_ticks < 72) || (status == "departing" && cinematic_ticks >= 30)
    if engines:
        for offset in [-1.3,1.1]:
            ship_flames.push(
                {
                    "x": ship.x + offset,
                    "y": 5.6,
                    "z": ship.z + 0.25,
                    "model": ticks % 8 < 4 ? "sf/ship_exhaust": "sf/ship_exhaust_long",
                    "scale": 0.85 + sin(ticks * 43) * 0.12,
                    "visible": true
                }
            )

action ship_dust:
    for i in range(0, 12):
        effects.push(
            {
                "x": ship.x + (i % 4 - 1.5) * 0.7,
                "y": 6.2,
                "z": 3.1,
                "dx": i % 2 == 0 ? -0.1: 0.1,
                "dz": 0.018,
                "ttl": 24,
                "life": 24,
                "angle": i * 31,
                "spin": 2,
                "scale": 0.8,
                "model": "sf/landing_dust",
                "kind": "exhaust",
                "visible": true
            }
        )
sound.rune
@Sound/sf_reinforcements
wave = triangle
sequence = Bb3:90ms, E3:90ms, Bb3:110ms
volume = 0.07

@Sound/sf_crawler_charge
wave = sawtooth
frequency = 170
freq_end = 650
duration = 240ms
volume = 0.035

@Sound/sf_fire
wave = square
frequency = 900
freq_end = 180
duration = 55ms
volume = 0.05

@Sound/sf_enemy_lock
wave = triangle
sequence = D4:35ms, Bb4:50ms
volume = 0.025

@Sound/sf_hit
wave = triangle
sequence = G4:25ms, C3:40ms
volume = 0.08

@Sound/sf_jump
wave = triangle
sequence = D4:35ms, A4:45ms, D5:40ms
volume = 0.08

@Sound/sf_hurt
wave = sawtooth
sequence = D3:70ms, C3:70ms, A2:100ms
volume = 0.08

@Sound/sf_upgrade
wave = sine
sequence = D5:60ms, F5:60ms, A5:60ms, D6:160ms
volume = 0.12

@Sound/sf_beacon
wave = sine
sequence = A4:70ms, D5:70ms, A5:130ms
volume = 0.09

@Sound/sf_win
wave = triangle
sequence = D5:100ms, F5:100ms, A5:100ms, C6:100ms, D6:300ms
volume = 0.12

@Sound/sf_signal_lost
wave = sine
sequence = E4:100ms, B3:130ms, E3:200ms
volume = 0.07

@Sound/sf_ghost
wave = sine
sequence = E5:100ms, B5:180ms
volume = 0.04

@Sound/sf_warden_charge
wave = triangle
sequence = E2:90ms, F2:90ms, Bb2:160ms
volume = 0.1

@Sound/sf_warden_slam
wave = noise
filter = lowpass 900 -> 50
duration = 350ms
volume = 0.16

@Sound/sf_explode
wave = noise
filter = lowpass 1800 -> 80
duration = 280ms
volume = 0.14

# Original E Phrygian score: low pedals, semitone tension and sparse metal echoes.
@Music/sf_orbit
type = synth
tempo = 72
time_signature = 4/4
bars = 8
loop = true
volume = 0.065
instruments = {"lead":"bell","harmony":"strings","bass":"triangle","drums":"drums"}
lead:
    E4:2 -:4 F4:4 |
    -:2 B3:4 -:4 |
    E4:2 Bb3:2 |
    F4:4 E4:4 -:2 |
    -:2 E4:4 G4:4 |
    F4:2 -:4 B3:4 |
    Bb3:2 F4:4 E4:4 |
    -:1
harmony:
    [E3,G3,B3]:1 |
    [E3,F3,B3]:1 |
    [E3,G3,Bb3]:1 |
    [D3,F3,A3]:1 |
    [E3,G3,B3]:1 |
    [F3,A3,B3]:1 |
    [E3,F3,Bb3]:1 |
    [E3,B3]:1
bass:
    E2:4 -:8 E2:8 B1:4 E2:4 |
    E2:2 F2:4 E2:4 |
    E2:4 -:8 E2:8 Bb1:4 E2:4 |
    D2:2 B1:2 |
    E2:4 -:8 E2:8 B1:4 E2:4 |
    F2:2 E2:2 |
    Bb1:4 E2:4 F2:4 E2:4 |
    E2:2 -:2
drums:
    kick:4 -:4 tom:4 -:4 |
    -:4 hihat:4 kick:4 -:4 |
    kick:4 -:4 tom:4 hihat:4 |
    kick:2 -:4 tom:4 |
    kick:4 -:4 tom:4 -:4 |
    -:4 hihat:4 kick:4 -:4 |
    kick:4 tom:4 -:4 tom:4 |
    kick:2 -:2

@Sound/sf_plasma_charge
wave = sine
freq = 110 -> 440
duration = 800ms
volume = 0.045

@Sound/sf_plasma_ready
wave = sine
sequence = B5:40ms, E6:90ms
volume = 0.065

@Sound/sf_plasma_fire
wave = sawtooth
freq = 520 -> 65
duration = 180ms
volume = 0.09

@Sound/sf_seal_break
wave = noise
filter = lowpass 2200 -> 90
duration = 500ms
volume = 0.12

# A faster variation of the station's E Phrygian motif for the Warden encounter.
@Music/sf_warden
type = synth
tempo = 132
time_signature = 4/4
bars = 8
loop = true
volume = 0.075
instruments = {"lead":"brass","harmony":"strings","bass":"triangle","drums":"drums"}
lead:
    E4:8 E4:8 B3:8 E4:8 F4:4 E4:4 |
    Bb3:8 B3:8 E4:4 F4:8 E4:8 B3:4 |
    E4:8 G4:8 F4:8 E4:8 Bb3:4 B3:4 |
    F4:4 E4:4 D4:4 B3:4 |
    E4:8 E4:8 B3:8 E4:8 G4:4 F4:4 |
    F4:8 E4:8 B3:4 Bb3:4 F4:4 |
    G4:8 F4:8 E4:4 Bb3:8 B3:8 F4:4 |
    E4:2 -:4 E3:4
harmony:
    [E3,G3,B3]:1 |
    [E3,F3,B3]:1 |
    [E3,G3,Bb3]:1 |
    [D3,F3,A3]:1 |
    [E3,G3,B3]:1 |
    [F3,A3,B3]:1 |
    [E3,F3,Bb3]:1 |
    [E3,B3]:1
bass:
    E2:8 E2:8 B1:8 E2:8 E2:8 E2:8 B1:8 E2:8 |
    F2:8 E2:8 B1:8 E2:8 F2:8 E2:8 B1:8 E2:8 |
    E2:8 E2:8 Bb1:8 E2:8 E2:8 E2:8 Bb1:8 E2:8 |
    D2:4 D2:4 B1:4 B1:4 |
    E2:8 E2:8 B1:8 E2:8 E2:8 E2:8 B1:8 E2:8 |
    F2:8 E2:8 F2:8 E2:8 B1:8 E2:8 B1:8 E2:8 |
    Bb1:8 E2:8 Bb1:8 E2:8 F2:8 E2:8 F2:8 E2:8 |
    E2:4 B1:4 E2:2
drums:
    kick:4 hihat:8 hihat:8 snare:4 tom:4 |
    kick:4 tom:4 snare:4 hihat:4 |
    kick:8 kick:8 hihat:4 snare:4 tom:4 |
    kick:4 snare:4 tom:8 tom:8 snare:4 |
    kick:4 hihat:8 hihat:8 snare:4 tom:4 |
    kick:4 tom:4 snare:4 hihat:4 |
    kick:8 kick:8 snare:4 tom:4 snare:4 |
    kick:4 tom:4 kick:4 -:4

@Sound/sf_ship_land
wave = noise
filter = lowpass 900 -> 120
duration = 2400ms
volume = 0.035

@Sound/sf_ship_launch
wave = noise
filter = lowpass 180 -> 1500
duration = 2800ms
volume = 0.055

@Sound/sf_ship_door
wave = sine
sequence = E4:60ms, B4:80ms
volume = 0.06

@Sound/sf_game_over
wave = triangle
sequence = E4:180ms, B3:180ms, F3:180ms, E3:400ms
volume = 0.09

@Sound/sf_air_dash
wave = sine
freq = 180 -> 820
duration = 130ms
volume = 0.075

@Sound/sf_hatch
wave = sine
sequence = A3:55ms, E4:55ms, A4:100ms
volume = 0.08

@Sound/sf_root_charge
wave = triangle
sequence = E3:90ms, F3:90ms, B3:130ms
volume = 0.075

@Music/sf_garden
type = synth
tempo = 84
time_signature = 4/4
bars = 4
loop = true
volume = 0.06
instruments = {"lead":"bell","harmony":"strings","bass":"triangle"}
lead:
    E5:2 B4:4 -:4 |
    G5:4 E5:4 D5:2 |
    C5:2 B4:4 G4:4 |
    F#4:4 G4:4 E4:2
harmony:
    [E3,G3,B3]:1 |
    [C3,E3,G3]:1 |
    [A2,C3,E3]:1 |
    [B2,D3,F#3]:1
bass:
    E2:2 B2:2 |
    C2:2 G2:2 |
    A1:2 E2:2 |
    B1:2 B2:2

@Music/sf_rootheart
type = synth
tempo = 112
time_signature = 4/4
bars = 4
loop = true
volume = 0.065
instruments = {"lead":"pluck","harmony":"strings","bass":"triangle","drums":"drums"}
lead:
    E4:8 G4:8 B4:4 G4:8 E4:8 F4:4 |
    F4:8 E4:8 B3:4 E4:4 G4:4 |
    A4:8 G4:8 E4:4 C4:4 E4:4 |
    B3:8 E4:8 F4:4 E4:2
harmony:
    [E3,G3,B3]:1 |
    [E3,F3,B3]:1 |
    [A2,C3,E3]:1 |
    [B2,D3,F#3]:1
bass:
    E2:4 B2:4 E2:4 B2:4 |
    F2:4 E2:4 B1:4 E2:4 |
    A1:4 E2:4 A2:4 E2:4 |
    B1:4 B2:4 E2:2
drums:
    kick:4 hihat:4 tom:4 hihat:4 |
    kick:4 tom:4 snare:4 hihat:4 |
    kick:4 hihat:4 tom:4 hihat:4 |
    kick:4 tom:4 kick:4 -:4

@Sound/sf_gravity_switch
wave = sine
sequence = B3:70ms, F#4:70ms, B4:150ms
volume = 0.08

@Sound/sf_cantor_slam
wave = noise
filter = lowpass 1600 -> 80
duration = 250ms
volume = 0.11

@Music/sf_foundry
type = synth
tempo = 96
time_signature = 4/4
bars = 4
loop = true
volume = 0.06
instruments = {"lead":"bell","harmony":"strings","bass":"triangle","drums":"drums"}
lead:
    B3:4 -:4 F#4:4 C4:4 |
    D4:4 B3:4 A3:2 |
    G3:4 B3:4 D4:4 C4:4 |
    F#3:4 C4:4 B3:2
harmony:
    [B2,D3,F#3]:1 |
    [A2,C3,E3]:1 |
    [G2,B2,D3]:1 |
    [F#2,A2,C3]:1
bass:
    B1:4 F#2:4 B1:4 F#2:4 |
    A1:4 E2:4 A1:4 E2:4 |
    G1:4 D2:4 G1:4 D2:4 |
    F#1:4 C#2:4 B1:2
drums:
    kick:4 -:4 tom:4 -:4 |
    kick:4 hihat:4 tom:4 -:4 |
    kick:4 -:4 tom:4 -:4 |
    tom:4 -:4 kick:4 -:4

@Music/sf_iron_cantor
type = synth
tempo = 120
time_signature = 4/4
bars = 4
loop = true
volume = 0.07
instruments = {"lead":"brass","harmony":"strings","bass":"triangle","drums":"drums"}
lead:
    B3:8 D4:8 F#4:4 D4:8 B3:8 C4:4 |
    D4:8 C4:8 B3:4 A3:4 F#3:4 |
    G3:8 B3:8 D4:4 C4:8 B3:8 G3:4 |
    F#3:4 C4:4 B3:2
harmony:
    [B2,D3,F#3]:1 |
    [A2,C3,E3]:1 |
    [G2,B2,D3]:1 |
    [F#2,A2,C3]:1
bass:
    B1:8 B1:8 F#2:8 B1:8 B1:8 B1:8 F#2:8 B1:8 |
    A1:4 E2:4 A1:4 E2:4 |
    G1:8 G1:8 D2:8 G1:8 G1:8 G1:8 D2:8 G1:8 |
    F#1:4 C#2:4 B1:2
drums:
    kick:4 tom:4 snare:4 hihat:4 |
    kick:8 kick:8 tom:4 snare:4 tom:4 |
    kick:4 tom:4 snare:4 hihat:4 |
    kick:4 snare:4 tom:4 -:4

@Sound/sf_portal
wave = sine
sequence = E4:55ms, B4:65ms, E5:110ms, B4:85ms
volume = 0.07


@Sound/sf_oneup
wave = triangle
sequence = E5:70ms, G5:70ms, B5:70ms, E6:170ms
volume = 0.08

@Sound/sf_curator_focus
wave = sine
sequence = F3:90ms, Gb3:90ms, C5:160ms
volume = 0.08

@Music/sf_curator
type = synth
tempo = 108
time_signature = 4/4
bars = 4
loop = true
volume = 0.065
instruments = {"lead":"bell","harmony":"strings","bass":"triangle","drums":"drums"}
lead:
    F4:8 Gb4:8 C5:4 -:4 Ab4:4 |
    Eb4:4 F4:4 C5:2 |
    Db4:8 F4:8 Ab4:4 Gb4:4 -:4 |
    C4:4 Gb4:4 F4:2
harmony:
    [F2,Ab2,C3]:1 |
    [Eb2,Gb2,Bb2]:1 |
    [Db2,F2,Ab2]:1 |
    [C2,Gb2,Bb2]:1
bass:
    F1:4 C2:4 F1:4 C2:4 |
    Eb1:4 Bb1:4 Eb1:2 |
    Db1:4 Ab1:4 Db1:4 Ab1:4 |
    C1:4 Gb1:4 F1:2
drums:
    kick:4 -:4 tom:4 hihat:4 |
    kick:4 tom:4 snare:4 -:4 |
    kick:4 hihat:4 tom:4 -:4 |
    tom:4 -:4 kick:4 -:4


@Music/sf_title
type = synth
tempo = 64
time_signature = 4/4
bars = 4
loop = true
volume = 0.045
instruments = {"lead":"bell","harmony":"strings","bass":"sine"}
lead:
    E4:2 -:2 |
    F4:2 B3:2 |
    G4:2 -:2 |
    B3:2 E4:2
harmony:
    [E2,G2,B2]:1 |
    [F2,A2,C3]:1 |
    [C2,E2,G2]:1 |
    [B1,F2,A2]:1
bass:
    E1:1 | F1:1 | C2:1 | B1:1

@Music/sf_mission
type = synth
tempo = 72
time_signature = 4/4
bars = 4
loop = true
volume = 0.045
instruments = {"lead":"bell","harmony":"strings","bass":"sine"}
lead:
    E4:2 B3:2 |
    F4:2 -:2 |
    G4:2 E4:2 |
    F4:2 B3:2
harmony:
    [E2,G2,B2]:1 | [F2,A2,C3]:1 | [C2,E2,G2]:1 | [B1,D2,F2]:1
bass:
    E1:1 | F1:1 | C2:1 | B1:1

@Music/sf_homecoming
type = synth
tempo = 80
time_signature = 4/4
bars = 4
loop = true
volume = 0.055
instruments = {"lead":"bell","harmony":"strings","bass":"triangle"}
lead:
    C4:4 E4:4 G4:2 |
    A4:2 G4:2 |
    E4:4 G4:4 C5:2 |
    B4:2 C5:2
harmony:
    [C2,E2,G2]:1 | [F2,A2,C3]:1 | [A1,C2,E2]:1 | [G1,B1,D2]:1
bass:
    C2:1 | F1:1 | A1:1 | G1:1

# Original discovery fanfare: a rising signal and a bright held resolution.
@Sound/sf_discovery
wave = triangle
sequence = E5:100ms, B5:100ms, F#5:100ms, G5:180ms, B5:100ms, E6:480ms
volume = 0.11
station.rune
@Logic/starfall
action build_station:
    world = {
        "width": 128,
        "height": 21,
        "depth": 20,
        "seed": 701,
        "biome": "meadow",
        "materials": [
            "sf/hull",
            "sf/edge",
            "sf/plasma",
            "sf/reactor",
            "sf/temple_stone",
            "sf/temple_trim"
        ],
        "cells": [],
        "spawn": player
    }
    world = voxel_world(
        world.width,
        world.height,
        world.depth,
        world.materials,
        {"seed": world.seed, "biome": world.biome, "spawn": world.spawn, "renderDistance": 128}
    )
    # One continuous, reversible route. Real gaps interrupt the lower deck.
    call deck 4, 19, 3, 2
    call deck 26, 49, 3, 2
    call deck 78, 4, 3, 4
    # Climb the vestibule, then descend five tiles into the buried sanctuary.
    # Every step can be climbed again with the already recovered jump jets.
    call deck 82, 5, 5, 6
    call deck 87, 5, 8, 6
    call deck 92, 4, 5, 6
    call deck 96, 31, 3, 6
    call deck 122, 4, 4, 6
    world = voxel_fill(world, [96,1,3], [31,1,15], 5)
    world = voxel_fill(world, [94,2,18], [34,7,1], 5)
    world = voxel_fill(world, [127,5,1], [1,4,18], 5)
    # Ascending return route: the first 4-tile rise needs jump jets.
    call deck 39, 7, 7, 2
    call deck 30, 6, 10, 2
    call deck 21, 6, 13, 2
    # Thirteen empty tiles separate plasma from the upper approach.
    # Jump jets reach the approach; Hydroponics air dash reaches the far perch.
    # A missed crossing drops safely onto the original landing deck.
    call deck 4, 4, 13, 2
    # Optional service loft beyond the seal: climb away from the main deck.
    call deck 65, 3, 7, 2
    call deck 71, 4, 11, 2
    # Gate spans the entire playable plane; it cannot be jumped around.
    if !gate_open:
        world = voxel_fill(world, [62,5,3], [1,4,16], 3)
    if !foundry_cleared:
        world = voxel_fill(world, [78,5,3], [1,4,16], 6)
    scenery = [{"x": 62.5, "y": 7.8, "z": 3, "model": "sf/gate_frame"}]
    scenery = entity_group(scenery)
    scenery.push({"x": 22.5, "y": 6.2, "z": 13, "model": "sf/dash_gap_left"})
    # Background trusses and stars sit behind the movement plane.
    for x in range(6, 108, 8):
        scenery.push({"x": x, "y": 3, "z": 2, "model": "sf/truss"})
    for i in range(0, 65):
        scenery.push(
            {
                "x": 4 + (i * 17) % 104,
                "y": 1,
                "z": 4 + (i * 7) % 16,
                "model": "sf/star",
                "scale": i % 3 == 0 ? 1.4: 0.6
            }
        )
    scenery.push({"x": 52, "y": 1, "z": 13, "model": "sf/planet"})
    for x in [96,104,112,123]:
        scenery.push({"x": x, "y": 3.5, "z": 3, "model": "sf/temple_pillar"})
        scenery.push({"x": x, "y": 4.5, "z": 5, "model": "sf/temple_brazier"})
    scenery.push({"x": 111, "y": 2.5, "z": 7, "model": "sf/temple_sigil"})
    scenery.push({"x": 124, "y": 7, "z": 4, "model": "sf/temple_altar"})
    pickups = [
        {
            "x": 49,
            "y": 7,
            "z": 3.5,
            "base": 3.5,
            "kind": "jets",
            "model": "sf/jets",
            "visible": false
        },
        {
            "x": 6,
            "y": 7,
            "z": 13.5,
            "base": 13.5,
            "kind": "plasma",
            "model": "sf/plasma_cell",
            "visible": true
        },
        {
            "x": 124,
            "y": 7,
            "z": 5.5,
            "base": 5.5,
            "kind": "core",
            "model": "sf/core",
            "visible": false
        }
    ]
    pickups = entity_group(pickups)
    call place_oneup "containment",73,11.6
    beacons = [
        {"x": 35, "y": 7, "z": 3, "model": "sf/beacon", "active": false},
        {"x": 69, "y": 7, "z": 3, "model": "sf/beacon", "active": false},
        {"x": 90, "y": 7, "z": 8, "model": "sf/beacon", "active": false}
    ]
    beacons = entity_group(beacons)
    portals = [
        {
            "x": 52,
            "y": 6.3,
            "z": 3,
            "model": "sf/garden_hatch",
            "kind": "garden_entry",
            "label": "ENTER HYDROPONICS",
            "title": "HYDROPONICS",
            "visible": true
        },
        {
            "x": 37,
            "y": 6.3,
            "z": 3,
            "model": "sf/shortcut_hatch",
            "kind": "garden_shortcut",
            "label": "HYDROPONICS SHORTCUT",
            "title": "HYDROPONICS LINK",
            "visible": garden_cleared
        }
    ]
    portals = entity_group(portals)
    portals.push(
        {
            "x": 69,
            "y": 6.3,
            "z": 3,
            "model": "sf/foundry_hatch",
            "kind": "foundry_entry",
            "label": "ENTER GRAVITY FOUNDRY",
            "title": "GRAVITY FOUNDRY",
            "visible": true
        }
    )
    portals.push(
        {
            "x": 58,
            "y": 6.3,
            "z": 3,
            "model": "sf/foundry_hatch",
            "kind": "foundry_shortcut",
            "label": "FOUNDRY SHORTCUT",
            "title": "FOUNDRY LINK",
            "visible": foundry_cleared
        }
    )
    scenery.push({"x": 78.5, "y": 7.8, "z": 3, "model": "sf/foundry_bulkhead"})
    portals.push(
        {
            "x": 33,
            "y": 6.3,
            "z": 10,
            "model": "sf/bonus_hatch",
            "kind": "archive_entry",
            "label": "OPTIONAL / SIGNAL ARCHIVE",
            "title": "SIGNAL ARCHIVE",
            "visible": true
        }
    )
    portals.push(
        {
            "x": 74,
            "y": 6.3,
            "z": 3,
            "model": "sf/bonus_hatch",
            "kind": "observatory_entry",
            "label": "OPTIONAL / GRAVITY OBSERVATORY",
            "title": "GRAVITY OBSERVATORY",
            "visible": true
        }
    )
    portals.push(
        {
            "x": 49,
            "y": 6.5,
            "z": 3,
            "model": "sf/rift_gate0",
            "kind": "jets_entry",
            "label": "ENTER PROPULSION CRYPT",
            "title": "PROPULSION CRYPT",
            "visible": true
        }
    )
    enemies = entity_group()
    call drone 19, 4, 2
    call drone 43, 4, 3
    call drone 55, 4, 1
    call drone 57, 4, 2
    call drone 72, 4, 2
    call drone 80, 4, 1
    boss = {
        "x": 114,
        "y": 7,
        "z": 3,
        "model": "sf/warden",
        "visible": true,
        "hp": 48,
        "max_hp": 48,
        "hit_ticks": 0,
        "home": 114,
        "target": 103,
        "angle": 180
    }
    boss_warning = {"x": 103, "y": 9.2, "z": 3.05, "model": "sf/warden_warning", "visible": false}

action deck(x, width, top, material):
    world = voxel_fill(world, [x,5,top-2], [width,4,1], material == 6 ? 5 : 1)
    world = voxel_fill(world, [x,5,top-1], [width,4,1], material)

action drone(x, z, span):
    enemies.push(
        {
            "x": x,
            "y": 7,
            "z": z,
            "home": x,
            "base": z,
            "span": span,
            "hp": 3,
            "hit_ticks": 0,
            "visible": true,
            "model": "sf/drone",
            "cooldown": 45
        }
    )
upgrade_vaults.rune
@Logic/starfall
# Descending service tunnels open into spacious upgrade chambers.
action enter_upgrade_vault(kind):
    upgrade_snapshot = {
        "sector": sector_id,
        "level_map": level_map,
        "world": world,
        "pickups": pickups,
        "enemies": enemies,
        "scenery": scenery,
        "portals": portals,
        "beacons": beacons,
        "boss": boss,
        "boss_warning": boss_warning,
        "boss_clock": boss_clock,
        "boss_phase": boss_phase,
        "rootheart": rootheart,
        "root_warning": root_warning,
        "root_clock": root_clock,
        "root_phase": root_phase,
        "checkpoint": checkpoint,
        "seal_shell": seal_shell,
        "kind": kind
    }
    sector_id = kind == "jets" ? "jet_vault" : "dash_vault"
    level_map = kind == "jets" ? "orbit" : "hydroponics"
    world = {
        "width": 56,
        "height": 21,
        "depth": 24,
        "seed": 727,
        "biome": "meadow",
        "materials": [
            "sf/hull",
            "sf/edge",
            "sf/plasma",
            "sf/reactor",
            "sf/temple_stone",
            "sf/temple_trim",
            "sf/garden_moss",
            "sf/garden_wall",
            "sf/garden_glass"
        ],
        "cells": [],
        "spawn": player
    }
    world = voxel_world(
        world.width,
        world.height,
        world.depth,
        world.materials,
        {"seed": world.seed, "biome": world.biome, "spawn": world.spawn, "renderDistance": 128}
    )
    for step in range(0,6):
        x = 4+step*6
        top = 13-step*2
        call deck x, 6, top, kind == "jets" ? 2 : 7
        world = voxel_fill(world,[x,5,top+7],[6,4,1],kind == "jets" ? 5 : 8)
    call deck 40, 13, 3, kind == "jets" ? 2 : 7
    world = voxel_fill(world,[34,5,10],[19,4,1],kind == "jets" ? 5 : 8)
    world = voxel_fill(world,[4,1,1],[49,1,21],kind == "jets" ? 5 : 8)
    world = voxel_fill(world,[53,5,1],[1,4,21],kind == "jets" ? 5 : 8)
    # A real solid pedestal; its upper surface supports the pilot and upgrade.
    world = voxel_fill(world,[44,5,3],[3,4,1],6)
    scenery = [
        {
            "x": 45.5,
            "y": 7,
            "z": 3,
            "model": kind == "jets" ? "sf/upgrade_pedestal": "sf/garden_pedestal"
        }
    ]
    scenery = entity_group(scenery)
    for step in range(0,6):
        scenery.push(
            {
                "x": 7 + step * 6,
                "y": 3.5,
                "z": 14 - step * 2,
                "model": kind == "jets" ? "sf/temple_brazier": "sf/glow_flower"
            }
        )
    pickups = [
        {
            "x": 45.5,
            "y": 7,
            "z": 4.9,
            "base": 4.9,
            "kind": kind,
            "model": kind == "jets" ? "sf/jets": "sf/dash_cell",
            "visible": kind == "jets" ? !jets: !dash_unlocked
        }
    ]
    pickups = entity_group(pickups)
    portals = [
        {
            "x": 6,
            "y": 6.3,
            "z": 13,
            "kind": "vault_exit",
            "label": "RETURN TO UPPER DECK",
            "title": kind == "jets" ? "RETURN TO CARGO": "RETURN TO CANOPY",
            "model": "sf/rift_gate0",
            "visible": true
        },
        {
            "x": 51,
            "y": 6.3,
            "z": 3,
            "kind": "vault_exit",
            "label": "RETURN TO UPPER DECK",
            "title": kind == "jets" ? "RETURN TO CARGO": "RETURN TO CANOPY",
            "model": "sf/rift_gate0",
            "visible": true
        }
    ]
    portals = entity_group(portals)
    enemies = entity_group()
    if kind == "jets":
        call drone 30.5, 6.8, 1.2
    if kind == "dash":
        call skimmer 30.5, 6.8, 1.2
    enemies[0].hp = 2
    enemies[0].cooldown = 110
    beacons = []
    beacons = entity_group(beacons)
    boss = {"visible": false}
    boss_warning = {"visible": false}
    rootheart = {"visible": false}
    root_warning = {"visible": false}
    ship.visible = false
    ship_flames = []
    seal_shell = {"visible": false}
    player = {"x": 6, "y": 7, "z": 13, "angle": 0, "pitch": 0, "vz": 0}
    checkpoint = {"x": 6, "z": 13}
    call finish_sector_change
    notice = kind == "jets" ? "PROPULSION CRYPT / Follow the passage to the jet pack pedestal." : "DASH CRYPT / Follow the passage to the air-dash pedestal."
    sound.play "sf_portal"
    call refresh_ui

action leave_upgrade_vault:
    kind = upgrade_snapshot.kind
    sector_id = upgrade_snapshot.sector
    level_map = upgrade_snapshot.level_map
    world = upgrade_snapshot.world
    pickups = upgrade_snapshot.pickups
    enemies = upgrade_snapshot.enemies
    scenery = upgrade_snapshot.scenery
    portals = upgrade_snapshot.portals
    beacons = upgrade_snapshot.beacons
    boss = upgrade_snapshot.boss
    boss_warning = upgrade_snapshot.boss_warning
    boss_clock = upgrade_snapshot.boss_clock
    boss_phase = upgrade_snapshot.boss_phase
    rootheart = upgrade_snapshot.rootheart
    root_warning = upgrade_snapshot.root_warning
    root_clock = upgrade_snapshot.root_clock
    root_phase = upgrade_snapshot.root_phase
    checkpoint = upgrade_snapshot.checkpoint
    seal_shell = upgrade_snapshot.seal_shell
    player = {
        "x": kind == "jets" ? 46: 22,
        "y": 7,
        "z": kind == "jets" ? 3: 17,
        "angle": 0,
        "pitch": 0,
        "vz": 0
    }
    ship.visible = sector_id == "station"
    upgrade_snapshot = null
    call finish_sector_change
    sound.play "sf_portal"
    notice = "Upper deck reached through the return portal."
    call refresh_ui
warden.rune
@Logic/starfall
action reset_warden:
    stop when sector_id != "station" || !boss.visible
    boss.hp = boss.max_hp
    boss.x = boss.home
    boss.z = 3
    boss.angle = 180
    boss.hit_ticks = 0
    boss.model = "sf/warden"
    boss.target = 103
    boss.launch = boss.home
    boss_clock = 0
    boss_phase = "dormant"
    boss_warning.visible = false
    pickups[2].visible = false

# The guardian wakes only after the player descends to the sanctuary floor.
# A marked landing point gives the pilot time to evade before the leap/slam.
action update_warden:
    boss_warning.visible = false
    stop when sector_id != "station" || !boss.visible || recovery_phase != "none"
    stop when boss_phase == "dormant" && (player.x < 97 || player.z > 6)
    stop when player.x < 96
    boss_clock += 1
    boss.hit_ticks = max(0, boss.hit_ticks-1)
    boss.angle = player.x < boss.x ? 180 : 0
    if boss_clock <= 36:
        boss_phase = "awakening"
        boss.model = boss_clock < 18 ? "sf/warden_crouch" : "sf/warden_awaken"
    if boss_clock > 36:
        cycle = (boss_clock-36)%240
        if cycle < 48:
            boss_phase = "patrol"
            boss.z = 3
            boss.x += (boss.home+sin(boss_clock*3)*1.4-boss.x)*0.06
            boss.model = "sf/warden_walk"+floor(cycle%24/6)
        if cycle >= 48 && cycle < 78:
            boss_phase = "windup"
            boss.model = cycle < 63 ? "sf/warden_awaken" : "sf/warden_charge"
            if cycle == 48:
                boss.target = clamp(player.x, 102, 121)
                boss.launch = boss.x
                sound.play "sf_warden_charge"
            boss_warning.visible = true
            boss_warning.x = boss.target
            boss_warning.scale = 1+sin(cycle*24)*0.12
        if cycle >= 78 && cycle < 102:
            boss_phase = "leap"
            flight = (cycle-77)/24
            ease = flight*flight*(3-2*flight)
            boss.x = boss.launch+(boss.target-boss.launch)*ease
            boss.z = 3+sin(flight*180)*1.8
            boss.model = "sf/warden_leap"
            boss_warning.visible = true
            boss_warning.x = boss.target
        if cycle >= 102 && cycle < 120:
            boss_phase = "slam"
            boss.z = 3
            boss.model = "sf/warden_crouch"
            if cycle == 104:
                call temple_wave boss.x-2, -1
                call temple_wave boss.x+2, 1
                call burst boss.x, 3.3, 12
                sound.play "sf_warden_slam"
        if cycle >= 120 && cycle < 200:
            boss_phase = "exposed"
            boss.z = 3
            boss.model = cycle%20 < 10 ? "sf/warden_open" : "sf/warden_breathe"
        if cycle >= 200:
            boss_phase = "recover"
            boss.z = 3
            boss.x += clamp(boss.home-boss.x, -0.22, 0.22)
            boss.model = "sf/warden_walk"+floor(cycle%24/6)
    if boss.hit_ticks > 0:
        boss.model = "sf/warden_hit"
    if abs(player.x-boss.x) < 1.8 && player.z < boss.z+4.8 && player.z+body_height > boss.z:
        call take_damage 1, boss.x

action temple_wave(x, direction):
    shots.push(
        {
            "x": x,
            "y": 7,
            "z": 3.5,
            "dx": direction * 0.27,
            "dz": 0,
            "ttl": 95,
            "hostile": true,
            "damage": 1,
            "model": "sf/temple_wave",
            "visible": true
        }
    )

action hit_warden(damage, x, z):
    stop when !boss.visible
    boss.hp = max(0, boss.hp-damage)
    boss.hit_ticks = 6
    boss.model = "sf/warden_hit"
    call burst x, z, 5
    sound.play "sf_hit"
    if boss.hp == 0:
        boss.visible = false
        call claim_boss_container "warden"
        boss_warning.visible = false
        call burst boss.x, boss.z+2.5, 44
        sound.play "sf_explode"
        boss_phase = "defeated"
        pickups[2].visible = true
        shots = []
        call arm_escape_encounters
        notice = "CRYPT WARDEN SILENCED / HEALTH +1. The core awaits on the eastern altar."
        notice_ticks = 180
        sound.play "sf_upgrade"

Un último vuelo. Una última luz.

A / D o flechas para moverte; Espacio para saltar; clic o X para disparar; W / Arriba para apuntar alto; S / Abajo para agacharte; Mayús para impulsarte; E para puertas y consolas. Mantén el disparo para cargar plasma y suelta para disparar.

En pantalla táctil, mueve la palanca hacia arriba para apuntar o hacia abajo para agacharte. USE aparece cerca de puertas y consolas; DASH aparece al desbloquearlo. Los botones de inicio y salida siguen accesibles en pantalla completa. En vertical, un aviso recomienda girar el teléfono.

Explora Hidroponía y la Fundición Gravitatoria. Combina el doble salto, el impulso aéreo y el guante magnético para alcanzar el reactor y vencer a tres guardianes. Las salas opcionales esconden mejoras, un cuarto jefe y vidas extra poco comunes.

Compatible con teclado, mando y controles táctiles. P pausa y abre el mapa. Comienzas con cuatro puntos de salud y tres vidas; los jefes otorgan contenedores permanentes de salud. El progreso de los sectores se guarda en este navegador.

Ocultar las barras del navegador

Android: toca Fullscreen para ocultar los controles del navegador.

Safari en iPhone no permite que el juego oculte sus barras. En esta pestaña, abre el menú de página y elige Ocultar barra de herramientas. Para iniciar sin barras, abre el juego completo arriba, elige Compartir y Añadir a pantalla de inicio, y activa Abrir como app web si aparece. Inicia Starfall desde su nuevo icono.

La app de la pantalla de inicio tiene su propia partida guardada en iPhone.

Explora el código Rune

Un juego de Dave Thomas. Mundos, modelos, animaciones, controles, música y escenas están escritos en Rune. Compila y prueba con Vectrune 0.3.6 o posterior.

git clone https://github.com/davethomas11/vectrune.git
cd vectrune
vectrune examples/games/starfall/starfall.rune -o html > starfall.html
vectrune test examples/games/starfall --type logic
Sitio creado íntegramente con Rune-Web