mirror of
https://codeberg.org/tenplus1/mobs_animal.git
synced 2024-12-22 17:00:26 +01:00
tinkered with rat on_spawn function test
This commit is contained in:
parent
f7b9339dfc
commit
f70cab6894
5
rat.lua
5
rat.lua
@ -60,7 +60,10 @@ mobs:register_mob("mobs_animal:rat", {
|
|||||||
|
|
||||||
|
|
||||||
local function rat_spawn(self, pos)
|
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
|
end
|
||||||
|
|
||||||
mobs:spawn({
|
mobs:spawn({
|
||||||
|
Loading…
Reference in New Issue
Block a user