diff --git a/Chat-Command-Reference.md b/Chat-Command-Reference.md index 3f1cbaf..c6cd9bd 100644 --- a/Chat-Command-Reference.md +++ b/Chat-Command-Reference.md @@ -189,6 +189,21 @@ If `h` or `hollow` is specified at the end, then the resulting dome shape is mad ``` +### `//spline [ []]` +Draws a curved line, using all the currently defined points as control points. The starting and ending widths of the line can be controlled, and the width will be linearly interpolated. + +**Note:** `//spline` uses the **new** WorldEditAdditions positions! Use the [multipoint wand](#multi-point-wand) to define the control points for the resulting line. + +For those interested, WorldEditAdditions uses the [chaikin curve algorithm](https://starbeamrainbowlabs.com/blog/article.php?article=posts/196-Chaikin-Curve-Generator.html) to draw the curve. + +```weacmd +//spline dirt 5 2 +//spline glass 3 +//spline bakedclay:violet 3 +``` + +![An example of what //spline can do.](https://raw.githubusercontent.com/sbrl/Minetest-WorldEditAdditions/main/.docs/images/reference/spline.jpeg) + ## Misc