Skip to content
Snippets Groups Projects
Commit f70cab68 authored by TenPlus1's avatar TenPlus1
Browse files

tinkered with rat on_spawn function test

parent f7b9339d
No related branches found
No related tags found
No related merge requests found
......@@ -60,7 +60,10 @@ mobs:register_mob("mobs_animal:rat", {
local function rat_spawn(self, pos)
print (self:get_luaentity().name, pos.x, pos.y, pos.z)
self = self:get_luaentity()
print (self.name, pos.x, pos.y, pos.z)
self.hp_max = 100
self.health = 100
end
mobs:spawn({
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment