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

added spinach; eggplant; asparagus; Chili Powder; new Onigiri (thanks Atlante for new textures), mapgen now inside own crop file, added new lucky blocks

This commit is contained in:
tenplus1
2022-09-13 12:30:10 +01:00
parent ff526980da
commit 97d15d3ea1
60 changed files with 992 additions and 251 deletions

View File

@ -184,3 +184,27 @@ farming.register_plant("farming:cotton", {
groups = {flammable = 2},
steps = 8,
})]]
-- mapgen
local grow_on = farming.mapgen == "v6" and {"default:dirt_with_grass"}
or {"default:dry_dirt_with_dry_grass"}
local biome = farming.mapgen == "v6" and {"jungle"} or {"savanna"}
minetest.register_decoration({
name = "farming:cotton_wild",
deco_type = "simple",
place_on = grow_on,
sidelen = 16,
noise_params = {
offset = -0.1,
scale = 0.1,
spread = {x = 50, y = 50, z = 50},
seed = 4242,
octaves = 3,
persist = 0.7
},
biomes = biome,
y_max = 31000,
y_min = 1,
decoration = "farming:cotton_wild"
})