1
0
mirror of https://codeberg.org/tenplus1/farming.git synced 2025-06-30 07:11:13 +02:00

Added hemp, upped to ver 1.24

This commit is contained in:
TenPlus1
2017-04-08 11:00:12 +01:00
parent 787c8d1ffe
commit 30c87bf910
18 changed files with 228 additions and 3 deletions

View File

@ -55,6 +55,25 @@ function farming.register_mgv7_decorations()
register_plant("grapebush", 25, 45, "", -1)
end
minetest.register_decoration({
deco_type = "simple",
place_on = {"default:dirt_with_grass", "default:dirt_with_rainforest_litter"},
sidelen = 16,
noise_params = {
offset = 0,
scale = 0.06,
spread = {x = 100, y = 100, z = 100},
seed = 420,
octaves = 3,
persist = 0.6
},
y_min = 5,
y_max = 35,
decoration = "farming:hemp_7",
spawn_by = "group:tree",
num_spawn_by = 1,
})
-- detect mapgen
local mg_name = minetest.get_mapgen_params().mgname