baby rabbits and craftings

incremented vertical slot for crafting table and implemented baby rabbit.
SpawnEgg named with Toast works too
This commit is contained in:
ChristianF 2026-03-13 15:07:11 +01:00
parent c1124d2f26
commit 348e44fe9e
2 changed files with 10 additions and 3 deletions

View file

@ -22,7 +22,7 @@ protected:
static const int m_iMaxHSlotC = 12;
static const int m_iMaxHCraftingSlotC = 10;
static const int m_iMaxVSlotC = 17;
static const int m_iMaxVSlotC = 99;
static const int m_iMaxDisplayedVSlotC = 3;
static const int m_iIngredients3x3SlotC = 9;
static const int m_iIngredients2x2SlotC = 4;

View file

@ -46,6 +46,13 @@ ResourceLocation *RabbitRenderer::getTextureLocation(shared_ptr<Entity> entity)
void RabbitRenderer::scale(shared_ptr<LivingEntity> _mob, float a)
{
glScalef(0.65f, 0.65f, 0.65f);
// adult scaling
float s = 0.65f;
// baby scaling
if (_mob->isBaby()) {
s *= 0.8f;
}
glScalef(s, s, s);
}