
Bedrock Breaking
一款 Fabric 模组,允许玩家破坏基岩。拥有大量配置选项!
该模组有 2 个非加载器依赖项(Fabric Language Kotlin 和 the Fabric API),并自带了一份 ParadoxConfig。
配置文件
默认值:
{
"bedrock_breakers": [
"bedrockbreaking:bedrock_pickaxe",
"minecraft:diamond_pickaxe"
],
"bedrock_drops": false,
"bedrock_effective_hardness": 50.0,
"bedrock_pickaxe_enabled": true,
"use_effective_modifier": false
}
默认情况下,会添加一个基岩镐物品(没有合成配方或创造模式标签页,ID 为 "bedrockpickaxe:bedrock_pickaxe")。
若要移除它,请设置:
"bedrock_pickaxe_enabled": false
破坏基岩的难度是可配置的,基于 Minecraft 的硬度值:
"bedrock_effective_hardness": 50.0
任何物品都可以被设定为能够破坏基岩:
"bedrock_breakers": [
"bedrockbreaking:bedrock_pickaxe",
"minecraft:diamond_pickaxe"
]
如果选择了除基岩镐之外的其他物品,你可能需要设置:
"use_effective_modifier": false
否则,所有非基岩镐的物品在破坏基岩时将被视为“无效”,挖掘速度仅为正常的 30%。
效率附魔正常工作。时运附魔将不起作用。
许可证
本模组依据 CC0 许可证发布。由 Nokko 制作。
备注
这是我制作的第一个针对 Fabric 1.16.4 的模组!Mixin 太棒了。
给那些将此代码作为参考的人:
- 基岩的可破坏性是通过
AbstractBlockMixin 实现的。
- 它不应该破坏任何东西,但它挂钩到了每次你破坏方块时运行的那部分代码中,所以……小心,潜在的错误无处不在。
- 这个物品只是一个重新贴图的原版镐子。当用于挖掘基岩时,它的挖掘速度更快。
- 配置文件位于你的
.minecraft/config/bedrockpickaxe/ 目录或类似位置,寻找 bedrockpickaxe.json。
(如果服务器禁用了基岩镐物品,则在客户端侧可选)

Bedrock Breaking
A Fabric mod that allows Bedrock to be broken. Much configuration!
This mod has 2 non-loader dependencies (Fabric Language Kotlin and the Fabric API), and ships with a copy of ParadoxConfig.
Config file
Defaults:
{
"bedrock_breakers": [
"bedrockbreaking:bedrock_pickaxe",
"minecraft:diamond_pickaxe"
],
"bedrock_drops": false,
"bedrock_effective_hardness": 50.0,
"bedrock_pickaxe_enabled": true,
"use_effective_modifier": 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.
The Efficiency enchantment works properly. The Fortune enchantment will not work.
License
This mod is released under the CC0 license. Nokko made it.
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 for bedrockpickaxe.json.
(Optional on the clientside if server has disabled the bedrock pickaxe item)
评论 0
登录后参与评分
还没有评论,来抢沙发吧