documentation for wireframe stuff

This commit is contained in:
VorTechnix 2021-07-23 14:12:20 -07:00
parent 24569c37d3
commit f6ed5241b4
4 changed files with 33 additions and 5 deletions

View File

@ -7,7 +7,7 @@ Note to self: See the bottom of this file for the release template text.
- Add `//sfactor` (_selection factor_) - Selection Tools by @VorTechnix are finished for now.
- Add `mface` (_measure facing_), `midpos` (_measure middle position_), `msize` (_measure size_), `mtrig` (_measure trigonometry_) - Measuring Tools implemented by @VorTechnix.
- Add `//airapply` for applying commands only to air nodes in the defined region
- Add `wcorner` (_wireframe corners_), `wbox` (_wireframe box_), `wcompass` (_wireframe compass_) - Wireframes implemented by @VorTechnix.
## v1.12: The selection tools update (26th June 2021)
- Add `//spush`, `//spop`, and `//sstack`

View File

@ -253,6 +253,31 @@ Creates vertical walls of `<replace_node>` around the inside edges of the define
//walls goldblock
```
## `//wbox <replace_node>`
Sets the edges of the current selection to `<replace_node>`to create an outline of a rectangular prism. Useful for roughing in walls.
```weacmd
//wbox silver_sandstone
//wbox dirt
```
## `//wcompass <replace_node> [<bead_node>]`
Creates a compass around pos1 with a single node bead pointing north (+Z).
```weacmd
//wcompass meselamp
//wcompass desert_cobble torch
//wcompass gold diamond
```
## `//wcorner <replace_node>`
Set the corners of the current selection to `<replace_node>`. Useful for outlining building sites and setting boundaries.
```weacmd
//wcorner glass
//wcorner stone_with_iron
```
## `//scale <axis> <scale_factor> | <factor_x> [<factor_y> <factor_z> [<anchor_x> <anchor_y> <anchor_z>`
Advanced version of [`//stretch` from WorldEdit](https://github.com/Uberi/Minetest-WorldEdit/blob/master/ChatCommands.md#stretch-stretchx-stretchy-stretchz) that can scale both up and down at the same time by transparently splitting it into 2 different operations. Scaling up is *always* done before scaling down.

View File

@ -6,11 +6,14 @@
local wea = worldeditadditions
local v3 = worldeditadditions.Vector3
worldedit.register_command("wbox", {
params = "<node>",
description = "Set the corners of the current selection to <node>",
params = "<replace_node>",
description = "Sets the edges of the current selection to <replace_node>",
privs = {worldedit=true},
require_pos = 2,
parse = function(params_text)
if params_text == "" then
return false, "Error: too few arguments! Expected: \"<replace_node>\""
end
local node = worldedit.normalize_nodename(params_text)
if not node then
return false, "invalid node name: " .. params_text

View File

@ -5,8 +5,8 @@
-- ███ ███ ██████ ██████ ██ ██ ██ ████ ███████ ██ ██
local wea = worldeditadditions
worldedit.register_command("wcorner", {
params = "<node>",
description = "Set the corners of the current selection to <node>",
params = "<replace_node>",
description = "Set the corners of the current selection to <replace_node>",
privs = {worldedit=true},
require_pos = 2,
parse = function(params_text)