mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-27 17:43:53 +01:00
e167fb1536
after we've done this, we'll rename utils → lib
28 lines
1006 B
Lua
28 lines
1006 B
Lua
local wea_c = worldeditadditions_core
|
|
|
|
|
|
wea_c.register_alias("smoothadv", "convolve")
|
|
wea_c.register_alias("conv", "convolve")
|
|
|
|
wea_c.register_alias("naturalise", "layers")
|
|
wea_c.register_alias("naturalize", "layers")
|
|
|
|
wea_c.register_alias("flora", "bonemeal")
|
|
|
|
-- Measure Tools
|
|
wea_c.register_alias("mcount", "count")
|
|
wea_c.register_alias("mfacing", "mface")
|
|
|
|
|
|
--- Overrides to core WorldEdit commands
|
|
-- 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")
|
|
wea_c.register_alias("copy", "copy+", true)
|
|
wea_c.register_alias("move", "move+", true)
|
|
wea_c.register_alias("replace", "replacemix", true)
|
|
end
|