1
0
mirror of https://github.com/mt-mods/plantlife_modpack.git synced 2024-12-26 02:20:20 +01:00

remove biomelib usage from sunflowers (#44)

This commit is contained in:
wsor4035 2023-07-09 16:14:45 -04:00 committed by GitHub
parent d483c2a1ae
commit d9782771c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 16 deletions

View File

@ -1,10 +1,6 @@
-- support for i18n -- support for i18n
local S = minetest.get_translator("pl_sunflowers") local S = minetest.get_translator("pl_sunflowers")
local sunflowers_max_count = tonumber(minetest.settings:get("pl_sunflowers_max_count")) or 10
local sunflowers_rarity = tonumber(minetest.settings:get("pl_sunflowers_rarity")) or 25
local box = { local box = {
type="fixed", type="fixed",
fixed = { { -0.2, -0.5, -0.2, 0.2, 0.5, 0.2 } }, fixed = { { -0.2, -0.5, -0.2, 0.2, 0.5, 0.2 } },
@ -40,17 +36,20 @@ minetest.register_node(":flowers:sunflower", {
} }
}) })
biome_lib.register_on_generate({ minetest.register_decoration({
surface = {"default:dirt_with_grass"}, decoration = {
avoid_nodes = { "flowers:sunflower" },
max_count = sunflowers_max_count,
rarity = sunflowers_rarity,
min_elevation = 0,
plantlife_limit = -0.9,
temp_max = -0.1,
random_facedir = {0,3},
},
"flowers:sunflower" "flowers:sunflower"
) },
fill_ratio = 0.005,
y_min = 1,
y_max = 40,
param2 = 0,
param2_max = 3,
place_on = {
"default:dirt_with_grass"
},
deco_type = "simple",
flags = "all_floors",
})
minetest.register_alias("sunflower:sunflower", "flowers:sunflower") minetest.register_alias("sunflower:sunflower", "flowers:sunflower")

View File

@ -1,3 +1,2 @@
name = pl_sunflowers name = pl_sunflowers
depends = biome_lib
optional_depends = farming, flowers optional_depends = farming, flowers