Mod update

master
daretmavi 2021-02-04 19:02:34 +01:00
parent a932fb7313
commit 0835233104
2 changed files with 13 additions and 8 deletions

View File

@ -112,7 +112,7 @@ origin https://github.com/TheTermos/mobkit (fetch)
Mod: lib_api/mobkit
origin https://notabug.org/tenplus1/mobs_redo (fetch)
* master 10e4dd9 [origin/master] spawner spawns mob in it's own medium (air, water etc.)
* master c158e84 [origin/master] stop grown child mobs sinking into blocks below
Mod: lib_api/mobs_redo
origin https://github.com/appgurueu/modlib (fetch)
@ -154,7 +154,6 @@ Mod: mobs/petz
origin https://github.com/berengma/water_life (fetch)
* master 17c4289 [origin/master] Merge pull request #69 from berengma/staticIsTrue
Mod: mobs/water_life
Mod: mobs/water_life_patch
origin https://github.com/minetest-mods/3d_armor (fetch)
* master e7abacc [origin/master] Add armor set and armor set bonus setting (#41)

View File

@ -8,7 +8,7 @@ local use_cmi = minetest.global_exists("cmi")
mobs = {
mod = "redo",
version = "20210114",
version = "20210203",
intllib = S,
invis = minetest.global_exists("invisibility") and invisibility or {}
}
@ -1354,11 +1354,15 @@ function mob_class:breed()
self.on_grown(self)
else
-- jump when fully grown so as not to fall into ground
self.object:set_velocity({
x = 0,
y = self.jump_height,
z = 0
})
-- self.object:set_velocity({
-- x = 0,
-- y = self.jump_height,
-- z = 0
-- })
local pos = self.object:get_pos() ; if not pos then return end
local ent = self.object:get_luaentity()
pos.y = pos.y + (ent.collisionbox[2] * -1) - 0.4
self.object:set_pos(pos)
end
end
@ -1458,6 +1462,8 @@ function mob_class:breed()
effect(pos, 15, "tnt_smoke.png", 1, 2, 2, 15, 5)
end
pos.y = pos.y + 0.5 -- spawn child a little higher
local mob = minetest.add_entity(pos, self.name)
local ent2 = mob:get_luaentity()
local textures = self.base_texture