2022-05-19 21:50:53 +00:00
|
|
|
local wea_c = worldeditadditions_core
|
2022-05-16 19:33:04 +00:00
|
|
|
|
2022-05-23 23:11:22 +00:00
|
|
|
|
2022-05-19 21:50:53 +00:00
|
|
|
wea_c.register_alias("smoothadv", "convolve")
|
|
|
|
wea_c.register_alias("conv", "convolve")
|
2022-05-16 19:33:04 +00:00
|
|
|
|
2022-05-19 21:50:53 +00:00
|
|
|
wea_c.register_alias("naturalise", "layers")
|
|
|
|
wea_c.register_alias("naturalize", "layers")
|
|
|
|
|
|
|
|
wea_c.register_alias("flora", "bonemeal")
|
2022-05-16 19:33:04 +00:00
|
|
|
|
|
|
|
-- Measure Tools
|
2022-05-19 21:50:53 +00:00
|
|
|
wea_c.register_alias("mcount", "count")
|
|
|
|
wea_c.register_alias("mfacing", "mface")
|
2022-05-16 20:21:15 +00:00
|
|
|
|
|
|
|
|
|
|
|
--- 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")
|
2022-09-18 16:59:57 +00:00
|
|
|
wea_c.register_alias("copy", "copy+", true)
|
|
|
|
wea_c.register_alias("move", "move+", true)
|
|
|
|
wea_c.register_alias("replace", "replacemix", true)
|
2022-05-23 23:11:22 +00:00
|
|
|
end
|