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

21 lines
892 B
Lua
Raw Permalink Normal View History

2024-10-23 05:00:53 +00:00
-- ██████ ███████ ███████ ███████ ████████
-- ██ ██ ██ ██ ██ ██
-- ██████ █████ ███████ █████ ██
-- ██ ██ ██ ██ ██ ██
-- ██ ██ ███████ ███████ ███████ ██
2024-10-23 05:00:53 +00:00
local wea_c = worldeditadditions_core
2024-10-23 05:00:53 +00:00
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
2024-10-23 05:00:53 +00:00
})