Reward Specifications - TheTurkeyDev/ChanceCubes GitHub Wiki

Before you add any reward specifications, you need to have the basic reward setup. If you have not done that already, you need to head here to set up the base for the reward.

There are currently 2 other specifications that can be made to rewards, other than the chance value.

Dependencies

Dependencies are specifications on the reward that make the reward load only if each dependency specification is met. Dependency specifications can be made for the version of Minecraft being used, or for a certain mod loaded in the game. An example of requiring a certain Minecraft version is shown below.

"Reward Name":
{
    "chance": 0,
    "dependencies":
    {
	"mcVersion":"1.10.2"
    }
}

The version number can also be made less specific by inserting * like as shown below:

"mcVersion":"1.10.*"

Setting a mod dependency is slightly easier and is shown below:

"Reward Name":
{
    "chance": 0,
    "dependencies":
    {
	"mod":"ExtraUtilities"
    }
}

with "ExtraUtilities" being any mod id that you wish to specify.

Giant Chance Cube Reward

Along with being able to set reward depedencies, you can also specifiy a reward to be added to the Giant Chance Cubes reward pool by adding

"isGiantCubeReward":true

like shown below:

"Reward Name":
{
    "chance": 0,
    "isGiantCubeReward":true
}

These specifications are reward specific and not file specific so they allow for increased customization as well as for better safety protection from rewards crashing games/packs.