This app makes configs with random awards for our Minecraft servers. We use Oxygen-Daily-Rewards system. Rewards are configured for each month and for every day through JSON configs.
- Choose month (next month is set by default)
- Insert a JSON with awards list. You can choose an existing template and edit it as you want.
- Press "Make" button. The resulting JSON should appear below the button.
- You can copy the resulting JSON with the "Copy" button and paste it to the mod's config directory.
The input JSON must be an array with three objects, each containing this three properties:
- type: COMMAND, CURRENCY, and ITEM
- description (optional)
- rewards: an array of possible rewards
All rewards of the same type must have the same structure:
COMMAND
{
"description": "300 Claim blocks",
"special": true,
"tooltip": "Count of claim blocks: 300",
"icon": "claimblocks.png",
"commands": "/acb @p 300",
"weight": "l"
}
CURRENCY
{
"amount": 12,
"special": false,
"currency_index": 0,
"weight": "l"
}
ITEM
{
"amount": 64,
"special": false,
"itemstack": {
"registry_name": "ic2:itemscrapbox",
"damage": 0,
"itemstack_nbt": "",
"capabilities_nbt": ""
},
"weight": "h"
}
See the patterns directory for more examples.
The resulting JSON will contain a random list of rewards chosen from the input JSON for the whole month.
Example:
[
{
"day": 1,
"type": "COMMAND",
"description": "150 Claim blocks",
"special": true,
"tooltip": "Count of claim blocks: 150",
"icon": "claimblocks.png",
"commands": "/acb @p 150"
},
{
"day": 2,
"type": "ITEM",
"description": "oxygen_dailyrewards.description.item",
"amount": 16,
"special": false,
"itemstack": {
"registry_name": "ic2:itemscrapbox",
"damage": 0,
"itemstack_nbt": "",
"capabilities_nbt": ""
}
},
...and so on for each day of month.
Each reward in input JSON should have a weight
property.
Possible values of this property are l
, m
, and h
(low, medium and high respectively).
The more valuable a reward is, the higher weight it should have.
Weight mode defines how rewards with different weights appear in the resulting JSON.
From day 1 to day 7 the resulting JSON will contain only rewards with low weight.
From day 8 to day 23 there will be rewards with medium weight.
From day 24 to the last day of month only high-weighted rewards will appear.
From day 1 to day 7 the resulting JSON will contain only rewards with low weight.
From day 8 to day 23 the rewards with low or medium weight will be chosen.
From day 24 to the last day of month the program randomly chooses the rewards with medium or high weight.
This mode is useful for servers which don't have lots of rewards.