hardtorch/init.lua

63 lines
1.3 KiB
Lua
Raw Normal View History

2017-08-30 06:31:37 -07:00
--[[
Mod HardTorch para Minetest
Copyright (C) 2017 BrunoMine (https://github.com/BrunoMine)
Recebeste uma cópia da GNU Lesser General
Public License junto com esse software,
se não, veja em <http://www.gnu.org/licenses/>.
Inicializador de scripts
]]
-- Tabela Global
hardtorch = {}
-- Tabela de jogadores em loop de tocha acessa
hardtorch.em_loop = {}
2017-08-30 20:02:02 -07:00
-- Requerer fonte de fogo para acender tocha
hardtorch.torch_lighter = minetest.setting_getbool("hardtorch_torch_lighter") or false
hardtorch.fontes_de_fogo = {
["default:furnace_active"] = true,
["default:lava_flowing"] = true,
["default:lava_source"] = true,
["fire:basic_flame"] = true,
["fire:permanent_flame"] = true,
}
hardtorch.acendedores = {
["fire:flint_and_steel"] = 1000,
}
2017-09-02 03:09:50 -07:00
hardtorch.registered_fuels = {}
2017-08-31 19:21:00 -07:00
hardtorch.registered_torchs = {}
2017-08-30 06:31:37 -07:00
-- Notificador de Inicializador
local notificar = function(msg)
if minetest.setting_get("log_mods") then
minetest.debug("[HardTorch]"..msg)
end
end
-- Modpath
local modpath = minetest.get_modpath("hardtorch")
-- Carregar scripts
notificar("Carregando...")
-- Metodos gerais
2017-08-31 19:21:00 -07:00
dofile(modpath.."/comum.lua")
2017-08-30 06:31:37 -07:00
dofile(modpath.."/luz.lua")
dofile(modpath.."/tool.lua")
2017-08-31 19:21:00 -07:00
dofile(modpath.."/node.lua")
dofile(modpath.."/api.lua")
dofile(modpath.."/torch.lua")
dofile(modpath.."/oil.lua")
2017-09-02 03:09:50 -07:00
dofile(modpath.."/lamp.lua")
2017-08-30 06:31:37 -07:00
notificar("[OK]!")