本插件为游戏添加了两种新物品类型:锤子和挖掘机
其灵感来源于 mDiyo 的 Tinker's Construct 中同名物品
源码包含在 jar 文件中,也可以在此处找到 这里。
物品
锤子和挖掘机都会在目标方块周围 3x3 的区域内进行挖掘
它们会考虑方块的朝向(面)来确定破坏方向/模式
在破坏方块时按住潜行键,可使其像普通镐子或铲子一样工作
基础物品决定了可以挖掘/开采的内容,并且如果方块被破坏后不会掉落任何物品,它们将不会破坏这些方块
锤子
- 锤子是一种采矿工具,类似于镐子,其制作以镐子为基础物品
挖掘机
- 挖掘机是一种挖掘工具,类似于铲子,其制作以铲子为基础物品
合成配方
基本形状:
其中:
M = 材料
I = 基础物品
| 基础物品 | 材料 | 结果 |
| 木镐/木铲 | 原木 | 木锤/木挖掘机 |
| 石镐/石铲 | 平滑石头 | 石锤/石挖掘机 |
| 铁镐/铁铲 | 铁锭 | 铁锤/铁挖掘机 |
| 金镐/金铲 | 金锭 | 金锤/金挖掘机 |
| 钻石镐/钻石铲 | 钻石 | 钻石锤/钻石挖掘机 |
命令
目前,此插件没有可用的命令
权限
从版本 2.6.2 开始,权限系统经过重写,提供了对能做什么/不能做什么的更深层控制。
- powermining.* :授予所有权限(默认:op)
- powermining.highdurability:允许玩家的锤子/挖掘机每次使用仅消耗 1 点耐久度(默认:true)
- powermining.craft.* :允许玩家制作锤子和挖掘机工具(默认:op)
- powermining.craft.hammer.* :允许玩家制作所有锤子(默认:op)
- powermining.craft.hammer.wood:允许玩家制作木锤(默认:false)
- powermining.craft.hammer.stone:允许玩家制作石锤(默认:false)
- powermining.craft.hammer.iron:允许玩家制作铁锤(默认:false)
- powermining.craft.hammer.gold:允许玩家制作金锤(默认:false)
- powermining.craft.hammer.diamond:允许玩家制作钻石锤(默认:false)
- powermining.craft.excavator.* :允许玩家制作所有挖掘机(默认:op)
- powermining.craft.excavator.wood:允许玩家制作木挖掘机(默认:false)
- powermining.craft.excavator.stone:允许玩家制作石挖掘机(默认:false)
- powermining.craft.excavator.iron:允许玩家制作铁挖掘机(默认:false)
- powermining.craft.excavator.gold:允许玩家制作金挖掘机(默认:false)
- powermining.craft.excavator.diamond:允许玩家制作钻石挖掘机(默认:false)
- powermining.use.* :允许玩家使用锤子和挖掘机工具(默认:op)
- powermining.use.hammer.* :允许玩家使用所有锤子(默认:op)
- powermining.use.hammer.wood:允许玩家使用木锤(默认:false)
- powermining.use.hammer.stone:允许玩家使用石锤(默认:false)
- powermining.use.hammer.iron:允许玩家使用铁锤(默认:false)
- powermining.use.hammer.gold:允许玩家使用金锤(默认:false)
- powermining.use.hammer.diamond:允许玩家使用钻石锤(默认:false)
- powermining.use.excavator.* :允许玩家使用所有挖掘机(默认:op)
- powermining.use.excavator.wood:允许玩家使用木挖掘机(默认:false)
- powermining.use.excavator.stone:允许玩家使用石挖掘机(默认:false)
- powermining.use.excavator.iron:允许玩家使用铁挖掘机(默认:false)
- powermining.use.excavator.gold:允许玩家使用金挖掘机(默认:false)
- powermining.use.excavator.diamond:允许玩家使用钻石挖掘机(默认:false)
- powermining.enchant.* :允许玩家附魔锤子和挖掘机工具(默认:op)
- powermining.enchant.hammer.* :允许玩家附魔所有锤子(默认:op)
- powermining.enchant.hammer.wood:允许玩家附魔木锤(默认:false)
- powermining.enchant.hammer.stone:允许玩家附魔石锤(默认:false)
- powermining.enchant.hammer.iron:允许玩家附魔铁锤(默认:false)
- powermining.enchant.hammer.gold:允许玩家附魔金镐(默认:false)
- powermining.enchant.hammer.diamond:允许玩家附魔钻石镐(默认:false)
- powermining.enchant.excavator.* :允许玩家附魔所有铲子(默认:op)
- powermining.enchant.excavator.wood:允许玩家附魔木铲(默认:false)
- powermining.enchant.excavator.stone:允许玩家附魔石铲(默认:false)
- powermining.enchant.excavator.iron:允许玩家附魔铁铲(默认:false)
- powermining.enchant.excavator.gold:允许玩家附魔金铲(默认:false)
- powermining.enchant.excavator.diamond:允许玩家附魔钻石铲(默认:false)
组节点也有备用名称:
- powermining.craft.all
- powermining.craft.hammer.all
- powermining.craft.excavator.all
- powermining.use.all
- powermining.use.hammer.all
- powermining.use.excavator.all
- powermining.enchant.all
- powermining.enchant.hammer.all
- powermining.enchant.excavator.all
请注意,附魔权限同时影响附魔台和铁砧(当应用书籍或尝试合并两个动力工具时)
安装
只需将 jar 文件放入你的 plugins 文件夹即可
配置
目前 config.yml 文件中包含以下可更改的值:
- useDurabilityPerBlock
- 描述:确定是否在破坏每个方块时减少耐久度
- 默认值:False
- 版本:2.2
- Minable
- 描述:定义可以被镐子挖掘的方块,以及需要的基础镐子的品质(这些信息根据 Minecraft Wiki 上的资料设定)
- 版本:2.7.5
- 类型:嵌套列表
- 可挖掘
- 描述:定义可以被挖掘机挖掘的方块
- 版本:2.7.5
- 类型:简单列表
要向 Diggable 列表中添加内容,只需在现有列表中新增一行:
要向 Minable 列表中添加内容,你需要将目标方块作为新列表行添加,同时还需要指定可以挖掘它的镐子列表:
Minable:
- IRON_BLOCK: [STONE_PICKAXE, IRON_PICKAXE, DIAMOND_PICKAXE]
如果您希望所有镐子都能挖掘特定方块,请使用 [any]
需要注意的是,即使您只希望一把镐子能够挖掘它,它也必须在列表中(请参阅黑曜石的定义)
反破坏
该插件支持以下地形保护:
- 版本 2.4
- GriefPrevention(已在 v7.8-beta 上测试)
- WorldGuard(已在 v5.8 上测试)
- 版本 2.6
亮点视频
由 VariationVault 制作的快速亮点视频,展示了工具的基本合成与使用方法
<p><br>
由 FeerBreezy 制作的详细亮点视频(西班牙语)
<p><br>
由 AbsintoJ 制作的亮点视频(巴西葡萄牙语)
观察
我已经通过 Minecraft 论坛联系了 mDiyo,他表示不介意这个插件受到他的工具启发。
这也是我的第一个插件/模组,以及我编写的第一个 Java 程序,代码中可能存在一些错误。如果你发现任何问题,请告诉我。
This plugin adds 2 new item types to the game: Hammer and Excavator
These were inspired by mDiyo's Tinker's Construct items of the same name
Source is included in the jar file and can also be found here.
Items
Both the Hammer and Excavator will dig in a 3x3 area around the target block
They take the block face in consideration to determine the breaking direction/pattern
You can sneak while breaking the block to make it work like a normal pickaxe/shovel
The Base Item determines what can be mined/dug and they won't break blocks if they are going to be destroyed and not drop anything
Hammer
- The Hammer is a mining tool much like the Pickaxe, and uses that as a base item for it's crafting
Excavator
- The Excavator is a digging tool much like the Shovel, and uses that as a base item for it's crafting
Crafting Recipes
Basic Shape:
Where:
M = Material
I = Base Item
| Base Item | Material | Result |
| Wooden Pickaxe/Shovel | Wood Log | Wooden Hammer/Excavator |
| Stone Pickaxe/Shovel | Smooth Stone | Stone Hammer/Excavator |
| Iron Pickaxe/Shovel | Iron Ingot | Iron Hammer/Excavator |
| Golden Pickaxe/Shovel | Gold Ingot | Golden Hammer/Excavator |
| Diamond Pickaxe/Shovel | Diamond | Diamond Hammer/Excavator |
Commands
At this moment, there are no available commands for this plugin
Permissions
As of version 2.6.2, the permissions were rewritten to give a much deeper control over what can/can't be done.
- powermining.* : Grants all permissions (default: op)
- powermining.highdurability: Allows player's Hammers/Excavators to use only 1 durability per use (default: true)
- powermining.craft.* : Allows players to craft the Hammer and Excavator tools (default: op)
- powermining.craft.hammer.* : Allows players to craft all hammers (default: op)
- powermining.craft.hammer.wood: Allows players to craft the Wooden Hammer (default: false)
- powermining.craft.hammer.stone: Allows players to craft the Stone Hammer (default: false)
- powermining.craft.hammer.iron: Allows players to craft the Iron Hammer (default: false)
- powermining.craft.hammer.gold: Allows players to craft the Golden Hammer (default: false)
- powermining.craft.hammer.diamond: Allows players to craft the Diamond Hammer (default: false)
- powermining.craft.excavator.* : Allows players to craft all excavators (default: op)
- powermining.craft.excavator.wood: Allows players to craft the Wooden Excavator (default: false)
- powermining.craft.excavator.stone: Allows players to craft the Stone Excavator (default: false)
- powermining.craft.excavator.iron: Allows players to craft the Iron Excavator (default: false)
- powermining.craft.excavator.gold: Allows players to craft the Golden Excavator (default: false)
- powermining.craft.excavator.diamond: Allows players to craft the Diamond Excavator (default: false)
- powermining.use.* : Allows players to use the Hammer and Excavator tools (default: op)
- powermining.use.hammer.* : Allows players to use all hammers (default: op)
- powermining.use.hammer.wood: Allows players to use the Wooden Hammer (default: false)
- powermining.use.hammer.stone: Allows players to use the Stone Hammer (default: false)
- powermining.use.hammer.iron: Allows players to use the Iron Hammer (default: false)
- powermining.use.hammer.gold: Allows players to use the Golden Hammer (default: false)
- powermining.use.hammer.diamond: Allows players to use the Diamond Hammer (default: false)
- powermining.use.excavator.* : Allows players to use all excavators (default: op)
- powermining.use.excavator.wood: Allows players to use the Wooden Excavator (default: false)
- powermining.use.excavator.stone: Allows players to use the Stone Excavator (default: false)
- powermining.use.excavator.iron: Allows players to use the Iron Excavator (default: false)
- powermining.use.excavator.gold: Allows players to use the Golden Excavator (default: false)
- powermining.use.excavator.diamond: Allows players to use the Diamond Excavator (default: false)
- powermining.enchant.* : Allows players to enchant the Hammer and Excavator tools (default: op)
- powermining.enchant.hammer.* : Allows players to enchant all hammers (default: op)
- powermining.enchant.hammer.wood: Allows players to enchant the Wooden Hammer (default: false)
- powermining.enchant.hammer.stone: Allows players to enchant the Stone Hammer (default: false)
- powermining.enchant.hammer.iron: Allows players to enchant the Iron Hammer (default: false)
- powermining.enchant.hammer.gold: Allows players to enchant the Golden Hammer (default: false)
- powermining.enchant.hammer.diamond: Allows players to enchant the Diamond Hammer (default: false)
- powermining.enchant.excavator.* : Allows players to enchant all excavators (default: op)
- powermining.enchant.excavator.wood: Allows players to enchant the Wooden Excavator (default: false)
- powermining.enchant.excavator.stone: Allows players to enchant the Stone Excavator (default: false)
- powermining.enchant.excavator.iron: Allows players to enchant the Iron Excavator (default: false)
- powermining.enchant.excavator.gold: Allows players to enchant the Golden Excavator (default: false)
- powermining.enchant.excavator.diamond: Allows players to enchant the Diamond Excavator (default: false)
The group nodes also have alternate names:
- powermining.craft.all
- powermining.craft.hammer.all
- powermining.craft.excavator.all
- powermining.use.all
- powermining.use.hammer.all
- powermining.use.excavator.all
- powermining.enchant.all
- powermining.enchant.hammer.all
- powermining.enchant.excavator.all
Please note that the enchant permission affects both enchantment tables and anvils (when applying books or trying to combine 2 power tools)
Installation
Simply put the jar file into your plugins folder
Configuration
Right now the config.yml file has the following values that can be changed:
- useDurabilityPerBlock
- Description: Determines if durability is reduced with each broken block
- Default: False
- Version: 2.2
- Minable
- Description: Define the blocks that can be mined by the hammer, and which quality of base pickaxe is needed (these are set according to the information on the minecraft wiki)
- Version: 2.7.5
- Type: Nested list
- Diggable
- Description: Define the blocks that can be dug by the excavator
- Version: 2.7.5
- Type: Simple list
To add something to the Diggable list, just add a new list row to the existing list:
To add something to the Minable list, you need to add the target block as a new list row, but you also need to specify a list of pickaxes that can mine it:
Minable:
- IRON_BLOCK: [STONE_PICKAXE, IRON_PICKAXE, DIAMOND_PICKAXE]
In case you want all hammers to be able to mine the specific block, use [any]
It's important to note that even if you only want one pickaxe to be able to mine it, it needs to be inside the list (look at the obsidian definition)
Anti-Grief
This plugin accounts for terrains protected by:
- Version 2.4
- GriefPrevention (tested on v7.8-beta)
- WorldGuard (tested on v5.8)
- Version 2.6
- Towny (tested on v0.84.0.7)
Spotlights
Quick spotlight showing the basic crafting and usage of the tools by VariationVault
<p><br>
Well explained spotlight by FeerBreezy (Spanish)
<p><br>
Spotlight by AbsintoJ (Brazilian Portuguese)
<h2>Observations<br></h2>
I've contacted mDiyo on minecraftforum and he has no problem with this plugin being inspired by his tools.
This is my first plugin/mod as well as my first Java program, there might be bugs in the code. Let me know if you find any.
评论 0
登录后参与评分
还没有评论,来抢沙发吧