mirror of
https://codeberg.org/tenplus1/farming.git
synced 2025-07-01 15:50:46 +02:00
code tidy and tweak
This commit is contained in:
12
mapgen.lua
12
mapgen.lua
@ -26,7 +26,7 @@ local function register_plant(name, min, max, spawnon, spawnby, num, rarety)
|
||||
y_max = max,
|
||||
decoration = "farming:" .. name,
|
||||
spawn_by = spawnby,
|
||||
num_spawn_by = num,
|
||||
num_spawn_by = num
|
||||
})
|
||||
end
|
||||
|
||||
@ -84,7 +84,7 @@ minetest.register_decoration({
|
||||
y_max = 45,
|
||||
decoration = "farming:hemp_7",
|
||||
spawn_by = "group:tree",
|
||||
num_spawn_by = 1,
|
||||
num_spawn_by = 1
|
||||
})
|
||||
end
|
||||
|
||||
@ -105,7 +105,7 @@ minetest.register_decoration({
|
||||
y_max = 35,
|
||||
decoration = {"farming:chili_8"},
|
||||
spawn_by = "group:tree",
|
||||
num_spawn_by = 1,
|
||||
num_spawn_by = 1
|
||||
})
|
||||
end
|
||||
|
||||
@ -126,7 +126,7 @@ minetest.register_decoration({
|
||||
y_max = 35,
|
||||
decoration = {"farming:pepper_5"},
|
||||
spawn_by = "group:tree",
|
||||
num_spawn_by = 1,
|
||||
num_spawn_by = 1
|
||||
})
|
||||
end
|
||||
|
||||
@ -145,7 +145,7 @@ minetest.register_decoration({
|
||||
},
|
||||
y_min = 18,
|
||||
y_max = 30,
|
||||
decoration = {"farming:pineapple_8"},
|
||||
decoration = {"farming:pineapple_8"}
|
||||
})
|
||||
end
|
||||
|
||||
@ -165,5 +165,5 @@ minetest.register_decoration({
|
||||
biomes = {"savanna"},
|
||||
y_max = 31000,
|
||||
y_min = 1,
|
||||
decoration = "farming:cotton_wild",
|
||||
decoration = "farming:cotton_wild"
|
||||
})
|
||||
|
Reference in New Issue
Block a user