summaryrefslogtreecommitdiff
path: root/bunny.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2016-10-29 16:45:47 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2016-10-29 16:45:47 +0100
commit3776506b2fe33920a3f33d8f4441ccc2b6a6a2ab (patch)
tree0417360bb7c52ed732732da279f9adabcaefb581 /bunny.lua
parent2c0b9f53570f07d8ad811d602f4487b23484b5ce (diff)
using mobs:spawn functions to spawn animals
Diffstat (limited to 'bunny.lua')
-rw-r--r--bunny.lua10
1 files changed, 8 insertions, 2 deletions
diff --git a/bunny.lua b/bunny.lua
index ee8f6e9..0481991 100644
--- a/bunny.lua
+++ b/bunny.lua
@@ -80,8 +80,14 @@ mobs:register_mob("mobs_animal:bunny", {
damage = 5,
})
-mobs:register_spawn("mobs_animal:bunny",
- {"default:dirt_with_grass", "ethereal:prairie_dirt"}, 20, 10, 15000, 1, 31000, true)
+mobs:spawn({
+ name = "mobs_animal:bunny",
+ nodes = {"default:dirt_with_grass", "ethereal:prairie_dirt"},
+ min_light = 10,
+ chance = 15000,
+ min_height = 0,
+ day_toggle = true,
+})
mobs:register_egg("mobs_animal:bunny", S("Bunny"), "mobs_bunny_inv.png", 0)