2018-05-20 11:52:16 +01:00
--- WorldEditAdditions-ChatCommands
2023-07-04 22:45:02 +01:00
-- @namespace worldeditadditions_commands
2018-05-20 11:52:16 +01:00
-- @release 0.1
-- @copyright 2018 Starbeamrainbowlabs
-- @license Mozilla Public License, 2.0
-- @author Starbeamrainbowlabs
2020-05-03 00:37:18 +01:00
worldeditadditions_commands = { }
2022-09-18 17:59:57 +01:00
local wea_cmd = worldeditadditions_commands
wea_cmd.modpath = minetest.get_modpath ( " worldeditadditions_commands " )
dofile ( wea_cmd.modpath .. " /player_notify_suppress.lua " )
dofile ( wea_cmd.modpath .. " /commands/convolve.lua " )
dofile ( wea_cmd.modpath .. " /commands/ellipsoid.lua " )
dofile ( wea_cmd.modpath .. " /commands/ellipsoid2.lua " )
dofile ( wea_cmd.modpath .. " /commands/erode.lua " )
dofile ( wea_cmd.modpath .. " /commands/fillcaves.lua " )
dofile ( wea_cmd.modpath .. " /commands/floodfill.lua " )
dofile ( wea_cmd.modpath .. " /commands/hollow.lua " )
dofile ( wea_cmd.modpath .. " /commands/layers.lua " )
dofile ( wea_cmd.modpath .. " /commands/line.lua " )
dofile ( wea_cmd.modpath .. " /commands/maze.lua " )
dofile ( wea_cmd.modpath .. " /commands/noise2d.lua " )
dofile ( wea_cmd.modpath .. " /commands/overlay.lua " )
dofile ( wea_cmd.modpath .. " /commands/replacemix.lua " )
dofile ( wea_cmd.modpath .. " /commands/scale.lua " )
dofile ( wea_cmd.modpath .. " /commands/torus.lua " )
dofile ( wea_cmd.modpath .. " /commands/walls.lua " )
dofile ( wea_cmd.modpath .. " /commands/spiral2.lua " )
dofile ( wea_cmd.modpath .. " /commands/copy.lua " )
dofile ( wea_cmd.modpath .. " /commands/move.lua " )
dofile ( wea_cmd.modpath .. " /commands/dome.lua " )
dofile ( wea_cmd.modpath .. " /commands/metaball.lua " )
dofile ( wea_cmd.modpath .. " /commands/count.lua " )
dofile ( wea_cmd.modpath .. " /commands/sculpt.lua " )
2022-09-25 01:18:40 +01:00
dofile ( wea_cmd.modpath .. " /commands/spline.lua " )
2023-02-12 01:40:29 +00:00
dofile ( wea_cmd.modpath .. " /commands/revolve.lua " )
2020-05-11 21:44:18 +01:00
2021-07-18 17:27:21 -07:00
-- Meta Commands
2022-09-18 17:59:57 +01:00
dofile ( wea_cmd.modpath .. " /commands/meta/init.lua " )
2020-06-26 02:13:11 +01:00
2021-06-27 14:39:36 -07:00
-- Selection Tools
2022-09-18 17:59:57 +01:00
dofile ( wea_cmd.modpath .. " /commands/selectors/init.lua " )
2021-02-24 08:40:53 -08:00
2021-06-28 21:15:47 -07:00
-- Measure Tools
2022-09-18 17:59:57 +01:00
dofile ( wea_cmd.modpath .. " /commands/measure/init.lua " )
2021-06-28 21:15:47 -07:00
2021-07-18 13:12:19 -07:00
-- Wireframe
2022-09-18 17:59:57 +01:00
dofile ( wea_cmd.modpath .. " /commands/wireframe/init.lua " )
2021-07-18 13:12:19 -07:00
2022-09-18 17:59:57 +01:00
dofile ( wea_cmd.modpath .. " /commands/extra/saplingaliases.lua " )
dofile ( wea_cmd.modpath .. " /commands/extra/basename.lua " )
dofile ( wea_cmd.modpath .. " /commands/extra/sculptlist.lua " )
2021-02-24 08:40:53 -08:00
2021-12-27 03:11:52 +00:00
-- Don't register the //bonemeal command if the bonemeal mod isn't present
2021-10-25 15:18:03 +01:00
if minetest.global_exists ( " bonemeal " ) then
2022-09-18 17:59:57 +01:00
dofile ( wea_cmd.modpath .. " /commands/bonemeal.lua " )
dofile ( wea_cmd.modpath .. " /commands/forest.lua " )
2020-05-11 02:02:02 +01:00
else
2020-09-14 02:12:05 +01: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 02:02:02 +01:00
end
2020-06-11 01:00:19 +01:00
2021-05-30 16:18:08 +01:00
-- Minetest doesn't allow you to read from files outside the mod
-- directory - even if you're part of a modpack you can't read from the main
-- modpack directory. Furthermore, symlinks don't help.
-- If you have a solution to this issue, please comment on this GitHub issue:
-- https://github.com/sbrl/Minetest-WorldEditAdditions/issues/55
-- NOTE TO SELF: When uncommenting this, also add "doc?" to depends.txt
-- if minetest.get_modpath("doc") then
-- dofile(we_c.modpath.."/doc/init.lua")
-- else
-- minetest.log("action", "[WorldEditAdditions] doc mod not detected: not registering doc category with extended help")
-- end
2020-06-11 01:00:19 +01:00
2022-09-18 17:59:57 +01:00
dofile ( wea_cmd.modpath .. " /aliases.lua " )