update mobs mod
fix npc male/female not tamed reduce volume and convert npc female sound move .blend in others_thing chmod 755
|
@ -28,6 +28,7 @@ This mod contains the following additions:
|
||||||
|
|
||||||
Changelog:
|
Changelog:
|
||||||
|
|
||||||
|
1.17- Added 'dogshoot' attack type, shoots when out of reach, melee attack when in reach, also api tweaks and self.reach added
|
||||||
1.16- Mobs follow multiple items now, Npc's can breed
|
1.16- Mobs follow multiple items now, Npc's can breed
|
||||||
1.15- Added Feeding/Taming/Breeding function, right-click to pick up any sheep with X mark on them and replace with new one to fix compatibility.
|
1.15- Added Feeding/Taming/Breeding function, right-click to pick up any sheep with X mark on them and replace with new one to fix compatibility.
|
||||||
1.14- All .self variables saved in staticdata, Fixed self.health bug
|
1.14- All .self variables saved in staticdata, Fixed self.health bug
|
||||||
|
|
2380
mods/mobs/api.lua
|
@ -6,6 +6,7 @@ mobs:register_mob("mobs:bunny", {
|
||||||
type = "animal",
|
type = "animal",
|
||||||
-- is it aggressive
|
-- is it aggressive
|
||||||
passive = true,
|
passive = true,
|
||||||
|
reach = 1,
|
||||||
-- health & armor
|
-- health & armor
|
||||||
hp_min = 3, hp_max = 6, armor = 200,
|
hp_min = 3, hp_max = 6, armor = 200,
|
||||||
-- textures and model
|
-- textures and model
|
||||||
|
@ -62,7 +63,6 @@ mobs:register_mob("mobs:bunny", {
|
||||||
textures = {"mobs_bunny_evil.png"},
|
textures = {"mobs_bunny_evil.png"},
|
||||||
})
|
})
|
||||||
self.type = "monster"
|
self.type = "monster"
|
||||||
self.state = "attack"
|
|
||||||
self.object:set_hp(20)
|
self.object:set_hp(20)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
|
@ -8,6 +8,7 @@ mobs:register_mob("mobs:cow", {
|
||||||
passive = false,
|
passive = false,
|
||||||
group_attack = true,
|
group_attack = true,
|
||||||
attack_type = "dogfight",
|
attack_type = "dogfight",
|
||||||
|
reach = 2,
|
||||||
damage = 4,
|
damage = 4,
|
||||||
-- health & armor
|
-- health & armor
|
||||||
hp_min = 25,
|
hp_min = 25,
|
||||||
|
|
|
@ -7,6 +7,7 @@ mobs:register_mob("mobs:dirt_monster", {
|
||||||
-- aggressive, deals 6 damage to player when hit
|
-- aggressive, deals 6 damage to player when hit
|
||||||
passive = false,
|
passive = false,
|
||||||
attack_type = "dogfight",
|
attack_type = "dogfight",
|
||||||
|
reach = 2,
|
||||||
damage = 5,
|
damage = 5,
|
||||||
-- health & armor
|
-- health & armor
|
||||||
hp_min = 25,
|
hp_min = 25,
|
||||||
|
|
|
@ -10,7 +10,8 @@ mobs:register_mob("mobs:dungeon_master", {
|
||||||
-- aggressive, shoots fireballs at player, deal 13 damages
|
-- aggressive, shoots fireballs at player, deal 13 damages
|
||||||
passive = false,
|
passive = false,
|
||||||
damage = 12,
|
damage = 12,
|
||||||
attack_type = "shoot",
|
attack_type = "dogshoot",
|
||||||
|
reach = 3,
|
||||||
shoot_interval = 2.5,
|
shoot_interval = 2.5,
|
||||||
arrow = "mobs:fireball",
|
arrow = "mobs:fireball",
|
||||||
shoot_offset = 1,
|
shoot_offset = 1,
|
||||||
|
@ -32,7 +33,7 @@ mobs:register_mob("mobs:dungeon_master", {
|
||||||
makes_footstep_sound = true,
|
makes_footstep_sound = true,
|
||||||
sounds = {
|
sounds = {
|
||||||
random = "mobs_dungeonmaster",
|
random = "mobs_dungeonmaster",
|
||||||
attack = "mobs_fireball",
|
shoot_attack = "mobs_fireball",
|
||||||
},
|
},
|
||||||
-- speed and jump
|
-- speed and jump
|
||||||
walk_velocity = 1,
|
walk_velocity = 1,
|
||||||
|
|
|
@ -7,6 +7,7 @@ mobs:register_mob("mobs:lava_flan", {
|
||||||
-- aggressive, deals 5 damage to player when hit
|
-- aggressive, deals 5 damage to player when hit
|
||||||
passive = false,
|
passive = false,
|
||||||
attack_type = "dogfight",
|
attack_type = "dogfight",
|
||||||
|
reach = 2,
|
||||||
damage = 5,
|
damage = 5,
|
||||||
-- health and armor
|
-- health and armor
|
||||||
hp_min = 20,
|
hp_min = 20,
|
||||||
|
|
0
mods/mobs/models/mobs_shark.b3d
Normal file → Executable file
|
@ -86,6 +86,7 @@ mobs:register_mob("mobs:npc", {
|
||||||
end
|
end
|
||||||
if self.diamond_count >= 4 then
|
if self.diamond_count >= 4 then
|
||||||
self.damages = 3
|
self.damages = 3
|
||||||
|
self.tamed = true
|
||||||
self.owner = clicker:get_player_name()
|
self.owner = clicker:get_player_name()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -90,6 +90,7 @@ mobs:register_mob("mobs:npc_female", {
|
||||||
end
|
end
|
||||||
if self.diamond_count >= 4 then
|
if self.diamond_count >= 4 then
|
||||||
self.damages = 3
|
self.damages = 3
|
||||||
|
self.tamed = true
|
||||||
self.owner = clicker:get_player_name()
|
self.owner = clicker:get_player_name()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -7,6 +7,7 @@ mobs:register_mob("mobs:oerkki", {
|
||||||
-- aggressive, deals 7 damage when player hit
|
-- aggressive, deals 7 damage when player hit
|
||||||
passive = false,
|
passive = false,
|
||||||
attack_type = "dogfight",
|
attack_type = "dogfight",
|
||||||
|
reach = 2,
|
||||||
damage = 6,
|
damage = 6,
|
||||||
-- health & armor
|
-- health & armor
|
||||||
hp_min = 40,
|
hp_min = 40,
|
||||||
|
@ -25,7 +26,7 @@ mobs:register_mob("mobs:oerkki", {
|
||||||
makes_footstep_sound = false,
|
makes_footstep_sound = false,
|
||||||
sounds = {
|
sounds = {
|
||||||
random = "mobs_oerkki",
|
random = "mobs_oerkki",
|
||||||
attack = "mobs_oerkki_attack",
|
shoot_attack = "mobs_oerkki_attack",
|
||||||
},
|
},
|
||||||
-- speed and jump
|
-- speed and jump
|
||||||
walk_velocity = 2,
|
walk_velocity = 2,
|
||||||
|
|
|
@ -7,6 +7,7 @@ mobs:register_mob("mobs:sand_monster", {
|
||||||
-- aggressive, deals 5 damage to player when hit
|
-- aggressive, deals 5 damage to player when hit
|
||||||
passive = false,
|
passive = false,
|
||||||
attack_type = "dogfight",
|
attack_type = "dogfight",
|
||||||
|
reach = 2,
|
||||||
damage = 4,
|
damage = 4,
|
||||||
-- health & armor
|
-- health & armor
|
||||||
hp_min = 15,
|
hp_min = 15,
|
||||||
|
|
0
mods/mobs/shark.lua
Normal file → Executable file
|
@ -7,6 +7,7 @@ mobs:register_mob("mobs:spider", {
|
||||||
-- agressive, does 6 damage to player when hit
|
-- agressive, does 6 damage to player when hit
|
||||||
passive = false,
|
passive = false,
|
||||||
attack_type = "dogfight",
|
attack_type = "dogfight",
|
||||||
|
reach = 2,
|
||||||
damage = 5,
|
damage = 5,
|
||||||
-- health & armor
|
-- health & armor
|
||||||
hp_min = 30,
|
hp_min = 30,
|
||||||
|
|
|
@ -7,6 +7,7 @@ mobs:register_mob("mobs:stone_monster", {
|
||||||
-- aggressive, deals 8 damage to player when hit
|
-- aggressive, deals 8 damage to player when hit
|
||||||
passive = false,
|
passive = false,
|
||||||
attack_type = "dogfight",
|
attack_type = "dogfight",
|
||||||
|
reach = 2,
|
||||||
damage = 7,
|
damage = 7,
|
||||||
-- health & armor
|
-- health & armor
|
||||||
hp_min = 20,
|
hp_min = 20,
|
||||||
|
|
0
mods/mobs/textures/mobs_cow_inv.png
Normal file → Executable file
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB |
0
mods/mobs/textures/mobs_shark_shark_item.png
Normal file → Executable file
Before Width: | Height: | Size: 5.9 KiB After Width: | Height: | Size: 5.9 KiB |
0
mods/mobs/textures/shark_first.png
Normal file → Executable file
Before Width: | Height: | Size: 5.6 KiB After Width: | Height: | Size: 5.6 KiB |
0
mods/mobs/textures/shark_second.png
Normal file → Executable file
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
0
mods/mobs/textures/shark_third.png
Normal file → Executable file
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
|
@ -7,6 +7,7 @@ mobs:register_mob("mobs:tree_monster", {
|
||||||
-- aggressive, deals 9 damage to player when hit
|
-- aggressive, deals 9 damage to player when hit
|
||||||
passive = false,
|
passive = false,
|
||||||
attack_type = "dogfight",
|
attack_type = "dogfight",
|
||||||
|
reach = 2,
|
||||||
damage = 8,
|
damage = 8,
|
||||||
-- health & armor
|
-- health & armor
|
||||||
hp_min = 40,
|
hp_min = 40,
|
||||||
|
|
|
@ -8,6 +8,7 @@ mobs:register_mob("mobs:pumba", {
|
||||||
passive = false,
|
passive = false,
|
||||||
group_attack = true,
|
group_attack = true,
|
||||||
attack_type = "dogfight",
|
attack_type = "dogfight",
|
||||||
|
reach = 2,
|
||||||
damage = 4,
|
damage = 4,
|
||||||
-- health & armor
|
-- health & armor
|
||||||
hp_min = 15,
|
hp_min = 15,
|
||||||
|
|