diff --git a/forestry_bees/apiary.lua b/forestry_bees/apiary.lua index e69c996..bc8a53f 100644 --- a/forestry_bees/apiary.lua +++ b/forestry_bees/apiary.lua @@ -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 \ No newline at end of file diff --git a/forestry_bees/forestry_bees.conf b/forestry_bees/forestry_bees.conf index aed139b..c918af2 100644 --- a/forestry_bees/forestry_bees.conf +++ b/forestry_bees/forestry_bees.conf @@ -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 diff --git a/forestry_bees/init.lua b/forestry_bees/init.lua index 696789b..fdf0a18 100644 --- a/forestry_bees/init.lua +++ b/forestry_bees/init.lua @@ -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")