Minetest-WorldEditAdditions/worldeditadditions_commands/commands/selectors/scol.lua

27 lines
869 B
Lua
Raw Normal View History

2022-09-18 21:20:04 +00:00
local wea_c = worldeditadditions_core
local Vector3 = wea_c.Vector3
2021-03-09 19:05:03 +00:00
-- ███████ ██████ ██████ ██
-- ██ ██ ██ ██ ██
-- ███████ ██ ██ ██ ██
-- ██ ██ ██ ██ ██
-- ███████ ██████ ██████ ███████
worldeditadditions_core.register_command("scol", {
2024-09-13 17:47:42 +00:00
params = "None",
description = "DEPRECATED: please use //srel instead.",
2024-09-13 17:47:42 +00:00
privs = { worldedit = true },
2021-03-09 19:05:03 +00:00
require_pos = 1,
parse = function(params_text)
2024-09-13 17:47:42 +00:00
return params_text
2021-03-09 19:05:03 +00:00
end,
2024-09-13 17:47:42 +00:00
func = function(name, paramtext)
return false, "DEPRECATED: please use //srel instead..."
2021-03-09 19:05:03 +00:00
end,
})
-- Tests
-- /multi //fp set1 -63 19 -20 //scol 5
-- lua print(worldedit.player_axis(myname))
-- tonumber(('y1'):gsub('[xyz]',''):sub(1,2))