1
0
mirror of https://codeberg.org/tenplus1/farming.git synced 2025-06-29 23:01:00 +02:00

crop deco with ethereal added.

This commit is contained in:
tenplus1
2024-09-24 12:31:06 +01:00
parent 9d471bf6d8
commit 2b31a87a32
38 changed files with 224 additions and 325 deletions

View File

@ -108,18 +108,12 @@ farming.registered_plants["farming:pumpkin"] = {
-- mapgen
local mg = farming.mapgen == "v6"
def = {
y_max = mg and 20 or 6,
near = mg and "group:water" or nil,
num = mg and 1 or -1,
}
if not farming.eth then
minetest.register_decoration({
deco_type = "simple",
place_on = {"default:dirt_with_grass", "mcl_core:dirt_with_grass"},
place_on = {
"default:dirt_with_grass", "default:dirt_with_rainforest_litter",
"mcl_core:dirt_with_grass"
},
sidelen = 16,
noise_params = {
offset = 0,
@ -129,10 +123,7 @@ minetest.register_decoration({
octaves = 3,
persist = 0.6
},
y_min = 1,
y_max = def.y_max,
y_min = 1, y_max = 6,
decoration = "farming:pumpkin_8",
spawn_by = def.near,
num_spawn_by = def.num
spawn_by = {"group:water", "group:sand"}, num_spawn_by = 1
})
end