summaryrefslogtreecommitdiff
path: root/mapgen.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2017-04-08 11:00:12 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2017-04-08 11:00:12 +0100
commit30c87bf910385fe8473170ad867fd5306ba8c051 (patch)
tree3b3b5b5e451b502ed941de4c4ec0575c5bb58d1a /mapgen.lua
parent787c8d1ffea5b17e3dd680ac56dace3879b6b98e (diff)
Added hemp, upped to ver 1.24
Diffstat (limited to 'mapgen.lua')
-rw-r--r--mapgen.lua19
1 files changed, 19 insertions, 0 deletions
diff --git a/mapgen.lua b/mapgen.lua
index 36d4792..59a485e 100644
--- a/mapgen.lua
+++ b/mapgen.lua
@@ -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