Minetest-WorldEditAdditions/worldeditadditions_commands/aliases.lua

38 lines
1.4 KiB
Lua
Raw Permalink Normal View History

2024-05-25 13:48:38 +00:00
local core = worldeditadditions_core
2022-05-16 19:33:04 +00:00
2022-05-23 23:11:22 +00:00
2024-05-25 13:48:38 +00:00
core.register_alias("smoothadv", "convolve")
core.register_alias("conv", "convolve")
2022-05-16 19:33:04 +00:00
2024-05-25 13:48:38 +00:00
core.register_alias("naturalise", "layers")
core.register_alias("naturalize", "layers")
2024-05-25 13:48:38 +00:00
-- Commands prefixed with n affect nodes
core.register_alias("napply", "nodeapply")
if core.command_exists("/bonemeal") then
-- No need to log here, since we notify the server admin in the server logs in the dofile() for the main //bonemeal command
2024-05-25 13:48:38 +00:00
core.register_alias("flora", "bonemeal")
end
2022-05-16 19:33:04 +00:00
-- Measure Tools
2024-05-25 13:48:38 +00:00
core.register_alias("mcount", "count")
core.register_alias("mfacing", "mface")
--- Overrides to core WorldEdit commands that have been thoroughly tested
-- These are now enabled by default, but if you find a bug please report and
-- it will be fixed as a matter of priority.
2024-05-25 13:48:38 +00:00
core.register_alias("copy", "copy+", true)
core.register_alias("move", "move+", true)
--- Overrides to core WorldEdit commands
2022-05-24 01:24:43 +00:00
-- These are disabled by default for now, as they could be potentially dangerous to stability
-- Thorough testing is required of our replacement commands before these are enabled by default
local worldmt_settings = Settings(minetest.get_worldpath().."/world.mt")
local should_override = worldmt_settings:get_bool("worldeditadditions_override_commands", false)
if should_override then
minetest.log("info", "[WorldEditAdditions] Enabling override aliases")
2024-05-25 13:48:38 +00:00
core.register_alias("replace", "replacemix", true)
2022-05-23 23:11:22 +00:00
end