added hopper support

This commit is contained in:
StochasticMouse 2024-10-20 13:48:25 +02:00
parent 86d64d1583
commit f2447200a1
3 changed files with 17 additions and 1 deletions

View File

@ -325,3 +325,11 @@ minetest.register_craft({
{"group:wood", "group:wood", "group:wood"},
}
})
if forestry_bees.depends.hopper then
hopper:add_container({
{"top", "forestry_bees:apiary", "dst"},
{"bottom", "forestry_bees:apiary", "monarch"},
{"side", "forestry_bees:apiary", "drone"},
})
end

View File

@ -1,2 +1,2 @@
--base multiplier for bee lifespan, default value is 27.5 to have parity with MC-forestry
lifespan_multiplier = 1
lifespan_multiplier = 0.05

View File

@ -1,7 +1,15 @@
--definitions that can be used around
forestry_bees = {}
forestry_bees.depends = {hopper = false, pipeworks = false}
forestry_bees.settings = Settings(minetest.get_modpath("forestry_bees") .. "/forestry_bees.conf")
if minetest.get_modpath('hopper') then
forestry_bees.depends["hopper"] = true
end
if minetest.get_modpath('pipeworks') then
forestry_bees.depends["pipeworks"] = true
end
dofile(minetest.get_modpath("forestry_bees") .. "/helper.lua")
dofile(minetest.get_modpath("forestry_bees") .. "/bee_genes.lua")
dofile(minetest.get_modpath("forestry_bees") .. "/register.lua")