CONTENT CONTRACT · VERSION 1
notify
Show one localized text key after commit: to the permitted player, to every online player on the map of `near` within its radius, or without either to every online player.
Signature
{ kind: "notify", near: (NoticeArea)?, player: (PlayerRef)?, text: TextKey }Fields
| Name | Type | Meaning |
|---|---|---|
kind | "notify" | Discriminant |
near | NoticeArea | Place whose players see the text (excludes `player`): those online on its map within its radius. |
player | PlayerRef | Player shown the text; absent with `near` absent: every online player. Length: 1…256; Pattern: ^[\s\S]+$ |
text | TextKey | Localized text key resolved by the receiving player's locale. Length: 1…129; Pattern: ^[a-z][a-z0-9_]{0,31}:[a-z][a-z0-9_]{0,95}$; Reference: text |
Validated example
{
"kind": "notify",
"player": "player/1",
"text": "core:hill_golem_slain"
}