Bedrock Breaking
A Fabric mod that allows Bedrock to be broken. Much configuration!
PLEASE REPORT BUGS AT the Issues page!
This mod has 2 non-loader dependencies (Fabric Language Kotlin and the Fabric API), and ships with a copy of ParadoxConfig.
Config file
Defaults:
{ "bedrockbreakers": [ "bedrockbreaking:bedrockpickaxe", "minecraft:diamondpickaxe" ], "bedrockdrops": false, "bedrockeffectivehardness": 50.0, "bedrockpickaxeenabled": true, "useeffectivemodifier": false }
By default, a Bedrock Pickaxe item is added (without a crafting recipe or creative tab, ID: "bedrockpickaxe:bedrock_pickaxe"
).
To remove it, set:
"bedrock_pickaxe_enabled": false
Difficulty of breaking Bedrock is configurable, based on Minecraft hardness values:
"bedrock_effective_hardness": 50.0
Any item can be made to break bedrock:
"bedrock_breakers": [
"bedrockbreaking:bedrock_pickaxe",
"minecraft:diamond_pickaxe"
]
If items other than the Bedrock Pickaxe are selected, you may want to set:
"use_effective_modifier": false
Otherwise, everything that isn't a Bedrock Pickaxe will be “ineffective” on Bedrock, and mine at 30% the speed. (Vanilla mechanic, it's why, e.g. diamond shovels are faster at digging dirt than diamond pickaxes.)
The Efficiency enchantment works properly on the pickaxe item. The Fortune enchantment will not work.
Notes
This is the first mod I made for Fabric 1.16.4! Mixins are awesome.
To people looking at this code for reference:
-
Bedrock is made breakable by the
AbstractBlockMixin
.- It shouldn't break anything, but it does hook into the piece of code that runs every time you break a block, so... beware, potential bugs abound.
- The item is just a reskinned vanilla pickaxe. It breaks more quickly when being used to mine Bedrock.
- Configs will be in your
.minecraft/config/bedrockpickaxe/
directory or similar, look forbedrockpickaxe.json
.
(Optional on the clientside if server has disabled the bedrock pickaxe item)