Most mobs (including vanilla ones) display weirdly while inside a Cage or Jar
Brun333rp opened this issue ยท 4 comments
Many baby animals display extremely small. Note that the pig's eyes are not even appearing
A big difference between caged baby Hoglins and baby Zoglins
How their item forms look like
How a Silverfish inside a Jar look, compared to other mobs
Some mobs might display with their heads out of Cages. From left to right: Ocelot, baby Wolf, Fox and baby Foxhound (from Quark);
Baby Panda compared to caged baby Panda
Baby Polar Bear compared it's caged counterpart
How most of Alex's Mobs baby mobs look, compared to their caged counterparts. Note that it might affects other mobs as well, these are the ones I have added. Also, baby Warped Toads and baby Endergrades look normal.
so basically to fit mobs inside a jar or cage I have to scale them. The only way for me to do it is by using their hitbox. Try pressing f3+b and you'll see that they all have their hitbox that precisely matches one of the two cage dimension. If a mob actual models shape doesn't match its hitbox only think I can do is add special individual cases for them. I have already a few for vanilla mobs but of course I can't add a special case for all modded mobs. Baby mobs are one of the main culprit here since they like to have a reduced hitbox but still use the adult head that potrudes way outside said hitbox. That can only be solved through special cases though since some baby have their head on the top others on the front so I can't just scale all babies down cause for example a baby zombie would fit with current dimensions inside a cage while a hoglin will not. I do have a solution planned for this: it will basically bring that part of the code onto the configs file where one will be able to tweak a mob special parameter (basically two x and y values that will be added to its actual hitbox when calculating its scaling factor). I still have to figure out how to do that though
no worries. I had plans to implement that solution since I knew that was an issue. I'll get to it when I'll learn how to add such a complex data structure to the config