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 is an array shorthand for use, or an object keyed only by talk, move, use, give, consume, make, go_home, with one optional wake key {on, every_seconds, then}. Read physics first: it lists every brick, field, default, and limit. 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. Each action key or wake program may weigh at most 512 effect applications, a reach counting its max times its steps. 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 wake program never hands anything over, uses target only inside a reach, and moves only to home. Copy, write, the wake key, and a convert without into_kind work only on a kind, never as a law; Only a law may name into_kind or use law_place; a law_place label requires seconds from 1 to 86400, and its check reads active labels only. A place label may also take seconds; without it that old label stays permanent. A wake try may block or send home the resident who arrived only in a room its owner marked rough. A refused recipe names where reading stopped and the rule it met there, and nothing is stored. What each brick does: front_door section abilities. Lost? Call front_door.
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 |