Overview#
Chance Cubes is a spiritual successor and alternative to the popular Lucky Block mod. It introduces the Chance Cube, a mystical block that triggers a random event when broken. These events range from high-tier loot and massive structures to devastating traps and boss encounters. Unlike simple random drops, Chance Cubes utilizes a "Chance Value" system (ranging from -100 to 100) that determines the likelihood of a positive or negative outcome.
The mod is designed for both survival players looking for excitement and modpack creators who want to customize the experience. It features deep integration for custom rewards via JSON files, allowing for nearly infinite possibilities in gameplay variety.
Blocks#
Chance Cube
The primary block of the mod. When broken, it executes a random reward script. It can be found naturally in the world or crafted using Lapis Lazuli. Naturally generated cubes often have a hidden chance value that can be revealed using a Scanner.
Giant Chance Cube
A massive version of the standard cube, created by placing Chance Cubes in a 3x3x3 multiblock structure (27 cubes total). Once the structure is complete, it merges into a single Giant Chance Cube. Breaking this block triggers "Giant Rewards," which are significantly more impactful than standard rewards, often generating entire villages, massive bio-domes, or catastrophic explosions.
Chance Icosahedron
A rare, non-cubic block that functions similarly to a Chance Cube but typically offers higher-tier rewards. It is often found as loot in high-level structures like End Cities or as a reward from other cubes.
| Block | Description | Obtaining |
|---|---|---|
| Chance Cube | Triggers standard rewards | Crafting, World Gen, Chests |
| Giant Chance Cube | Triggers massive rewards | 3x3x3 Multiblock Placement |
| Chance Icosahedron | High-tier reward block | Chest Loot, Rewards |
| Compact Giant Cube | Portable Giant Cube | Silk Touch Pendant on Giant Cube |
Items and Tools#
Chance Pendants
Pendants are held in the inventory to modify the chance value of any cube the player breaks. They do not stack; the highest tier pendant in the inventory is used.
- Tier 1 Chance Pendant: Adds +10 to the cube's chance.
- Tier 2 Chance Pendant: Adds +25 to the cube's chance.
- Tier 3 Chance Pendant: Adds +50 to the cube's chance.
- Tier 4 Chance Pendant: Adds +100 to the cube's chance (guarantees positive outcomes).
- Silk Touch Chance Pendant: Allows the player to break and pick up Chance Cubes without triggering them. It can also be used to harvest a Giant Chance Cube into a "Compact Giant Chance Cube."
Utility Items
- Chance Cube Scanner: When held and pointed at a Chance Cube, it displays the block's current chance value in the HUD. This is essential for identifying "troll" cubes with -100 chance found in the wild.
- Creative Chance Pendant: A creative-only item that allows players to manually set the chance value of a cube to any number between -100 and 100.
- Reward Selector Pendant: A creative-only tool that opens a GUI allowing the player to search for and select a specific reward to trigger upon the next cube break.
Mechanics#
The Chance System
Every reward in the mod has an assigned "Chance Value." When a block is broken, the mod calculates the player's total luck (Base Cube Luck + Pendant Luck) and selects a reward from the pool that matches that value.
- Negative Values (-100 to -1): Result in "Bad" rewards (traps, monsters, inventory wipes).
- Zero (0): Neutral rewards (random items, jokes, minor world changes).
- Positive Values (1 to 100): Result in "Good" rewards (ore spheres, structures, powerful equipment).
World Generation
Chance Cubes generate naturally in almost every biome.
- Surface: They appear as single blocks, often in plain sight or slightly hidden.
- Underground: Up to 4 cubes can generate per chunk in caves and mines.
- Chest Loot: They have a high probability of appearing in chests within Villages, Desert Temples, Jungle Temples, Strongholds, Mineshafts, and Woodland Mansions.
Rewards#
The mod features over 100 built-in rewards. Below are notable examples categorized by their impact.
Standard Rewards
- Dr. Trayaurus: Spawns a villager named Dr. Trayaurus who offers unique trades.
- Wait for it...: Spawns a primed TNT that explodes after a long, tense delay.
- Bedrock Cage: Instantly encases the player in a 3x3 bedrock box.
- Horde of Zombies: Spawns 10-15 zombies around the player.
- Book of Memes: Drops a book containing random internet jokes and community references.
- Herobrine: Spawns a fake Herobrine entity that vanishes when approached, playing scary sounds.
- Ore Sphere: Generates a hollow sphere made of various ores (Coal, Iron, Gold, Diamond).
Giant Rewards
- Bio-Dome: Creates a massive glass dome containing a specific biome (e.g., Jungle, Desert) along with its native mobs.
- Village Generation: Spawns a full NPC village at the player's location. Warning: This will overwrite any existing blocks.
- Inception: Plays a loud "BWAHM" sound and flips the blocks in the surrounding chunk upside down.
- The Wither: Spawns a Wither boss immediately.
- Diamond Meteor: A massive cluster of diamond blocks falls from the sky.
Crafting Recipes#
| Item | Recipe Components | Layout |
|---|---|---|
| Chance Cube | 8x Lapis Lazuli, 1x Lapis Block | Lapis surrounding Lapis Block |
| Tier 1 Pendant | 4x Lapis Block, 4x Gold Block, 1x Diamond Block | Diamond (Center), Lapis (Sides), Gold (Corners) |
| Tier 2 Pendant | 4x Lapis Block, 4x Gold Block, 1x Tier 1 Pendant | Tier 1 (Center), Lapis (Sides), Gold (Corners) |
| Scanner | 4x Iron Ingot, 2x Stained Glass, 1x Tier 1 Pendant | Iron (Corners), Glass (Sides), Pendant (Center) |
| Chance Icosahedron | 8x Chance Cubes, 1x Nether Star | Cubes surrounding Nether Star |
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
.schematicor.nbtstructure 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. |