1
0
mirror of https://codeberg.org/tenplus1/mobs_animal.git synced 2025-01-07 08:30:38 +01:00

change armor levels to 100

This commit is contained in:
tenplus1 2025-01-01 11:04:09 +00:00
parent d76893ccb8
commit 3792d1cf3c
10 changed files with 17 additions and 22 deletions

View File

@ -8,7 +8,7 @@ mobs:register_mob("mobs_animal:bee", {
passive = true,
hp_min = 1,
hp_max = 2,
armor = 200,
armor = 100,
collisionbox = {-0.2, -0.01, -0.2, 0.2, 0.5, 0.2},
visual = "mesh",
mesh = "mobs_bee.b3d",

View File

@ -10,7 +10,7 @@ mobs:register_mob("mobs_animal:bunny", {
stepheight = 0.6,
hp_min = 1,
hp_max = 4,
armor = 200,
armor = 100,
collisionbox = {-0.268, -0.5, -0.268, 0.268, 0.167, 0.268},
visual = "mesh",
mesh = "mobs_bunny.b3d",

View File

@ -9,7 +9,7 @@ mobs:register_mob("mobs_animal:chicken", {
passive = true,
hp_min = 5,
hp_max = 10,
armor = 200,
armor = 100,
collisionbox = {-0.3, -0.75, -0.3, 0.3, 0.1, 0.3},
visual = "mesh",
mesh = "mobs_chicken.b3d",

View File

@ -10,9 +10,9 @@ mobs:register_mob("mobs_animal:cow", {
attack_npcs = false,
reach = 2,
damage = 4,
hp_min = 5,
hp_min = 10,
hp_max = 20,
armor = 200,
armor = 100,
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1.2, 0.4},
visual = "mesh",
mesh = "mobs_cow.b3d",

View File

@ -28,7 +28,7 @@ mobs:register_mob("mobs_animal:kitten", {
passive = false,
hp_min = 5,
hp_max = 10,
armor = 200,
armor = 100,
collisionbox = {-0.3, -0.3, -0.3, 0.3, 0.1, 0.3},
visual = "mesh",
visual_size = {x = 0.5, y = 0.5},

View File

@ -15,7 +15,7 @@ mobs:register_mob("mobs_animal:panda", {
damage = 3,
hp_min = 10,
hp_max = 24,
armor = 200,
armor = 100,
collisionbox = {-0.4, -0.45, -0.4, 0.4, 0.45, 0.4},
visual = "mesh",
mesh = "mobs_panda.b3d",

View File

@ -10,7 +10,7 @@ stepheight = 0.6,
reach = 1,
hp_min = 5,
hp_max = 10,
armor = 200,
armor = 100,
collisionbox = {-0.2, -0.0, -0.2, 0.2, 0.5, 0.2},
visual = "mesh",
mesh = "mobs_penguin.b3d",

View File

@ -9,7 +9,7 @@ mobs:register_mob("mobs_animal:rat", {
passive = true,
hp_min = 1,
hp_max = 4,
armor = 200,
armor = 100,
collisionbox = {-0.2, -1, -0.2, 0.2, -0.8, 0.2},
visual = "mesh",
mesh = "mobs_rat.b3d",

View File

@ -44,10 +44,7 @@ for _, col in ipairs(all_colours) do
for _2, col2 in ipairs(all_colours) do
if col2[1] == colr then
colr = col2[3]
break
end
if col2[1] == colr then colr = col2[3] ; break end
end
end
@ -59,8 +56,7 @@ for _, col in ipairs(all_colours) do
local col_text = "^[multiply:" .. col_override
if gotten then
wool_shave_text = shav_text
col_text = ""
wool_shave_text = shav_text ; col_text = ""
end
-- results in unneccesary brackets for shaved but these are ignored by engine
@ -80,8 +76,8 @@ for _, col in ipairs(all_colours) do
type = "animal",
passive = true,
hp_min = 8,
hp_max = 10,
armor = 200,
hp_max = 12,
armor = 100,
collisionbox = {-0.5, -1, -0.5, 0.5, 0.3, 0.5},
visual = "mesh",
mesh = "mobs_sheep.b3d",
@ -279,6 +275,7 @@ for _, col in ipairs(all_colours) do
self.gotten = true -- shaved
self.drops = drops_gotten
self.food = 0 -- reset food
local obj = minetest.add_item(
self.object:get_pos(),
@ -286,9 +283,7 @@ for _, col in ipairs(all_colours) do
)
if obj then
obj:set_velocity({
x = random(-1, 1), y = 5, z = random(-1, 1)})
obj:set_velocity({x = random(-1, 1), y = 5, z = random(-1, 1)})
end
item:add_wear(650) -- 100 uses

View File

@ -13,9 +13,9 @@ mobs:register_mob("mobs_animal:pumba", {
attack_npcs = false,
reach = 2,
damage = 2,
hp_min = 5,
hp_min = 10,
hp_max = 15,
armor = 200,
armor = 100,
collisionbox = {-0.4, -0.01, -0.4, 0.4, 0.95, 0.4},
visual = "mesh",
mesh = "mobs_pumba.b3d",