1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-12-24 17:50:37 +01:00

Fixed some problems about kittens

This commit is contained in:
Gael-de-Sailly 2014-12-30 21:15:24 +01:00
parent 1eed9f7493
commit b05bcfaba7

View File

@ -54,11 +54,9 @@ local kitten_nodes = {
local function register_kitten(image, name)
mobs:register_spawn("mobs:kitten", {"default:dirt_with_grass"}, 15, 0, 2750, 10, 31000)
mobs:register_spawn("mobs:kitten_"..name, {"default:dirt_with_grass"}, 15, 0, 9000, 10, 31000)
mobs:register_mob("mobs:kitten_"..name, {
mobs:register_mob("mobs:kitten", {
type = "animal",
hp_min = 5,
hp_max = 10,
@ -66,7 +64,13 @@ local function register_kitten(image, name)
visual = "mesh",
visual_size = {x=0.5, y=0.5},
mesh = "mobs_kitten.b3d",
textures = {image},
available_textures = {
total = 4,
texture_1 = {"mobs_kitten_striped.png"},
texture_2 = {"mobs_kitten_splotchy.png"},
texture_3 = {"mobs_kitten_ginger.png"},
texture_4 = {"mobs_kitten_sandy.png"},
},
makes_footstep_sound = false,
view_range = 16,
walk_velocity = 0.6,
@ -113,13 +117,5 @@ local function register_kitten(image, name)
end
return
end
end
})
register_kitten("mobs_kitten_striped.png", "striped")
register_kitten("mobs_kitten_splotchy.png", "splotchy")
register_kitten("mobs_kitten_ginger.png", "ginger")
register_kitten("mobs_kitten_sandy.png", "sandy")
end