summaryrefslogtreecommitdiff
path: root/rat.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 /rat.lua
parent2c0b9f53570f07d8ad811d602f4487b23484b5ce (diff)
using mobs:spawn functions to spawn animals
Diffstat (limited to 'rat.lua')
-rw-r--r--rat.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/rat.lua b/rat.lua
index 9f4e1ef..8322cb2 100644
--- a/rat.lua
+++ b/rat.lua
@@ -57,8 +57,6 @@ mobs:register_mob("mobs_animal:rat", {
]]
})
---mobs:register_spawn("mobs_animal:rat", {"default:stone"}, 20, 5, 15000, 2, 0)
-
local function rat_spawn(self, pos)
print (self:get_luaentity().name, pos.x, pos.y, pos.z)
end
@@ -66,6 +64,8 @@ end
mobs:spawn({
name = "mobs_animal:rat",
nodes = {"default:stone"},
+ min_light = 3,
+ active_object_count = 2,
max_height = 0,
-- on_spawn = rat_spawn,
})