diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2016-10-29 16:45:47 +0100 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2016-10-29 16:45:47 +0100 |
commit | 3776506b2fe33920a3f33d8f4441ccc2b6a6a2ab (patch) | |
tree | 0417360bb7c52ed732732da279f9adabcaefb581 /warthog.lua | |
parent | 2c0b9f53570f07d8ad811d602f4487b23484b5ce (diff) |
using mobs:spawn functions to spawn animals
Diffstat (limited to 'warthog.lua')
-rw-r--r-- | warthog.lua | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/warthog.lua b/warthog.lua index aa62db2..e9cfbb6 100644 --- a/warthog.lua +++ b/warthog.lua @@ -55,8 +55,15 @@ mobs:register_mob("mobs_animal:pumba", { end, }) -mobs:register_spawn("mobs_animal:pumba", - {"ethereal:mushroom_dirt", "default:dirt_with_dry_grass"}, 20, 10, 15000, 1, 31000, true) +mobs:spawn({ + name = "mobs_animal:pumba", + nodes = {"default:dirt_with_dry_grass", "ethereal:mushroom_dirt"}, + min_light = 10, + chance = 15000, + min_height = 0, + max_height = 31000, + day_toggle = true, +}) mobs:register_egg("mobs_animal:pumba", S("Warthog"), "wool_pink.png", 1) |