1
0
Fork 0

Add ghast shoot/death sound, add many sound TODOs

objects
Wuzzy 2018-09-14 16:27:58 +02:00
parent 7d66d5f2d3
commit 900625b17b
28 changed files with 37 additions and 46 deletions

View File

@ -19,6 +19,7 @@ mobs:register_mob("mobs_mc:agent", {
textures = { textures = {
{"mobs_mc_agent.png"}, {"mobs_mc_agent.png"},
}, },
-- TODO: sounds
visual_size = {x=3, y=3}, visual_size = {x=3, y=3},
walk_velocity = 0.6, walk_velocity = 0.6,
run_velocity = 2, run_velocity = 2,

View File

@ -19,6 +19,7 @@ mobs:register_mob("mobs_mc:bat", {
visual_size = {x=1, y=1}, visual_size = {x=1, y=1},
sounds = { sounds = {
random = "mobs_rat", -- TODO: This sound is supposed to be very high-pitched and scary random = "mobs_rat", -- TODO: This sound is supposed to be very high-pitched and scary
-- TODO: more sounds?
distance = 16, distance = 16,
}, },
walk_velocity = 4.5, walk_velocity = 4.5,

View File

@ -47,8 +47,7 @@ mobs:register_mob("mobs_mc:chicken", {
fall_speed = -2.25, fall_speed = -2.25,
sounds = { sounds = {
random = "mobs_chicken", random = "mobs_chicken",
death = "Chickenhurt1", -- TODO: replace -- TODO: death, damage
damage = "Chickenhurt1", -- TODO: replace
distance = 16, distance = 16,
}, },
animation = { animation = {

View File

@ -34,8 +34,7 @@ local cow_def = {
runaway = true, runaway = true,
sounds = { sounds = {
random = "mobs_mc_cow", random = "mobs_mc_cow",
death = "Cowhurt1", -- TODO: Replace -- TODO: death, damage
damage = "Cowhurt1", -- TODO: Replace
distance = 16, distance = 16,
}, },
animation = { animation = {

View File

@ -54,6 +54,7 @@ mobs:register_mob("mobs_mc:enderdragon", {
walk_velocity = 6, walk_velocity = 6,
run_velocity = 6, run_velocity = 6,
sounds = { sounds = {
-- TODO: more sounds
shoot_attack = "mobs_mc_ender_dragon_shoot", shoot_attack = "mobs_mc_ender_dragon_shoot",
attack = "mobs_mc_ender_dragon_attack", attack = "mobs_mc_ender_dragon_attack",
distance = 60, distance = 60,

View File

@ -180,7 +180,7 @@ mobs:register_mob("mobs_mc:enderman", {
sounds = { sounds = {
war_cry = "mobs_sandmonster", war_cry = "mobs_sandmonster",
death = "green_slime_death", death = "green_slime_death",
damage = "Creeperdeath", -- TODO: damage, random
distance = 16, distance = 16,
}, },
walk_velocity = 0.2, walk_velocity = 0.2,

View File

@ -23,6 +23,8 @@ mobs:register_mob("mobs_mc:endermite", {
makes_footstep_sound = false, makes_footstep_sound = false,
sounds = { sounds = {
random = "mobs_rat", random = "mobs_rat",
distance = 16,
-- TODO: more sounds
}, },
walk_velocity = 1, walk_velocity = 1,
run_velocity = 2, run_velocity = 2,

View File

@ -28,11 +28,13 @@ mobs:register_mob("mobs_mc:ghast", {
}, },
visual_size = {x=12, y=12}, visual_size = {x=12, y=12},
sounds = { sounds = {
shoot = "mobs_fireball", shoot_attack = "mobs_fireball",
death = "zombiedeath", death = "mobs_mc_zombie_death",
damage = "ghast_damage",
attack = "mobs_fireball", attack = "mobs_fireball",
random = "mobs_eerie", random = "mobs_eerie",
distance = 16,
-- TODO: damage
-- TODO: better death
}, },
walk_velocity = 1.6, walk_velocity = 1.6,
run_velocity = 3.2, run_velocity = 3.2,

View File

@ -29,6 +29,7 @@ mobs:register_mob("mobs_mc:guardian", {
visual_size = {x=3, y=3}, visual_size = {x=3, y=3},
sounds = { sounds = {
damage = "mobs_mc_squid_hurt", damage = "mobs_mc_squid_hurt",
-- TODO: more and better sounds
distance = 16, distance = 16,
}, },
animation = { animation = {

View File

@ -29,6 +29,7 @@ mobs:register_mob("mobs_mc:guardian_elder", {
visual_size = {x=7, y=7}, visual_size = {x=7, y=7},
sounds = { sounds = {
damage = "mobs_mc_squid_hurt", damage = "mobs_mc_squid_hurt",
-- TODO: more and better sounds
distance = 16, distance = 16,
}, },
animation = { animation = {

View File

@ -102,6 +102,7 @@ local horse = {
run_end = 40, run_end = 40,
}, },
textures = horse_textures, textures = horse_textures,
-- TODO: sounds
fear_height = 4, fear_height = 4,
fly = false, fly = false,
walk_chance = 60, walk_chance = 60,

View File

@ -27,10 +27,7 @@ mobs:register_mob("mobs_mc:iron_golem", {
}, },
visual_size = {x=3, y=3}, visual_size = {x=3, y=3},
makes_footstep_sound = true, makes_footstep_sound = true,
sounds = { -- TODO: sounds
-- TODO
distance = 16,
},
view_range = 16, view_range = 16,
stepheight = 1.1, stepheight = 1.1,
owner = "", owner = "",

View File

@ -51,6 +51,7 @@ local ocelot = {
fear_height = 4, fear_height = 4,
sounds = { sounds = {
random = "mobs_kitten", random = "mobs_kitten",
-- TODO: more sounds
distance = 16, distance = 16,
}, },
animation = { animation = {

View File

@ -29,6 +29,7 @@ mobs:register_mob("mobs_mc:parrot", {
makes_footstep_sound = true, makes_footstep_sound = true,
walk_velocity = 3, walk_velocity = 3,
run_velocity = 5, run_velocity = 5,
-- TODO: sounds
drops = { drops = {
{name = mobs_mc.items.feather, {name = mobs_mc.items.feather,
chance = 1, chance = 1,

View File

@ -50,10 +50,7 @@ mobs:register_mob("mobs_mc:polar_bear", {
lava_damage = 5, lava_damage = 5,
light_damage = 0, light_damage = 0,
fear_height = 4, fear_height = 4,
sounds = { -- TODO: sounds
random = "Cowhurt1", -- TODO: Replace
distance = 16,
},
animation = { animation = {
speed_normal = 25, speed_run = 50, speed_normal = 25, speed_run = 50,
stand_start = 0, stand_end = 0, stand_start = 0, stand_end = 0,

View File

@ -24,7 +24,7 @@ local rabbit = {
{"mobs_mc_rabbit_black.png"}, {"mobs_mc_rabbit_black.png"},
}, },
visual_size = {x=1.5, y=1.5}, visual_size = {x=1.5, y=1.5},
sounds = {}, -- TODO: sounds: random, damage, death
makes_footstep_sound = false, makes_footstep_sound = false,
walk_velocity = 1, walk_velocity = 1,
run_velocity = 3.7, run_velocity = 3.7,

View File

@ -29,6 +29,7 @@ mobs:register_mob("mobs_mc:shulker", {
visual = "mesh", visual = "mesh",
mesh = "mobs_mc_shulker.b3d", mesh = "mobs_mc_shulker.b3d",
textures = { "mobs_mc_endergolem.png", }, textures = { "mobs_mc_endergolem.png", },
-- TODO: sounds
-- TODO: Make shulker dye-able -- TODO: Make shulker dye-able
visual_size = {x=3, y=3}, visual_size = {x=3, y=3},
walk_chance = 0, walk_chance = 0,

View File

@ -21,7 +21,7 @@ mobs:register_mob("mobs_mc:silverfish", {
}, },
pathfinding = 1, pathfinding = 1,
visual_size = {x=3, y=3}, visual_size = {x=3, y=3},
sounds = {}, -- TODO: sounds
makes_footstep_sound = false, makes_footstep_sound = false,
walk_velocity = 0.6, walk_velocity = 0.6,
run_velocity = 2, run_velocity = 2,

View File

@ -34,6 +34,7 @@ mobs:register_mob("mobs_mc:snowman", {
collisionbox = {-0.35, -0.01, -0.35, 0.35, 1.89, 0.35}, collisionbox = {-0.35, -0.01, -0.35, 0.35, 1.89, 0.35},
visual = "mesh", visual = "mesh",
mesh = "mobs_mc_snowman.b3d", mesh = "mobs_mc_snowman.b3d",
-- TODO: sounds: damage, death
textures = { textures = {
"mobs_mc_snowman.png", --snowman texture "mobs_mc_snowman.png", --snowman texture
"farming_pumpkin_side.png", --top "farming_pumpkin_side.png", --top

View File

@ -37,6 +37,7 @@ local spider = {
sounds = { sounds = {
random = "mobs_spider", random = "mobs_spider",
attack = "mobs_spider", attack = "mobs_spider",
-- TODO: sounds: walk, death
distance = 16, distance = 16,
}, },
walk_velocity = 3.9, walk_velocity = 3.9,

View File

@ -24,6 +24,8 @@ mobs:register_mob("mobs_mc:squid", {
}, },
sounds = { sounds = {
damage = "mobs_mc_squid_hurt", damage = "mobs_mc_squid_hurt",
death = "mobs_mc_squid_hurt",
-- TODO: sounds: random, damage, death
distance = 16, distance = 16,
}, },
animation = { animation = {
@ -56,6 +58,8 @@ mobs:register_mob("mobs_mc:squid", {
blood_texture = "mobs_mc_squid_blood.png", blood_texture = "mobs_mc_squid_blood.png",
}) })
-- TODO: Behaviour: squirt
-- Spawn near the water surface -- Spawn near the water surface
local water = mobs_mc.spawn_height.water local water = mobs_mc.spawn_height.water

View File

@ -38,6 +38,7 @@ mobs:register_mob("mobs_mc:vex", {
sounds = { sounds = {
random = "mobs_rat", random = "mobs_rat",
death = "green_slime_death", death = "green_slime_death",
-- TODO: Sounds: random (better), death (better), damage
distance = 16, distance = 16,
}, },
animation = { animation = {
@ -53,6 +54,7 @@ mobs:register_mob("mobs_mc:vex", {
}, },
do_custom = function(self, dtime) do_custom = function(self, dtime)
-- Glow red while attacking -- Glow red while attacking
-- TODO: Charge sound
if self.state == "attack" then if self.state == "attack" then
if self.base_texture[2] ~= "mobs_mc_vex_charging.png" then if self.base_texture[2] ~= "mobs_mc_vex_charging.png" then
self.base_texture[2] = "mobs_mc_vex_charging.png" self.base_texture[2] = "mobs_mc_vex_charging.png"

View File

@ -929,12 +929,7 @@ mobs:register_mob("mobs_mc:villager", {
walk_velocity = 1.2, walk_velocity = 1.2,
run_velocity = 2.4, run_velocity = 2.4,
drops = {}, drops = {},
sounds = { -- TODO: sounds
random = "mobs_mc_villager_noise",
death = "mobs_mc_villager_death",
damage = "mobs_mc_villager_damage",
distance = 16,
},
animation = { animation = {
stand_speed = 25, stand_speed = 25,
stand_start = 40, stand_start = 40,

View File

@ -61,13 +61,7 @@ mobs:register_mob("mobs_mc:evoker", {
min = 1, min = 1,
max = 1,}, max = 1,},
}, },
sounds = { -- TODO: sounds
random = "Villagerdead",
death = "Villagerdead",
damage = "mese_dragon",
attack = "zombiedeath",
distance = 16,
},
animation = { animation = {
stand_speed = 25, stand_speed = 25,
stand_start = 40, stand_start = 40,

View File

@ -47,11 +47,7 @@ mobs:register_mob("mobs_mc:vindicator", {
min = 1, min = 1,
max = 1,}, max = 1,},
}, },
sounds = { -- TODO: sounds
random = "Villager1",
death = "Villagerdead",
damage = "Villagerhurt1",
},
animation = { animation = {
stand_speed = 25, stand_speed = 25,
stand_start = 40, stand_start = 40,

View File

@ -50,12 +50,7 @@ mobs:register_mob("mobs_mc:witch", {
{name = mobs_mc.items.sugar, chance = 8, min = 0, max = 2,}, {name = mobs_mc.items.sugar, chance = 8, min = 0, max = 2,},
{name = mobs_mc.items.stick, chance = 4, min = 0, max = 2,}, {name = mobs_mc.items.stick, chance = 4, min = 0, max = 2,},
}, },
sounds = { -- TODO: sounds
random = "Villager1",
death = "Villagerdead",
damage = "Villagerhurt1",
distance = 16,
},
animation = { animation = {
speed_normal = 30, speed_normal = 30,
speed_run = 60, speed_run = 60,

View File

@ -37,6 +37,7 @@ mobs:register_mob("mobs_mc:wither", {
sounds = { sounds = {
shoot_attack = "mobs_mc_ender_dragon_shoot", shoot_attack = "mobs_mc_ender_dragon_shoot",
attack = "mobs_mc_ender_dragon_attack", attack = "mobs_mc_ender_dragon_attack",
-- TODO: sounds
distance = 60, distance = 60,
}, },
jump = true, jump = true,

View File

@ -35,10 +35,7 @@ local wolf = {
}, },
visual_size = {x=3, y=3}, visual_size = {x=3, y=3},
makes_footstep_sound = true, makes_footstep_sound = true,
sounds = { -- TODO: sounds
war_cry = "mobs_wolf_attack",
distance = 16,
},
pathfinding = 1, pathfinding = 1,
floats = 1, floats = 1,
view_range = 16, view_range = 16,