ToolBelt
关于
该插件提供了一种用具有特殊功能的工具替换特定工具的方法。这一想法源自 VoxelDoop2 插件,但为了提升代码质量并加入权限管理和 YML 配置文件,现已完全重写。该框架已进行第二次重写,以便更轻松地添加额外工具。
安装
此模组的安装过程是将其放入你的 CraftBukkit plugins/ 文件夹中。运行(或执行 /reload)bukkit,它将创建一个 ToolBelt/ 文件夹,其中包含 config.yml 文件。根据需要修改该文件(文件内有文档说明),然后运行 /tb reload 以告知 ToolBelt 从修改后的配置文件中重新加载配置。
工具
- 方块复制器(默认值为石斧)手持此工具右键点击,可获得所选方块的64个堆叠。
- 数据滚动(默认值为骨头)使用此工具左键或右键点击可更改所选方块的数据值。这允许你在木头、石头、砖块等之间进行半级切换。
- 油漆刷(默认值为 slime ball)左键点击将一种方块类型和数据加载到油漆刷中,右键点击将加载的数据绘制到所选方块上。
- 跳跃(默认值为羽毛)右键点击可在空中进行大跨度跳跃。这与 VoxelAir 类似,不同之处在于它不是悬停,而是左键点击可以进入创造模式飞行。
- 挖掘黑客(默认值为钻石镐)左键点击可瞬间删除一个方块。右键点击可瞬间删除而不应用 Minecraft 物理效果。蹲下可远程移除方块(如果拥有 phax.range 权限)。
- 尺子(默认值为纸)在一个位置左键点击,在另一个位置右键点击,即可获得 x,y,z 方向的宽度、两点之间的总距离以及封闭体积。
- 手表(默认值为手表)左键点击将个人时间设置为白天,右键点击设置为夜晚。蹲下并点击可与服务器时间重新同步。如果与服务器同步且拥有 watch.server 权限,则蹲下左/右键点击可将服务器时间设置为白天/夜晚。
- 铁锤(默认值为金镐)左键点击将方块向前推入空中,右键点击将其拉向你。蹲下可将方块推/拉入非空气方块中。
- 钳子(默认值为萤石粉)与铁锤相同,只是你复制方块而不是移动它。
- 铲子(默认值为金锹)左键点击移除(默认情况下)3x3x3 的泥土立方体。右键点击移除半径为 2.5 的圆盘(默认情况下),蹲下右键点击移除半径为 2.5 的球体(默认情况下)。默认情况下,铲子移除石头、泥土、草、沙子和砾石。
- 电锯(默认值为金斧)左键点击移除(默认情况下)3x3x3 的树木立方体。右键点击移除半径为 2.5 的球体(默认情况下)。默认情况下,电锯移除原木、树叶和藤蔓。
- 树(默认值为金锄)右键点击在你点击的位置放置一棵完整的树,左键点击更改要放置的树的类型。这使用内置的树木生成代码,因此只会在有空间容纳完整树木且有合适地面的位置放置。该工具在 config.yml 中默认禁用。
权限
帮助信息现在位于 help/Permissions.txt 中可用。该文件将在每次新版本发布时更新,并将始终列出所有可用内容。
- toolbelt.reload 授予从配置文件动态重载设置的权限
- toolbelt.tool.* 授予所有与工具相关的设置权限
- toolbelt.tool.dupe 授予使用复制工具的权限
- toolbelt.tool.scroll 授予使用数据滚动工具的权限
- toolbelt.tool.paint 授予使用油漆工具的权限。
- toolbelt.tool.paint.range 授予远距离使用油漆工具的权限。
- toolbelt.tool.leap 授予使用跳跃工具进行巨大跳跃的权限。
- toolbelt.tool.leap.fly 授予通过左键点击进入创造模式飞行的权限。
- toolbelt.tool.leap.tel 授予在跳跃时蹲下传送的权限。
- toolbelt.tool.phax 授予使用 PickHax 工具的权限。
- toolbelt.tool.phax.range 授予远距离使用 PickHax 工具的权限。
- toolbelt.tool.ruler 授予轻松使用尺子测量距离的权限。
- toolbelt.tool.watch 授予使用手表工具将自己时间设置为白天或夜晚的权限。
- toolbelt.tool.watch.server 授予设置服务器时间的权限。
- toolbelt.tool.sledge 授予推动或拉动方块的权限。
- toolbelt.tool.pliers 授予复制并推动或拉动方块的权限。
- toolbelt.tool.shovel 授予清除大量(默认情况下为石头、泥土、草、沙子和砾石)的权限。
- toolbelt.tool.saw 授予清除大量(默认情况下为原木、树叶和藤蔓)的权限。
- toolbelt.tool.tree 授予快速放置成熟树木的权限。
警告/帮助消息可以通过以下权限按用户配置。请一次只给用户其中一个权限。
- toolbelt.print.debug 打印所有消息,包括提供调试信息的消息。
- toolbelt.print.hint 打印所有较安静的消息 + 使用工具的提示。
- toolbelt.print.info 打印所有较安静的消息 + 工具的信息性通知。
- toolbelt.print.warning 打印所有较安静的消息 + 错误使用工具时的警告。
- toolbelt.print.important 打印重要消息,例如已加载的油漆材料等。
ToolBelt 文件夹内的 help/Permissions.txt 中包含一份始终最新的权限列表。
命令
帮助信息现在可在 help/Commands.txt 中获取。该文件将随每次新版本发布而更新,并始终列出所有可用内容。
- /toolbelt 或 /tb
- /tb reload 从配置文件中重新加载设置。(如果你拥有上述权限)
- /tb tools 查看你可以使用的所有工具的列表。(会考虑启用了哪些工具以及你拥有使用权限的工具)
- /tb off 允许玩家像平时一样使用 ToolBelt 工具,此时 ToolBelt 处于非激活状态。这仅对执行该命令的玩家生效。
- /tb on 允许玩家重新启用 ToolBelt 工具的使用。
配置
- config.yml 配置文件在顶部注释中有大量文档说明。如果我对任何选项的描述不够清晰,或者你希望我添加任何配置选项但尚未包含,请告诉我。
- help/<tool>.txt 这些文件将提供有关特定工具配置设置的更多信息。
其他链接
插件的代码可在 github 上找到。
ToolBelt
About
This plugin provides a way to replace specific tools with special functionality. The idea originated from the VoxelDoop2 plugin, but has been re-written entirely for better code quality and to include permissions and yml configuration. The framework has been rewritten a second time now so that additional tools can be added more easily.
Setup
The process for setting up this mod is to drop it in your CraftBukkit plugins/ folder. Run (or /reload) bukkit, and it will create a ToolBelt/ folder with the config.yml file inside. Modify the file as wished (it is documented inside the file) and then run /tb reload to tell ToolBelt to reconfigure itself from modified config file.
Tools
- Block Duplicator (defaults to Stone Axe) Right click with this tool in your hand to get a stack of 64 of the selected block.
- Data Scrolling (defaults to Bone) Right or Left click with this tool to change the data value for the selected block. This lets you change a half-step from wood to stone to brick and so on.
- Paint Brush (defaults to Slime Ball) Left click to load a block type and data into the paintbrush, and Right click to paint the loaded data onto the selected block
- Leap (defaults to Feather) Right click to make large leaps through the air. This is similar to VoxelAir, only instead of hovering, left click can enter creative mode flight.
- Pickhax (defaults to Diamond Pickaxe) Left click to insta-delete a block. Right click to insta-delete without applying minecraft physics. Crouch to remove blocks at range (if have phax.range)
- Ruler (defaults to Paper) Left click in one spot, Right click in another, and get the width in x,y,z, total distance between points, and the enclosed volume.
- Watch (defaults to Watch) Left click to set personal time to day, right click for night. Crouch and click to re-sync with server time. If synced with server and have watch.server permission, left/right crouch click to set server time to day/night.
- Sledge (defaults to Gold Pickaxe) Left click to push a block forward into air, right click to pull it towards you. Crouch to push/pull into non-air blocks.
- Pliers (defaults to Glowstone Dust) Same as Sledge, except you copy the block instead of move it.
- Shovel (defaults to Gold Spade) Left click to remove (by default) a 3x3x3 cube of earth. Right click to remove a disk (by default) of radius 2.5, and crouch right click to remove a sphere (by default) of radius 2.5. By default, the shovel removes stone, dirt, grass, sand and gravel.
- Chainsaw (defaults to Gold Axe) Left click to remove (by default) a 3x3x3 cube of trees. Right click to remove a sphere (by default) of radius 2.5. By default, the chainsaw removes logs, leaves and vines.
- Tree (defaults to Gold Hoe) Right click to place a full tree where you click, Left click to change the type of tree to place. This uses the built-in tree generation code, and so will only place in locations where there is room for the full tree, and the appropriate ground below. The tool is disabled by default in config.yml .
Permissions
This help is now available in help/Permissions.txt. That file will be updated with every new release and will always list what is available.
- toolbelt.reload Give permission to reload the settings from the configuration file on the fly
- toolbelt.tool.* Give permission for all tool related settings
- toolbelt.tool.dupe Give permission to use the duplication tool
- toolbelt.tool.scroll Give permission to use the data scrolling tool
- toolbelt.tool.paint Give permission to use the paint tool.
- toolbelt.tool.paint.range Give permission to use the paint tool at a distance.
- toolbelt.tool.leap Give permission to make huge leaps with the leap tool.
- toolbelt.tool.leap.fly Give permission to enter creative mode flying by left clicking.
- toolbelt.tool.leap.tel Give permission to teleport by crouching while leaping.
- toolbelt.tool.phax Give permission to use the PickHax tool.
- toolbelt.tool.phax.range Give permission to use the PickHax tool at a distance.
- toolbelt.tool.ruler Give permission to measure distances easily with the ruler.
- toolbelt.tool.watch Give permission to set the time to day or night for themselves with the watch tool.
- toolbelt.tool.watch.server Give permission to set the server time.
- toolbelt.tool.sledge Give permission to push or pull blocks.
- toolbelt.tool.pliers Give permission to copy and push or pull blocks.
- toolbelt.tool.shovel Give permission to clear large amounts of (by default) stone, dirt, grass, sand and gravel.
- toolbelt.tool.saw Give permission to clear large amounts of (by default) logs, leaves and vines.
- toolbelt.tool.tree Give permission to rapidly place fully grown trees.
The warning/help messages can be configured per-user by the following permissions. Please only give any user one of these permissions at a time.
- toolbelt.print.debug Print all messages including ones that give debugging information.
- toolbelt.print.hint Print all quieter messages + hints for using tools.
- toolbelt.print.info Print all quieter messages + informational notices for tools.
- toolbelt.print.warning Print all quieter messages + warnings on wrong tool use.
- toolbelt.print.important Print important messages, such as loaded paint material and such.
There is an always up-to-date list of permissions in help/Permissions.txt inside the ToolBelt folder.
Commands
This help is now available in help/Commands.txt. That file will be updated with every new release and will always list what is available.
- /toolbelt or /tb
- /tb reload Reload the settings from the configuration file. (if you have the permission above)
- /tb tools See a list of all the tools you can use. (takes into account what tools are enabled and what you have permission to use)
- /tb off Allows a player to use the ToolBelt tools as they normally are, with ToolBelt not active. This is just for the person who ran the command.
- /tb on Allows a player to re-enable the use of ToolBelt tools.
Configuration
- config.yml The configuration file is heavily documented in the top comment. Please let me know if I'm not clear enough on any option and if I'm missing any configuration options that you wish for.
- help/<tool>.txt These files will give further information on the configuration settings for a given tool.
Additional links
The code for the plugin is available at github.
下载 ToolBelt
下载 ToolBelt
下载 ToolBelt
下载 ToolBelt
下载 ToolBelt
下载 ToolBelt
下载 ToolBelt
下载 ToolBelt
下载 ToolBelt
下载 ToolBelt
更新版本 0.11
更新 0.10(未发布)
更新版本 0.9
- 适配 Minecraft 1.7 的变更
- 改进 /tb tools 输出信息
- 修复:生存模式下画板加载方块的多重点击问题
- 电锯递归移除功能
- 其他几处细微的输出信息调整
更新版本 0.8
如需查看更早的更新日志,请参阅之前的文件上传。
0.11 配置文件进行了若干更改,以支持 Minecraft 1.8 中的新方块类型。
- tools.global.stopCopy 添加了 176, 177, 193, 194, 195, 196, 197
- tools.global.stopOverwrite 添加了 193, 194, 195, 196, 197
- tools.dupe.replace 添加了 115: 372 和 166: 0
- tools.dupe.keepData 添加了 1, 19, 168, 179
- tools.saw.onlyAllow 添加了 161, 162
0.10 版本没有对 ToolBelt 配置文件进行任何更改。 目前针对 NoCheat 的变通方法是使用 CompatNoCheatPlus exempt-names。
关于电锯的更改来自 Chainsaw recursive removal,允许控制递归方块移除的范围。在插件首次运行后,您可以在 plugins/ToolBelt/help/saw.txt 中找到更多帮助信息。
在 0.8 版本中,为滚动工具添加了一个新选项。该选项不推荐使用,因为它可能会将地图上方块的数据更改为不受支持的数值。它允许对所有受支持方块的 16 个数值进行滚动,或者对所有方块的 16 个数值进行滚动。随着 Minecraft 较新版本的出现,这很可能已变成一个废弃的功能
- tools.scroll.all,可选参数为 "no"(默认值)| "values" | "blocks"
如果您服务器启用了 NoCheat,绘画功能的范围选项将被阻止。如果遇到此问题,请尝试赋予相关用户 nocheat.checks.blockplace.reach 权限。这也可能发生在其他类似插件上,请尝试查找可能导致问题的类似限制条件。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
ExyliaPlugins 的库。
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
使床在所有维度中爆炸的模组
插件
为 Armor Poser 模组添加兼容性
插件
SkyBlock、OneBlock、Boxed、SkyGrid、AcidIsland、CaveBlock、Poseidon、StrangerRealms——以及更多!这些只是由 BentoBox 支持的基于岛屿的游戏模式之一。来自原版 ASkyBlock 的作者。
插件
一个在游戏内运行的 Minecraft 地图编辑器! 支持选区、蓝图、复制粘贴、笔刷和脚本。 可在创造模式中使用,也可在生存模式中临时使用。
评论 0
登录后参与评分
还没有评论,来抢沙发吧