2018-05-20 10:52:16 +00:00
--- WorldEditAdditions-ChatCommands
-- @module worldeditadditions_commands
-- @release 0.1
-- @copyright 2018 Starbeamrainbowlabs
-- @license Mozilla Public License, 2.0
-- @author Starbeamrainbowlabs
2020-05-02 23:37:18 +00:00
worldeditadditions_commands = { }
local we_c = worldeditadditions_commands
2018-10-13 23:19:32 +00:00
2020-05-02 23:37:18 +00:00
we_c.modpath = minetest.get_modpath ( " worldeditadditions_commands " )
2018-05-20 13:46:54 +00:00
2020-06-26 20:15:13 +00:00
dofile ( we_c.modpath .. " /player_notify_suppress.lua " )
2018-06-09 12:05:09 +00:00
2020-05-11 01:02:02 +00:00
-- We no longer need our own implementation of safe_region thanks to @sfan5's
-- suggestion in issue #5 - yay!
-- we_c.safe_region, we_c.check_region, we_c.reset_pending
-- = dofile(we_c.modpath.."/safe.lua")
2018-06-09 12:05:09 +00:00
2020-05-02 23:37:18 +00:00
dofile ( we_c.modpath .. " /commands/floodfill.lua " )
dofile ( we_c.modpath .. " /commands/overlay.lua " )
2020-06-10 23:38:16 +00:00
dofile ( we_c.modpath .. " /commands/layers.lua " )
2020-08-26 18:17:07 +00:00
dofile ( we_c.modpath .. " /commands/fillcaves.lua " )
2020-05-02 23:37:18 +00:00
dofile ( we_c.modpath .. " /commands/ellipsoid.lua " )
dofile ( we_c.modpath .. " /commands/torus.lua " )
2021-01-16 18:36:17 +00:00
dofile ( we_c.modpath .. " /commands/line.lua " )
2020-05-11 23:38:42 +00:00
dofile ( we_c.modpath .. " /commands/walls.lua " )
2020-05-02 23:37:18 +00:00
dofile ( we_c.modpath .. " /commands/maze.lua " )
2020-05-14 20:37:27 +00:00
dofile ( we_c.modpath .. " /commands/replacemix.lua " )
2020-06-09 20:11:34 +00:00
dofile ( we_c.modpath .. " /commands/convolve.lua " )
2020-08-21 12:27:40 +00:00
dofile ( we_c.modpath .. " /commands/erode.lua " )
2021-01-31 18:03:07 +00:00
dofile ( we_c.modpath .. " /commands/hollow.lua " )
2021-02-07 23:39:09 +00:00
dofile ( we_c.modpath .. " /commands/scale.lua " )
2020-05-11 01:02:02 +00:00
2020-05-11 23:38:42 +00:00
dofile ( we_c.modpath .. " /commands/count.lua " )
2020-05-11 20:44:18 +00:00
2020-09-20 16:33:48 +00:00
dofile ( we_c.modpath .. " /commands/meta/multi.lua " )
dofile ( we_c.modpath .. " /commands/meta/many.lua " )
dofile ( we_c.modpath .. " /commands/meta/subdivide.lua " )
2020-09-20 20:19:29 +00:00
dofile ( we_c.modpath .. " /commands/meta/ellipsoidapply.lua " )
2020-06-26 01:13:11 +00:00
2021-03-12 23:47:10 +00:00
dofile ( we_c.modpath .. " /commands/selectors/scloud.lua " )
2021-03-09 19:05:03 +00:00
dofile ( we_c.modpath .. " /commands/selectors/scol.lua " )
2021-02-24 16:40:53 +00:00
dofile ( we_c.modpath .. " /commands/selectors/srect.lua " )
2021-03-10 21:21:33 +00:00
dofile ( we_c.modpath .. " /commands/selectors/scube.lua " )
2021-03-01 22:23:36 +00:00
dofile ( we_c.modpath .. " /commands/selectors/sstack.lua " )
dofile ( we_c.modpath .. " /commands/selectors/spush.lua " )
dofile ( we_c.modpath .. " /commands/selectors/spop.lua " )
2021-02-24 16:40:53 +00:00
dofile ( we_c.modpath .. " /commands/extra/saplingaliases.lua " )
dofile ( we_c.modpath .. " /commands/extra/basename.lua " )
2020-05-11 01:02:02 +00:00
-- Don't registry the //bonemeal command if the bonemeal mod isn't present
if minetest.get_modpath ( " bonemeal " ) then
dofile ( we_c.modpath .. " /commands/bonemeal.lua " )
2020-09-14 01:12:05 +00:00
dofile ( we_c.modpath .. " /commands/forest.lua " )
2020-05-11 01:02:02 +00:00
else
2020-09-14 01:12:05 +00:00
minetest.log ( " action " , " [WorldEditAdditions] bonemeal mod not detected: //bonemeal and //forest commands not registered (if you see this message and you're using an alternative mod that provides bonemeal, please get in touch by opening an issue) " )
2020-05-11 01:02:02 +00:00
end
2020-06-11 00:00:19 +00:00
worldedit.alias_command ( " smoothadv " , " convolve " )
worldedit.alias_command ( " conv " , " convolve " )
worldedit.alias_command ( " naturalise " , " layers " )
worldedit.alias_command ( " naturalize " , " layers " )
worldedit.alias_command ( " flora " , " bonemeal " )