now beehives spawn in respective biomes

This commit is contained in:
StochasticMouse 2024-10-10 19:41:52 +02:00
parent e41b31fccc
commit 6113068335

View File

@ -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", { minetest.register_node("forestry_bees:meadow_beehive", {
description = "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", { minetest.register_node("forestry_bees:modest_beehive", {
description = "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", { minetest.register_node("forestry_bees:tropical_beehive", {
description = "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", { minetest.register_node("forestry_bees:wintry_beehive", {
description = "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", { minetest.register_node("forestry_bees:marshy_beehive", {
description = "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", { minetest.register_tool("forestry_bees:scoop", {