1.15 Taming Code Help

Started by gustavowizard123 on

Topic category: Help with modding (Java Edition)

Last seen on 19:53, 2. Jun 2021
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;
			....

        }

    }

 

Last seen on 19:53, 2. Jun 2021
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())
        {

 

Last seen on 19:53, 2. Jun 2021
Joined Sep 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
nobody? :)
Sun, 06/14/2020 - 03:19

nobody? :)

Last seen on 19:53, 2. Jun 2021
Joined Sep 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
please :D
Sun, 06/14/2020 - 22:24

please :D