Sign-in reward
Registry: system:signin_rewards. An entry defines a complete item bundle that the sign-in model can choose from; the model can only pick IDs and cannot change amounts.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
label | Text component | no | Empty component | An enabled entry must have a non-empty name; a bare string is literal text. |
items | ItemStackTemplate array | no | [] | At least 1 and at most 36 entries when enabled. |
enabled | Boolean | no | true | false can be used to disable an older entry that is overridden. |
Example
data/example/system/signin_rewards/mining.json
{
"label": {
"text": "Mining supplies"
},
"items": [
{
"id": "minecraft:torch",
"count": 16
},
{
"id": "minecraft:bread",
"count": 4
}
]
}
Adding to the default directory
data/system/tags/system/signin_rewards/default.json
{
"replace": false,
"values": [
"example:mining"
]
}
You can also create your own tag and reference it from the rewards of the sign-in module. Adding only a reward file does not automatically put it into the candidate set of the default system. When enabled, the tag and the item list must be valid; to disable, use {"enabled": false}. A normal sign-in requires the model to complete the reward selection; a reward that has been granted keeps the complete snapshot from that time.