1
0
mirror of https://codeberg.org/tenplus1/farming.git synced 2025-06-29 14:50:52 +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

@ -80,19 +80,19 @@ farming.registered_plants["farming:coffee"] = {
-- mapgen
local mg = farming.mapgen == "v6"
def = {
y_max = mg and 50 or 55,
spawn_on = mg and {"default:dirt_with_grass"} or {"default:dirt_with_dry_grass",
"default:dirt_with_rainforest_litter", "default:dry_dirt_with_dry_grass",
"mcl_core:dirt_with_grass"}
local spawn_on = {
"default:dirt_with_dry_grass", "default:dirt_with_rainforest_litter",
"default:dry_dirt_with_dry_grass", "mcl_core:dirt_with_grass",
"ethereal:prairie_dirt"
}
if not farming.eth then
if farming.mapgen == "v6" then
spawn_on = {"default:dirt_with_grass"}
end
minetest.register_decoration({
deco_type = "simple",
place_on = def.spawn_on,
place_on = spawn_on,
sidelen = 16,
noise_params = {
offset = 0,
@ -102,8 +102,6 @@ minetest.register_decoration({
octaves = 3,
persist = 0.6
},
y_min = 20,
y_max = def.y_max,
y_min = 20, y_max = 55,
decoration = "farming:coffee_5"
})
end