Enabling and Disabling Rewards - TheTurkeyDev/ChanceCubes GitHub Wiki

Enabling and Disabling rewards is one of the most important things that profiles offer. They allow you to make a profile with the rewards you wanted enabled or disabled (even by default when the game first starts up) and then allow you to simply copy and paste the profile file into any new pack or instance that you want to customize to your liking without messing up other settings the pack maker has for the mod.

To enable or disable a reward is pretty easy. Simply start with a blank profile file or an existing one. All profiles follow JSON Convention as they are JSON files, so always make sure you files are valid JSON.

From there we need to add rewards_to_disable and rewards_to_enable to disable/ enable rewards. Once added it may look something like this:

{
    "initial_profile": {
        "name": "Initial Profile",
        "description": "Profile that is auto enabled at the start of the pack.",
        "rewards_to_enable": [

        ],
        "rewards_to_disable": [

        ]
    }
}

Note that if you only want to enable or disable rewards, you only need to include the relevant section. Now simply add the rewards you wish to enable or disable! For example if we want to disable the Wait for it reward and the reward that spawns TNT inside of diamond blocks, we would get this:

{
    "initial_profile": {
        "name": "Initial Profile",
        "description": "Profile that is auto enabled at the start of the pack.",
        "rewards_to_disable": [
            "chancecubes:tnt_diamond",
            "chancecubes:wait_for_it"
        ]
   }
}

Note that all reward descriptions and id's can be found in the wiki too. Also note that the giant chance cubes construction reward and clear inventory rewards are automatically disabled by the built in default profile.