forked from mtcontrib/mobs_animal
updated rat do_custom example
This commit is contained in:
parent
7b106ab859
commit
23ffc0d0da
2
rat.lua
2
rat.lua
@ -41,6 +41,8 @@ mobs:register_mob("mobs_animal:rat", {
|
|||||||
local pos = self.object:getpos()
|
local pos = self.object:getpos()
|
||||||
|
|
||||||
print("rat pos", pos.x, pos.y, pos.z, dtime)
|
print("rat pos", pos.x, pos.y, pos.z, dtime)
|
||||||
|
|
||||||
|
return false -- return but skip doing rest of API
|
||||||
end,
|
end,
|
||||||
]]
|
]]
|
||||||
--[[
|
--[[
|
||||||
|
Loading…
Reference in New Issue
Block a user