41 lines
816 B
Lua
Raw Normal View History

2021-03-22 11:29:28 -04:00
fl_wildlife = {}
fl_brains = {}
fl_wildlife.details = {
2021-04-18 21:28:16 -04:00
version = 11,
2021-03-22 11:29:28 -04:00
name = "fl_wildlife",
author = "wsor",
license = "MIT",
}
fl_brains.details = fl_wildlife.details
local modpath = minetest.get_modpath(minetest.get_current_modname())
dofile(modpath .. "/api.lua")
dofile(modpath .. "/node_items.lua")
local mob_brains = {
2021-03-22 22:49:21 -04:00
"villager_brain",
"fish_brain",
2021-03-22 11:29:28 -04:00
}
local mob_list = {
"villager",
"trader",
2021-03-22 22:49:21 -04:00
"riverfish",
2021-03-22 11:29:28 -04:00
--"mimic",
2021-04-10 21:54:14 -04:00
"sheep",
2021-04-18 21:28:16 -04:00
"chicken",
2021-03-22 11:29:28 -04:00
}
for _, brain in pairs(mob_brains) do
dofile(modpath .. "/fl_brains/" .. brain .. ".lua")
end
for _, mob in pairs(mob_list) do
local setting = "fl_wildlife." .. mob .. ".enable"
if minetest.settings:get_bool(setting, true) == true then
dofile(modpath .. "/fl_mobs/" .. mob .. ".lua")
end
end