snippets/init.lua

21 lines
464 B
Lua
Raw Normal View History

2019-07-20 05:01:22 +02:00
--
-- Minetest snippets mod: Allows admins to run a bunch of predefined snippets
--
assert(minetest.get_current_modname() == 'snippets')
snippets = {}
local modpath = minetest.get_modpath('snippets')
-- Load the core sandbox
dofile(modpath .. '/core.lua')
-- Load persistence
loadfile(modpath .. '/persistence.lua')(minetest.get_mod_storage())
-- Load the "console"
dofile(modpath .. '/console.lua')
-- Load "snippet buttons"
dofile(modpath .. '/nodes.lua')