From 8b09cccfd4b2ac53930cdae38649506be0b5574b Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Sat, 5 Dec 2020 14:48:58 +0100 Subject: [PATCH] Disable footstep sound of flying/swimming mobs --- mods/ENTITIES/mobs_mc/bat.lua | 1 + mods/ENTITIES/mobs_mc/blaze.lua | 1 + mods/ENTITIES/mobs_mc/ender_dragon.lua | 1 + mods/ENTITIES/mobs_mc/ghast.lua | 1 + mods/ENTITIES/mobs_mc/guardian.lua | 1 + mods/ENTITIES/mobs_mc/guardian_elder.lua | 1 + mods/ENTITIES/mobs_mc/parrot.lua | 2 +- mods/ENTITIES/mobs_mc/vex.lua | 1 + mods/ENTITIES/mobs_mc/wither.lua | 1 + 9 files changed, 9 insertions(+), 1 deletion(-) diff --git a/mods/ENTITIES/mobs_mc/bat.lua b/mods/ENTITIES/mobs_mc/bat.lua index be29cb04bd..24d802fe28 100644 --- a/mods/ENTITIES/mobs_mc/bat.lua +++ b/mods/ENTITIES/mobs_mc/bat.lua @@ -45,6 +45,7 @@ mobs:register_mob("mobs_mc:bat", { jump = false, fly = true, + makes_footstep_sound = false, }) diff --git a/mods/ENTITIES/mobs_mc/blaze.lua b/mods/ENTITIES/mobs_mc/blaze.lua index cbba537ddb..b253f97a52 100644 --- a/mods/ENTITIES/mobs_mc/blaze.lua +++ b/mods/ENTITIES/mobs_mc/blaze.lua @@ -68,6 +68,7 @@ mobs:register_mob("mobs_mc:blaze", { jump = true, jump_height = 4, fly = true, + makes_footstep_sound = false, fear_height = 0, glow = 14, }) diff --git a/mods/ENTITIES/mobs_mc/ender_dragon.lua b/mods/ENTITIES/mobs_mc/ender_dragon.lua index 71627aadad..11d250151a 100644 --- a/mods/ENTITIES/mobs_mc/ender_dragon.lua +++ b/mods/ENTITIES/mobs_mc/ender_dragon.lua @@ -34,6 +34,7 @@ mobs:register_mob("mobs_mc:enderdragon", { jump = true, jump_height = 14, fly = true, + makes_footstep_sound = false, dogshoot_switch = 1, dogshoot_count_max =5, dogshoot_count2_max = 5, diff --git a/mods/ENTITIES/mobs_mc/ghast.lua b/mods/ENTITIES/mobs_mc/ghast.lua index 2259eb5627..381a8baaeb 100644 --- a/mods/ENTITIES/mobs_mc/ghast.lua +++ b/mods/ENTITIES/mobs_mc/ghast.lua @@ -58,6 +58,7 @@ mobs:register_mob("mobs_mc:ghast", { jump_height = 4, floats=1, fly = true, + makes_footstep_sound = false, instant_death = true, }) diff --git a/mods/ENTITIES/mobs_mc/guardian.lua b/mods/ENTITIES/mobs_mc/guardian.lua index b5c736c277..c641ed57a9 100644 --- a/mods/ENTITIES/mobs_mc/guardian.lua +++ b/mods/ENTITIES/mobs_mc/guardian.lua @@ -76,6 +76,7 @@ mobs:register_mob("mobs_mc:guardian", { max = 1,}, }, fly = true, + makes_footstep_sound = false, fly_in = { mobs_mc.items.water_source, mobs_mc.items.river_water_source }, jump = false, view_range = 16, diff --git a/mods/ENTITIES/mobs_mc/guardian_elder.lua b/mods/ENTITIES/mobs_mc/guardian_elder.lua index 84f9ddb834..14396face2 100644 --- a/mods/ENTITIES/mobs_mc/guardian_elder.lua +++ b/mods/ENTITIES/mobs_mc/guardian_elder.lua @@ -83,6 +83,7 @@ mobs:register_mob("mobs_mc:guardian_elder", { max = 1,}, }, fly = true, + makes_footstep_sound = false, fly_in = { mobs_mc.items.water_source, mobs_mc.items.river_water_source }, jump = false, view_range = 16, diff --git a/mods/ENTITIES/mobs_mc/parrot.lua b/mods/ENTITIES/mobs_mc/parrot.lua index 8f96b24651..7dce763698 100644 --- a/mods/ENTITIES/mobs_mc/parrot.lua +++ b/mods/ENTITIES/mobs_mc/parrot.lua @@ -22,7 +22,6 @@ mobs:register_mob("mobs_mc:parrot", { mesh = "mobs_mc_parrot.b3d", textures = {{"mobs_mc_parrot_blue.png"},{"mobs_mc_parrot_green.png"},{"mobs_mc_parrot_grey.png"},{"mobs_mc_parrot_red_blue.png"},{"mobs_mc_parrot_yellow_blue.png"}}, visual_size = {x=3, y=3}, - makes_footstep_sound = true, walk_velocity = 3, run_velocity = 5, -- TODO: sounds @@ -54,6 +53,7 @@ mobs:register_mob("mobs_mc:parrot", { floats = 1, physical = true, fly = true, + makes_footstep_sound = false, fear_height = 0, view_range = 16, follow = mobs_mc.follow.parrot, diff --git a/mods/ENTITIES/mobs_mc/vex.lua b/mods/ENTITIES/mobs_mc/vex.lua index 4c648577d4..4c7d413b72 100644 --- a/mods/ENTITIES/mobs_mc/vex.lua +++ b/mods/ENTITIES/mobs_mc/vex.lua @@ -86,6 +86,7 @@ mobs:register_mob("mobs_mc:vex", { end end, fly = true, + makes_footstep_sound = false, }) diff --git a/mods/ENTITIES/mobs_mc/wither.lua b/mods/ENTITIES/mobs_mc/wither.lua index 6af50efff0..b3b79d6e3e 100644 --- a/mods/ENTITIES/mobs_mc/wither.lua +++ b/mods/ENTITIES/mobs_mc/wither.lua @@ -37,6 +37,7 @@ mobs:register_mob("mobs_mc:wither", { jump = true, jump_height = 10, fly = true, + makes_footstep_sound = false, dogshoot_switch = 1, dogshoot_count_max =1, attack_animals = true,