1.15 Taming Code Help

Started by gustavowizard123 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Sep 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
1.15 Taming Code Help

Hey guys im updating my tame code to 1.15 (from 1.12); the mob already is tameable, now im trying to make it´s model to sit when clicked (when tamed), everything is ready except this code part here; can someone help me to convert this code to 1.15? thanks!

 

public void setLivingAnimations(EntityLivingBase entitylivingbaseIn, float limbSwing, float limbSwingAmount, float partialTickTime)
     {
        EntitycapuchinBlond entitycapuchinBlond = (EntitycapuchinBlond)entitylivingbaseIn;

        
        if (entitycapuchinBlond.isSitting())
        
        {
            this.Head.setRotationPoint(0.5F, 17F, -1F);
			this.Body.setRotationPoint(0F, 18.5F, -0.5F);
			this.Body.rotateAngleX = 0.5235988F;
			...
			
        }
        
        else
        
        {
			this.Head.setRotationPoint(0.5F, 15F, -1F);
			this.Body.setRotationPoint(0F, 16.5F, -0.5F);
			this.Body.rotateAngleX = 1.047198F;
			....

        }

    }

 

Joined Sep 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i tried like this: but im…
Sat, 06/13/2020 - 23:10

i tried like this: but im still missing something on the second class name there..

public void setLivingAnimations(ILivingEntityData entitylivingbaseIn, float limbSwing, float limbSwingAmount, float partialTickTime)
     {
        CapuchinBlondEntity CapuchinBlondentity = (CapuchinBlondEntity)entitylivingbaseIn;

        
        if (CapuchinBlondentity.isSitting())
        {