From 611306833515136146f3016b89fa703402b3939f Mon Sep 17 00:00:00 2001 From: StochasticMouse Date: Thu, 10 Oct 2024 19:41:52 +0200 Subject: [PATCH] now beehives spawn in respective biomes --- forestry_bees/register.lua | 60 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/forestry_bees/register.lua b/forestry_bees/register.lua index 328ff4c..56fefdd 100644 --- a/forestry_bees/register.lua +++ b/forestry_bees/register.lua @@ -62,6 +62,16 @@ minetest.register_node("forestry_bees:forest_beehive", { } } }) +minetest.register_decoration({ + deco_type = "simple", + place_on = {"default:dirt_with_grass"}, + sidelen = 16, + fill_ratio = 0.0001, + biomes = {"deciduous_forest"}, + y_max = 200, + y_min = 1, + decoration = "forestry_bees:forest_beehive", +}) minetest.register_node("forestry_bees:meadow_beehive", { description = "Meadow Beehive", @@ -84,6 +94,16 @@ minetest.register_node("forestry_bees:meadow_beehive", { } } }) +minetest.register_decoration({ + deco_type = "simple", + place_on = {"default:dirt_with_grass"}, + sidelen = 16, + fill_ratio = 0.0001, + biomes = {"grassland"}, + y_max = 200, + y_min = 1, + decoration = "forestry_bees:meadow_beehive", +}) minetest.register_node("forestry_bees:modest_beehive", { description = "Modest Beehive", @@ -106,6 +126,16 @@ minetest.register_node("forestry_bees:modest_beehive", { } } }) +minetest.register_decoration({ + deco_type = "simple", + place_on = {"default:sand", "default:desert_sand", "default:dry_dirt_with_dry_grass"}, + sidelen = 16, + fill_ratio = 0.0001, + biomes = {"desert", "sandstone_desert", "savanna"}, + y_max = 200, + y_min = 1, + decoration = "forestry_bees:modest_beehive", +}) minetest.register_node("forestry_bees:tropical_beehive", { description = "Tropical Beehive", @@ -128,6 +158,16 @@ minetest.register_node("forestry_bees:tropical_beehive", { } } }) +minetest.register_decoration({ + deco_type = "simple", + place_on = {"default:dirt_with_rainforest_litter"}, + sidelen = 16, + fill_ratio = 0.0001, + biomes = {"rainforest"}, + y_max = 200, + y_min = 1, + decoration = "forestry_bees:tropical_beehive", +}) minetest.register_node("forestry_bees:wintry_beehive", { description = "Wintry Beehive", @@ -150,6 +190,16 @@ minetest.register_node("forestry_bees:wintry_beehive", { } } }) +minetest.register_decoration({ + deco_type = "simple", + place_on = {"default:snowblock", "default:permafrost_with_stones", "default:dirt_with_snow", "default:dirt_with_coniferous_litter"}, + sidelen = 16, + fill_ratio = 0.0001, + biomes = {"icesheet", "tundra", "taiga", "snowy_grassland", "coniferous_forest"}, + y_max = 200, + y_min = 1, + decoration = "forestry_bees:wintry_beehive", +}) minetest.register_node("forestry_bees:marshy_beehive", { description = "Marshy Beehive", @@ -172,6 +222,16 @@ minetest.register_node("forestry_bees:marshy_beehive", { } } }) +minetest.register_decoration({ + deco_type = "simple", + place_on = {"default:dirt, default:dirt_with_rainforest_litter"}, + sidelen = 16, + fill_ratio = 0.0001, + biomes = {"rainforest_swamp"}, + y_max = 10, + y_min = -5, + decoration = "forestry_bees:marshy_beehive", +}) minetest.register_tool("forestry_bees:scoop", {