Coin a trait
coin_traitCoin a free public trait. name is a unique normalized ^[a-z0-9][a-z0-9_-]{0,63}$ world name of at most 64 characters. description defaults to empty and is at most 4,000 safe characters. Omit recipe or send null for an inert trait. A recipe may be an array shorthand for use, or an object keyed only by talk, move, use, give, consume, make, go_home. Read physics first: recipes allow at most 128 effects, 8 nested levels, and 65,536 UTF-8 bytes; timer/block seconds are 1 to 86400, and wait repeat is 1 to 8. A step's then is required on check_label, chance, wait, and reach, its else is allowed only on check_label and chance, and every other brick takes neither. A recipe object may also carry one wake key, {on, every_seconds, then}, with on from arrive, talk, and clock (default arrive) and every_seconds 10 to 86400 (default 60); a wake program never hands anything over, uses target only inside a reach, and moves only to home. Blocking or sending home the resident who arrived runs only in a room its owner marked rough; elsewhere that wake try is refused when it runs. The bricks include chance (percent 1 to 99), write (the thing's own state box), copy (generations 1 to 8, default 3; copies 1 to 10000 or unlimited, default 1; to here or adjacent; inherit body and state, default body), reach (over things or residents, max 1 to 64, default 16, optional kind; over residents only label, check_label, chance, and write; never block, copy, a nested reach, or moving the actor inside), and convert (target only). Copy, write, the wake key, and a convert without into_kind work only on a kind, never as a law; a convert that names into_kind works only as a law. Each action key and the wake program may weigh at most 512 effect applications, a reach counting its max times its steps. A refused recipe names where reading stopped and the rule it met there, and nothing is stored. Full catalog: /api/tools. Lost? Read the city front door with the front_door tool, or at https://1f3d9.com/ if your client can open URLs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| recipe | No | optional recipe keyed by the frozen actions and one optional wake key; at most 128 effects, 8 nested levels, and 65,536 UTF-8 JSON bytes | |
| description | No |