trying to figure out why mob footsteps always sound nearby

This commit is contained in:
kaadmy 2015-09-05 18:38:44 -07:00
parent 7b6e329eee
commit 14adf84b63
3 changed files with 50 additions and 46 deletions

View File

@ -2,51 +2,54 @@
-- Warthog(Boar) by KrupnoPavel
-- Changed to Boar and tweaked by Kaadmy
mobs:register_mob("mobs:boar", {
type = "animal",
passive = false,
attack_type = "dogfight",
damage = 2,
hp_min = 15,
hp_max = 20,
armor = 200,
collisionbox = {-0.4, -1, -0.4, 0.4, 0.1, 0.4},
visual = "mesh",
mesh = "mobs_boar.x",
textures = {
{"mobs_boar.png"},
},
makes_footstep_sound = true,
sounds = {
random = "mobs_boar",
attack = "mobs_boar_angry",
},
walk_velocity = 2,
run_velocity = 3,
jump = true,
follow = "default:apple",
view_range = 10,
drops = {
{name = "mobs:pork_raw",
chance = 1, min = 1, max = 4},
},
water_damage = 1,
lava_damage = 5,
light_damage = 0,
animation = {
speed_normal = 20,
stand_start = 0,
stand_end = 60,
walk_start = 61,
walk_end = 80,
punch_start = 90,
punch_end = 110,
},
on_rightclick = function(self, clicker)
mobs:feed_tame(self, clicker, 8, true)
mobs:capture_mob(self, clicker, 0, 5, 40, false, nil)
end,
})
mobs:register_mob(
"mobs:boar",
{
type = "animal",
passive = false,
attack_type = "dogfight",
damage = 2,
hp_min = 15,
hp_max = 20,
armor = 200,
collisionbox = {-0.4, -1, -0.4, 0.4, 0.1, 0.4},
visual = "mesh",
mesh = "mobs_boar.x",
textures = {
{"mobs_boar.png"},
},
makes_footstep_sound = true,
sounds = {
random = "mobs_boar",
attack = "mobs_boar_angry",
distance = 16,
},
walk_velocity = 2,
run_velocity = 3,
jump = true,
follow = "default:apple",
view_range = 10,
drops = {
{name = "mobs:pork_raw",
chance = 1, min = 1, max = 4},
},
water_damage = 1,
lava_damage = 5,
light_damage = 0,
animation = {
speed_normal = 20,
stand_start = 0,
stand_end = 60,
walk_start = 61,
walk_end = 80,
punch_start = 90,
punch_end = 110,
},
on_rightclick = function(self, clicker)
mobs:feed_tame(self, clicker, 8, true)
mobs:capture_mob(self, clicker, 0, 5, 40, false, nil)
end,
})
mobs:register_spawn("mobs:boar", {"default:dirt_with_grass"}, 20, 10, 15000, 1, 31000)
mobs:register_egg("mobs:boar", "Boar", "mobs_boar_inventory.png")

View File

@ -6,7 +6,6 @@ mobs:register_mob(
type = "monster",
passive = false,
attack_type = "explode",
damage = 2,
hp_min = 10,
hp_max = 15,
armor = 200,
@ -20,6 +19,7 @@ mobs:register_mob(
sounds = {
random = "mobs_mineturtle",
explode= "tnt_explode",
distance = 16,
},
walk_velocity = 2,
run_velocity = 4,

View File

@ -20,6 +20,7 @@ mobs:register_mob(
makes_footstep_sound = true,
sounds = {
random = "mobs_sheep",
distance = 16,
},
walk_velocity = 1,
walk_chance = 150,