<b>Geodes</b> is a lightweight mod that adds an extra drop when mining stone. The drop tables are easily configured, and the mod is actively being updated and worked on.
This mod introduces depth-based drop scaling, weighted loot tables, and configurable mining conditions to give players a rewarding mining experience.
If you're using a hosted server, the config file location is in your root directory/config/geodes/geodes.json
If you're using a singleplayer world, it will be in your UserData/Saves/<World Name>/config/geodes/geodes.json
geodeItemId (string)
cooldownSeconds (number)
requiredBlockIds (string[])
surfaceDropChance (number 0–1)
deepDropChance (number 0–1)
chanceStartDepthY (integer)
minDepthY (integer)
depthExponent (number)
Internally: normalizedDepth = (startDepth - currentY) / (startDepth - minDepth) finalChance = surfaceChance + (deepChance - surfaceChance) * pow(normalizedDepth, depthExponent)
Lower values (~1.0) = linear scaling Higher values (>2.0) = rare near surface, spikes at deep levels
gems (weighted list)
Example entry:
{
"itemId": "Rock_Gem_Diamond",
"weight": 8
}Higher weight = more common Lower weight = rarer
Small crystals (weight 20 each) → Common rewards
Gems (weight 8 each) → Uncommon rewards
Ores (weight 3 each) → Rare rewards
Note: You can modify drop tables by adding, modifying, or removing the drop item id
By default, geodes use the interaction ID:
geodes:open_geode
This interaction is what allows a player to right-click (or interact) with a geode item to open it and roll the loot table.
If you are creating custom items, you can enable them to open geodes by adding this interaction ID to the item’s interaction list.
Example (pseudo item config):
{
"itemId": "My_Custom_Geode",
"interactions": [
"geodes:open_geode"
]
}Any item with this interaction will:
This allows you to: • Create custom geodes (e.g. Ice Geode, Volcanic Geode, Void Geode) • Create tiered geodes tied to progression • Hook geode opening into custom tools or mechanics
Make geodes more common: - Increase surfaceDropChance and/or deepDropChance
Make deep mining more rewarding: - Increase depthExponent
Make geodes rarer overall: - Lower both drop chances
Make better loot more frequent: - Increase weights of gem entries - Decrease the weights of crystal entries
Make the mod work on more blocks: - Add more IDs to requiredBlockIds
0 Comments