Building and gizmos โ
Use scape_catalog to discover emojis and configuration. A placement batch can contain up to 512 items, within a 64,000-byte tool input limit. Each item has absolute x, y and emoji values. A gizmo can also carry objectConfig in the catalog's { type, version, values } format; supply all declared configuration fields. Supported placement metadata also includes sign message, door targetRoomId/targetRoomName, and conveyorEmoji for compatible objects.
For example, after observing revision 42:
json
{
"sceneRevision": 42,
"items": [
{ "x": 10, "y": 10, "emoji": "๐ฒ" },
{ "x": 11, "y": 10, "emoji": "๐ท" },
{ "x": 12, "y": 10, "emoji": "๐ฒ" }
]
}1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
Send that object to scape_place. A batch is atomic: an occupied/protected cell, invalid configuration or rejected permission prevents the entire batch from being saved. Placement never overwrites existing objects. Each floor supports up to 2,048 objects, including its entrance.
Inspect a placed gizmo to obtain its current controls and payloads. configurationRecipe describes editable fields/actions; configuration contains portable values. Catalog definitions include editPolicy: placer-admin requires world-administration permission as well as ownership, including when supplying configuration during placement. Building permission alone does not allow naming a sign. Use the current controls and editor metadata to construct a scape_act payload. Connected inputs can disable manual controls. Wiring, configurations and destructive actions use the same authoritative checks as the game UI, including ownership and any world-administration requirement.
Move structures with explicit object ids and a cell offset. Undo after removal uses a server-held snapshot; it cannot recreate arbitrary supplied scene data. Undo can expire or become unavailable after other edits or occupied destinations.
Discover before configuring โ
The catalog lists the installed gizmos available in this world. It is not a guarantee that the signed-in account may place or configure every entry. World links and radios require world-administration permission. Inspect existing objects for canEdit, canRemove, declared actions and disabled controls.
Only send objectConfig when the catalog supplies a configuration recipe. A gizmo with no configurable placement fields needs just its emoji and coordinates; sending an empty configuration object is not a substitute for omitting it.
For a piano whose catalog declares pitch, range and sound, a placement item can look like this:
json
{
"x": 12,
"y": 10,
"emoji": "๐น",
"objectConfig": {
"type": "scape.piano",
"version": 1,
"values": { "pitch": "E", "range": "4", "sound": "dreamy" }
},
"conveyorEmoji": "โก๏ธ"
}1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
Wrap this item in a scape_place call with the current scene revision. The conveyor moves arriving players onward while the piano plays its configured note. You can also combine an existing compatible tile with a conveyor using scape_combine.
Connect a pressure pad to a lamp โ
- Find both installed types with
scape_catalog, place them in empty cells, and observe their object ids. - Inspect each object. Confirm the pad exposes an
occupiedboolean output and the lamp exposes apowerboolean input, and that both objects are editable. - Get the latest scene revision and call
scape_connectwith the observed ids:
json
{
"sceneRevision": 42,
"source": "observed-pad-id",
"target": "observed-lamp-id",
"output": "occupied",
"input": "power"
}1
2
3
4
5
6
7
2
3
4
5
6
7
Replace the example revision and ids with current values. Walk onto the pad, then inspect the lamp after the signal settles. Step off and inspect it again. Signal propagation can finish after movement returns. The lamp's manual power controls are locked while this input controls them. Send the same connection fields with disconnect: true and a fresh revision to disconnect it.
Use only the ports actually returned by inspection. The server validates compatible types, cycles, ownership and connection limits.
Clear a world deliberately โ
Observe every page using nextOffset. Select only objects the user asked to remove and whose canRemove value is true; preserve protected entrances. Remove at most 512 ids per batch, refreshing the revision between edits. Save each returned removalId if undo may be needed.
Observations and removals are floor-specific. To clear a basement too, enter it while its surface entrance still exists, remove its editable contents, return by the protected ladder, then clear the surface. A cleared basement retains its required return ladder.
