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:
|
||||
|
||||
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.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
|
||||
|
2380
mods/mobs/api.lua
@ -6,6 +6,7 @@ mobs:register_mob("mobs:bunny", {
|
||||
type = "animal",
|
||||
-- is it aggressive
|
||||
passive = true,
|
||||
reach = 1,
|
||||
-- health & armor
|
||||
hp_min = 3, hp_max = 6, armor = 200,
|
||||
-- textures and model
|
||||
@ -62,7 +63,6 @@ mobs:register_mob("mobs:bunny", {
|
||||
textures = {"mobs_bunny_evil.png"},
|
||||
})
|
||||
self.type = "monster"
|
||||
self.state = "attack"
|
||||
self.object:set_hp(20)
|
||||
return
|
||||
end
|
||||
|
@ -8,6 +8,7 @@ mobs:register_mob("mobs:cow", {
|
||||
passive = false,
|
||||
group_attack = true,
|
||||
attack_type = "dogfight",
|
||||
reach = 2,
|
||||
damage = 4,
|
||||
-- health & armor
|
||||
hp_min = 25,
|
||||
|
@ -7,6 +7,7 @@ mobs:register_mob("mobs:dirt_monster", {
|
||||
-- aggressive, deals 6 damage to player when hit
|
||||
passive = false,
|
||||
attack_type = "dogfight",
|
||||
reach = 2,
|
||||
damage = 5,
|
||||
-- health & armor
|
||||
hp_min = 25,
|
||||
|
@ -10,7 +10,8 @@ mobs:register_mob("mobs:dungeon_master", {
|
||||
-- aggressive, shoots fireballs at player, deal 13 damages
|
||||
passive = false,
|
||||
damage = 12,
|
||||
attack_type = "shoot",
|
||||
attack_type = "dogshoot",
|
||||
reach = 3,
|
||||
shoot_interval = 2.5,
|
||||
arrow = "mobs:fireball",
|
||||
shoot_offset = 1,
|
||||
@ -32,7 +33,7 @@ mobs:register_mob("mobs:dungeon_master", {
|
||||
makes_footstep_sound = true,
|
||||
sounds = {
|
||||
random = "mobs_dungeonmaster",
|
||||
attack = "mobs_fireball",
|
||||
shoot_attack = "mobs_fireball",
|
||||
},
|
||||
-- speed and jump
|
||||
walk_velocity = 1,
|
||||
|
@ -7,6 +7,7 @@ mobs:register_mob("mobs:lava_flan", {
|
||||
-- aggressive, deals 5 damage to player when hit
|
||||
passive = false,
|
||||
attack_type = "dogfight",
|
||||
reach = 2,
|
||||
damage = 5,
|
||||
-- health and armor
|
||||
hp_min = 20,
|
||||
|
0
mods/mobs/models/mobs_shark.b3d
Normal file → Executable file
@ -86,6 +86,7 @@ mobs:register_mob("mobs:npc", {
|
||||
end
|
||||
if self.diamond_count >= 4 then
|
||||
self.damages = 3
|
||||
self.tamed = true
|
||||
self.owner = clicker:get_player_name()
|
||||
end
|
||||
end
|
||||
|
@ -90,6 +90,7 @@ mobs:register_mob("mobs:npc_female", {
|
||||
end
|
||||
if self.diamond_count >= 4 then
|
||||
self.damages = 3
|
||||
self.tamed = true
|
||||
self.owner = clicker:get_player_name()
|
||||
end
|
||||
end
|
||||
|
@ -7,6 +7,7 @@ mobs:register_mob("mobs:oerkki", {
|
||||
-- aggressive, deals 7 damage when player hit
|
||||
passive = false,
|
||||
attack_type = "dogfight",
|
||||
reach = 2,
|
||||
damage = 6,
|
||||
-- health & armor
|
||||
hp_min = 40,
|
||||
@ -25,7 +26,7 @@ mobs:register_mob("mobs:oerkki", {
|
||||
makes_footstep_sound = false,
|
||||
sounds = {
|
||||
random = "mobs_oerkki",
|
||||
attack = "mobs_oerkki_attack",
|
||||
shoot_attack = "mobs_oerkki_attack",
|
||||
},
|
||||
-- speed and jump
|
||||
walk_velocity = 2,
|
||||
|
@ -7,6 +7,7 @@ mobs:register_mob("mobs:sand_monster", {
|
||||
-- aggressive, deals 5 damage to player when hit
|
||||
passive = false,
|
||||
attack_type = "dogfight",
|
||||
reach = 2,
|
||||
damage = 4,
|
||||
-- health & armor
|
||||
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
|
||||
passive = false,
|
||||
attack_type = "dogfight",
|
||||
reach = 2,
|
||||
damage = 5,
|
||||
-- health & armor
|
||||
hp_min = 30,
|
||||
|
@ -7,6 +7,7 @@ mobs:register_mob("mobs:stone_monster", {
|
||||
-- aggressive, deals 8 damage to player when hit
|
||||
passive = false,
|
||||
attack_type = "dogfight",
|
||||
reach = 2,
|
||||
damage = 7,
|
||||
-- health & armor
|
||||
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
|
||||
passive = false,
|
||||
attack_type = "dogfight",
|
||||
reach = 2,
|
||||
damage = 8,
|
||||
-- health & armor
|
||||
hp_min = 40,
|
||||
|
@ -8,6 +8,7 @@ mobs:register_mob("mobs:pumba", {
|
||||
passive = false,
|
||||
group_attack = true,
|
||||
attack_type = "dogfight",
|
||||
reach = 2,
|
||||
damage = 4,
|
||||
-- health & armor
|
||||
hp_min = 15,
|
||||
|