Lunarthrall Plant Gestalt
Based on game build 722832 | Last updated: 2026-04-21
Overview
lunarthrall_plant_gestalt is a creature prefab representing a lunar-aligned gestalt entity. It features AI behavior through a dedicated brain, locomotion capabilities, sanity aura effects, and can be captured via the gestalt capture system. The entity is marked as planar and soulless, affecting interactions with certain game mechanics like Wortox soul hopping.
Usage example
-- Spawn the prefab in the world
local inst = SpawnPrefab("lunarthrall_plant_gestalt")
-- Access configured components
inst.components.sanityaura.aura = TUNING.SANITYAURA_MED
inst.components.gestaltcapturable:SetLevel(2)
-- The prefab automatically sets up state graph and brain on server
-- Client-side instances skip server-only initialization
Dependencies & tags
External dependencies:
prefabutil-- prefab utility functionsbrains/lunarthrall_plant_gestalt_brain-- AI behavior tree for this entity
Components used:
timer-- manages spawn timer (15 second "justspawned" timer)sanityaura-- provides sanity aura effect to nearby playerslocomotor-- handles movement speed and pathfinding capabilitiesgestaltcapturable-- enables gestalt capture mechanics with level 2 planar settingknownlocations-- tracks known locations for AI navigation
Tags:
brightmare-- added on creation, affects nightmare creature interactionsNOBLOCK-- added on creation, prevents entity from blocking movementsoulless-- added on creation, prevents Wortox soul hopping to this entitylunar_aligned-- added on creation, marks entity as lunar factiongestaltcapturable-- added on creation, marks entity as capturable by gestalts
Properties
| Property | Type | Default Value | Description |
|---|---|---|---|
scrapbook_inspectonseen | boolean | true | Enables scrapbook inspection when entity is first seen |
scrapbook_thingtype | string | "creature" | Categorizes entity as creature in scrapbook |
scrapbook_adddeps | table | {"lunarrift_portal"} | List of dependent prefabs for scrapbook |
Spawn | function | --- | Local function assigned to instance for spawn initialization logic. |
Main functions
Spawn(inst)
- Description: Called when the prefab spawns. Starts a 15-second timer, applies random rotation, and transitions state graph to "spawn" state.
- Parameters:
inst-- the entity instance being spawned - Returns: None
- Error states: Errors if
inst.components.timeris nil (timer component not added before Spawn is called) or if state graph is not set (inst.sg is nil).
fn()
- Description: Main prefab constructor function. Creates the entity, initializes all components, sets up physics and animations, and configures server-side behavior. Returns the fully configured instance.
- Parameters: None
- Returns: Entity instance (
inst) - Error states: None -- includes
TheWorld.ismastersimguard to prevent server-only logic from running on clients.
Events & listeners
None identified.