Skip to content

five-on-it / apps/tools/src/block-library / blockScriptEntry

Function: blockScriptEntry() ​

blockScriptEntry(kind, params?): Record<string, unknown>

Defined in: apps/tools/src/block-library.ts:194

The script entry the editor stores on a node of this kind, with the kind's default parameters.

Parameters ​

kind ​

"terrain" | "structure" | "building" | "water" | "door" | "npc" | "garage" | "road" | "spawn" | "ground" | "ramp" | "stairs" | "nail-strip" | "dummy" | "container" | "camera" | "vehicle-spawner" | "shop" | "district" | "ladder" | "lift"

params? ​

Readonly<Record<string, BlockParam>> = ...

Returns ​

Record<string, unknown>