diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2017-02-25 13:47:16 +0000 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2017-02-25 13:47:16 +0000 |
commit | f70cab689471ffa3c9ad16937808f37bf022b8d8 (patch) | |
tree | 3059ca6772842cc0d61946c959a937158be7336f | |
parent | f7b9339dfc61f5f8b92acc031f797f788d901941 (diff) |
tinkered with rat on_spawn function test
-rw-r--r-- | rat.lua | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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({ |