diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2018-03-04 15:45:09 +0000 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2018-03-04 15:45:09 +0000 |
commit | cbac52f407614e1ba99b40f3feec5dcfe35ad0b7 (patch) | |
tree | 7dbb4a6feb4f7dd16ea1db790bcdcb2b91a4049a /kitten.lua | |
parent | f2699613e2d7abcad053577c7f4cc3172000c738 (diff) |
animals spawn near grass now (chance amended to suit)
Diffstat (limited to 'kitten.lua')
-rw-r--r-- | kitten.lua | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -53,12 +53,20 @@ stepheight = 0.6, }) +local spawn_on = "default:dirt_with_grass" + +if minetest.get_modpath("ethereal") then + spawn_on = "ethereal:grove_dirt" +end + + mobs:spawn({ name = "mobs_animal:kitten", - nodes = {"default:dirt_with_grass", "ethereal:grove_dirt"}, + nodes = {spawn_on}, + neighbors = {"group:grass"}, min_light = 12, - chance = 22000, - min_height = 0, + chance = 10000, -- 22000 + min_height = 5, max_height = 200, day_toggle = true, }) |