Minetest-WorldEditAdditions/worldeditadditions_commands/init.lua

37 lines
1.4 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-05-02 23:37:18 +00:00
dofile(we_c.modpath.."/multi.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")
2020-05-02 23:37:18 +00:00
dofile(we_c.modpath.."/commands/floodfill.lua")
dofile(we_c.modpath.."/commands/overlay.lua")
dofile(we_c.modpath.."/commands/ellipsoid.lua")
dofile(we_c.modpath.."/commands/torus.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")
dofile(we_c.modpath.."/commands/convolve.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-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")
else
minetest.log("action", "[WorldEditAdditions] bonemeal mod not detected: //bonemeal command 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