diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2018-04-26 14:31:29 +0100 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2018-04-26 14:31:29 +0100 |
commit | 8f5dac38dca20da23198606f0895f05c03ff03cf (patch) | |
tree | 76427061d7d86818440a904e7b528f7dca675057 | |
parent | 429683f017259859979b4c0f6a13d9f31fd7b918 (diff) |
pumba spawns on grass for v6, dry grass for v7 or mushroom dirt for ethereal
-rw-r--r-- | warthog.lua | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/warthog.lua b/warthog.lua index 7217f8a..bea4d1a 100644 --- a/warthog.lua +++ b/warthog.lua @@ -57,21 +57,25 @@ stepheight = 0.6, end, }) - -local spawn_on = "default:dirt_with_grass" +local spawn_on = {"default:dirt_with_grass"} local spawn_by = {"group:grass"} +if minetest.get_mapgen_setting("mg_name") ~= "v6" then + spawn_on = {"default:dirt_with_dry_grass"} + spawn_by = {"group:dry_grass"} +end + if minetest.get_modpath("ethereal") then - spawn_on = "ethereal:mushroom_dirt" + spawn_on = {"ethereal:mushroom_dirt"} spawn_by = {"flowers:mushroom_brown", "flowers:mushroom_brown"} end mobs:spawn({ name = "mobs_animal:pumba", - nodes = {spawn_on}, + nodes = spawn_on, neighbors = spawn_by, min_light = 10, - chance = 5000, -- 15000 + chance = 6000, -- 15000 min_height = 0, max_height = 200, day_toggle = true, |