macroplantas/init.lua

35 lines
934 B
Lua
Raw Permalink Normal View History

2017-06-18 08:15:28 -07:00
--[[
Mod MacroPlantas 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
]]
-- Notificador de Inicializador
local notificar = function(msg)
if minetest.setting_get("log_mods") then
minetest.debug("[MacroPlantas]"..msg)
end
end
2017-08-14 08:29:18 -07:00
-- Verifica se mod Farming Redo (TenPlus) está ativo
if not minetest.registered_craftitems["farming:melon_slice"]
or not minetest.registered_craftitems["farming:grapes"]
then
minetest.log("error", "[MacroPlantas] Exigido melon e grapes do mod farming Redo (TenPlus)")
return
end
2017-06-18 08:15:28 -07:00
2017-08-14 08:29:18 -07:00
local modpath = minetest.get_modpath("macroplantas")
2017-06-18 08:15:28 -07:00
-- Carregar scripts
notificar("Carregando...")
2017-08-14 08:29:18 -07:00
dofile(modpath.."/farming.lua")
dofile(modpath.."/compatibilidade.lua")
2017-06-18 08:15:28 -07:00
notificar("OK")