简介
本插件利用了 WorldEdit 插件(Bukkit 页面)的强大功能,并添加了我个人使用且向所有人公开的画笔。我的画笔和命令的使用方式与 WorldEdit 自带的其他画笔一致,并利用其选择区域和遮罩的所有功能。
画笔
生物群系画笔 (Biome Brush)
将指定区域的生物群系修改为指定的类型。
命令语法:brush biome <BiomeType> [radius]
- BiomeType:可以是单个生物群系(如 "desert"),也可以是多个生物群系的随机选择(如 "desert,desert_hills"),或者是带有概率选择的生物群系组合(如 "80%desert,20%desert_hills")。
- Radius:设置画笔的大小(默认值:2)。
对于那些不了解的人,在 WorldEdit 中,您可以通过在生物群系名称前加上 $ 来指定遮罩以影响特定的生物群系(例如 "mask $plains")。
然而,mat 命令不支持生物群系,因此不会影响此画笔。
此外,客户端不会自动更新生物群系的变化,直到重新加载;您需要离开该区域并返回,或者重新登录才能看到结果。
多重剪贴板画笔 (Multi-Clipboard Brush)
工作原理类似于剪贴板画笔,但它可以保存一组剪贴板内容,并在粘贴时随机放置,可选择进行旋转。
命令语法:brush multiclip [add] [flags: a r]
- Add:将剪贴板添加到现有的多重剪贴板画笔中。(此时忽略标志位)
- 标志位 a:仅在粘贴时放置非空气方块(适用于整个画笔范围)。
- 标志位 r:在粘贴前随机旋转剪贴板内容(适用于整个画笔范围)。
侵蚀画笔 (Erode Brush)
类似于 WorldEdit 中的平滑处理,但它不使用高度图,因此也会平滑垂直表面以及水平表面。
命令语法:brush erode [radius] [amount]
- Radius:设置画笔的大小(默认值:2)。
- Amount:平滑的程度(默认值:1,最大值:5)。
在我的实现中,这个工具相当消耗性能,尤其是在较高的平滑程度下。我通常只使用 1 或 2。
如果您希望此画笔仅影响石质结构而不影响其他东西,您必须 将其遮罩设置为石头和空气("mask stone,air"),因为该画笔可能会潜在地将空气变成石头,或将石头变成空气。如果只遮罩石头,它仅有的选项是将石头变成石头(这没有帮助)
其他命令
Erode
执行与画笔相同的操作,但作用于选区。
命令语法:erode [amount] [flags: r]
- Amount:平滑的程度(默认值:1,最大值:5)。
- 标志位 r:将效果限制在选区内(如果您不希望区域外的部分影响平滑效果)。
权限
使用基本的 WorldEdit 权限(不确定这种做法是否妥当,毕竟这是一个为另一个插件编写的插件...)
- worldedit.brush.*
- worldedit.brush.biome
- worldedit.brush.clear
- worldedit.brush.erode
- worldedit.brush.multiclipboard
- worldedit.region.*
- worldedit.region.erode
依赖项
如果到目前为止还不清楚,本插件需要安装 WorldEdit 才能正常工作。WorldEdit 的创作者们出色地创建了这款插件,并使我也能利用他们的框架轻松实现这些画笔功能。
如果有任何问题、疑虑、错误或请求,欢迎留言或私信我。
Summary
This plugin uses the power of the WorldEdit plugin (Bukkit page) and adds brushes that I use and have made available to all. My brushes and commands work just like others from WorldEdit and utilize all of its functionality with selections and masks.
Brushes
Biome Brush
Modifies the biome to the one specified.
Command syntax: brush biome <BiomeType> [radius]
- BiomeType: can be a single biome ("desert"), a random selection of biomes ("desert,desert_hills"), or a probability selection of biomes ("80%desert,20%desert_hills")
- Radius: sets the size of the brush (default: 2)
For those unaware, in WorldEdit, you can specify a mask to affect certain biomes by putting $ before them (i.e. "mask $plains")
However, the mat command does not support biomes and will not affect this brush.
Also, biomes will not update themselves client-side until they are reloaded; either leave the area and come back, or relog to see the result.
Multi-Clipboard Brush
Works like the clipboard brush but holds a set of them and pastes them randomly, optionally rotating them.
Command syntax: brush multiclip [add] [flags: a r]
- Add: adds the clipboard to an existing multiclipboard brush. (flags are ignored)
- Flag a: place only non-air blocks when pasting (brush-wide)
- Flag r: randomly rotate clipboard before pasting (brush-wide)
Erode Brush
Similar to the smoothing from WorldEdit but does not use a height-map and therefore will smooth vertical surfaces as well as horizontal.
Command syntax: brush erode [radius] [amount]
- Radius: sets the size of the brush (default: 2)
- Amount: amount of smoothing (default: 1, max: 5)
This tool with my implementation is quite expensive, especially for higher amounts of smoothing. I typically only do 1 or 2.
If you want this brush to only affect a stone structure and nothing else, you must mask it with stone and air ("mask stone,air") because the brush may potentially turn air into stone and stone into air. If you only mask stone, its only options are to turn stone into stone (not helpful)
Other Commands
Erode
Does the same thing as the brush but on a selection.
Command syntax: erode [amount] [flags: r]
- Amount: amount of smoothing (default: 1, max: 5)
- Flag r: restricts the effect to the selection (if you don't want things outside the region to affect the smoothing)
Permissions
Uses basic WorldEdit permissions (not sure if this is bad form, as this is a plugin for a plugin... )
- worldedit.brush.*
- worldedit.brush.biome
- worldedit.brush.clear
- worldedit.brush.erode
- worldedit.brush.multiclipboard
- worldedit.region.*
- worldedit.region.erode
Dependency
If it is thus far unclear, this plugin requires WorldEdit in-order to work. The creators of WorldEdit have done a fantastic job creating this plugin and made it easy for me to implement these brushes using their framework.
If there are any questions, concerns, bugs, or requests; feel free to comment or PM me.
评论 0
登录后参与评分
还没有评论,来抢沙发吧