2018-05-20 12:52:16 +02:00
|
|
|
--- WorldEditAdditions-ChatCommands
|
|
|
|
-- @module worldeditadditions_commands
|
|
|
|
-- @release 0.1
|
|
|
|
-- @copyright 2018 Starbeamrainbowlabs
|
|
|
|
-- @license Mozilla Public License, 2.0
|
|
|
|
-- @author Starbeamrainbowlabs
|
|
|
|
|
2020-05-03 01:37:18 +02:00
|
|
|
worldeditadditions_commands = {}
|
|
|
|
local we_c = worldeditadditions_commands
|
2018-10-14 01:19:32 +02:00
|
|
|
|
2020-05-03 01:37:18 +02:00
|
|
|
we_c.modpath = minetest.get_modpath("worldeditadditions_commands")
|
2018-05-20 15:46:54 +02:00
|
|
|
|
2020-05-11 03:02:02 +02:00
|
|
|
dofile(we_c.modpath.."/utils/strings.lua")
|
|
|
|
dofile(we_c.modpath.."/utils/numbers.lua")
|
|
|
|
|
2020-05-03 01:37:18 +02:00
|
|
|
dofile(we_c.modpath.."/multi.lua")
|
2018-06-09 14:05:09 +02:00
|
|
|
|
2020-05-11 03:02:02 +02: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 14:05:09 +02:00
|
|
|
|
2020-05-03 01:37:18 +02: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")
|
|
|
|
dofile(we_c.modpath.."/commands/maze.lua")
|
2020-05-11 03:02:02 +02: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")
|
|
|
|
end
|