summaryrefslogtreecommitdiff
path: root/sheep.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 /sheep.lua
parent2c0b9f53570f07d8ad811d602f4487b23484b5ce (diff)
using mobs:spawn functions to spawn animals
Diffstat (limited to 'sheep.lua')
-rw-r--r--sheep.lua12
1 files changed, 9 insertions, 3 deletions
diff --git a/sheep.lua b/sheep.lua
index 37b9157..465321c 100644
--- a/sheep.lua
+++ b/sheep.lua
@@ -177,9 +177,15 @@ for _, col in pairs(all_colours) do
end
-mobs:register_spawn("mobs_animal:sheep_white",
- {"default:dirt_with_grass", "ethereal:green_dirt"}, 20, 10, 15000, 1, 31000, true)
-
+mobs:spawn({
+ name = "mobs_animal:sheep_white",
+ nodes = {"default:dirt_with_grass", "ethereal:green_dirt"},
+ min_light = 10,
+ chance = 15000,
+ min_height = 0,
+ max_height = 31000,
+ day_toggle = true,
+})
-- compatibility
mobs:alias_mob("mobs:sheep", "mobs_animal:sheep_white")