生成类指令

基本信息

属性 值
来源类 com.sk89q.worldedit.command.GenerationCommands
文件 src/main/java/com/sk89q/worldedit/command/GenerationCommands.java
注册位置 CommandManager.java:142(根节点直接注册)
命令数 10
文件行数 349(wc -l)

命令表

指令 别名 说明 权限节点
//hcyl — Generates a hollow cylinder. worldedit.generation.cylinder
//cyl — Generates a cylinder. worldedit.generation.cylinder
//hsphere — Generates a hollow sphere. worldedit.generation.sphere
//sphere — Generates a filled sphere. worldedit.generation.sphere
forestgen — Generate a forest worldedit.generation.forest
pumpkins — Generate pumpkin patches worldedit.generation.pumpkins
//hpyramid — Generate a hollow pyramid worldedit.generation.pyramid
//pyramid — Generate a filled pyramid worldedit.generation.pyramid
//generate //gen、//g Generates a shape according to a formula. worldedit.generation.shape
//generatebiome //genbiome、//gb Sets biome according to a formula. (无)

功能

  • //cyl [radius] [height] [material] 实心圆柱,//hcyl 空心
  • //sphere [radius] [material] 实心球,//hsphere 空心
  • //pyramid / //hpyramid 实心/空心金字塔
  • //generate <表达式> 按数学表达式生成任意形状,是 WorldEdit 最灵活的生成命令
  • forestgen / pumpkins 只作单个方块放置(/forestgen <树种>、/pumpkins),在玩家当前朝向位置生成,不是区域撒种
  • //generatebiome 按表达式批量设置群系

尺寸上限

形状生成的顶点数/多面体顶点数上限来自配置 default-max-polyhedron-points 与 max-polyhedron-points(默认 -1 / 20),读取位置 PropertiesConfiguration.java:85-86。//generate 这类公式形状同样受 max-changed-blocks 约束(默认 -1 不限)。

交互

  • 生成区域锚定在玩家当前所在方块,高度向上
  • 所有生成操作计入历史,可用 //undo 撤销,详见 编辑会话与历史

相关条目