mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-26 09:03:01 +00:00
tested: stable enough
This commit is contained in:
parent
23aae6959f
commit
981bdc2b76
2 changed files with 3 additions and 3 deletions
|
@ -17,7 +17,7 @@ worldeditadditions_core.register_command("sgrow", {
|
||||||
require_pos = 0,
|
require_pos = 0,
|
||||||
parse = function(params_text)
|
parse = function(params_text)
|
||||||
local ret = wea_c.split(params_text)
|
local ret = wea_c.split(params_text)
|
||||||
if #ret < 1 then return false, "SREL: No params found!"
|
if #ret < 1 then return false, "SGROW: No params found!"
|
||||||
else return true, ret end
|
else return true, ret end
|
||||||
end,
|
end,
|
||||||
func = function(name, params_text)
|
func = function(name, params_text)
|
||||||
|
|
|
@ -10,14 +10,14 @@ local Vector3 = wea_c.Vector3
|
||||||
-- ███████ ███████ ██ ██ ██ ██ ██ ██ ████ ██ ██
|
-- ███████ ███████ ██ ██ ██ ██ ██ ██ ████ ██ ██
|
||||||
|
|
||||||
|
|
||||||
worldeditadditions_core.register_command("shrink", {
|
worldeditadditions_core.register_command("sshrink", {
|
||||||
params = "[<axis1>] <length1> [[<axis2>] <length2> [...]]",
|
params = "[<axis1>] <length1> [[<axis2>] <length2> [...]]",
|
||||||
description = "Shrink selection region",
|
description = "Shrink selection region",
|
||||||
privs = { worldedit = true },
|
privs = { worldedit = true },
|
||||||
require_pos = 0,
|
require_pos = 0,
|
||||||
parse = function(params_text)
|
parse = function(params_text)
|
||||||
local ret = wea_c.split(params_text)
|
local ret = wea_c.split(params_text)
|
||||||
if #ret < 1 then return false, "SREL: No params found!"
|
if #ret < 1 then return false, "SSHRINK: No params found!"
|
||||||
else return true, ret end
|
else return true, ret end
|
||||||
end,
|
end,
|
||||||
func = function(name, params_text)
|
func = function(name, params_text)
|
||||||
|
|
Loading…
Reference in a new issue