工具与超级镐指令
基本信息
| 属性 |
值 |
| 来源类 |
ToolCommands(9 条)、ToolUtilCommands(5 条)、SuperPickaxeCommands(3 条) |
| 文件 |
command/ToolCommands.java(164 行)、command/ToolUtilCommands.java(113 行)、command/SuperPickaxeCommands.java(95 行) |
| 注册位置 |
ToolCommands 注册两次:CommandManager.java:150(根节点)与 CommandManager.java:208(/tool 组内)<br>ToolUtilCommands → CommandManager.java:149(根节点)<br>SuperPickaxeCommands → CommandManager.java:204(/superpickaxe 组内) |
| 命令数 |
17 |
| 指令 |
别名 |
说明 |
权限节点 |
//info |
— |
Block information tool |
worldedit.tool.info |
//tree |
— |
Tree generator tool |
worldedit.tool.tree |
//repl |
— |
Block replacer tool |
worldedit.tool.replacer |
//cycler |
— |
Block data cycler tool |
worldedit.tool.data-cycler |
//floodfill |
flood |
Flood fill tool |
worldedit.tool.flood-fill |
//deltree |
— |
Floating tree remover tool |
worldedit.tool.deltree |
//farwand |
— |
Wand at a distance tool |
worldedit.tool.farwand |
//lrbuild |
/lrbuild |
Long-range building tool |
worldedit.tool.lrbuild |
/none |
— |
Unbind a bound tool from your current item |
(无) |
8 条主别名不含前导斜杠(info、tree、repl、cycler、floodfill、deltree、farwand、none),故实际输入为 /info、/tree 等;lrbuild 主别名为 /lrbuild → 实际输入 //lrbuild。
因为 ToolCommands 被注册两次,同一批指令有两套等价拼写:根级 /tree 与 /tool tree。
| 指令 |
别名 |
说明 |
权限节点 |
/ |
, |
Toggle the super pickaxe function |
worldedit.superpickaxe |
/mask |
— |
Set the brush mask |
worldedit.brush.options.mask |
/mat |
material |
Set the brush material |
worldedit.brush.options.material |
/range |
— |
Set the brush range |
worldedit.brush.options.range |
/size |
— |
Set the brush size |
worldedit.brush.options.size |
ToolUtilCommands 注册在根节点(CommandManager.java:149),因此这些是根级指令;其中 / 的主别名是字面斜杠,实际输入为 //。
超级镐指令(SuperPickaxeCommands)
| 指令 |
说明 |
权限节点 |
/superpickaxe single |
Enable the single block super pickaxe mode |
worldedit.superpickaxe |
/superpickaxe area |
Enable the area super pickaxe pickaxe mode |
worldedit.superpickaxe.area |
/superpickaxe recur |
Enable the recursive super pickaxe pickaxe mode |
worldedit.superpickaxe.recursive |
recur 另带别名 recursive。
数值
| 数值 |
配置项 |
默认值 |
| 超级镐单次最大作用方块数 |
max-super-pickaxe-size |
5 |
| 超级镐是否掉落物品 |
super-pickaxe-drop-items |
true |
| 超级镐是否一次掉落全部 |
super-pickaxe-many-drop-items |
true |
| 刷子最大半径 |
max-brush-radius |
10 |
| 法杖物品 |
wand-item |
271(ItemID.WOOD_AXE) |
| 导航法杖物品 |
nav-wand-item |
345(ItemID.COMPASS) |
| 导航法杖最大距离 |
nav-wand-distance |
50 |
交互
- 工具通过右键已绑定的手持物品触发(
ForgeWorldEdit.onPlayerInteract → handleBlockRightClick,ForgeWorldEdit.java:250-262)
- 需先
isHookingEvents() 为真才会拦截交互事件(ForgeWorldEdit.java:224)
/ 快捷键指令切换超级镐开关,是最高频的工具指令
相关条目