mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-12-23 12:05:01 +00:00
21 lines
No EOL
892 B
Lua
21 lines
No EOL
892 B
Lua
-- ██████ ███████ ███████ ███████ ████████
|
|
-- ██ ██ ██ ██ ██ ██
|
|
-- ██████ █████ ███████ █████ ██
|
|
-- ██ ██ ██ ██ ██ ██
|
|
-- ██ ██ ███████ ███████ ███████ ██
|
|
|
|
local wea_c = worldeditadditions_core
|
|
|
|
worldeditadditions_core.register_command("reset", {
|
|
params = "",
|
|
description = "Clears all defined points and the currently defined region.",
|
|
privs = {worldedit=true},
|
|
override = true, -- Override the WorldEdit command
|
|
parse = function(params_text)
|
|
return true, params_text
|
|
end,
|
|
func = function(name)
|
|
wea_c.pos.clear(name)
|
|
return true, "Selection reset for "..name
|
|
end
|
|
}) |