Minetest-WorldEditAdditions/worldeditadditions_commands/init.lua

84 lines
3.2 KiB
Lua
Raw Normal View History

--- 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
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")
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")
2021-03-16 03:51:23 +00:00
dofile(we_c.modpath.."/commands/convolve.lua")
dofile(we_c.modpath.."/commands/ellipsoid.lua")
2021-10-14 00:50:27 +00:00
dofile(we_c.modpath.."/commands/ellipsoid2.lua")
2021-03-16 03:51:23 +00:00
dofile(we_c.modpath.."/commands/erode.lua")
dofile(we_c.modpath.."/commands/fillcaves.lua")
2020-05-02 23:37:18 +00:00
dofile(we_c.modpath.."/commands/floodfill.lua")
2021-03-16 03:51:23 +00:00
dofile(we_c.modpath.."/commands/hollow.lua")
dofile(we_c.modpath.."/commands/layers.lua")
2021-01-16 18:36:17 +00:00
dofile(we_c.modpath.."/commands/line.lua")
2020-05-02 23:37:18 +00:00
dofile(we_c.modpath.."/commands/maze.lua")
dofile(we_c.modpath.."/commands/noise2d.lua")
2021-03-16 03:51:23 +00:00
dofile(we_c.modpath.."/commands/overlay.lua")
2020-05-14 20:37:27 +00:00
dofile(we_c.modpath.."/commands/replacemix.lua")
dofile(we_c.modpath.."/commands/scale.lua")
2021-03-16 03:51:23 +00:00
dofile(we_c.modpath.."/commands/torus.lua")
dofile(we_c.modpath.."/commands/walls.lua")
dofile(we_c.modpath.."/commands/spiral2.lua")
dofile(we_c.modpath.."/commands/copy.lua")
dofile(we_c.modpath.."/commands/move.lua")
dofile(we_c.modpath.."/commands/dome.lua")
2022-05-16 19:14:31 +00:00
dofile(we_c.modpath.."/commands/metaball.lua")
2020-05-11 23:38:42 +00:00
dofile(we_c.modpath.."/commands/count.lua")
dofile(we_c.modpath.."/commands/sculpt.lua")
2020-05-11 20:44:18 +00:00
2021-07-19 00:27:21 +00:00
-- Meta Commands
dofile(we_c.modpath.."/commands/meta/init.lua")
2021-06-27 21:39:36 +00:00
-- Selection Tools
dofile(we_c.modpath.."/commands/selectors/init.lua")
2021-06-29 04:15:47 +00:00
-- Measure Tools
dofile(we_c.modpath.."/commands/measure/init.lua")
2021-07-18 20:12:19 +00:00
-- Wireframe
dofile(we_c.modpath.."/commands/wireframe/init.lua")
dofile(we_c.modpath.."/commands/extra/saplingaliases.lua")
dofile(we_c.modpath.."/commands/extra/basename.lua")
dofile(we_c.modpath.."/commands/extra/sculptlist.lua")
-- Don't register the //bonemeal command if the bonemeal mod isn't present
if minetest.global_exists("bonemeal") then
2020-05-11 01:02:02 +00:00
dofile(we_c.modpath.."/commands/bonemeal.lua")
dofile(we_c.modpath.."/commands/forest.lua")
2020-05-11 01:02:02 +00:00
else
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
-- 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
2022-05-16 19:33:04 +00:00
dofile(we_c.modpath.."/aliases.lua")