diff options
Diffstat (limited to 'kitten.lua')
-rw-r--r-- | kitten.lua | 15 |
1 files changed, 12 insertions, 3 deletions
@@ -1,6 +1,7 @@ local S = mobs.intllib + -- Kitten by Jordach / BFD mobs:register_mob("mobs_animal:kitten", { @@ -53,9 +54,16 @@ mobs:register_mob("mobs_animal:kitten", { end }) + +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}, min_light = 12, chance = 22000, min_height = 0, @@ -63,7 +71,8 @@ mobs:spawn({ day_toggle = true, }) + mobs:register_egg("mobs_animal:kitten", S("Kitten"), "mobs_kitten_inv.png", 0) --- compatibility -mobs:alias_mob("mobs:kitten", "mobs_animal:kitten") + +mobs:alias_mob("mobs:kitten", "mobs_animal:kitten") -- compatibility |