summaryrefslogtreecommitdiff
path: root/mapgen.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2018-02-08 11:13:25 +0000
committerTenPlus1 <kinsellaja@yahoo.com>2018-02-08 11:13:25 +0000
commit1e7214a6abc9a04bef78f028a76dc5d1d5bd7f28 (patch)
tree203f356f65bf8b7a90b5c11043b8c6c3cd065fce /mapgen.lua
parent0843bd0696213358607ac44e886c5e13ccbffebb (diff)
Added Pineapple and Pineapple Juice
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 2989d16..ffbfb67 100644
--- a/mapgen.lua
+++ b/mapgen.lua
@@ -117,3 +117,22 @@ minetest.register_decoration({
num_spawn_by = 1,
})
end
+
+if farming.pineapple then
+minetest.register_decoration({
+ deco_type = "simple",
+ place_on = {"default:dirt_with_dry_grass"},
+ sidelen = 16,
+ noise_params = {
+ offset = 0,
+ scale = farming.rarety, -- 0.06,
+ spread = {x = 100, y = 100, z = 100},
+ seed = 917,
+ octaves = 3,
+ persist = 0.6
+ },
+ y_min = 18,
+ y_max = 30,
+ decoration = {"farming:pineapple_8"},
+})
+end