More Minecraft-like mob health

Wuzzy 2017-01-20 21:24:56 +01:00
parent 709079f407
commit 27d7775e98
13 changed files with 18 additions and 2 deletions

@ -9,6 +9,7 @@
mobs:register_mob("mobs_mc:chicken", { mobs:register_mob("mobs_mc:chicken", {
type = "animal", type = "animal",
hp_min = 4,
hp_max = 4, hp_max = 4,
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1, 0.4}, collisionbox = {-0.4, -0.01, -0.4, 0.4, 1, 0.4},

@ -8,6 +8,7 @@
mobs:register_mob("mobs_mc:cow", { mobs:register_mob("mobs_mc:cow", {
type = "animal", type = "animal",
hp_min = 10,
hp_max = 10, hp_max = 10,
collisionbox = {-0.6, -0.01, -0.6, 0.6, 1.8, 0.6}, collisionbox = {-0.6, -0.01, -0.6, 0.6, 1.8, 0.6},

@ -10,6 +10,7 @@
mobs:register_mob("mobs_mc:creeper", { mobs:register_mob("mobs_mc:creeper", {
type = "monster", type = "monster",
hp_min = 20,
hp_max = 20, hp_max = 20,
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1.6, 0.4}, collisionbox = {-0.4, -0.01, -0.4, 0.4, 1.6, 0.4},
pathfinding = true, pathfinding = true,

@ -9,6 +9,7 @@
mobs:register_mob("mobs_mc:enderman", { mobs:register_mob("mobs_mc:enderman", {
type = "monster", type = "monster",
hp_min = 40,
hp_max = 40, hp_max = 40,
collisionbox = {-0.4, -2.4, -0.4, 0.4, 1.8, 0.4}, collisionbox = {-0.4, -2.4, -0.4, 0.4, 1.8, 0.4},

@ -10,6 +10,7 @@ mobs:register_mob("mobs_mc:ghast", {
type = "monster", type = "monster",
pathfinding = true, pathfinding = true,
group_attack = true, group_attack = true,
hp_min = 10,
hp_max = 10, hp_max = 10,
collisionbox = {-1.45, -1.45, -1.45 ,1.45, 1.45, 1.45}, collisionbox = {-1.45, -1.45, -1.45 ,1.45, 1.45, 1.45},
visual_size = {x=3.0, y=3.0}, visual_size = {x=3.0, y=3.0},

@ -8,6 +8,7 @@
mobs:register_mob("mobs_mc:pig", { mobs:register_mob("mobs_mc:pig", {
type = "animal", type = "animal",
hp_min = 10,
hp_max = 10, hp_max = 10,
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1, 0.4}, collisionbox = {-0.4, -0.01, -0.4, 0.4, 1, 0.4},

@ -9,6 +9,7 @@
--mcsheep --mcsheep
mobs:register_mob("mobs_mc:sheep", { mobs:register_mob("mobs_mc:sheep", {
type = "animal", type = "animal",
hp_min = 8,
hp_max = 8, hp_max = 8,
collisionbox = {-0.5, -0.01, -0.5, 0.5, 1.5, 0.5}, collisionbox = {-0.5, -0.01, -0.5, 0.5, 1.5, 0.5},

@ -8,6 +8,7 @@
mobs:register_mob("mobs_mc:skeleton", { mobs:register_mob("mobs_mc:skeleton", {
type = "monster", type = "monster",
hp_min = 30,
hp_max = 30, hp_max = 30,
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1.9, 0.4}, collisionbox = {-0.4, -0.01, -0.4, 0.4, 1.9, 0.4},
pathfinding = true, pathfinding = true,

@ -10,6 +10,7 @@ mobs:register_mob("mobs_mc:greensmall", {
type = "monster", type = "monster",
pathfinding = true, pathfinding = true,
group_attack = true, group_attack = true,
hp_min = 1,
hp_max = 1, hp_max = 1,
collisionbox = {-0.2, -0.4, -0.2, 0.2, 0.2, 0.2}, collisionbox = {-0.2, -0.4, -0.2, 0.2, 0.2, 0.2},
visual_size = {x=0.5, y=0.5}, visual_size = {x=0.5, y=0.5},
@ -68,6 +69,7 @@ mobs:register_mob("mobs_mc:greenmedium", {
type = "monster", type = "monster",
pathfinding = true, pathfinding = true,
group_attack = true, group_attack = true,
hp_min = 4,
hp_max = 4, hp_max = 4,
collisionbox = {-0.55, -0.55, -0.55, 0.55, 0.55, 0.55}, collisionbox = {-0.55, -0.55, -0.55, 0.55, 0.55, 0.55},
visual_size = {x=1.0, y=1.0}, visual_size = {x=1.0, y=1.0},
@ -128,6 +130,7 @@ mobs:register_mob("mobs_mc:greenbig", {
type = "monster", type = "monster",
pathfinding = true, pathfinding = true,
group_attack = true, group_attack = true,
hp_min = 16,
hp_max = 16, hp_max = 16,
collisionbox = {-0.75, -0.75, -0.75, 0.75, 0.75, 0.75}, collisionbox = {-0.75, -0.75, -0.75, 0.75, 0.75, 0.75},
visual_size = {x=1.5, y=1.5}, visual_size = {x=1.5, y=1.5},
@ -192,6 +195,7 @@ mobs:register_mob("mobs_mc:lavasmall", {
type = "monster", type = "monster",
pathfinding = true, pathfinding = true,
group_attack = true, group_attack = true,
hp_min = 4,
hp_max = 4, hp_max = 4,
collisionbox = {-0.2, -0.4, -0.2, 0.2, 0.2, 0.2}, collisionbox = {-0.2, -0.4, -0.2, 0.2, 0.2, 0.2},
visual_size = {x=0.5, y=0.5}, visual_size = {x=0.5, y=0.5},
@ -245,6 +249,7 @@ mobs:register_mob("mobs_mc:lavabig", {
type = "monster", type = "monster",
pathfinding = true, pathfinding = true,
group_attack = true, group_attack = true,
hp_min = 16,
hp_max = 16, hp_max = 16,
collisionbox = {-0.75, -0.75, -0.75, 0.75, 0.75, 0.75}, collisionbox = {-0.75, -0.75, -0.75, 0.75, 0.75, 0.75},
visual_size = {x=1.5, y=1.5}, visual_size = {x=1.5, y=1.5},

@ -13,8 +13,8 @@ mobs:register_mob("mobs_mc:spider", {
attack_type = "dogfight", attack_type = "dogfight",
pathfinding = true, pathfinding = true,
damage = 2, damage = 2,
hp_min = 12, hp_min = 16,
hp_max = 20, hp_max = 16,
armor = 100, armor = 100,
collisionbox = {-0.9, -0.01, -0.7, 0.7, 0.6, 0.7}, collisionbox = {-0.9, -0.01, -0.7, 0.7, 0.6, 0.7},
visual = "mesh", visual = "mesh",

@ -9,6 +9,7 @@
mobs:register_mob("mobs_mc:villager", { mobs:register_mob("mobs_mc:villager", {
type = "npc", type = "npc",
hp_min = 20,
hp_max = 20, hp_max = 20,
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1.95, 0.4}, collisionbox = {-0.4, -0.01, -0.4, 0.4, 1.95, 0.4},
textures = { textures = {

@ -10,6 +10,7 @@
mobs:register_mob("mobs_mc:zombie", { mobs:register_mob("mobs_mc:zombie", {
type = "monster", type = "monster",
hp_min = 20,
hp_max = 20, hp_max = 20,
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1.9, 0.4}, collisionbox = {-0.4, -0.01, -0.4, 0.4, 1.9, 0.4},
textures = { textures = {

@ -9,6 +9,7 @@
mobs:register_mob("mobs_mc:pigman", { mobs:register_mob("mobs_mc:pigman", {
type = "monster", type = "monster",
hp_min = 20,
hp_max = 20, hp_max = 20,
collisionbox = {-0.3, -1.0, -0.3, 0.3, 0.8, 0.3}, collisionbox = {-0.3, -1.0, -0.3, 0.3, 0.8, 0.3},
visual = "mesh", visual = "mesh",