Fixes and Bird Eggs

This commit is contained in:
ElCeejo 2022-11-05 21:07:25 -07:00
parent e4b8396be9
commit 21ad5faf7d
10 changed files with 54 additions and 26 deletions

View file

@ -37,6 +37,8 @@ minetest.register_entity("animalia:lasso_entity", {
if type(parent) == "string" then
parent = minetest.get_player_by_name(parent)
local tgt_pos = parent:get_pos()
tgt_pos.y = tgt_pos.y + 1
point_to.y = point_to.y + pointed_ent.height * 0.5
local dist = vec_dist(pos, tgt_pos)
if dist > 0.5 then
self.object:set_pos(tgt_pos)