mirror of
https://codeberg.org/tenplus1/mobs_animal.git
synced 2024-12-23 01:10:25 +01:00
lower stepheight to fix entity glitching through walls
This commit is contained in:
parent
0db8d4b263
commit
202ecfccad
3
bee.lua
3
bee.lua
@ -39,6 +39,9 @@ mobs:register_mob("mobs_animal:bee", {
|
|||||||
on_rightclick = function(self, clicker)
|
on_rightclick = function(self, clicker)
|
||||||
mobs:capture_mob(self, clicker, 50, 90, 0, true, "mobs_animal:bee")
|
mobs:capture_mob(self, clicker, 50, 90, 0, true, "mobs_animal:bee")
|
||||||
end,
|
end,
|
||||||
|
-- after_activate = function(self, staticdata, def, dtime)
|
||||||
|
-- print ("------", self.name, dtime, self.health)
|
||||||
|
-- end,
|
||||||
})
|
})
|
||||||
|
|
||||||
mobs:spawn({
|
mobs:spawn({
|
||||||
|
@ -5,6 +5,7 @@ local S = mobs.intllib
|
|||||||
-- Bunny by ExeterDad
|
-- Bunny by ExeterDad
|
||||||
|
|
||||||
mobs:register_mob("mobs_animal:bunny", {
|
mobs:register_mob("mobs_animal:bunny", {
|
||||||
|
stepheight = 0.6,
|
||||||
type = "animal",
|
type = "animal",
|
||||||
passive = true,
|
passive = true,
|
||||||
reach = 1,
|
reach = 1,
|
||||||
|
@ -5,6 +5,7 @@ local S = mobs.intllib
|
|||||||
-- Chicken by JK Murray
|
-- Chicken by JK Murray
|
||||||
|
|
||||||
mobs:register_mob("mobs_animal:chicken", {
|
mobs:register_mob("mobs_animal:chicken", {
|
||||||
|
stepheight = 0.6,
|
||||||
type = "animal",
|
type = "animal",
|
||||||
passive = true,
|
passive = true,
|
||||||
hp_min = 5,
|
hp_min = 5,
|
||||||
|
2
cow.lua
2
cow.lua
@ -13,7 +13,7 @@ mobs:register_mob("mobs_animal:cow", {
|
|||||||
hp_min = 5,
|
hp_min = 5,
|
||||||
hp_max = 20,
|
hp_max = 20,
|
||||||
armor = 200,
|
armor = 200,
|
||||||
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1, 0.4},
|
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1.2, 0.4},
|
||||||
visual = "mesh",
|
visual = "mesh",
|
||||||
mesh = "mobs_cow.x",
|
mesh = "mobs_cow.x",
|
||||||
textures = {
|
textures = {
|
||||||
|
@ -5,6 +5,7 @@ local S = mobs.intllib
|
|||||||
-- Kitten by Jordach / BFD
|
-- Kitten by Jordach / BFD
|
||||||
|
|
||||||
mobs:register_mob("mobs_animal:kitten", {
|
mobs:register_mob("mobs_animal:kitten", {
|
||||||
|
stepheight = 0.6,
|
||||||
type = "animal",
|
type = "animal",
|
||||||
passive = true,
|
passive = true,
|
||||||
hp_min = 5,
|
hp_min = 5,
|
||||||
|
@ -5,6 +5,7 @@ local S = mobs.intllib
|
|||||||
-- Penguin by D00Med
|
-- Penguin by D00Med
|
||||||
|
|
||||||
mobs:register_mob("mobs_animal:penguin", {
|
mobs:register_mob("mobs_animal:penguin", {
|
||||||
|
stepheight = 0.6,
|
||||||
type = "animal",
|
type = "animal",
|
||||||
passive = true,
|
passive = true,
|
||||||
reach = 1,
|
reach = 1,
|
||||||
|
1
rat.lua
1
rat.lua
@ -5,6 +5,7 @@ local S = mobs.intllib
|
|||||||
-- Rat by PilzAdam
|
-- Rat by PilzAdam
|
||||||
|
|
||||||
mobs:register_mob("mobs_animal:rat", {
|
mobs:register_mob("mobs_animal:rat", {
|
||||||
|
stepheight = 0.6,
|
||||||
type = "animal",
|
type = "animal",
|
||||||
passive = true,
|
passive = true,
|
||||||
hp_min = 1,
|
hp_min = 1,
|
||||||
|
@ -26,6 +26,7 @@ local all_colours = {
|
|||||||
for _, col in ipairs(all_colours) do
|
for _, col in ipairs(all_colours) do
|
||||||
|
|
||||||
mobs:register_mob("mobs_animal:sheep_"..col[1], {
|
mobs:register_mob("mobs_animal:sheep_"..col[1], {
|
||||||
|
stepheight = 0.6,
|
||||||
type = "animal",
|
type = "animal",
|
||||||
passive = true,
|
passive = true,
|
||||||
hp_min = 8,
|
hp_min = 8,
|
||||||
|
@ -5,6 +5,7 @@ local S = mobs.intllib
|
|||||||
-- Warthog by KrupnoPavel
|
-- Warthog by KrupnoPavel
|
||||||
|
|
||||||
mobs:register_mob("mobs_animal:pumba", {
|
mobs:register_mob("mobs_animal:pumba", {
|
||||||
|
stepheight = 0.6,
|
||||||
type = "animal",
|
type = "animal",
|
||||||
passive = false,
|
passive = false,
|
||||||
attack_type = "dogfight",
|
attack_type = "dogfight",
|
||||||
@ -15,7 +16,7 @@ mobs:register_mob("mobs_animal:pumba", {
|
|||||||
hp_min = 5,
|
hp_min = 5,
|
||||||
hp_max = 15,
|
hp_max = 15,
|
||||||
armor = 200,
|
armor = 200,
|
||||||
collisionbox = {-0.4, -0.01, -0.4, 0.4, 1, 0.4},
|
collisionbox = {-0.4, -0.01, -0.4, 0.4, 0.95, 0.4},
|
||||||
visual = "mesh",
|
visual = "mesh",
|
||||||
mesh = "mobs_pumba.x",
|
mesh = "mobs_pumba.x",
|
||||||
textures = {
|
textures = {
|
||||||
|
Loading…
Reference in New Issue
Block a user