diff --git a/README.txt b/README.txt index c868758..a88faac 100644 --- a/README.txt +++ b/README.txt @@ -25,7 +25,8 @@ This mod contains the following additions: Changelog: -0.7 - mob.protected switch added to api.lua, when set to 1 mobs no longer spawn in protected areas, also bug fixes +0.8 - Added sounds to monster mobs (thanks Cyberpangolin for the sfx) and also chicken sound +0.7 - mobs.protected switch added to api.lua, when set to 1 mobs no longer spawn in protected areas, also bug fixes 0.6 - Api now supports multi-textured mobs, e.g oerkki, dungeon master, rats and chickens have random skins when spawning (sheep fix TODO), also new Honey block 0.5 - Mobs now float in water, die from falling, and some code improvements 0.4 - Dungeon Masters and Mese Monsters have much better aim due to shoot_offset, also they can both shoot through nodes that aren't walkable (flowers, grass etc) plus new sheep sound :) diff --git a/bee.lua b/bee.lua index 6336fd6..330ffb8 100644 --- a/bee.lua +++ b/bee.lua @@ -34,7 +34,9 @@ mobs:register_mob("mobs:bee", { walk_start = 35, walk_end = 65, }, - + sounds = { + random = "mobs_bee", + }, on_rightclick = function(self, clicker) if clicker:is_player() and clicker:get_inventory() then clicker:get_inventory():add_item("main", "mobs:bee") diff --git a/chicken.lua b/chicken.lua index 0fb4dba..3e627cc 100644 --- a/chicken.lua +++ b/chicken.lua @@ -47,6 +47,9 @@ mobs:register_mob("mobs:chicken", { self.object:remove() end end, + sounds = { + random = "mobs_chicken", + }, jump = true, step = 1, blood_texture = "mobs_blood.png", diff --git a/dirtmonster.lua b/dirtmonster.lua index 8d4ac27..729374a 100644 --- a/dirtmonster.lua +++ b/dirtmonster.lua @@ -43,6 +43,9 @@ mobs:register_mob("mobs:dirt_monster", { punch_start = 40, punch_end = 63, }, + sounds = { + random = "mobs_dirtmonster", + }, jump = true, step = 0.5, blood_texture = "default_dirt.png", diff --git a/dungeonmaster.lua b/dungeonmaster.lua index 28865df..c45202e 100644 --- a/dungeonmaster.lua +++ b/dungeonmaster.lua @@ -61,6 +61,9 @@ mobs:register_mob("mobs:dungeon_master", { speed_normal = 15, speed_run = 15, }, + sounds = { + random = "mobs_dungeonmaster", + }, jump = true, step = 0.5, shoot_offset = 0, diff --git a/lava_flan.lua b/lava_flan.lua index 1ff922a..1f25bdb 100644 --- a/lava_flan.lua +++ b/lava_flan.lua @@ -53,6 +53,9 @@ mobs:register_mob("mobs:lava_flan", { punch_start = 20, punch_end = 28, }, + sounds = { + random = "mobs_lavaflan", + }, jump = true, step = 0.5, blood_texture = "fire_basic_flame.png", diff --git a/mese_monster.lua b/mese_monster.lua index 056a4af..75809ff 100644 --- a/mese_monster.lua +++ b/mese_monster.lua @@ -61,6 +61,9 @@ mobs:register_mob("mobs:mese_monster", { punch_start = 15, -- 40 punch_end = 38, -- 63 }, + sounds = { + random = "mobs_mesemonster", + }, jump = true, step = 0.5, shoot_offset = 2, diff --git a/oerkki.lua b/oerkki.lua index 9b036fc..55f6069 100644 --- a/oerkki.lua +++ b/oerkki.lua @@ -45,6 +45,9 @@ mobs:register_mob("mobs:oerkki", { speed_normal = 15, speed_run = 15, }, + sounds = { + random = "mobs_oerkki", + }, jump = true, step = 0.5, blood_texture = "mobs_blood.png", diff --git a/rat.lua b/rat.lua index 2c5d4f6..622c0bd 100644 --- a/rat.lua +++ b/rat.lua @@ -25,6 +25,9 @@ mobs:register_mob("mobs:rat", { jump = true, step = 1, passive = true, + sounds = { + random = "mobs_rat", + }, on_rightclick = function(self, clicker) if clicker:is_player() and clicker:get_inventory() then diff --git a/sandmonster.lua b/sandmonster.lua index e1feb95..d54924a 100644 --- a/sandmonster.lua +++ b/sandmonster.lua @@ -44,6 +44,9 @@ mobs:register_mob("mobs:sand_monster", { punch_start = 74, punch_end = 105, }, + sounds = { + random = "mobs_sandmonster", + }, jump = true, step = 0.5, blood_texture = "mobs_blood.png", diff --git a/sounds/mobs_bee.ogg b/sounds/mobs_bee.ogg new file mode 100644 index 0000000..5317518 Binary files /dev/null and b/sounds/mobs_bee.ogg differ diff --git a/sounds/mobs_chicken.ogg b/sounds/mobs_chicken.ogg new file mode 100644 index 0000000..be64c94 Binary files /dev/null and b/sounds/mobs_chicken.ogg differ diff --git a/sounds/mobs_dirtmonster.ogg b/sounds/mobs_dirtmonster.ogg new file mode 100644 index 0000000..87fdab0 Binary files /dev/null and b/sounds/mobs_dirtmonster.ogg differ diff --git a/sounds/mobs_dungeonmaster.ogg b/sounds/mobs_dungeonmaster.ogg new file mode 100644 index 0000000..4ac5f4a Binary files /dev/null and b/sounds/mobs_dungeonmaster.ogg differ diff --git a/sounds/mobs_lavaflan.ogg b/sounds/mobs_lavaflan.ogg new file mode 100644 index 0000000..08c8f1d Binary files /dev/null and b/sounds/mobs_lavaflan.ogg differ diff --git a/sounds/mobs_mesemonster.ogg b/sounds/mobs_mesemonster.ogg new file mode 100644 index 0000000..c354dfd Binary files /dev/null and b/sounds/mobs_mesemonster.ogg differ diff --git a/sounds/mobs_oerkki.ogg b/sounds/mobs_oerkki.ogg new file mode 100644 index 0000000..aac6e43 Binary files /dev/null and b/sounds/mobs_oerkki.ogg differ diff --git a/sounds/mobs_rat.ogg b/sounds/mobs_rat.ogg new file mode 100644 index 0000000..0e99267 Binary files /dev/null and b/sounds/mobs_rat.ogg differ diff --git a/sounds/mobs_sandmonster.ogg b/sounds/mobs_sandmonster.ogg new file mode 100644 index 0000000..2feae6a Binary files /dev/null and b/sounds/mobs_sandmonster.ogg differ diff --git a/sounds/mobs_spider.ogg b/sounds/mobs_spider.ogg new file mode 100644 index 0000000..4105006 Binary files /dev/null and b/sounds/mobs_spider.ogg differ diff --git a/sounds/mobs_stonemonster.ogg b/sounds/mobs_stonemonster.ogg new file mode 100644 index 0000000..2d2b9f1 Binary files /dev/null and b/sounds/mobs_stonemonster.ogg differ diff --git a/sounds/mobs_treemonster.ogg b/sounds/mobs_treemonster.ogg new file mode 100644 index 0000000..ce4e11e Binary files /dev/null and b/sounds/mobs_treemonster.ogg differ diff --git a/spider.lua b/spider.lua index fd73238..db16d02 100644 --- a/spider.lua +++ b/spider.lua @@ -49,6 +49,9 @@ mobs:register_mob("mobs:spider", { punch_start = 50, punch_end = 90, }, + sounds = { + random = "mobs_spider", + }, jump = true, sounds = {}, step = 1, diff --git a/stonemonster.lua b/stonemonster.lua index 49d880f..dfe2e7b 100644 --- a/stonemonster.lua +++ b/stonemonster.lua @@ -52,6 +52,9 @@ mobs:register_mob("mobs:stone_monster", { punch_start = 40, punch_end = 63, }, + sounds = { + random = "mobs_stonemonster", + }, jump = true, step = 0.5, blood_texture = "mobs_blood.png", diff --git a/treemonster.lua b/treemonster.lua index 5b52a17..2c1f78b 100644 --- a/treemonster.lua +++ b/treemonster.lua @@ -54,6 +54,9 @@ mobs:register_mob("mobs:tree_monster", { punch_start = 48, punch_end = 62, }, + sounds = { + random = "mobs_treemonster", + }, step = 0.5, jump = true, blood_texture = "default_wood.png",