Added: monster sounds, chicken sound, bee sound
This commit is contained in:
parent
b59dd435d8
commit
aa237887ee
@ -25,7 +25,8 @@ This mod contains the following additions:
|
|||||||
|
|
||||||
Changelog:
|
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.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.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 :)
|
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 :)
|
||||||
|
4
bee.lua
4
bee.lua
@ -34,7 +34,9 @@ mobs:register_mob("mobs:bee", {
|
|||||||
walk_start = 35,
|
walk_start = 35,
|
||||||
walk_end = 65,
|
walk_end = 65,
|
||||||
},
|
},
|
||||||
|
sounds = {
|
||||||
|
random = "mobs_bee",
|
||||||
|
},
|
||||||
on_rightclick = function(self, clicker)
|
on_rightclick = function(self, clicker)
|
||||||
if clicker:is_player() and clicker:get_inventory() then
|
if clicker:is_player() and clicker:get_inventory() then
|
||||||
clicker:get_inventory():add_item("main", "mobs:bee")
|
clicker:get_inventory():add_item("main", "mobs:bee")
|
||||||
|
@ -47,6 +47,9 @@ mobs:register_mob("mobs:chicken", {
|
|||||||
self.object:remove()
|
self.object:remove()
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
sounds = {
|
||||||
|
random = "mobs_chicken",
|
||||||
|
},
|
||||||
jump = true,
|
jump = true,
|
||||||
step = 1,
|
step = 1,
|
||||||
blood_texture = "mobs_blood.png",
|
blood_texture = "mobs_blood.png",
|
||||||
|
@ -43,6 +43,9 @@ mobs:register_mob("mobs:dirt_monster", {
|
|||||||
punch_start = 40,
|
punch_start = 40,
|
||||||
punch_end = 63,
|
punch_end = 63,
|
||||||
},
|
},
|
||||||
|
sounds = {
|
||||||
|
random = "mobs_dirtmonster",
|
||||||
|
},
|
||||||
jump = true,
|
jump = true,
|
||||||
step = 0.5,
|
step = 0.5,
|
||||||
blood_texture = "default_dirt.png",
|
blood_texture = "default_dirt.png",
|
||||||
|
@ -61,6 +61,9 @@ mobs:register_mob("mobs:dungeon_master", {
|
|||||||
speed_normal = 15,
|
speed_normal = 15,
|
||||||
speed_run = 15,
|
speed_run = 15,
|
||||||
},
|
},
|
||||||
|
sounds = {
|
||||||
|
random = "mobs_dungeonmaster",
|
||||||
|
},
|
||||||
jump = true,
|
jump = true,
|
||||||
step = 0.5,
|
step = 0.5,
|
||||||
shoot_offset = 0,
|
shoot_offset = 0,
|
||||||
|
@ -53,6 +53,9 @@ mobs:register_mob("mobs:lava_flan", {
|
|||||||
punch_start = 20,
|
punch_start = 20,
|
||||||
punch_end = 28,
|
punch_end = 28,
|
||||||
},
|
},
|
||||||
|
sounds = {
|
||||||
|
random = "mobs_lavaflan",
|
||||||
|
},
|
||||||
jump = true,
|
jump = true,
|
||||||
step = 0.5,
|
step = 0.5,
|
||||||
blood_texture = "fire_basic_flame.png",
|
blood_texture = "fire_basic_flame.png",
|
||||||
|
@ -61,6 +61,9 @@ mobs:register_mob("mobs:mese_monster", {
|
|||||||
punch_start = 15, -- 40
|
punch_start = 15, -- 40
|
||||||
punch_end = 38, -- 63
|
punch_end = 38, -- 63
|
||||||
},
|
},
|
||||||
|
sounds = {
|
||||||
|
random = "mobs_mesemonster",
|
||||||
|
},
|
||||||
jump = true,
|
jump = true,
|
||||||
step = 0.5,
|
step = 0.5,
|
||||||
shoot_offset = 2,
|
shoot_offset = 2,
|
||||||
|
@ -45,6 +45,9 @@ mobs:register_mob("mobs:oerkki", {
|
|||||||
speed_normal = 15,
|
speed_normal = 15,
|
||||||
speed_run = 15,
|
speed_run = 15,
|
||||||
},
|
},
|
||||||
|
sounds = {
|
||||||
|
random = "mobs_oerkki",
|
||||||
|
},
|
||||||
jump = true,
|
jump = true,
|
||||||
step = 0.5,
|
step = 0.5,
|
||||||
blood_texture = "mobs_blood.png",
|
blood_texture = "mobs_blood.png",
|
||||||
|
3
rat.lua
3
rat.lua
@ -25,6 +25,9 @@ mobs:register_mob("mobs:rat", {
|
|||||||
jump = true,
|
jump = true,
|
||||||
step = 1,
|
step = 1,
|
||||||
passive = true,
|
passive = true,
|
||||||
|
sounds = {
|
||||||
|
random = "mobs_rat",
|
||||||
|
},
|
||||||
|
|
||||||
on_rightclick = function(self, clicker)
|
on_rightclick = function(self, clicker)
|
||||||
if clicker:is_player() and clicker:get_inventory() then
|
if clicker:is_player() and clicker:get_inventory() then
|
||||||
|
@ -44,6 +44,9 @@ mobs:register_mob("mobs:sand_monster", {
|
|||||||
punch_start = 74,
|
punch_start = 74,
|
||||||
punch_end = 105,
|
punch_end = 105,
|
||||||
},
|
},
|
||||||
|
sounds = {
|
||||||
|
random = "mobs_sandmonster",
|
||||||
|
},
|
||||||
jump = true,
|
jump = true,
|
||||||
step = 0.5,
|
step = 0.5,
|
||||||
blood_texture = "mobs_blood.png",
|
blood_texture = "mobs_blood.png",
|
||||||
|
BIN
sounds/mobs_bee.ogg
Normal file
BIN
sounds/mobs_bee.ogg
Normal file
Binary file not shown.
BIN
sounds/mobs_chicken.ogg
Normal file
BIN
sounds/mobs_chicken.ogg
Normal file
Binary file not shown.
BIN
sounds/mobs_dirtmonster.ogg
Normal file
BIN
sounds/mobs_dirtmonster.ogg
Normal file
Binary file not shown.
BIN
sounds/mobs_dungeonmaster.ogg
Normal file
BIN
sounds/mobs_dungeonmaster.ogg
Normal file
Binary file not shown.
BIN
sounds/mobs_lavaflan.ogg
Normal file
BIN
sounds/mobs_lavaflan.ogg
Normal file
Binary file not shown.
BIN
sounds/mobs_mesemonster.ogg
Normal file
BIN
sounds/mobs_mesemonster.ogg
Normal file
Binary file not shown.
BIN
sounds/mobs_oerkki.ogg
Normal file
BIN
sounds/mobs_oerkki.ogg
Normal file
Binary file not shown.
BIN
sounds/mobs_rat.ogg
Normal file
BIN
sounds/mobs_rat.ogg
Normal file
Binary file not shown.
BIN
sounds/mobs_sandmonster.ogg
Normal file
BIN
sounds/mobs_sandmonster.ogg
Normal file
Binary file not shown.
BIN
sounds/mobs_spider.ogg
Normal file
BIN
sounds/mobs_spider.ogg
Normal file
Binary file not shown.
BIN
sounds/mobs_stonemonster.ogg
Normal file
BIN
sounds/mobs_stonemonster.ogg
Normal file
Binary file not shown.
BIN
sounds/mobs_treemonster.ogg
Normal file
BIN
sounds/mobs_treemonster.ogg
Normal file
Binary file not shown.
@ -49,6 +49,9 @@ mobs:register_mob("mobs:spider", {
|
|||||||
punch_start = 50,
|
punch_start = 50,
|
||||||
punch_end = 90,
|
punch_end = 90,
|
||||||
},
|
},
|
||||||
|
sounds = {
|
||||||
|
random = "mobs_spider",
|
||||||
|
},
|
||||||
jump = true,
|
jump = true,
|
||||||
sounds = {},
|
sounds = {},
|
||||||
step = 1,
|
step = 1,
|
||||||
|
@ -52,6 +52,9 @@ mobs:register_mob("mobs:stone_monster", {
|
|||||||
punch_start = 40,
|
punch_start = 40,
|
||||||
punch_end = 63,
|
punch_end = 63,
|
||||||
},
|
},
|
||||||
|
sounds = {
|
||||||
|
random = "mobs_stonemonster",
|
||||||
|
},
|
||||||
jump = true,
|
jump = true,
|
||||||
step = 0.5,
|
step = 0.5,
|
||||||
blood_texture = "mobs_blood.png",
|
blood_texture = "mobs_blood.png",
|
||||||
|
@ -54,6 +54,9 @@ mobs:register_mob("mobs:tree_monster", {
|
|||||||
punch_start = 48,
|
punch_start = 48,
|
||||||
punch_end = 62,
|
punch_end = 62,
|
||||||
},
|
},
|
||||||
|
sounds = {
|
||||||
|
random = "mobs_treemonster",
|
||||||
|
},
|
||||||
step = 0.5,
|
step = 0.5,
|
||||||
jump = true,
|
jump = true,
|
||||||
blood_texture = "default_wood.png",
|
blood_texture = "default_wood.png",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user