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

View File

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

View File

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