Skip to content

Reward

Currency System

Rewards are items given out as a result of players interacting with the currency system. They hold no intrinsic value, yet they are exchanged as they can be combined into Skeletons.

File path: <namespace>:currency/rewards.json

Warning

Setting a reward's weight to 0 or lower will prevent it from dropping.

Format

File

Field Type Default Description
namespace:path Reward A reward entry. The field name must be a unique Identifier.

Reward

Field Type Default Description
item Identifier The reward's associated item.
weight Integer The reward's weight, used to determine its drop chance.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
{
    "astral:cobblestone": {
        "item": "minecraft:cobblestone",
        "weight": 4
    },
    "astral:mossy_cobblestone": {
        "item": "minecraft:mossy_cobblestone",
        "weight": 1
    }
}

A reward system that uses cobblestone and mossy cobblestone as its items. Cobblestone is 80% more likely to drop than mossy cobblestone.


Added: v1.2.0, Last Updated: v1.7.0