mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-22 07:23:00 +00:00
register commands with worldeditadditions, not worldedit
This commit is contained in:
parent
3bcca82b43
commit
8de49ac0af
51 changed files with 53 additions and 53 deletions
|
@ -37,7 +37,7 @@ When actually implementing stuff, here are a few guidelines that I recommend to
|
||||||
-- ██ ██ ██ ██ ██ ██ ██ ██ ██
|
-- ██ ██ ██ ██ ██ ██ ██ ██ ██
|
||||||
-- ██ ████ ██ ██ ██ ██ ███████
|
-- ██ ████ ██ ██ ██ ██ ███████
|
||||||
local wea = worldeditadditions
|
local wea = worldeditadditions
|
||||||
worldedit.register_command("{name}", {
|
worldeditadditions_core.register_command("{name}", {
|
||||||
params = "<argument> <argument=default> <option1|option2|...> [<optional_argument> <optional_argument2> ...] | [<optional_argument> [<optional_argument2>]]",
|
params = "<argument> <argument=default> <option1|option2|...> [<optional_argument> <optional_argument2> ...] | [<optional_argument> [<optional_argument2>]]",
|
||||||
description = "A **brief** description of what this command does",
|
description = "A **brief** description of what this command does",
|
||||||
privs = { worldedit = true },
|
privs = { worldedit = true },
|
||||||
|
|
|
@ -6,7 +6,7 @@ local wea = worldeditadditions
|
||||||
-- ██████ ██ ██ ██ ██ ██ █████ ██ ████ ██ █████ ███████ ██
|
-- ██████ ██ ██ ██ ██ ██ █████ ██ ████ ██ █████ ███████ ██
|
||||||
-- ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
|
-- ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
|
||||||
-- ██████ ██████ ██ ████ ███████ ██ ██ ███████ ██ ██ ███████
|
-- ██████ ██████ ██ ████ ███████ ██ ██ ███████ ██ ██ ███████
|
||||||
worldedit.register_command("bonemeal", {
|
worldeditadditions_core.register_command("bonemeal", {
|
||||||
params = "[<strength> [<chance> [<node_name> [<node_name> ...]]]]",
|
params = "[<strength> [<chance> [<node_name> [<node_name> ...]]]]",
|
||||||
description = "Bonemeals everything that's bonemeal-able that has an air node directly above it. Optionally takes a strength value to use (default: 1, maximum: 4), and a chance to actually bonemeal an eligible node (positive integer; nodes have a 1-in-<chance> chance to be bonemealed; higher values mean a lower chance; default: 1 - 100% chance).",
|
description = "Bonemeals everything that's bonemeal-able that has an air node directly above it. Optionally takes a strength value to use (default: 1, maximum: 4), and a chance to actually bonemeal an eligible node (positive integer; nodes have a 1-in-<chance> chance to be bonemealed; higher values mean a lower chance; default: 1 - 100% chance).",
|
||||||
privs = { worldedit = true },
|
privs = { worldedit = true },
|
||||||
|
|
|
@ -6,7 +6,7 @@ local Vector3 = wea.Vector3
|
||||||
-- ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ █████
|
-- ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ █████
|
||||||
-- ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
|
-- ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
|
||||||
-- ██████ ██████ ██ ████ ████ ██████ ███████ ████ ███████
|
-- ██████ ██████ ██ ████ ████ ██████ ███████ ████ ███████
|
||||||
worldedit.register_command("convolve", {
|
worldeditadditions_core.register_command("convolve", {
|
||||||
params = "<kernel> [<width>[,<height>]] [<sigma>]",
|
params = "<kernel> [<width>[,<height>]] [<sigma>]",
|
||||||
description = "Advanced version of //smooth from we_env. Convolves over the defined region with the given kernel. Possible kernels: box, pascal, gaussian. The width & height (if specified) must be odd integers. If the height is not specified, it defaults to the width. gaussian should give the smoothest result, but the width & height must be identical. The sigma value is only applicable to gaussian kernels, and can be thought of as the 'smoothness' to apply.",
|
description = "Advanced version of //smooth from we_env. Convolves over the defined region with the given kernel. Possible kernels: box, pascal, gaussian. The width & height (if specified) must be odd integers. If the height is not specified, it defaults to the width. gaussian should give the smoothest result, but the width & height must be identical. The sigma value is only applicable to gaussian kernels, and can be thought of as the 'smoothness' to apply.",
|
||||||
privs = { worldedit = true },
|
privs = { worldedit = true },
|
||||||
|
|
|
@ -24,7 +24,7 @@ end
|
||||||
-- ██ ██ ██ ██████ ████
|
-- ██ ██ ██ ██████ ████
|
||||||
-- ██ ██ ██ ██ ██
|
-- ██ ██ ██ ██ ██
|
||||||
-- ██████ ██████ ██ ██
|
-- ██████ ██████ ██ ██
|
||||||
worldedit.register_command("copy+", { -- TODO: Make this an override
|
worldeditadditions_core.register_command("copy+", { -- TODO: Make this an override
|
||||||
params = "<axis:x|y|z|-x|-y|-z|?|front|back|left|right|up|down> <count> [<axis> <count> [...]]",
|
params = "<axis:x|y|z|-x|-y|-z|?|front|back|left|right|up|down> <count> [<axis> <count> [...]]",
|
||||||
description = "Copies the defined region to another location - potentially across multiple axes at once.",
|
description = "Copies the defined region to another location - potentially across multiple axes at once.",
|
||||||
privs = { worldedit = true },
|
privs = { worldedit = true },
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
-- ██ ██ ██ ██ ██ ██ ██ ██ ██
|
-- ██ ██ ██ ██ ██ ██ ██ ██ ██
|
||||||
-- ██ ██ ██ ██ ██ ██ ██ ██ ██
|
-- ██ ██ ██ ██ ██ ██ ██ ██ ██
|
||||||
-- ██████ ██████ ██████ ██ ████ ██
|
-- ██████ ██████ ██████ ██ ████ ██
|
||||||
worldedit.register_command("count", {
|
worldeditadditions_core.register_command("count", {
|
||||||
params = "",
|
params = "",
|
||||||
description = "Counts all the nodes in the defined region.",
|
description = "Counts all the nodes in the defined region.",
|
||||||
privs = { worldedit = true },
|
privs = { worldedit = true },
|
||||||
|
|
|
@ -25,7 +25,7 @@ end
|
||||||
-- ██ ██ ██ ██ ██ ████ ██ █████
|
-- ██ ██ ██ ██ ██ ████ ██ █████
|
||||||
-- ██ ██ ██ ██ ██ ██ ██ ██
|
-- ██ ██ ██ ██ ██ ██ ██ ██
|
||||||
-- ██████ ██████ ██ ██ ███████
|
-- ██████ ██████ ██ ██ ███████
|
||||||
worldedit.register_command("dome+", { -- TODO: Make this an override
|
worldeditadditions_core.register_command("dome+", { -- TODO: Make this an override
|
||||||
params = "<radius> <replace_node> [<pointing_dir:x|y|z|-x|-y|-z|?|front|back|left|right|up|down> ...] [h[ollow]]",
|
params = "<radius> <replace_node> [<pointing_dir:x|y|z|-x|-y|-z|?|front|back|left|right|up|down> ...] [h[ollow]]",
|
||||||
description = "Creates a dome shape with a specified radius of the defined node, optionally specifying the direction it should be pointing in (defaults to the positive y direction).",
|
description = "Creates a dome shape with a specified radius of the defined node, optionally specifying the direction it should be pointing in (defaults to the positive y direction).",
|
||||||
privs = { worldedit = true },
|
privs = { worldedit = true },
|
||||||
|
|
|
@ -30,7 +30,7 @@ local function parse_params_ellipsoid(params_text)
|
||||||
return true, replace_node, radius, hollow
|
return true, replace_node, radius, hollow
|
||||||
end
|
end
|
||||||
|
|
||||||
worldedit.register_command("ellipsoid", {
|
worldeditadditions_core.register_command("ellipsoid", {
|
||||||
params = "<rx> <ry> <rz> <replace_node> [h[ollow]]",
|
params = "<rx> <ry> <rz> <replace_node> [h[ollow]]",
|
||||||
description = "Creates a 3D ellipsoid with a radius of (rx, ry, rz) at pos1, filled with <replace_node>.",
|
description = "Creates a 3D ellipsoid with a radius of (rx, ry, rz) at pos1, filled with <replace_node>.",
|
||||||
privs = { worldedit = true },
|
privs = { worldedit = true },
|
||||||
|
@ -53,7 +53,7 @@ worldedit.register_command("ellipsoid", {
|
||||||
})
|
})
|
||||||
|
|
||||||
-- TODO: This duplicates a lot of code. Perhaps we can trim it down a bit?
|
-- TODO: This duplicates a lot of code. Perhaps we can trim it down a bit?
|
||||||
worldedit.register_command("hollowellipsoid", {
|
worldeditadditions_core.register_command("hollowellipsoid", {
|
||||||
params = "<rx> <ry> <rz> <replace_node>",
|
params = "<rx> <ry> <rz> <replace_node>",
|
||||||
description = "Creates a 3D hollow ellipsoid with a radius of (rx, ry, rz) at pos1, made out of <replace_node>.",
|
description = "Creates a 3D hollow ellipsoid with a radius of (rx, ry, rz) at pos1, made out of <replace_node>.",
|
||||||
privs = { worldedit = true },
|
privs = { worldedit = true },
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
-- ███████ ███████ ███████ ██ ██ ███████ ██████ ██ ██████
|
-- ███████ ███████ ███████ ██ ██ ███████ ██████ ██ ██████
|
||||||
local wea = worldeditadditions
|
local wea = worldeditadditions
|
||||||
|
|
||||||
worldedit.register_command("ellipsoid2", {
|
worldeditadditions_core.register_command("ellipsoid2", {
|
||||||
params = "[<replace_node:dirt> [h[ollow]]]",
|
params = "[<replace_node:dirt> [h[ollow]]]",
|
||||||
description = "Creates am optionally hollow 3D ellipsoid that fills the defined region, filled with <replace_node>.",
|
description = "Creates am optionally hollow 3D ellipsoid that fills the defined region, filled with <replace_node>.",
|
||||||
privs = { worldedit = true },
|
privs = { worldedit = true },
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
-- █████ ██████ ██ ██ ██ ██ █████
|
-- █████ ██████ ██ ██ ██ ██ █████
|
||||||
-- ██ ██ ██ ██ ██ ██ ██ ██
|
-- ██ ██ ██ ██ ██ ██ ██ ██
|
||||||
-- ███████ ██ ██ ██████ ██████ ███████
|
-- ███████ ██ ██ ██████ ██████ ███████
|
||||||
worldedit.register_command("erode", {
|
worldeditadditions_core.register_command("erode", {
|
||||||
params = "[<snowballs|river> [<key_1> [<value_1>]] [<key_2> [<value_2>]] ...]",
|
params = "[<snowballs|river> [<key_1> [<value_1>]] [<key_2> [<value_2>]] ...]",
|
||||||
description = "**experimental** Runs the specified erosion algorithm over the given defined region. This may occur in 2d or 3d. Currently implemented algorithms: snowballs (default;2d hydraulic-like). Also optionally takes an arbitrary set of key - value pairs representing parameters to pass to the algorithm. See the full documentation for details.",
|
description = "**experimental** Runs the specified erosion algorithm over the given defined region. This may occur in 2d or 3d. Currently implemented algorithms: snowballs (default;2d hydraulic-like). Also optionally takes an arbitrary set of key - value pairs representing parameters to pass to the algorithm. See the full documentation for details.",
|
||||||
privs = { worldedit = true },
|
privs = { worldedit = true },
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
-- ██████ ███████ ███████ █████ ██ ██ ██ ███████ ██ ████ ██ █████
|
-- ██████ ███████ ███████ █████ ██ ██ ██ ███████ ██ ████ ██ █████
|
||||||
-- ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
|
-- ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
|
||||||
-- ██████ ██ ██ ███████ ███████ ██ ████ ██ ██ ██ ██ ███████
|
-- ██████ ██ ██ ███████ ███████ ██ ████ ██ ██ ██ ██ ███████
|
||||||
worldedit.register_command("basename", {
|
worldeditadditions_core.register_command("basename", {
|
||||||
params = "<nodealias>",
|
params = "<nodealias>",
|
||||||
description = "Returns the base name of nodes that use a given alias.",
|
description = "Returns the base name of nodes that use a given alias.",
|
||||||
privs = {worldedit = true},
|
privs = {worldedit = true},
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
-- █████ ██ ██ ██ ██ ███████ ██ ██ █████ ███████
|
-- █████ ██ ██ ██ ██ ███████ ██ ██ █████ ███████
|
||||||
-- ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
|
-- ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
|
||||||
-- ██ ██ ███████ ███████ ██████ ██ ██ ████ ███████ ███████
|
-- ██ ██ ███████ ███████ ██████ ██ ██ ████ ███████ ███████
|
||||||
worldedit.register_command("fillcaves", {
|
worldeditadditions_core.register_command("fillcaves", {
|
||||||
params = "[<node_name>]",
|
params = "[<node_name>]",
|
||||||
description = "Fills in all airlike nodes beneath the first non-airlike node detected in each column.",
|
description = "Fills in all airlike nodes beneath the first non-airlike node detected in each column.",
|
||||||
privs = { worldedit = true },
|
privs = { worldedit = true },
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
-- █████ ██ ██ ██ ██ ██ ██ ██ █████ ██ ██ ██
|
-- █████ ██ ██ ██ ██ ██ ██ ██ █████ ██ ██ ██
|
||||||
-- ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
|
-- ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
|
||||||
-- ██ ███████ ██████ ██████ ██████ ██ ██ ███████ ███████
|
-- ██ ███████ ██████ ██████ ██████ ██ ██ ███████ ███████
|
||||||
worldedit.register_command("floodfill", {
|
worldeditadditions_core.register_command("floodfill", {
|
||||||
params = "[<replace_node> [<radius>]]",
|
params = "[<replace_node> [<radius>]]",
|
||||||
description = "Floods all connected nodes of the same type starting at pos1 with <replace_node> (which defaults to `water_source`), in a sphere with a radius of <radius> (which defaults to 20).",
|
description = "Floods all connected nodes of the same type starting at pos1 with <replace_node> (which defaults to `water_source`), in a sphere with a radius of <radius> (which defaults to 20).",
|
||||||
privs = { worldedit = true },
|
privs = { worldedit = true },
|
||||||
|
|
|
@ -6,7 +6,7 @@ local wea = worldeditadditions
|
||||||
-- ██ ██ ██ ██ ██ ██ ██ ██
|
-- ██ ██ ██ ██ ██ ██ ██ ██
|
||||||
-- ██ ██████ ██ ██ ███████ ███████ ██
|
-- ██ ██████ ██ ██ ███████ ███████ ██
|
||||||
|
|
||||||
worldedit.register_command("forest", {
|
worldeditadditions_core.register_command("forest", {
|
||||||
params = "[<density>] <sapling_a> [<chance_a>] <sapling_b> [<chance_b>] [<sapling_N> [<chance_N>]] ...",
|
params = "[<density>] <sapling_a> [<chance_a>] <sapling_b> [<chance_b>] [<sapling_N> [<chance_N>]] ...",
|
||||||
description = "Plants and grows trees in the defined region according to the given list of sapling names and chances and density factor. The density controls the relative density of the resulting forest, and defaults to 1 (floating-point numbers allowed). Higher chance numbers result in a lower relative chance with respect to other saplings in the list. Saplings that fail to grow are subsequently removed (this will affect pre-existing saplings too).",
|
description = "Plants and grows trees in the defined region according to the given list of sapling names and chances and density factor. The density controls the relative density of the resulting forest, and defaults to 1 (floating-point numbers allowed). Higher chance numbers result in a lower relative chance with respect to other saplings in the list. Saplings that fail to grow are subsequently removed (this will affect pre-existing saplings too).",
|
||||||
privs = { worldedit = true },
|
privs = { worldedit = true },
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
-- ███████ ██ ██ ██ ██ ██ ██ ██ █ ██
|
-- ███████ ██ ██ ██ ██ ██ ██ ██ █ ██
|
||||||
-- ██ ██ ██ ██ ██ ██ ██ ██ ██ ███ ██
|
-- ██ ██ ██ ██ ██ ██ ██ ██ ██ ███ ██
|
||||||
-- ██ ██ ██████ ███████ ███████ ██████ ███ ███
|
-- ██ ██ ██████ ███████ ███████ ██████ ███ ███
|
||||||
worldedit.register_command("hollow", {
|
worldeditadditions_core.register_command("hollow", {
|
||||||
params = "[<wall_thickness>]",
|
params = "[<wall_thickness>]",
|
||||||
description = "Replaces nodes inside the defined region with air, but leaving a given number of nodes near the outermost edges alone. In other words, it makes the defined region hollow leaving walls of a given thickness (default: 1)",
|
description = "Replaces nodes inside the defined region with air, but leaving a given number of nodes near the outermost edges alone. In other words, it makes the defined region hollow leaving walls of a given thickness (default: 1)",
|
||||||
privs = { worldedit = true },
|
privs = { worldedit = true },
|
||||||
|
|
|
@ -26,7 +26,7 @@ end
|
||||||
-- ██ ██ ██ ██ █████ ██████ ██ ███████ ████
|
-- ██ ██ ██ ██ █████ ██████ ██ ███████ ████
|
||||||
-- ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
|
-- ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
|
||||||
-- ██████ ████ ███████ ██ ██ ███████ ██ ██ ██
|
-- ██████ ████ ███████ ██ ██ ███████ ██ ██ ██
|
||||||
worldedit.register_command("layers", {
|
worldeditadditions_core.register_command("layers", {
|
||||||
params = "[<max_slope|min_slope..max_slope>] [<node_name_1> [<layer_count_1>]] [<node_name_2> [<layer_count_2>]] ...",
|
params = "[<max_slope|min_slope..max_slope>] [<node_name_1> [<layer_count_1>]] [<node_name_2> [<layer_count_2>]] ...",
|
||||||
description = "Replaces the topmost non-airlike nodes with layers of the given nodes from top to bottom. Like WorldEdit for MC's //naturalize command. Optionally takes a maximum or minimum and maximum slope value. If a column's slope value falls outside the defined range, then it's skipped. Default: dirt_with_grass dirt 3",
|
description = "Replaces the topmost non-airlike nodes with layers of the given nodes from top to bottom. Like WorldEdit for MC's //naturalize command. Optionally takes a maximum or minimum and maximum slope value. If a column's slope value falls outside the defined range, then it's skipped. Default: dirt_with_grass dirt 3",
|
||||||
privs = { worldedit = true },
|
privs = { worldedit = true },
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
-- ██ ██ ██ ██ ██ █████
|
-- ██ ██ ██ ██ ██ █████
|
||||||
-- ██ ██ ██ ██ ██ ██
|
-- ██ ██ ██ ██ ██ ██
|
||||||
-- ███████ ██ ██ ████ ███████
|
-- ███████ ██ ██ ████ ███████
|
||||||
worldedit.register_command("line", {
|
worldeditadditions_core.register_command("line", {
|
||||||
params = "[<replace_node> [<radius>]]",
|
params = "[<replace_node> [<radius>]]",
|
||||||
description = "Draws a line of a given radius (default: 1) from pos1 to pos2 in the given node (default: dirt).",
|
description = "Draws a line of a given radius (default: 1) from pos1 to pos2 in the given node (default: dirt).",
|
||||||
privs = { worldedit = true },
|
privs = { worldedit = true },
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
-- ██ ██ ██ ██ ██ ██ ██ ██
|
-- ██ ██ ██ ██ ██ ██ ██ ██
|
||||||
-- ██ ██ ██ ██ ██ ██████ ███████
|
-- ██ ██ ██ ██ ██ ██████ ███████
|
||||||
local wea = worldeditadditions
|
local wea = worldeditadditions
|
||||||
worldedit.register_command("mface", {
|
worldeditadditions_core.register_command("mface", {
|
||||||
params = "",
|
params = "",
|
||||||
description = "Return player facing axis.",
|
description = "Return player facing axis.",
|
||||||
privs = { worldedit = true },
|
privs = { worldedit = true },
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
-- ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
|
-- ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
|
||||||
-- ██ ██ ██ ██████ ██ ██████ ███████
|
-- ██ ██ ██ ██████ ██ ██████ ███████
|
||||||
local wea = worldeditadditions
|
local wea = worldeditadditions
|
||||||
worldedit.register_command("midpos", {
|
worldeditadditions_core.register_command("midpos", {
|
||||||
params = "",
|
params = "",
|
||||||
description = "Return the mid point of current selection.",
|
description = "Return the mid point of current selection.",
|
||||||
privs = { worldedit = true },
|
privs = { worldedit = true },
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
-- ██ ██ ██ ██ ██ ███ ██
|
-- ██ ██ ██ ██ ██ ███ ██
|
||||||
-- ██ ██ ███████ ██ ███████ ███████
|
-- ██ ██ ███████ ██ ███████ ███████
|
||||||
local wea = worldeditadditions
|
local wea = worldeditadditions
|
||||||
worldedit.register_command("msize", {
|
worldeditadditions_core.register_command("msize", {
|
||||||
params = "",
|
params = "",
|
||||||
description = "Return the length of each axis of current selection.",
|
description = "Return the length of each axis of current selection.",
|
||||||
privs = { worldedit = true },
|
privs = { worldedit = true },
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
-- ██ ██ ██ ██ ██ ██ ██████
|
-- ██ ██ ██ ██ ██ ██ ██████
|
||||||
local wea = worldeditadditions
|
local wea = worldeditadditions
|
||||||
local v3 = worldeditadditions.Vector3
|
local v3 = worldeditadditions.Vector3
|
||||||
worldedit.register_command("mtrig", {
|
worldeditadditions_core.register_command("mtrig", {
|
||||||
params = "",
|
params = "",
|
||||||
description = "Return the length of and angles of an imginary line between pos1 and pos2 in the selection.",
|
description = "Return the length of and angles of an imginary line between pos1 and pos2 in the selection.",
|
||||||
privs = { worldedit = true },
|
privs = { worldedit = true },
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
-- ██ ██ ██ ██ ██ ██ ██ ██ ██ ███████ ██
|
-- ██ ██ ██ ██ ██ ██ ██ ██ ██ ███████ ██
|
||||||
local wea_c = worldeditadditions_core
|
local wea_c = worldeditadditions_core
|
||||||
|
|
||||||
worldedit.register_command("airapply", {
|
worldeditadditions_core.register_command("airapply", {
|
||||||
params = "<command_name> <args>",
|
params = "<command_name> <args>",
|
||||||
description = "Executes the given command (automatically prepending '//'), but only on non-air nodes within the defined region.",
|
description = "Executes the given command (automatically prepending '//'), but only on non-air nodes within the defined region.",
|
||||||
privs = { worldedit = true },
|
privs = { worldedit = true },
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
-- ███████ ███████ ███████ ██ ██ ███████ ███████ ██ ██ ██ ██ ███████ ██
|
-- ███████ ███████ ███████ ██ ██ ███████ ███████ ██ ██ ██ ██ ███████ ██
|
||||||
local wea_c = worldeditadditions_core
|
local wea_c = worldeditadditions_core
|
||||||
|
|
||||||
worldedit.register_command("ellipsoidapply", {
|
worldeditadditions_core.register_command("ellipsoidapply", {
|
||||||
params = "<command_name> <args>",
|
params = "<command_name> <args>",
|
||||||
description = "Executes the given command (automatically prepending '//'), clipping the result with an ellipse given by the defined region.",
|
description = "Executes the given command (automatically prepending '//'), clipping the result with an ellipse given by the defined region.",
|
||||||
privs = { worldedit = true },
|
privs = { worldedit = true },
|
||||||
|
|
|
@ -45,7 +45,7 @@ local function step(params)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
worldedit.register_command("for", {
|
worldeditadditions_core.register_command("for", {
|
||||||
params = "<value1> <value2> <value3>... do //<command> <arg> %% <arg>",
|
params = "<value1> <value2> <value3>... do //<command> <arg> %% <arg>",
|
||||||
description = "Executes a chat command for each value before \" do \" replacing any instances of \"%%\" with those values. The forward slashes at the beginning of the chat command must be the same as if you were executing it normally.",
|
description = "Executes a chat command for each value before \" do \" replacing any instances of \"%%\" with those values. The forward slashes at the beginning of the chat command must be the same as if you were executing it normally.",
|
||||||
privs = { worldedit = true },
|
privs = { worldedit = true },
|
||||||
|
|
|
@ -45,7 +45,7 @@ local function step(params)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
worldedit.register_command("macro", {
|
worldeditadditions_core.register_command("macro", {
|
||||||
params = "<file> [<delay=0>]",
|
params = "<file> [<delay=0>]",
|
||||||
description = "Load commands from \"(world folder)/macros/<file>[.weamac | .wmac]\" with position 1 of the current WorldEdit region as the origin.",
|
description = "Load commands from \"(world folder)/macros/<file>[.weamac | .wmac]\" with position 1 of the current WorldEdit region as the origin.",
|
||||||
privs = {worldedit=true},
|
privs = {worldedit=true},
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
local wea_c = worldeditadditions_core
|
local wea_c = worldeditadditions_core
|
||||||
|
|
||||||
|
|
||||||
worldedit.register_command("noiseapply2d", {
|
worldeditadditions_core.register_command("noiseapply2d", {
|
||||||
params = "<threshold> <scale> <command_name> <args>",
|
params = "<threshold> <scale> <command_name> <args>",
|
||||||
description = "Executes the given command (automatically prepending '//'), but uses a 2d noise function with both a threshold value (a number between 0 and 1) and a scale value (number, 1 = normal scale, for small areas 10+ is recommended) to filter where in the defined region it's applied.",
|
description = "Executes the given command (automatically prepending '//'), but uses a 2d noise function with both a threshold value (a number between 0 and 1) and a scale value (number, 1 = normal scale, for small areas 10+ is recommended) to filter where in the defined region it's applied.",
|
||||||
privs = { worldedit = true },
|
privs = { worldedit = true },
|
||||||
|
|
|
@ -30,7 +30,7 @@ local function emerge_stats_tostring(tbl_emerge)
|
||||||
return table.concat(result, ", ")
|
return table.concat(result, ", ")
|
||||||
end
|
end
|
||||||
|
|
||||||
worldedit.register_command("subdivide", {
|
worldeditadditions_core.register_command("subdivide", {
|
||||||
params = "<size_x> <size_y> <size_z> <command> <params>",
|
params = "<size_x> <size_y> <size_z> <command> <params>",
|
||||||
description = "Subdivides the given worldedit area into chunks and runs a worldedit command multiple times to cover the defined region. Note that the given command must NOT be prepended with any forward slashes - just like //cubeapply.",
|
description = "Subdivides the given worldedit area into chunks and runs a worldedit command multiple times to cover the defined region. Note that the given command must NOT be prepended with any forward slashes - just like //cubeapply.",
|
||||||
privs = { worldedit = true },
|
privs = { worldedit = true },
|
||||||
|
|
|
@ -6,7 +6,7 @@ local Vector3 = wea.Vector3
|
||||||
-- ██ ██ ██ ██ ██ ████ ██ █████
|
-- ██ ██ ██ ██ ██ ████ ██ █████
|
||||||
-- ██ ██ ██ ██ ██ ██ ██ ██
|
-- ██ ██ ██ ██ ██ ██ ██ ██
|
||||||
-- ██████ ██████ ██ ██ ███████
|
-- ██████ ██████ ██ ██ ███████
|
||||||
worldedit.register_command("metaball", {
|
worldeditadditions_core.register_command("metaball", {
|
||||||
params = "add <radius> | remove <index> | render <replace_node> [<threshold=1>] | list | clear | volume",
|
params = "add <radius> | remove <index> | render <replace_node> [<threshold=1>] | list | clear | volume",
|
||||||
description = "Defines and creates metaballs. After using the add subcommand to define 1 or more metaballs (uses pos1), the render subcommand can then be used to create the metaballs as nodes.",
|
description = "Defines and creates metaballs. After using the add subcommand to define 1 or more metaballs (uses pos1), the render subcommand can then be used to create the metaballs as nodes.",
|
||||||
privs = { worldedit = true },
|
privs = { worldedit = true },
|
||||||
|
|
|
@ -24,7 +24,7 @@ end
|
||||||
-- ██ ████ ██ ██ ██ ██ ██ █████
|
-- ██ ████ ██ ██ ██ ██ ██ █████
|
||||||
-- ██ ██ ██ ██ ██ ██ ██ ██
|
-- ██ ██ ██ ██ ██ ██ ██ ██
|
||||||
-- ██ ██ ██████ ████ ███████
|
-- ██ ██ ██████ ████ ███████
|
||||||
worldedit.register_command("move+", { -- TODO: Make this an override
|
worldeditadditions_core.register_command("move+", { -- TODO: Make this an override
|
||||||
params = "<axis:x|y|z|-x|-y|-z|?|front|back|left|right|up|down> <count> [<axis> <count> [...]]",
|
params = "<axis:x|y|z|-x|-y|-z|?|front|back|left|right|up|down> <count> [<axis> <count> [...]]",
|
||||||
description = "Moves the defined region to another location - potentially across multiple axes at once.",
|
description = "Moves the defined region to another location - potentially across multiple axes at once.",
|
||||||
privs = { worldedit = true },
|
privs = { worldedit = true },
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
local wea = worldeditadditions
|
local wea = worldeditadditions
|
||||||
|
|
||||||
worldedit.register_command("noise2d", {
|
worldeditadditions_core.register_command("noise2d", {
|
||||||
params = "[<key_1> [<value_1>]] [<key_2> [<value_2>]] ...]",
|
params = "[<key_1> [<value_1>]] [<key_2> [<value_2>]] ...]",
|
||||||
description = "Applies 2d random noise to the terrain as a 2d heightmap in the defined region. Optionally takes an arbitrary set of key - value pairs representing parameters that control the properties of the noise and how it's applied. See the full documentation for details of these parameters and what they do.",
|
description = "Applies 2d random noise to the terrain as a 2d heightmap in the defined region. Optionally takes an arbitrary set of key - value pairs representing parameters that control the properties of the noise and how it's applied. See the full documentation for details of these parameters and what they do.",
|
||||||
privs = { worldedit = true },
|
privs = { worldedit = true },
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
-- ██ ██ ██ ██ █████ ██████ ██ ███████ ████
|
-- ██ ██ ██ ██ █████ ██████ ██ ███████ ████
|
||||||
-- ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
|
-- ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
|
||||||
-- ██████ ████ ███████ ██ ██ ███████ ██ ██ ██
|
-- ██████ ████ ███████ ██ ██ ███████ ██ ██ ██
|
||||||
worldedit.register_command("overlay", {
|
worldeditadditions_core.register_command("overlay", {
|
||||||
params = "<replace_node_a> [<chance_a>] <replace_node_b> [<chance_b>] [<replace_node_N> [<chance_N>]] ...",
|
params = "<replace_node_a> [<chance_a>] <replace_node_b> [<chance_b>] [<replace_node_N> [<chance_N>]] ...",
|
||||||
description = "Places <replace_node_a> in the last contiguous air space encountered above the first non-air node. In other words, overlays all top-most nodes in the specified area with <replace_node_a>. Optionally supports a mix of nodes and chances, as in //mix and //replacemix.",
|
description = "Places <replace_node_a> in the last contiguous air space encountered above the first non-air node. In other words, overlays all top-most nodes in the specified area with <replace_node_a>. Optionally supports a mix of nodes and chances, as in //mix and //replacemix.",
|
||||||
privs = { worldedit = true },
|
privs = { worldedit = true },
|
||||||
|
|
|
@ -5,7 +5,7 @@ local wea = worldeditadditions
|
||||||
-- ██████ █████ ██████ ██ ███████ ██ █████ ██ ████ ██ ██ ███
|
-- ██████ █████ ██████ ██ ███████ ██ █████ ██ ████ ██ ██ ███
|
||||||
-- ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
|
-- ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
|
||||||
-- ██ ██ ███████ ██ ███████ ██ ██ ██████ ███████ ██ ██ ██ ██ ██
|
-- ██ ██ ███████ ██ ███████ ██ ██ ██████ ███████ ██ ██ ██ ██ ██
|
||||||
worldedit.register_command("replacemix", {
|
worldeditadditions_core.register_command("replacemix", {
|
||||||
params = "<target_node> [<chance>] <replace_node_a> [<chance_a>] [<replace_node_b> [<chance_b>]] [<replace_node_N> [<chance_N>]] ...",
|
params = "<target_node> [<chance>] <replace_node_a> [<chance_a>] [<replace_node_b> [<chance_b>]] [<replace_node_N> [<chance_N>]] ...",
|
||||||
description = "Replaces target_node with a mix of other nodes. Functions simmilarly to //mix. <chance> is optional and the chance to replace the target node at all. replace_node_a is the node to replace target_node with. If multiple nodes are specified in a space separated list, then when replacing an instance of target_node one is randomly chosen from the list. Just like with //mix, if a positive integer is present after a replace_node, that adds a weighting to that particular node making it more common.",
|
description = "Replaces target_node with a mix of other nodes. Functions simmilarly to //mix. <chance> is optional and the chance to replace the target node at all. replace_node_a is the node to replace target_node with. If multiple nodes are specified in a space separated list, then when replacing an instance of target_node one is randomly chosen from the list. Just like with //mix, if a positive integer is present after a replace_node, that adds a weighting to that particular node making it more common.",
|
||||||
privs = { worldedit = true },
|
privs = { worldedit = true },
|
||||||
|
|
|
@ -22,7 +22,7 @@ end
|
||||||
-- ███████ ██ ███████ ██ █████
|
-- ███████ ██ ███████ ██ █████
|
||||||
-- ██ ██ ██ ██ ██ ██
|
-- ██ ██ ██ ██ ██ ██
|
||||||
-- ███████ ██████ ██ ██ ███████ ███████
|
-- ███████ ██████ ██ ██ ███████ ███████
|
||||||
worldedit.register_command("scale", {
|
worldeditadditions_core.register_command("scale", {
|
||||||
params = "<axis> <scale_factor> | <factor_x> [<factor_y> <factor_z> [<anchor_x> <anchor_y> <anchor_z>]]",
|
params = "<axis> <scale_factor> | <factor_x> [<factor_y> <factor_z> [<anchor_x> <anchor_y> <anchor_z>]]",
|
||||||
description = "Combined scale up / down. Takes either an axis name + a scale factor (e.g. y 3 or -z 2; negative values swap the anchor point for the scale operation), or 3 scale factor values for x, y, and z respectively. In the latter mode, a set of anchors can also be specified, which indicate which size the scale operation should be anchored to.",
|
description = "Combined scale up / down. Takes either an axis name + a scale factor (e.g. y 3 or -z 2; negative values swap the anchor point for the scale operation), or 3 scale factor values for x, y, and z respectively. In the latter mode, a set of anchors can also be specified, which indicate which size the scale operation should be anchored to.",
|
||||||
privs = { worldedit = true },
|
privs = { worldedit = true },
|
||||||
|
|
|
@ -7,7 +7,7 @@ local Vector3 = wea.Vector3
|
||||||
-- ███████ ██ ██ ██ ██ ██████ ██
|
-- ███████ ██ ██ ██ ██ ██████ ██
|
||||||
-- ██ ██ ██ ██ ██ ██ ██
|
-- ██ ██ ██ ██ ██ ██ ██
|
||||||
-- ███████ ██████ ██████ ███████ ██ ██
|
-- ███████ ██████ ██████ ███████ ██ ██
|
||||||
worldedit.register_command("sculpt", {
|
worldeditadditions_core.register_command("sculpt", {
|
||||||
params = "[<brush_name=default> [<height=5> [<brush_size=10>]]]",
|
params = "[<brush_name=default> [<height=5> [<brush_size=10>]]]",
|
||||||
description = "Applies a sculpting brush to the terrain with a given height. See //sculptlist to list all available brushes. Note that while the brush size is configurable, the actual brush size you end up with may be slightly different to that which you request due to brush size restrictions.",
|
description = "Applies a sculpting brush to the terrain with a given height. See //sculptlist to list all available brushes. Note that while the brush size is configurable, the actual brush size you end up with may be slightly different to that which you request due to brush size restrictions.",
|
||||||
privs = { worldedit = true },
|
privs = { worldedit = true },
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
-- ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
|
-- ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
|
||||||
-- ███████ ██████ ███████ ██ ████ ██ ███████ ██ ██
|
-- ███████ ██████ ███████ ██ ████ ██ ███████ ██ ██
|
||||||
local wea = worldeditadditions
|
local wea = worldeditadditions
|
||||||
worldedit.register_command("scentre", {
|
worldeditadditions_core.register_command("scentre", {
|
||||||
params = "",
|
params = "",
|
||||||
description = "Set WorldEdit region positions 1 and 2 to the centre of the current selection.",
|
description = "Set WorldEdit region positions 1 and 2 to the centre of the current selection.",
|
||||||
privs = {worldedit=true},
|
privs = {worldedit=true},
|
||||||
|
|
|
@ -14,7 +14,7 @@ minetest.register_on_punchnode(function(pos, node, puncher)
|
||||||
else wea.add_pos[name] = nil end
|
else wea.add_pos[name] = nil end
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
worldedit.register_command("scloud", {
|
worldeditadditions_core.register_command("scloud", {
|
||||||
params = "<0-6|stop|reset>",
|
params = "<0-6|stop|reset>",
|
||||||
description = "Set and add to WorldEdit region by punching up to six nodes that define the maximums of your target",
|
description = "Set and add to WorldEdit region by punching up to six nodes that define the maximums of your target",
|
||||||
privs = {worldedit=true},
|
privs = {worldedit=true},
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
-- ██ ██ ██ ██ ██
|
-- ██ ██ ██ ██ ██
|
||||||
-- ███████ ██████ ██████ ███████
|
-- ███████ ██████ ██████ ███████
|
||||||
local wea = worldeditadditions
|
local wea = worldeditadditions
|
||||||
worldedit.register_command("scol", {
|
worldeditadditions_core.register_command("scol", {
|
||||||
params = "[<axis1>] <length>",
|
params = "[<axis1>] <length>",
|
||||||
description = "Set WorldEdit region position 2 at a set distance along 1 axis.",
|
description = "Set WorldEdit region position 2 at a set distance along 1 axis.",
|
||||||
privs = {worldedit=true},
|
privs = {worldedit=true},
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
-- ██ ██ ██ ██ ██ ██ ██
|
-- ██ ██ ██ ██ ██ ██ ██
|
||||||
-- ███████ ██████ ██████ ██████ ███████
|
-- ███████ ██████ ██████ ██████ ███████
|
||||||
local wea = worldeditadditions
|
local wea = worldeditadditions
|
||||||
worldedit.register_command("scube", {
|
worldeditadditions_core.register_command("scube", {
|
||||||
params = "[<axis1> [<axis2> [<axis3>]]] <length>",
|
params = "[<axis1> [<axis2> [<axis3>]]] <length>",
|
||||||
description = "Set WorldEdit region position 2 at a set distance along 3 axes.",
|
description = "Set WorldEdit region position 2 at a set distance along 3 axes.",
|
||||||
privs = { worldedit = true },
|
privs = { worldedit = true },
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
-- ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
|
-- ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
|
||||||
-- ███████ ██ ██ ██ ██████ ██ ██████ ██ ██
|
-- ███████ ██ ██ ██ ██████ ██ ██████ ██ ██
|
||||||
local wea = worldeditadditions
|
local wea = worldeditadditions
|
||||||
worldedit.register_command("sfactor", {
|
worldeditadditions_core.register_command("sfactor", {
|
||||||
params = "<mode> <factor> [<target=xz>]",
|
params = "<mode> <factor> [<target=xz>]",
|
||||||
description = "Make the length of one or more target axes of the current selection to be multiple(s) of <factor>.",
|
description = "Make the length of one or more target axes of the current selection to be multiple(s) of <factor>.",
|
||||||
privs = { worldedit = true },
|
privs = { worldedit = true },
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
-- ██ ██ ██ ██ ██ ██ ██ ██ ██
|
-- ██ ██ ██ ██ ██ ██ ██ ██ ██
|
||||||
-- ███████ ██ ██ ██ ██ ██ ██ ███████
|
-- ███████ ██ ██ ██ ██ ██ ██ ███████
|
||||||
local wea = worldeditadditions
|
local wea = worldeditadditions
|
||||||
worldedit.register_command("smake", {
|
worldeditadditions_core.register_command("smake", {
|
||||||
params = "<operation:odd|even|equal> <mode:grow|shrink|average> [<target=xyz> [<base>]]",
|
params = "<operation:odd|even|equal> <mode:grow|shrink|average> [<target=xyz> [<base>]]",
|
||||||
description = "Make one or more axes of the current selection odd, even, or equal to another.",
|
description = "Make one or more axes of the current selection odd, even, or equal to another.",
|
||||||
privs = { worldedit = true },
|
privs = { worldedit = true },
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
-- ███████ ██████ ██ ██ ██████
|
-- ███████ ██████ ██ ██ ██████
|
||||||
-- ██ ██ ██ ██ ██
|
-- ██ ██ ██ ██ ██
|
||||||
-- ███████ ██ ██████ ██
|
-- ███████ ██ ██████ ██
|
||||||
worldedit.register_command("spop", {
|
worldeditadditions_core.register_command("spop", {
|
||||||
params = "",
|
params = "",
|
||||||
description = "Pops a region off your (per-user) selection stack.",
|
description = "Pops a region off your (per-user) selection stack.",
|
||||||
privs = { worldedit = true },
|
privs = { worldedit = true },
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
-- ███████ ██████ ██ ██ ███████ ███████
|
-- ███████ ██████ ██ ██ ███████ ███████
|
||||||
-- ██ ██ ██ ██ ██ ██ ██
|
-- ██ ██ ██ ██ ██ ██ ██
|
||||||
-- ███████ ██ ██████ ███████ ██ ██
|
-- ███████ ██ ██████ ███████ ██ ██
|
||||||
worldedit.register_command("spush", {
|
worldeditadditions_core.register_command("spush", {
|
||||||
params = "",
|
params = "",
|
||||||
description = "Pushes the currently defined region onto your (per-user) selection stack.",
|
description = "Pushes the currently defined region onto your (per-user) selection stack.",
|
||||||
privs = { worldedit = true },
|
privs = { worldedit = true },
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
-- ██ ██ ██ ██ ██ ██
|
-- ██ ██ ██ ██ ██ ██
|
||||||
-- ███████ ██ ██ ███████ ██████ ██
|
-- ███████ ██ ██ ███████ ██████ ██
|
||||||
local wea = worldeditadditions
|
local wea = worldeditadditions
|
||||||
worldedit.register_command("srect", {
|
worldeditadditions_core.register_command("srect", {
|
||||||
params = "[<axis1> [<axis2>]] <length>",
|
params = "[<axis1> [<axis2>]] <length>",
|
||||||
description = "Set WorldEdit region position 2 at a set distance along 2 axes.",
|
description = "Set WorldEdit region position 2 at a set distance along 2 axes.",
|
||||||
privs = { worldedit = true },
|
privs = { worldedit = true },
|
||||||
|
|
|
@ -21,7 +21,7 @@ local function parse_with_name(name,args)
|
||||||
until not args:find("([%l%s+-]+%d+)%s*", i)
|
until not args:find("([%l%s+-]+%d+)%s*", i)
|
||||||
return true, vec
|
return true, vec
|
||||||
end
|
end
|
||||||
worldedit.register_command("srel", {
|
worldeditadditions_core.register_command("srel", {
|
||||||
params = "<axis1> <length1> [<axis2> <length2> [<axis3> <length3>]]",
|
params = "<axis1> <length1> [<axis2> <length2> [<axis3> <length3>]]",
|
||||||
description = "Set WorldEdit region position 2 at set distances along 3 axes.",
|
description = "Set WorldEdit region position 2 at set distances along 3 axes.",
|
||||||
privs = { worldedit = true },
|
privs = { worldedit = true },
|
||||||
|
|
|
@ -22,7 +22,7 @@ local function parse_with_name(name,args)
|
||||||
until not args:find("([%l%s+-]+%d+)%s*", i)
|
until not args:find("([%l%s+-]+%d+)%s*", i)
|
||||||
return true, vec
|
return true, vec
|
||||||
end
|
end
|
||||||
worldedit.register_command("sshift", {
|
worldeditadditions_core.register_command("sshift", {
|
||||||
params = "<axis1> <distance1> [<axis2> <distance2> [<axis3> <distance3>]]",
|
params = "<axis1> <distance1> [<axis2> <distance2> [<axis3> <distance3>]]",
|
||||||
description = "Shift the WorldEdit region in 3 dimensions.",
|
description = "Shift the WorldEdit region in 3 dimensions.",
|
||||||
privs = { worldedit = true },
|
privs = { worldedit = true },
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
-- ███████ ███████ ██ ███████ ██ █████
|
-- ███████ ███████ ██ ███████ ██ █████
|
||||||
-- ██ ██ ██ ██ ██ ██ ██ ██
|
-- ██ ██ ██ ██ ██ ██ ██ ██
|
||||||
-- ███████ ███████ ██ ██ ██ ██████ ██ ██
|
-- ███████ ███████ ██ ██ ██ ██████ ██ ██
|
||||||
worldedit.register_command("sstack", {
|
worldeditadditions_core.register_command("sstack", {
|
||||||
params = "",
|
params = "",
|
||||||
description = "Displays the contents of your (per-user) selection stack.",
|
description = "Displays the contents of your (per-user) selection stack.",
|
||||||
privs = { worldedit = true },
|
privs = { worldedit = true },
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
local wea = worldeditadditions
|
local wea = worldeditadditions
|
||||||
local Vector3 = wea.Vector3
|
local Vector3 = wea.Vector3
|
||||||
|
|
||||||
worldedit.register_command("spiral2", {
|
worldeditadditions_core.register_command("spiral2", {
|
||||||
params = "[<circle|square>] [<replace_node=dirt> [<interval=3> [<acceleration=0>] ] ]",
|
params = "[<circle|square>] [<replace_node=dirt> [<interval=3> [<acceleration=0>] ] ]",
|
||||||
description = "Generates a spiral that fills the defined region using the specified replace node. The spiral is either square (default) or circular in shape. The interval specifies the distance between the walls of the spiral, and the acceleration specifies how quickly this value should increase.",
|
description = "Generates a spiral that fills the defined region using the specified replace node. The spiral is either square (default) or circular in shape. The interval specifies the distance between the walls of the spiral, and the acceleration specifies how quickly this value should increase.",
|
||||||
privs = { worldedit = true },
|
privs = { worldedit = true },
|
||||||
|
|
|
@ -52,7 +52,7 @@ local function parse_params_torus(params_text)
|
||||||
return true, replace_node, major_radius, minor_radius, axes, hollow
|
return true, replace_node, major_radius, minor_radius, axes, hollow
|
||||||
end
|
end
|
||||||
|
|
||||||
worldedit.register_command("torus", {
|
worldeditadditions_core.register_command("torus", {
|
||||||
params = "<major_radius> <minor_radius> <replace_node> [<axes=xy> [h[ollow]]]",
|
params = "<major_radius> <minor_radius> <replace_node> [<axes=xy> [h[ollow]]]",
|
||||||
description = "Creates a 3D torus with a major radius of <major_radius> and a minor radius of <minor_radius> at pos1, filled with <replace_node>, on axes <axes> (i.e. 2 axis names: xz, zy, etc).",
|
description = "Creates a 3D torus with a major radius of <major_radius> and a minor radius of <minor_radius> at pos1, filled with <replace_node>, on axes <axes> (i.e. 2 axis names: xz, zy, etc).",
|
||||||
privs = { worldedit = true },
|
privs = { worldedit = true },
|
||||||
|
@ -81,7 +81,7 @@ worldedit.register_command("torus", {
|
||||||
})
|
})
|
||||||
|
|
||||||
-- TODO: This duplicates a lot of code. Perhaps we can trim it down a bit?
|
-- TODO: This duplicates a lot of code. Perhaps we can trim it down a bit?
|
||||||
worldedit.register_command("hollowtorus", {
|
worldeditadditions_core.register_command("hollowtorus", {
|
||||||
params = "<major_radius> <minor_radius> <replace_node> [<axes=xy>]",
|
params = "<major_radius> <minor_radius> <replace_node> [<axes=xy>]",
|
||||||
description = "Creates a 3D hollow torus with a major radius of <major_radius> and a minor radius of <minor_radius> at pos1, made out of <replace_node>, on axes <axes> (i.e. 2 axis names: xz, zy, etc).",
|
description = "Creates a 3D hollow torus with a major radius of <major_radius> and a minor radius of <minor_radius> at pos1, made out of <replace_node>, on axes <axes> (i.e. 2 axis names: xz, zy, etc).",
|
||||||
privs = { worldedit = true },
|
privs = { worldedit = true },
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
-- ██ █ ██ ███████ ██ ██ ███████
|
-- ██ █ ██ ███████ ██ ██ ███████
|
||||||
-- ██ ███ ██ ██ ██ ██ ██ ██
|
-- ██ ███ ██ ██ ██ ██ ██ ██
|
||||||
-- ███ ███ ██ ██ ███████ ███████ ███████
|
-- ███ ███ ██ ██ ███████ ███████ ███████
|
||||||
worldedit.register_command("walls", {
|
worldeditadditions_core.register_command("walls", {
|
||||||
params = "[<replace_node=dirt> [<thickness=1>]]",
|
params = "[<replace_node=dirt> [<thickness=1>]]",
|
||||||
description = "Creates vertical walls of <replace_node> around the inside edges of the defined region. Optionally specifies a thickness for the walls to be created (defaults to 1)",
|
description = "Creates vertical walls of <replace_node> around the inside edges of the defined region. Optionally specifies a thickness for the walls to be created (defaults to 1)",
|
||||||
privs = { worldedit = true },
|
privs = { worldedit = true },
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
-- ███ ███ ██████ ██████ ██ ██
|
-- ███ ███ ██████ ██████ ██ ██
|
||||||
local wea = worldeditadditions
|
local wea = worldeditadditions
|
||||||
local v3 = worldeditadditions.Vector3
|
local v3 = worldeditadditions.Vector3
|
||||||
worldedit.register_command("wbox", {
|
worldeditadditions_core.register_command("wbox", {
|
||||||
params = "<replace_node>",
|
params = "<replace_node>",
|
||||||
description = "Sets the edges of the current selection to <replace_node>",
|
description = "Sets the edges of the current selection to <replace_node>",
|
||||||
privs = {worldedit=true},
|
privs = {worldedit=true},
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
-- ██ ███ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
|
-- ██ ███ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
|
||||||
-- ███ ███ ██████ ██████ ██ ██ ██ ██ ██ ███████ ███████
|
-- ███ ███ ██████ ██████ ██ ██ ██ ██ ██ ███████ ███████
|
||||||
local wea = worldeditadditions
|
local wea = worldeditadditions
|
||||||
worldedit.register_command("wcompass", {
|
worldeditadditions_core.register_command("wcompass", {
|
||||||
params = "<replace_node> [<bead_node>]",
|
params = "<replace_node> [<bead_node>]",
|
||||||
description = "Creates a compass around pos1 with a single node bead pointing north (+Z).",
|
description = "Creates a compass around pos1 with a single node bead pointing north (+Z).",
|
||||||
privs = {worldedit=true},
|
privs = {worldedit=true},
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
-- ██ ███ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
|
-- ██ ███ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
|
||||||
-- ███ ███ ██████ ██████ ██ ██ ██ ████ ███████ ██ ██
|
-- ███ ███ ██████ ██████ ██ ██ ██ ████ ███████ ██ ██
|
||||||
local wea = worldeditadditions
|
local wea = worldeditadditions
|
||||||
worldedit.register_command("wcorner", {
|
worldeditadditions_core.register_command("wcorner", {
|
||||||
params = "<replace_node>",
|
params = "<replace_node>",
|
||||||
description = "Set the corners of the current selection to <replace_node>",
|
description = "Set the corners of the current selection to <replace_node>",
|
||||||
privs = {worldedit=true},
|
privs = {worldedit=true},
|
||||||
|
|
Loading…
Reference in a new issue