1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-09-03 13:25:31 +02:00

update mobs, fix tame and tidy code

This commit is contained in:
2015-09-22 00:01:24 +02:00
parent 428127f43d
commit a038ed0128
9 changed files with 14 additions and 14 deletions

View File

@ -47,9 +47,9 @@ mobs:register_mob("mobs:kitten", {
view_range = 10,
-- feed with raw fish to tame or right click to pick up
on_rightclick = function(self, clicker)
mobs:feed_tame(self, clicker, 4, true)
mobs:feed_tame(self, clicker, 4, true, true)
mobs:capture_mob(self, clicker, 50, 50, 90, false, nil)
end
})
mobs:spawn_specific("mobs:kitten", {"default:dirt_with_grass"}, {"air"}, 0, 20, 30, 10000, 1, -31000, 31000, true)
mobs:register_egg("mobs:kitten", "Kitten", "mobs_kitten_inv.png", 0)
mobs:register_egg("mobs:kitten", "Kitten", "mobs_kitten_inv.png", 0)