Skip to main content

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.

FieldTypeRequiredDefaultDescription
labelText componentnoEmpty componentAn enabled entry must have a non-empty name; a bare string is literal text.
itemsItemStackTemplate arrayno[]At least 1 and at most 36 entries when enabled.
enabledBooleannotruefalse 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.