Minetest-WorldEditAdditions/worldeditadditions_tools/init.lua
2024-10-10 09:21:34 -07:00

31 lines
808 B
Lua

---@diagnostic disable-next-line: lowercase-global
worldeditadditions_tools = {
player_data = {},
registered_tools = {},
}
local wea_t = worldeditadditions_tools
minetest.register_privilege("weatool", {
description = "Allows players to use WEA tools.",
give_to_singleplayer = true,
give_to_admin = true,
})
local modpath = minetest.get_modpath("worldeditadditions_tools")
-- Libraries
dofile(modpath.."/lib/do_raycast.lua")
dofile(modpath.."/lib/settings.lua")
wea_t.register_tool = dofile(modpath.."/lib/register_tool.lua")
-- Items
dofile(modpath.."/items/farwand.lua")
dofile(modpath.."/items/cloudwand.lua")
dofile(modpath.."/items/multiwand.lua")
dofile(modpath.."/items/movetool.lua")
-- Chat commands
dofile(modpath.."/commands/farwand_config.lua")
dofile(modpath.."/commands/weatool.lua")