1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-07-07 02:20:21 +02:00

Mobd update second part

This commit is contained in:
Ombridride
2015-07-16 00:15:56 +02:00
parent c93567ef87
commit 744ccb7bee
23 changed files with 627 additions and 288 deletions

View File

@ -12,6 +12,7 @@ mobs:register_mob("mobs:chicken", {
collisionbox = {-0.3, -0.75, -0.3, 0.3, 0.1, 0.3},
visual = "mesh",
mesh = "mobs_chicken.x",
-- seems a lot of textures but this fixes the problem with the model
textures = {
{"mobs_chicken.png", "mobs_chicken.png", "mobs_chicken.png", "mobs_chicken.png",
"mobs_chicken.png", "mobs_chicken.png", "mobs_chicken.png", "mobs_chicken.png", "mobs_chicken.png"},
@ -84,7 +85,8 @@ mobs:register_mob("mobs:chicken", {
self.owner = name
end
minetest.sound_play("mobs_chicken", {
object = self.object,gain = 1.0,
object = self.object,
gain = 1.0,
max_hear_distance = 15,
loop = false,
})
@ -155,4 +157,4 @@ minetest.register_craft({
type = "cooking",
recipe = "mobs:chicken_raw",
output = "mobs:chicken_cooked",
})
})