1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-11-07 02:50:26 +01:00

Merge branch 'Gael-kitten'

This commit is contained in:
LeMagnesium 2015-01-01 21:09:00 +01:00
commit 0b6f635e18
2 changed files with 60 additions and 64 deletions

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

Binary file not shown.