From 3776506b2fe33920a3f33d8f4441ccc2b6a6a2ab Mon Sep 17 00:00:00 2001
From: TenPlus1 <kinsellaja@yahoo.com>
Date: Sat, 29 Oct 2016 16:45:47 +0100
Subject: using mobs:spawn functions to spawn animals

---
 kitten.lua | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

(limited to 'kitten.lua')

diff --git a/kitten.lua b/kitten.lua
index 499ce77..90a94d9 100644
--- a/kitten.lua
+++ b/kitten.lua
@@ -52,8 +52,15 @@ mobs:register_mob("mobs_animal:kitten", {
 	end
 })
 
-mobs:register_spawn("mobs_animal:kitten",
-	{"default:dirt_with_grass", "ethereal:grove_dirt"}, 20, 12, 22000, 1, 31000, true)
+mobs:spawn({
+	name = "mobs_animal:kitten",
+	nodes = {"default:dirt_with_grass", "ethereal:grove_dirt"},
+	min_light = 12,
+	chance = 22000,
+	min_height = 0,
+	max_height = 31000,
+	day_toggle = true,
+})
 
 mobs:register_egg("mobs_animal:kitten", S("Kitten"), "mobs_kitten_inv.png", 0)
 
-- 
cgit v1.2.3