31 lines
1.1 KiB
Lua
31 lines
1.1 KiB
Lua
local modname = minetest.get_current_modname()
|
|
|
|
local S = minetest.get_translator(modname)
|
|
|
|
local modpath = minetest.get_modpath(modname)
|
|
|
|
--global variables
|
|
brewing = {}
|
|
brewing.settings = {}
|
|
brewing.craft_list = {} --for potion crafts
|
|
brewing.effects = {} --for the player effects
|
|
brewing.players = {} --for the players
|
|
|
|
assert(loadfile(modpath.. "/settings.lua"))(modpath)
|
|
assert(loadfile(modpath.. "/api.lua"))(S, modname)
|
|
assert(loadfile(modpath.. "/effects.lua"))(S)
|
|
assert(loadfile(modpath.. "/potions.lua"))(S)
|
|
assert(loadfile(modpath.. "/potion_crafts.lua"))()
|
|
assert(loadfile(modpath.. "/cauldron.lua"))(S)
|
|
assert(loadfile(modpath.. "/cauldron1.lua"))(S)
|
|
assert(loadfile(modpath.. "/player.lua"))()
|
|
assert(loadfile(modpath.. "/sound.lua"))()
|
|
assert(loadfile(modpath.. "/mushroom.lua"))(S)
|
|
assert(loadfile(modpath.. "/magic_pick.lua"))()
|
|
assert(loadfile(modpath.. "/magic_sword.lua"))()
|
|
assert(loadfile(modpath.. "/magic_axe.lua"))()
|
|
assert(loadfile(modpath.. "/magic_shovel.lua"))()
|
|
assert(loadfile(modpath.. "/armor.lua"))()
|
|
assert(loadfile(modpath.. "/ore.lua"))()
|
|
assert(loadfile(modpath.. "/gem.lua"))()
|
|
assert(loadfile(modpath.. "/crystal.lua"))() |