mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-25 02:00:37 +01:00
Merge branch 'Gael-kitten'
This commit is contained in:
commit
0b6f635e18
@ -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", {
|
||||||
|
|
||||||
mobs:register_mob("mobs:kitten_"..name, {
|
|
||||||
type = "animal",
|
type = "animal",
|
||||||
hp_min = 5,
|
hp_min = 5,
|
||||||
hp_max = 10,
|
hp_max = 10,
|
||||||
@ -66,7 +64,13 @@ local function register_kitten(image, name)
|
|||||||
visual = "mesh",
|
visual = "mesh",
|
||||||
visual_size = {x=0.5, y=0.5},
|
visual_size = {x=0.5, y=0.5},
|
||||||
mesh = "mobs_kitten.b3d",
|
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,
|
makes_footstep_sound = false,
|
||||||
view_range = 16,
|
view_range = 16,
|
||||||
walk_velocity = 0.6,
|
walk_velocity = 0.6,
|
||||||
@ -113,13 +117,5 @@ local function register_kitten(image, name)
|
|||||||
end
|
end
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
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.
Loading…
Reference in New Issue
Block a user