From 1abdb3b62df4f191f89831981bcc889723b77bb7 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Thu, 23 Feb 2017 19:12:18 +0100 Subject: [PATCH] Tweak sheep and chicken collision boxes --- mods/ENTITIES/mobs_mc/chicken.lua | 4 +++- mods/ENTITIES/mobs_mc/sheep.lua | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/mods/ENTITIES/mobs_mc/chicken.lua b/mods/ENTITIES/mobs_mc/chicken.lua index 38d3a38611..7b19511c53 100644 --- a/mods/ENTITIES/mobs_mc/chicken.lua +++ b/mods/ENTITIES/mobs_mc/chicken.lua @@ -11,9 +11,11 @@ mobs:register_mob("mobs_mc:chicken", { type = "animal", hp_min = 4, hp_max = 4, - collisionbox = {-0.4, -0.01, -0.4, 0.4, 1, 0.4}, + -- The x/z size is slightly bigger than in Minecraft (MC: 0.4×0.4; MCL2: 0.5×0.5) + collisionbox = {-0.25, -0.01, -0.25, 0.25, 0.69, 0.25}, visual = "mesh", + visual_size = {x=0.7, y=0.7}, mesh = "mobs_mc_chicken.x", textures = { {"mobs_mc_chicken.png"} diff --git a/mods/ENTITIES/mobs_mc/sheep.lua b/mods/ENTITIES/mobs_mc/sheep.lua index 34d002c09e..abd4d4a66b 100644 --- a/mods/ENTITIES/mobs_mc/sheep.lua +++ b/mods/ENTITIES/mobs_mc/sheep.lua @@ -37,7 +37,8 @@ mobs:register_mob("mobs_mc:sheep", { type = "animal", hp_min = 8, hp_max = 8, - collisionbox = {-0.45, -0.01, -0.45, 0.45, 1.29, 0.45}, + -- FIXME: Should be 1.3 blocks high + collisionbox = {-0.45, -0.01, -0.45, 0.45, 1.09, 0.45}, visual = "mesh", visual_size = {x=0.6, y=0.6},