工具与环境指令
基本信息
| 属性 | 值 |
|---|---|
| 来源类 | com.sk89q.worldedit.command.UtilityCommands(17 条)<br>com.sk89q.worldedit.command.GeneralCommands(5 条) |
| 文件 | command/UtilityCommands.java(687 行)、command/GeneralCommands.java(208 行) |
| 注册位置 | CommandManager.java:151(Utility)、CommandManager.java:141(General) |
| 命令数 | 22 |
UtilityCommands 命令表
| 指令 | 别名 | 说明 | 权限节点 |
|---|---|---|---|
//fill |
— | Fill a hole | worldedit.fill |
//fillr |
— | Fill a hole recursively | worldedit.fill.recursive |
//drain |
— | Drain a pool | worldedit.drain |
//fixlava |
/fixlava |
Fix lava to be stationary | worldedit.fixlava |
//fixwater |
/fixwater |
Fix water to be stationary | worldedit.fixwater |
//removeabove |
/removeabove |
Remove blocks above your head. | worldedit.removeabove |
//removebelow |
/removebelow |
Remove blocks below you. | worldedit.removebelow |
//removenear |
/removenear |
Remove blocks near you. | worldedit.removenear |
//replacenear |
/replacenear |
Replace nearby blocks | worldedit.replacenear |
//snow |
/snow |
Simulates snow | worldedit.snow |
//thaw |
/thaw |
Thaws the area | worldedit.thaw |
//green |
/green |
Greens the area | worldedit.green |
//ex |
//ext、//extinguish、/ex、/ext、/extinguish |
Extinguish nearby fire | worldedit.extinguish |
/butcher |
— | Kill all or nearby mobs | worldedit.butcher |
/remove |
rem、rement |
Remove all entities of a type | worldedit.remove |
//calc |
//calculate、//eval、//evaluate、//solve |
Evaluate a mathematical expression | worldedit.calc |
//help |
— | Displays help for WorldEdit commands | worldedit.help |
注意前缀不一致:
//butcher与/remove的主别名不含前导斜杠,故实际输入是/butcher与/remove(表中「别名」列的/xxx写法即注册原文)。
GeneralCommands 命令表
| 指令 | 别名 | 说明 | 权限节点 |
|---|---|---|---|
//limit |
— | Modify block change limit | worldedit.limit |
//fast |
— | Toggle fast mode | worldedit.fast |
//gmask |
/gmask |
Set the global mask | worldedit.global-mask |
//toggleplace |
/toggleplace |
Switch between your position and pos1 for placement | (无) |
//searchitem |
//l、//search、/searchitem |
Search for an item | (无) |
功能
//fixlava///fixwater通过向液体重设方块数据停止流动,用于修复卡死的岩浆/水//snow///thaw///green分别放置雪层、融雪、铺草,是快捷环境修饰//calc只计算不修改世界:方法签名仅绑定Actor,不绑定LocalSession/EditSession,因此不写入历史(UtilityCommands.java:509)//remove按实体类型批量删除(/remove <item>或/remove all)//gmask设置会话级掩码,存放在执行者自己的LocalSession上(GeneralCommands.java:105-114调用session.setMask(mask)),对该玩家此后所有编辑生效,直到再次执行//gmask传空(此时打印 “Global mask disabled.”)。它不影响其他玩家的会话
数值
//butcher 的半径受配置 butcher-default-radius(默认 -1)与 butcher-max-radius(默认 -1)限制;//limit 的可设上限受 max-changed-blocks 限制。详见 worldedit.properties 配置项。
相关条目
- 指令树与注册机制 - 前缀规则解释了
/butcher与//butcher的差异 - worldedit.properties 配置项 -
butcher-*、max-changed-blocks - 编辑会话与历史 - 哪些命令计入撤销