From 1bfa8798ae5d5a8524288b67a4f2eab90121054c Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 15 Mar 2017 05:22:59 +0100 Subject: [PATCH] Spawn pumpkins on map --- mods/MAPGEN/mcl_mapgen_core/init.lua | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/mods/MAPGEN/mcl_mapgen_core/init.lua b/mods/MAPGEN/mcl_mapgen_core/init.lua index 4c99e38f8f..508cbc100d 100644 --- a/mods/MAPGEN/mcl_mapgen_core/init.lua +++ b/mods/MAPGEN/mcl_mapgen_core/init.lua @@ -721,6 +721,24 @@ local function register_mgv6_decorations() register_mgv6_flower("oxeye_daisy", 3490) register_mgv6_flower("poppy", 9439) + -- Pumpkin + minetest.register_decoration({ + deco_type = "simple", + place_on = {"mcl_core:dirt_with_grass"}, + sidelen = 666, + noise_params = { + offset = -0.005, + scale = 0.00666, + spread = {x = 250, y = 250, z = 250}, + seed = 666, + octaves = 6, + persist = 0.666 + }, + y_min = 3, + y_max = 29, + decoration = "mcl_farming:pumpkin_face", + }) + end minetest.register_on_generated(function(minp, maxp, seed)