mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-22 15:33:00 +00:00
documentation for wireframe stuff
This commit is contained in:
parent
24569c37d3
commit
f6ed5241b4
4 changed files with 33 additions and 5 deletions
|
@ -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 `//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 `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 `//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)
|
## v1.12: The selection tools update (26th June 2021)
|
||||||
- Add `//spush`, `//spop`, and `//sstack`
|
- Add `//spush`, `//spop`, and `//sstack`
|
||||||
|
|
|
@ -253,6 +253,31 @@ Creates vertical walls of `<replace_node>` around the inside edges of the define
|
||||||
//walls goldblock
|
//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>`
|
## `//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.
|
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.
|
||||||
|
|
||||||
|
|
|
@ -6,11 +6,14 @@
|
||||||
local wea = worldeditadditions
|
local wea = worldeditadditions
|
||||||
local v3 = worldeditadditions.Vector3
|
local v3 = worldeditadditions.Vector3
|
||||||
worldedit.register_command("wbox", {
|
worldedit.register_command("wbox", {
|
||||||
params = "<node>",
|
params = "<replace_node>",
|
||||||
description = "Set the corners of the current selection to <node>",
|
description = "Sets the edges of the current selection to <replace_node>",
|
||||||
privs = {worldedit=true},
|
privs = {worldedit=true},
|
||||||
require_pos = 2,
|
require_pos = 2,
|
||||||
parse = function(params_text)
|
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)
|
local node = worldedit.normalize_nodename(params_text)
|
||||||
if not node then
|
if not node then
|
||||||
return false, "invalid node name: " .. params_text
|
return false, "invalid node name: " .. params_text
|
||||||
|
|
|
@ -5,8 +5,8 @@
|
||||||
-- ███ ███ ██████ ██████ ██ ██ ██ ████ ███████ ██ ██
|
-- ███ ███ ██████ ██████ ██ ██ ██ ████ ███████ ██ ██
|
||||||
local wea = worldeditadditions
|
local wea = worldeditadditions
|
||||||
worldedit.register_command("wcorner", {
|
worldedit.register_command("wcorner", {
|
||||||
params = "<node>",
|
params = "<replace_node>",
|
||||||
description = "Set the corners of the current selection to <node>",
|
description = "Set the corners of the current selection to <replace_node>",
|
||||||
privs = {worldedit=true},
|
privs = {worldedit=true},
|
||||||
require_pos = 2,
|
require_pos = 2,
|
||||||
parse = function(params_text)
|
parse = function(params_text)
|
||||||
|
|
Loading…
Reference in a new issue