SpecificTools
SpecificTools 是一款易于使用和自定义的插件,允许你决定破坏不同方块所需的工具。配置后,木剑可能是唯一能破坏钻石块的工具。或者钻石锄是唯一能破坏树叶的工具。
功能
- 适用于任何可放置的方块
- 所有操作均可在游戏中完成
- 所有物品均可用作工具
- 手也可用作工具
- 易于自定义
- 约 37600 种可能的自定义组合!!
如何更改/添加替换规则
建议通过游戏内命令而非配置文件来添加/编辑/删除替换规则。
命令
| 命令 | 权限 | 描述 |
| /SpecificTools list | SpecificTools.replacements.list | 显示当前所有替换规则 |
| /SpecificTools edit | SpecificTools.replacements.edit | 编辑某个替换规则 |
| /SpecificTools create | SpecificTools.replacements.create | 创建一个新的替换规则 |
| /SpecificTools remove | SpecificTools.replacements.delete | 删除某个替换规则 |
| | |
| /SpecificToolsAdd | SpecificTools.replacements.create 或 edit | 向替换规则添加工具 |
| /SpecificToolsRemove | SpecificTools.replacements.edit | 从替换规则中移除工具 |
以下是如何创建一些替换规则的示例:
- /st create world diamond ore
- /sadd shears
- /sadd diamond spade
- /sadd finished
这将使剪刀和钻石镐成为在世界中唯一能破坏钻石矿石的工具。
如果你随后发现只有钻石镐才是唯一的工具而不是剪刀,你可以执行以下操作:
- /st edit world diamond ore
- /sremove shears
- /sremove finished
这将从世界的钻石矿石替换规则中移除剪刀。如果之后你完全不想保留该替换规则,可以执行:
- /st remove world diamond ore
所有有效方块/工具的列表位于 此处。
如果你想通过配置文件创建/删除/编辑替换规则,请记住先关闭服务器并阅读以下内容:
配置文件的工作原理
配置文件的格式如下:
Replacements:
[world]:
[block]:
- [tool]
- [tool]
方块和工具的列表位于 此处。
但请注意,工具/方块的名称必须大写,并使用下划线而非空格!
以下是一个配置示例:
Replacements:
world:
DIRT:
- HAND
- IRON_SWORD
GOLD_BLOCK:
- GOLD_HOE
world_nether:
DIRT:
- HAND
- IRON_SWORD
GOLD_BLOCK:
- GOLD_HOE
NETHERRACK:
- HAND
使用此配置,空手或铁剑是唯一能破坏泥土的工具,而在世界中,金锄是破坏金块的唯一工具。在下界中情况相同,除了下界岩可以用手(且仅能用)破坏。
此外,还有另一项你可能想要更改的设置:
如果设置为 true,尝试使用错误工具破坏的方块会被破坏,但不会掉落任何物品。
如果设置为 false,则方块根本不会被破坏。
权限
| 节点 | 子节点 | 描述 |
| SpecificTools.default | | 允许玩家覆盖配置文件中的工具设置 |
| SpecificTools.* | 除 SpecificTools.default 外的所有内容 | 所有节点 |
| SpecificTools.replacements.* | replacements.create, delete, edit 和 list | 在游戏中创建替换规则所需的所有节点 |
| SpecificTools.replacements.create | | 使玩家能够创建替换规则 |
| SpecificTools.replacements.delete | | 使玩家能够删除替换规则 |
| SpecificTools.replacements.list | | 使玩家能够列出所有替换规则 |
| SpecificTools.replacements.edit | | 使玩家能够编辑替换规则 |
安装方法
- 下载 specifictools.jar(本页右上角)
- 停止你的服务器
- 将 specifictools.jar 放入服务器的 plugins 文件夹
- 启动并再次停止服务器
- 根据需求编辑 plugins/SpecificTools/config.yml
- 享受吧!
待办事项
- 修复漏洞
如果你使用通常无效的工具,方块不会掉落任何物品。
无法在游戏中用手作为工具
- 如果将 NoDrop 设置为 true(这是默认值),则 LogBlock、Guardian、Hawkeye 等插件不会记录被破坏的方块。
- 改进!
使在使用命令时无需大写,且可以使用空格代替下划线- 更改配置文件中设置的工作方式
添加按世界支持的功能添加用于添加替换的命令将所有物品作为有效工具- 添加更快的破坏速度!
SpecificTools
SpecificTools is an easy to use and customize plugin that allows you to decide what tools are needed to break different blocks. When configured, wood sword could be the only tool that can break diamond blocks. Or diamond hoe the only one to destroy leaves.
Features
- Works with any place able block
- Everything can be done ingame
- All items can be used as tools
- Hand can be used as a tool
- Easy to customize
- Aprox. 37600 possible customizations!!
How to change/add replacements
It's preferred to add/edit/remove replacements from ingame via the commands, not via the config.
Commands
| Command | Permission | Description |
| /SpecificTools list | SpecificTools.replacements.list | Shows all current replacements |
| /SpecificTools edit | SpecificTools.replacements.edit | Edits a replacements |
| /SpecificTools create | SpecificTools.replacements.create | Creates a replacement |
| /SpecificTools remove | SpecificTools.replacements.delete | Removes a replacement |
| | |
| /SpecificToolsAdd | SpecificTools.replacements.create or edit | Adds a tool to a replacement |
| /SpecificToolsRemove | SpecificTools.replacements.edit | removes a tool from a replacement |
Here is an example of how you could create some replacements:
- /st create world diamond ore
- /sadd shears
- /sadd diamond spade
- /sadd finished
That would make Shears and diamond spades the only tools that could break diamond ore in world.
If you then find out diamond spades should be the only tools and not shears you would do:
- /st edit world diamond ore
- /sremove shears
- /sremove finished
that would remove shears from the replacement for diamond ore in world. If you later don't want that replacement at all you could do:
- /st remove world diamond ore
A list of every block/tool is here.
If you want to create/remove/edit replacements from the config remember to shut down your server first and read below:
How the config works
The format for the configuration is like this:
Replacements:
[world]:
[block]:
- [tool]
- [tool]
The list of blocks and tools is here.
But remember to have uppercase and use _ and not spaces in the tools/blocks!
Here is an example configuration:
Replacements:
world:
DIRT:
- HAND
- IRON_SWORD
GOLD_BLOCK:
- GOLD_HOE
world_nether:
DIRT:
- HAND
- IRON_SWORD
GOLD_BLOCK:
- GOLD_HOE
NETHERRACK:
- HAND
With this config an empty hand or an iron sword are the only tools that can break dirt, and golden hoe is the only tool to break gold blocks in world. And in nether it is the same except netherrack can be destroyed by hand(and only hand!).
Additionally there is one more thing you may want to change:
If it is set to true the blocks that are being tried to destroy using wrong tools would get destroyed, but not drop anything.
Else if it is set to false; the blocks just won't break.
Permissions
| Node | children | description |
| SpecificTools.default | | Lets the player override the tools in the config |
| SpecificTools.* | everything except SpecificTools.default | All the nodes |
| SpecificTools.replacements.* | replacements.create, delete, edit and list | All the node that is needed to create replacements ingame |
| SpecificTools.replacements.create | | Makes the player able to create replacements |
| SpecificTools.replacements.delete | | Makes the player able to delete replacements |
| SpecificTools.replacements.list | | Makes the player able to list all the replacements |
| SpecificTools.replacements.edit | | Makes the player able to edit replacements |
How to install
- Download specifictools.jar (Top right of this page)
- Stop your server
- Put specifictools.jar in the plugins folder of your server
- Start and stop your server
- Edit plugins/SpecificTools/config.yml after your needs
- Enjoy!
To do
- Remove bugs
If you use a tool that is normally not valid, the block wont drop anything.
Hand can not be used as a tool from ingame
- If NoDrop is set to true (which is default) the broken blocks will not be logged by LogBlock, Guardian, Hawkeye...
- Improve!
make so things do not need to be uppercase when using commands and space can be used insted of underscore
- Change how settings works in the config
Add per world support
Add commands to add replacements
Add all items as valid tools
- Add faster breaking!
评论 0
登录后参与评分
还没有评论,来抢沙发吧