From 26a5059cc0f57dfef69191ac63c813ed6e803ea4 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Fri, 14 Sep 2018 16:05:47 +0200 Subject: [PATCH] Add bow shooting sound when mob fires an arrow --- mods/ENTITIES/mobs_mc/skeleton+stray.lua | 1 + mods/ENTITIES/mobs_mc/villager_illusioner.lua | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/mods/ENTITIES/mobs_mc/skeleton+stray.lua b/mods/ENTITIES/mobs_mc/skeleton+stray.lua index 65b6fe49b3..a10fef5ecf 100644 --- a/mods/ENTITIES/mobs_mc/skeleton+stray.lua +++ b/mods/ENTITIES/mobs_mc/skeleton+stray.lua @@ -35,6 +35,7 @@ local skeleton = { random = "mobs_mc_skeleton_random", death = "mobs_mc_skeleton_death", damage = "mobs_mc_skeleton_hurt", + shoot_attack = "mcl_bows_bow_shoot", distance = 16, }, walk_velocity = 1.2, diff --git a/mods/ENTITIES/mobs_mc/villager_illusioner.lua b/mods/ENTITIES/mobs_mc/villager_illusioner.lua index 7d50ecd206..e6d1b2c919 100644 --- a/mods/ENTITIES/mobs_mc/villager_illusioner.lua +++ b/mods/ENTITIES/mobs_mc/villager_illusioner.lua @@ -23,6 +23,11 @@ mobs:register_mob("mobs_mc:illusioner", { "mobs_mc_illusionist.png", --hat "mcl_bows_bow.png", }, }, + sounds = { + -- TODO: more sounds + shoot_attack = "mcl_bows_bow_shoot", + distance = 16, + }, visual_size = {x=3, y=3}, walk_velocity = 0.6, run_velocity = 2,