Wiki 9Minecraft Chance Cubes Mod Wiki
Chance Cubes Mod Wiki › Configuration

Chance Cubes Mod — Configuration

Custom Rewards & Configuration

Chance Cubes allows users to add their own rewards via JSON files located in the config/chancecubes/custom_rewards folder.

JSON Structure

A custom reward requires a unique name and a chance value. You can combine multiple "Reward Types" into a single event.

{
 "name": "MyCustomReward",
 "chance": 50,
 "rewards": [
 {
 "type": "item",
 "id": "minecraft:diamond",
 "amount": 64
 },
 {
 "type": "message",
 "message": "You got lucky!"
 }
 ]
}

Supported Reward Types

  • Item: Drops specific items or blocks.
  • Entity: Spawns mobs with custom NBT data.
  • Block: Places blocks in a specific pattern or area.
  • Command: Executes a console command (e.g., /summon, /tp).
  • Schematic: Loads a .schematic or .nbt structure file.
  • Potion: Applies status effects to the player.
  • Sound/Particle: Plays specific Minecraft sounds or visual effects.

Commands

The mod includes several administrative commands for testing and management:

Command Description
/chancecubes reload Reloads all configuration and custom reward files.
/chancecubes version Displays the current mod version.
/chancecubes rewardTest [rewardID] Forces a specific reward to trigger at the player's location.
/chancecubes disableReward [rewardID] Disables a specific reward from occurring in the world.
/chancecubes enableReward [rewardID] Re-enables a previously disabled reward.