mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-27 01:13:00 +00:00
Starbeamrainbowlabs
873ff4bef8
Also add worldeditadditions_core.command_exists to check both WEA and WEW for whether a command exists or not
34 lines
1.3 KiB
Lua
34 lines
1.3 KiB
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")
|
|
|
|
if wea_c.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
|
|
wea_c.register_alias("flora", "bonemeal")
|
|
end
|
|
|
|
-- Measure Tools
|
|
wea_c.register_alias("mcount", "count")
|
|
wea_c.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.
|
|
wea_c.register_alias("copy", "copy+", true)
|
|
wea_c.register_alias("move", "move+", true)
|
|
|
|
--- 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("replace", "replacemix", true)
|
|
end
|