How do you change rider position? Help!

Started by Dreek on

Topic category: Help with modding (Java Edition)

Last seen on 14:23, 22. Dec 2019
Joined Jul 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do you change rider position? Help!

 Hi guys! I'm making a new car mod. I'm trying to model a car, but the car is too low and your player is too high from the drivers seat. The part in the code where it shows the ride height

is right here:

 

        @Override
        public void travel(float ti, float tj, float tk) {
            Entity entity = this.getPassengers().isEmpty() ? null : (Entity) this.getPassengers().get(0);
            if (this.isBeingRidden()) {
                this.rotationYaw = entity.rotationYaw;
                this.prevRotationYaw = this.rotationYaw;
                this.rotationPitch = entity.rotationPitch * 0.5F;
                this.setRotation(this.rotationYaw, this.rotationPitch);
                this.jumpMovementFactor = this.getAIMoveSpeed() * 0.15F;
                this.renderYawOffset = entity.rotationYaw;
                this.rotationYawHead = entity.rotationYaw;
                this.stepHeight = 1.0F;
                if (entity instanceof EntityLivingBase) {
                    this.setAIMoveSpeed((float) this.getEntityAttribute(SharedMonsterAttributes.MOVEMENT_SPEED).getAttributeValue());
                    float forward = ((EntityLivingBase) entity).moveForward;
                    float strafe = 0;
                    super.travel(strafe, 0, forward);
                }
                this.prevLimbSwingAmount = this.limbSwingAmount;
                double d1 = this.posX - this.prevPosX;
                double d0 = this.posZ - this.prevPosZ;
                float f1 = MathHelper.sqrt(d1 * d1 + d0 * d0) * 4.0F;
                if (f1 > 1.0F)
                    f1 = 1.0F;
                this.limbSwingAmount += (f1 - this.limbSwingAmount) * 0.4F;
                this.limbSwing += this.limbSwingAmount;
                return;
            }
            this.stepHeight = 0.5F;
            this.jumpMovementFactor = 0.02F;
            super.travel(ti, tj, tk);
        }
    }

 

 I want the player to be about half way down that height. Please help!

Last seen on 14:23, 22. Dec 2019
Joined Jul 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
 Oh and here's the model in…
Sat, 10/26/2019 - 02:48

 Oh and here's the model in case it has to do with it. DONT TAKE MY MODEL (If you do, please give me credits) ;) 

 

//Made with Blockbench
//Paste this code into your mod.

import org.lwjgl.opengl.GL11;
import net.minecraft.client.model.ModelBase;
import net.minecraft.client.model.ModelBox;
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.entity.Entity;

public class ModelTruck extends ModelBase {
    private final ModelRenderer wheels;
    private final ModelRenderer chassis;
    private final ModelRenderer hood;
    private final ModelRenderer windshield;
    private final ModelRenderer r;
    private final ModelRenderer wheelwells;
    private final ModelRenderer l;
    private final ModelRenderer lights;
    private final ModelRenderer grill;
    private final ModelRenderer whywhy;
    private final ModelRenderer r2;
    private final ModelRenderer l2;
    private final ModelRenderer roof;
    private final ModelRenderer whywhy2;
    private final ModelRenderer mirrar;

    public ModelTruck()  {
        textureWidth = 64;
        textureHeight = 32;

        wheels = new ModelRenderer(this);
        wheels.setRotationPoint(0.0F, 24.0F, 0.0F);
        setRotationAngle(wheels, 0.0F, 3.1416F, 0.0F);
        wheels.cubeList.add(new ModelBox(wheels, 41, 0, 23.3F, -12.0F, 14.0F, 2, 9, 9, 3.0F, false));
        wheels.cubeList.add(new ModelBox(wheels, 41, 0, 23.3F, -12.0F, -35.0F, 2, 9, 9, 3.0F, false));
        wheels.cubeList.add(new ModelBox(wheels, 41, 0, -9.3F, -12.0F, -35.0F, 2, 9, 9, 3.0F, false));
        wheels.cubeList.add(new ModelBox(wheels, 41, 0, -9.3F, -12.0F, 14.0F, 2, 9, 9, 3.0F, false));

        chassis = new ModelRenderer(this);
        chassis.setRotationPoint(0.0F, 24.0F, 0.0F);
        setRotationAngle(chassis, 0.0F, 3.1416F, 0.0F);
        chassis.cubeList.add(new ModelBox(chassis, 11, 17, 18.0F, -11.0F, 18.0F, 8, 2, 13, 1.0F, false));
        chassis.cubeList.add(new ModelBox(chassis, 11, 17, 10.0F, -11.0F, 18.0F, 8, 2, 13, 1.0F, false));
        chassis.cubeList.add(new ModelBox(chassis, 11, 17, 0.0F, -11.0F, 18.0F, 8, 2, 13, 1.0F, false));
        chassis.cubeList.add(new ModelBox(chassis, 11, 17, -10.0F, -11.0F, 18.0F, 8, 2, 13, 1.0F, false));
        chassis.cubeList.add(new ModelBox(chassis, 11, 17, -10.0F, -11.0F, 3.0F, 8, 2, 13, 1.0F, false));
        chassis.cubeList.add(new ModelBox(chassis, 11, 17, 0.0F, -11.0F, 3.0F, 8, 2, 13, 1.0F, false));
        chassis.cubeList.add(new ModelBox(chassis, 11, 17, 10.0F, -11.0F, 3.0F, 8, 2, 13, 1.0F, false));
        chassis.cubeList.add(new ModelBox(chassis, 11, 17, 18.0F, -11.0F, 3.0F, 8, 2, 13, 1.0F, false));
        chassis.cubeList.add(new ModelBox(chassis, 11, 17, 18.0F, -11.0F, -12.0F, 8, 2, 13, 1.0F, false));
        chassis.cubeList.add(new ModelBox(chassis, 11, 17, 18.0F, -11.0F, -27.0F, 8, 2, 13, 1.0F, false));
        chassis.cubeList.add(new ModelBox(chassis, 11, 17, 18.0F, -11.0F, -39.0F, 8, 2, 13, 1.0F, false));
        chassis.cubeList.add(new ModelBox(chassis, 4, 14, -10.0F, -11.0F, -44.0F, 8, 2, 16, 1.0F, false));
        chassis.cubeList.add(new ModelBox(chassis, 4, 14, 0.0F, -11.0F, -44.0F, 8, 2, 16, 1.0F, false));
        chassis.cubeList.add(new ModelBox(chassis, 18, 23, 10.0F, -11.0F, -44.0F, 16, 2, 7, 1.0F, false));
        chassis.cubeList.add(new ModelBox(chassis, 11, 17, -10.0F, -11.0F, -27.0F, 8, 2, 13, 1.0F, false));
        chassis.cubeList.add(new ModelBox(chassis, 11, 17, 0.0F, -11.0F, -27.0F, 8, 2, 13, 1.0F, false));
        chassis.cubeList.add(new ModelBox(chassis, 11, 17, 8.3F, -11.0F, -27.0F, 8, 2, 13, 1.0F, false));
        chassis.cubeList.add(new ModelBox(chassis, 11, 17, 8.3F, -11.0F, -39.0F, 8, 2, 13, 1.0F, false));
        chassis.cubeList.add(new ModelBox(chassis, 11, 17, -0.7F, -11.0F, -39.0F, 8, 2, 13, 1.0F, false));
        chassis.cubeList.add(new ModelBox(chassis, 11, 17, 8.0F, -11.0F, -12.0F, 8, 2, 13, 1.0F, false));
        chassis.cubeList.add(new ModelBox(chassis, 11, 17, -2.0F, -11.0F, -12.0F, 8, 2, 13, 1.0F, false));
        chassis.cubeList.add(new ModelBox(chassis, 11, 17, -10.0F, -11.0F, -12.0F, 8, 2, 13, 1.0F, false));
        chassis.cubeList.add(new ModelBox(chassis, 40, 0, -7.0F, -15.0F, 0.0F, 9, 3, 7, 1.0F, false));
        chassis.cubeList.add(new ModelBox(chassis, 40, 0, 14.0F, -15.0F, 0.0F, 9, 3, 7, 1.0F, false));
        chassis.cubeList.add(new ModelBox(chassis, 40, 0, -3.0F, -15.0F, 0.0F, 9, 3, 7, 1.0F, false));
        chassis.cubeList.add(new ModelBox(chassis, 40, 0, 10.0F, -15.0F, 0.0F, 9, 3, 7, 1.0F, false));
        chassis.cubeList.add(new ModelBox(chassis, 40, 0, -3.0F, -15.0F, -5.0F, 9, 3, 7, 1.0F, false));
        chassis.cubeList.add(new ModelBox(chassis, 54, 0, 11.0F, -14.0F, -4.0F, 0, 2, 5, 2.0F, false));
        chassis.cubeList.add(new ModelBox(chassis, 54, 0, 11.0F, -14.0F, -16.0F, 0, 2, 5, 2.0F, false));
        chassis.cubeList.add(new ModelBox(chassis, 54, 0, 15.0F, -14.0F, -16.0F, 0, 2, 5, 2.0F, false));
        chassis.cubeList.add(new ModelBox(chassis, 54, 0, 19.0F, -14.0F, -16.0F, 0, 2, 5, 2.0F, false));
        chassis.cubeList.add(new ModelBox(chassis, 54, 0, 23.0F, -14.0F, -16.0F, 0, 2, 5, 2.0F, false));
        chassis.cubeList.add(new ModelBox(chassis, 54, 0, 7.0F, -14.0F, -16.0F, 0, 2, 5, 2.0F, false));
        chassis.cubeList.add(new ModelBox(chassis, 54, 0, 3.0F, -14.0F, -16.0F, 0, 2, 5, 2.0F, false));
        chassis.cubeList.add(new ModelBox(chassis, 54, 0, -1.0F, -14.0F, -16.0F, 0, 2, 5, 2.0F, false));
        chassis.cubeList.add(new ModelBox(chassis, 54, 0, -1.0F, -14.0F, -16.0F, 0, 2, 5, 2.0F, false));
        chassis.cubeList.add(new ModelBox(chassis, 54, 0, -5.0F, -14.0F, -16.0F, 0, 2, 5, 2.0F, false));
        chassis.cubeList.add(new ModelBox(chassis, 54, 0, -7.0F, -14.0F, -16.0F, 0, 2, 5, 2.0F, false));
        chassis.cubeList.add(new ModelBox(chassis, 40, 0, 14.0F, -15.0F, -5.0F, 9, 3, 7, 1.0F, false));
        chassis.cubeList.add(new ModelBox(chassis, 40, 0, -7.0F, -15.0F, -5.0F, 9, 3, 7, 1.0F, false));
        chassis.cubeList.add(new ModelBox(chassis, 52, 0, 8.0F, -17.0F, 2.0F, 0, 4, 6, 1.0F, false));
        chassis.cubeList.add(new ModelBox(chassis, 52, 0, 8.0F, -17.0F, 3.0F, 0, 4, 6, 1.0F, false));
        chassis.cubeList.add(new ModelBox(chassis, 52, 0, 8.0F, -17.0F, -6.0F, 0, 4, 6, 1.0F, false));

        hood = new ModelRenderer(this);
        hood.setRotationPoint(0.0F, 24.0F, 0.0F);
        setRotationAngle(hood, -0.0873F, 3.1416F, 0.0F);
        hood.cubeList.add(new ModelBox(hood, 4, 18, 8.0F, -25.9848F, 15.6514F, 18, 0, 12, 1.0F, false));
        hood.cubeList.add(new ModelBox(hood, 62, 0, 8.0F, -12.9848F, 12.6514F, 0, 1, 1, 1.0F, false));
        hood.cubeList.add(new ModelBox(hood, 62, 0, 8.0F, -12.9848F, 11.6514F, 0, 1, 1, 1.0F, false));
        hood.cubeList.add(new ModelBox(hood, 62, 0, 8.0F, -12.9848F, 10.6514F, 0, 1, 1, 1.0F, false));
        hood.cubeList.add(new ModelBox(hood, 62, 0, 8.0F, -12.9848F, 9.6514F, 0, 1, 1, 1.0F, false));
        hood.cubeList.add(new ModelBox(hood, 62, 0, 8.0F, -12.9848F, 8.6514F, 0, 1, 1, 1.0F, false));
        hood.cubeList.add(new ModelBox(hood, 62, 0, 8.0F, -15.9848F, 8.6514F, 0, 1, 1, 1.0F, false));
        hood.cubeList.add(new ModelBox(hood, 62, 0, 8.0F, -21.9848F, 11.6514F, 0, 7, 1, 1.0F, false));
        hood.cubeList.add(new ModelBox(hood, 62, 0, 8.0F, -18.9848F, 8.6514F, 0, 1, 1, 1.0F, false));
        hood.cubeList.add(new ModelBox(hood, 62, 0, 8.0F, -24.9848F, 8.6514F, 0, 5, 1, 1.0F, false));
        hood.cubeList.add(new ModelBox(hood, 4, 32, 7.0F, -25.9848F, 8.6514F, 1, 0, -1, 2.0F, false));
        hood.cubeList.add(new ModelBox(hood, 4, 32, 12.0F, -25.9848F, 8.6514F, 1, 0, -1, 2.0F, false));
        hood.cubeList.add(new ModelBox(hood, 4, 32, 17.0F, -25.9848F, 8.6514F, 1, 0, -1, 2.0F, false));
        hood.cubeList.add(new ModelBox(hood, 4, 32, 22.0F, -25.9848F, 8.6514F, 1, 0, -1, 2.0F, false));
        hood.cubeList.add(new ModelBox(hood, 4, 32, 2.0F, -25.9848F, 8.6514F, 1, 0, -1, 2.0F, false));
        hood.cubeList.add(new ModelBox(hood, 4, 32, -3.0F, -25.9848F, 8.6514F, 1, 0, -1, 2.0F, false));
        hood.cubeList.add(new ModelBox(hood, 4, 32, -7.0F, -25.9848F, 8.6514F, 1, 0, -1, 2.0F, false));
        hood.cubeList.add(new ModelBox(hood, 0, 0, -7.0F, -22.9848F, 12.6514F, 32, 11, 0, 1.0F, false));
        hood.cubeList.add(new ModelBox(hood, 0, 22, 4.0F, -15.9848F, 10.6514F, 1, 1, 1, 0.0F, false));
        hood.cubeList.add(new ModelBox(hood, 0, 22, 5.0F, -15.9848F, 10.6514F, 1, 1, 1, 0.0F, false));
        hood.cubeList.add(new ModelBox(hood, 0, 22, 5.0F, -16.9848F, 10.6514F, 1, 1, 1, 0.0F, false));
        hood.cubeList.add(new ModelBox(hood, 0, 22, 4.0F, -16.9848F, 10.6514F, 1, 1, 1, 0.0F, false));
        hood.cubeList.add(new ModelBox(hood, 0, 22, 4.0F, -17.9848F, 10.6514F, 1, 1, 1, 0.0F, false));
        hood.cubeList.add(new ModelBox(hood, 0, 22, 5.0F, -17.9848F, 10.6514F, 1, 1, 1, 0.0F, false));
        hood.cubeList.add(new ModelBox(hood, 0, 22, 5.0F, -18.9848F, 10.6514F, 1, 1, 1, 0.0F, false));
        hood.cubeList.add(new ModelBox(hood, 0, 22, 4.0F, -18.9848F, 10.6514F, 1, 1, 1, 0.0F, false));
        hood.cubeList.add(new ModelBox(hood, 0, 22, 4.0F, -19.9848F, 10.6514F, 1, 1, 1, 0.0F, false));
        hood.cubeList.add(new ModelBox(hood, 0, 22, 5.0F, -19.9848F, 10.6514F, 1, 1, 1, 0.0F, false));
        hood.cubeList.add(new ModelBox(hood, 0, 22, -4.0F, -17.9848F, 10.6514F, 1, 1, 1, 0.0F, false));
        hood.cubeList.add(new ModelBox(hood, 0, 22, -3.0F, -17.9848F, 10.6514F, 1, 1, 1, 0.0F, false));
        hood.cubeList.add(new ModelBox(hood, 0, 22, -3.0F, -18.9848F, 10.6514F, 1, 1, 1, 0.0F, false));
        hood.cubeList.add(new ModelBox(hood, 0, 22, -3.0F, -19.9848F, 10.6514F, 1, 1, 1, 0.0F, false));
        hood.cubeList.add(new ModelBox(hood, 0, 22, -4.0F, -19.9848F, 10.6514F, 1, 1, 1, 0.0F, false));
        hood.cubeList.add(new ModelBox(hood, 0, 22, -4.0F, -18.9848F, 10.6514F, 1, 1, 1, 0.0F, false));
        hood.cubeList.add(new ModelBox(hood, 0, 0, -10.0F, -25.9848F, 9.6514F, 18, 2, 5, 1.0F, false));
        hood.cubeList.add(new ModelBox(hood, 48, 0, -5.0F, -29.9848F, 5.6514F, 1, 7, 1, 0.0F, false));
        hood.cubeList.add(new ModelBox(hood, 48, 0, 2.0F, -29.9848F, 5.6514F, 1, 7, 1, 0.0F, false));
        hood.cubeList.add(new ModelBox(hood, 0, 22, -4.0F, -26.9848F, 5.6514F, 1, 1, 1, 0.0F, false));
        hood.cubeList.add(new ModelBox(hood, 0, 22, -3.0F, -26.9848F, 5.6514F, 1, 1, 1, 0.0F, false));
        hood.cubeList.add(new ModelBox(hood, 0, 22, 0.0F, -26.9848F, 5.6514F, 1, 1, 1, 0.0F, false));
        hood.cubeList.add(new ModelBox(hood, 0, 22, 1.0F, -26.9848F, 5.6514F, 1, 1, 1, 0.0F, false));
        hood.cubeList.add(new ModelBox(hood, 0, 22, -1.5F, -24.9848F, 5.6514F, 1, 1, 1, 0.0F, false));
        hood.cubeList.add(new ModelBox(hood, 0, 22, -1.5F, -25.9848F, 5.6514F, 1, 1, 1, 0.0F, false));
        hood.cubeList.add(new ModelBox(hood, 0, 20, -1.0F, -26.9848F, 5.6514F, 1, 1, 1, 0.0F, false));
        hood.cubeList.add(new ModelBox(hood, 48, 0, -4.0F, -29.9848F, 5.6514F, 6, 1, 1, 0.0F, false));
        hood.cubeList.add(new ModelBox(hood, 48, 0, -4.0F, -23.9848F, 5.6514F, 6, 1, 1, 0.0F, false));
        hood.cubeList.add(new ModelBox(hood, 0, 20, -2.0F, -26.9848F, 5.6514F, 1, 1, 1, 0.0F, false));
        hood.cubeList.add(new ModelBox(hood, 0, 0, 8.0F, -25.9848F, 9.6514F, 18, 2, 5, 1.0F, false));
        hood.cubeList.add(new ModelBox(hood, 4, 19, -10.0F, -25.9848F, 15.6514F, 18, 1, 12, 1.0F, false));
        hood.cubeList.add(new ModelBox(hood, 4, 19, 1.0F, -26.1F, 9.6514F, 13, 1, 19, 1.0F, false));
        hood.cubeList.add(new ModelBox(hood, 4, 19, -10.0F, -25.9848F, 16.6514F, 18, 1, 12, 1.0F, false));
        hood.cubeList.add(new ModelBox(hood, 4, 19, 8.0F, -25.9848F, 16.6514F, 18, 1, 12, 1.0F, false));

        windshield = new ModelRenderer(this);
        windshield.setRotationPoint(0.0F, 24.0F, 0.0F);
        setRotationAngle(windshield, -1.0472F, 3.1416F, 0.0F);
        windshield.cubeList.add(new ModelBox(windshield, 40, 18, -10.0F, -24.5F, -26.866F, 1, 1, 11, 0.0F, false));
        windshield.cubeList.add(new ModelBox(windshield, 40, 18, 25.0F, -24.5F, -26.866F, 1, 1, 11, 0.0F, false));
        windshield.cubeList.add(new ModelBox(windshield, 40, 18, -10.0F, -24.5F, -30.866F, 1, 1, 11, 0.0F, false));
        windshield.cubeList.add(new ModelBox(windshield, 40, 18, -10.0F, -24.5F, -30.866F, 11, 1, 1, 0.0F, false));
        windshield.cubeList.add(new ModelBox(windshield, 40, 18, 1.0F, -24.5F, -30.866F, 11, 1, 1, 0.0F, false));
        windshield.cubeList.add(new ModelBox(windshield, 40, 18, 12.0F, -24.5F, -30.866F, 11, 1, 1, 0.0F, false));
        windshield.cubeList.add(new ModelBox(windshield, 40, 18, 14.0F, -24.5F, -30.866F, 11, 1, 1, 0.0F, false));
        windshield.cubeList.add(new ModelBox(windshield, 38, 19, 14.0F, -24.5F, -17.866F, 11, 1, 2, 0.0F, false));
        windshield.cubeList.add(new ModelBox(windshield, 38, 29, 3.0F, -24.5F, -17.866F, 11, 1, 2, 0.0F, false));
        windshield.cubeList.add(new ModelBox(windshield, 38, 18, 0.0F, -24.5F, -17.866F, 11, 1, 2, 0.0F, false));
        windshield.cubeList.add(new ModelBox(windshield, 38, 29, -9.0F, -24.5F, -17.866F, 11, 1, 2, 0.0F, false));
        windshield.cubeList.add(new ModelBox(windshield, 40, 18, 25.0F, -24.5F, -30.866F, 1, 1, 11, 0.0F, false));

        r = new ModelRenderer(this);
        r.setRotationPoint(0.0F, 24.0F, 0.0F);
        setRotationAngle(r, 0.0F, 3.1416F, 0.0F);
        r.cubeList.add(new ModelBox(r, 0, 0, -10.0F, -19.0F, 2.0F, 0, 8, 12, 1.0F, false));
        r.cubeList.add(new ModelBox(r, 0, 0, -10.0F, -19.0F, -10.0F, 0, 8, 12, 1.0F, false));
        r.cubeList.add(new ModelBox(r, 0, 0, -10.0F, -19.0F, -16.0F, 0, 8, 12, 1.0F, false));

        wheelwells = new ModelRenderer(this);
        wheelwells.setRotationPoint(0.0F, 24.0F, 0.0F);
        setRotationAngle(wheelwells, 0.0F, 3.1416F, 0.0F);
        wheelwells.cubeList.add(new ModelBox(wheelwells, 0, 0, -10.0F, -15.0F, 13.0F, 1, 4, 16, 1.0F, false));
        wheelwells.cubeList.add(new ModelBox(wheelwells, 0, 0, -10.0F, -15.0F, -38.0F, 1, 4, 16, 1.0F, false));
        wheelwells.cubeList.add(new ModelBox(wheelwells, 0, 0, 25.0F, -15.0F, -38.0F, 1, 4, 16, 1.0F, false));
        wheelwells.cubeList.add(new ModelBox(wheelwells, 0, 0, 25.0F, -15.0F, 13.0F, 1, 4, 16, 1.0F, false));
        wheelwells.cubeList.add(new ModelBox(wheelwells, 0, 0, -10.0F, -17.0F, 13.0F, 1, 4, 16, 1.0F, false));
        wheelwells.cubeList.add(new ModelBox(wheelwells, 0, 0, -10.0F, -18.0F, 13.0F, 1, 4, 15, 1.0F, false));
        wheelwells.cubeList.add(new ModelBox(wheelwells, 0, 0, -10.0F, -18.0F, -38.0F, 1, 4, 16, 1.0F, false));
        wheelwells.cubeList.add(new ModelBox(wheelwells, 0, 0, 25.0F, -18.0F, -38.0F, 1, 4, 16, 1.0F, false));
        wheelwells.cubeList.add(new ModelBox(wheelwells, 0, 0, -10.0F, -19.0F, -38.0F, 1, 1, 16, 1.0F, false));
        wheelwells.cubeList.add(new ModelBox(wheelwells, 0, 0, 25.0F, -19.0F, -38.0F, 1, 1, 16, 1.0F, false));
        wheelwells.cubeList.add(new ModelBox(wheelwells, 0, 0, 25.0F, -18.0F, 13.0F, 1, 4, 16, 1.0F, false));
        wheelwells.cubeList.add(new ModelBox(wheelwells, 0, 0, -10.0F, -18.0F, 13.0F, 1, 3, 13, 1.0F, false));
        wheelwells.cubeList.add(new ModelBox(wheelwells, 0, 0, 25.0F, -18.0F, 13.0F, 1, 3, 13, 1.0F, false));
        wheelwells.cubeList.add(new ModelBox(wheelwells, 0, 0, -10.0F, -19.0F, 12.0F, 1, 0, 6, 1.0F, false));
        wheelwells.cubeList.add(new ModelBox(wheelwells, 0, 0, 25.0F, -19.0F, 12.0F, 1, 0, 6, 1.0F, false));

        l = new ModelRenderer(this);
        l.setRotationPoint(0.0F, 24.0F, 0.0F);
        setRotationAngle(l, 0.0F, 3.1416F, 0.0F);
        l.cubeList.add(new ModelBox(l, 0, 0, 26.0F, -19.0F, 2.0F, 0, 8, 12, 1.0F, false));
        l.cubeList.add(new ModelBox(l, 0, 0, 26.0F, -19.0F, -10.0F, 0, 8, 12, 1.0F, false));
        l.cubeList.add(new ModelBox(l, 0, 0, 26.0F, -19.0F, -16.0F, 0, 8, 12, 1.0F, false));

        lights = new ModelRenderer(this);
        lights.setRotationPoint(0.0F, 24.0F, 0.0F);
        setRotationAngle(lights, 1.2217F, 0.0F, 0.0F);
        lights.cubeList.add(new ModelBox(lights, 0, 0, 10.0F, -37.9681F, 6.7588F, 1, 1, 5, 0.0F, false));
        lights.cubeList.add(new ModelBox(lights, 0, 0, 5.0F, -37.9681F, 6.7588F, 5, 1, 1, 0.0F, false));
        lights.cubeList.add(new ModelBox(lights, 0, 0, -26.0F, -37.9681F, 6.7588F, 5, 1, 1, 0.0F, false));
        lights.cubeList.add(new ModelBox(lights, 0, 26, -26.0F, -37.9681F, 8.7588F, 1, 1, 1, 0.0F, false));
        lights.cubeList.add(new ModelBox(lights, 0, 26, -26.0F, -37.9681F, 9.7588F, 1, 1, 1, 0.0F, false));
        lights.cubeList.add(new ModelBox(lights, 0, 26, -25.0F, -37.9681F, 9.7588F, 1, 1, 1, 0.0F, false));
        lights.cubeList.add(new ModelBox(lights, 0, 26, -24.0F, -37.9681F, 9.7588F, 1, 1, 1, 0.0F, false));
        lights.cubeList.add(new ModelBox(lights, 0, 26, -23.0F, -37.9681F, 9.7588F, 1, 1, 1, 0.0F, false));
        lights.cubeList.add(new ModelBox(lights, 0, 26, -22.0F, -37.9681F, 8.7588F, 1, 1, 1, 0.0F, false));
        lights.cubeList.add(new ModelBox(lights, 0, 26, 5.0F, -37.9681F, 8.7588F, 1, 1, 1, 0.0F, false));
        lights.cubeList.add(new ModelBox(lights, 0, 26, 6.0F, -37.9681F, 9.7588F, 1, 1, 1, 0.0F, false));
        lights.cubeList.add(new ModelBox(lights, 0, 26, 7.0F, -37.9681F, 9.7588F, 1, 1, 1, 0.0F, false));
        lights.cubeList.add(new ModelBox(lights, 0, 26, 8.0F, -37.9681F, 9.7588F, 1, 1, 1, 0.0F, false));
        lights.cubeList.add(new ModelBox(lights, 0, 26, 9.0F, -37.9681F, 9.7588F, 1, 1, 1, 0.0F, false));
        lights.cubeList.add(new ModelBox(lights, 0, 26, 9.0F, -37.9681F, 8.7588F, 1, 1, 1, 0.0F, false));
        lights.cubeList.add(new ModelBox(lights, 0, 26, 9.0F, -37.9681F, 7.7588F, 1, 1, 1, 0.0F, false));
        lights.cubeList.add(new ModelBox(lights, 0, 26, 8.0F, -37.9681F, 7.7588F, 1, 1, 1, 0.0F, false));
        lights.cubeList.add(new ModelBox(lights, 0, 26, 6.0F, -37.9681F, 7.7588F, 1, 1, 1, 0.0F, false));
        lights.cubeList.add(new ModelBox(lights, 0, 26, 7.0F, -37.9681F, 7.7588F, 1, 1, 1, 0.0F, false));
        lights.cubeList.add(new ModelBox(lights, 0, 26, 5.0F, -37.9681F, 7.7588F, 1, 1, 1, 0.0F, false));
        lights.cubeList.add(new ModelBox(lights, 0, 26, -22.0F, -37.9681F, 7.7588F, 1, 1, 1, 0.0F, false));
        lights.cubeList.add(new ModelBox(lights, 0, 26, -26.0F, -37.9681F, 7.7588F, 1, 1, 1, 0.0F, false));
        lights.cubeList.add(new ModelBox(lights, 0, 26, -25.0F, -37.9681F, 7.7588F, 1, 1, 1, 0.0F, false));
        lights.cubeList.add(new ModelBox(lights, 0, 26, -24.0F, -37.9681F, 7.7588F, 1, 1, 1, 0.0F, false));
        lights.cubeList.add(new ModelBox(lights, 0, 26, -23.0F, -37.9681F, 7.7588F, 1, 1, 1, 0.0F, false));
        lights.cubeList.add(new ModelBox(lights, 0, 24, -25.0F, -37.9681F, 8.7588F, 1, 1, 1, 0.0F, false));
        lights.cubeList.add(new ModelBox(lights, 0, 24, 8.0F, -37.9681F, 8.7588F, 1, 1, 1, 0.0F, false));
        lights.cubeList.add(new ModelBox(lights, 0, 22, -24.0F, -37.9681F, 8.7588F, 1, 1, 1, 0.0F, false));
        lights.cubeList.add(new ModelBox(lights, 0, 22, 7.0F, -37.9681F, 8.7588F, 1, 1, 1, 0.0F, false));
        lights.cubeList.add(new ModelBox(lights, 0, 30, -23.0F, -37.9681F, 8.7588F, 1, 1, 1, 0.0F, false));
        lights.cubeList.add(new ModelBox(lights, 0, 30, 6.0F, -37.9681F, 8.7588F, 1, 1, 1, 0.0F, false));
        lights.cubeList.add(new ModelBox(lights, 0, 0, -27.0F, -37.9681F, 6.7588F, 1, 1, 5, 0.0F, false));
        lights.cubeList.add(new ModelBox(lights, 0, 0, -26.0F, -37.9681F, 10.7588F, 5, 1, 1, 0.0F, false));
        lights.cubeList.add(new ModelBox(lights, 0, 0, 5.0F, -37.9681F, 10.7588F, 5, 1, 1, 0.0F, false));
        lights.cubeList.add(new ModelBox(lights, 0, 0, 5.0F, -37.9681F, 9.7588F, 1, 1, 1, 0.0F, false));
        lights.cubeList.add(new ModelBox(lights, 0, 0, -22.0F, -37.9681F, 9.7588F, 1, 1, 1, 0.0F, false));
        lights.cubeList.add(new ModelBox(lights, 0, 0, -21.0F, -37.9681F, 6.7588F, 19, 1, 5, 0.0F, false));
        lights.cubeList.add(new ModelBox(lights, 40, 0, -19.0F, -37.0681F, 6.7588F, 9, 0, 2, 1.0F, false));
        lights.cubeList.add(new ModelBox(lights, 40, 0, -8.0F, -37.0681F, 6.7588F, 9, 0, 2, 1.0F, false));
        lights.cubeList.add(new ModelBox(lights, 40, 0, -6.0F, -37.0681F, 6.7588F, 9, 0, 2, 1.0F, false));
        lights.cubeList.add(new ModelBox(lights, 0, 0, -14.0F, -37.9681F, 6.7588F, 19, 1, 5, 0.0F, false));

        grill = new ModelRenderer(this);
        grill.setRotationPoint(0.0F, 24.0F, 0.0F);
        grill.cubeList.add(new ModelBox(grill, 0, 0, 10.0F, -17.0F, -34.0F, 1, 8, 1, 0.0F, false));
        grill.cubeList.add(new ModelBox(grill, 0, 0, -27.0F, -17.0F, -34.0F, 1, 8, 1, 0.0F, false));
        grill.cubeList.add(new ModelBox(grill, 10, 27, -21.0F, -18.0F, -34.0F, 26, 2, 1, 0.0F, false));
        grill.cubeList.add(new ModelBox(grill, 50, 3, -19.0F, -19.0F, -33.0F, 6, 0, -1, 1.0F, false));
        grill.cubeList.add(new ModelBox(grill, 50, 3, -19.0F, -19.0F, -33.0F, 6, 0, -1, 1.0F, false));
        grill.cubeList.add(new ModelBox(grill, 50, 3, -11.0F, -19.0F, -33.0F, 6, 0, -1, 1.0F, false));
        grill.cubeList.add(new ModelBox(grill, 50, 3, -3.0F, -19.0F, -33.0F, 6, 0, -1, 1.0F, false));
        grill.cubeList.add(new ModelBox(grill, 10, 28, -27.0F, -20.0F, -34.0F, 7, 3, 1, 0.0F, false));
        grill.cubeList.add(new ModelBox(grill, 10, 28, 4.0F, -20.0F, -34.0F, 7, 3, 1, 0.0F, false));
        grill.cubeList.add(new ModelBox(grill, 0, 0, -26.0F, -11.0F, -34.0F, 36, 2, 1, 0.0F, false));
        grill.cubeList.add(new ModelBox(grill, 54, 0, 5.0F, -17.0F, -33.0F, 5, 7, 1, 0.0F, false));
        grill.cubeList.add(new ModelBox(grill, 52, 0, -26.0F, -17.0F, -33.0F, 5, 7, 1, 0.0F, false));
        grill.cubeList.add(new ModelBox(grill, 54, 0, -21.0F, -17.0F, -33.0F, 4, 7, 1, 0.0F, false));
        grill.cubeList.add(new ModelBox(grill, 54, 0, -17.0F, -17.0F, -33.0F, 4, 7, 1, 0.0F, false));
        grill.cubeList.add(new ModelBox(grill, 54, 0, -13.0F, -17.0F, -33.0F, 4, 7, 1, 0.0F, false));
        grill.cubeList.add(new ModelBox(grill, 54, 0, -9.0F, -17.0F, -33.0F, 4, 7, 1, 0.0F, false));
        grill.cubeList.add(new ModelBox(grill, 54, 0, -5.0F, -17.0F, -33.0F, 4, 7, 1, 0.0F, false));
        grill.cubeList.add(new ModelBox(grill, 54, 0, -1.0F, -17.0F, -33.0F, 4, 7, 1, 0.0F, false));
        grill.cubeList.add(new ModelBox(grill, 54, 0, 1.0F, -17.0F, -33.0F, 4, 7, 1, 0.0F, false));
        grill.cubeList.add(new ModelBox(grill, 0, 0, -27.0F, -18.0F, -33.0F, 1, 9, 1, 0.0F, false));
        grill.cubeList.add(new ModelBox(grill, 0, 0, 10.0F, -18.0F, -33.0F, 1, 9, 1, 0.0F, false));
        grill.cubeList.add(new ModelBox(grill, 0, 0, -27.0F, -18.0F, -32.0F, 1, 9, 1, 0.0F, false));
        grill.cubeList.add(new ModelBox(grill, 0, 0, 10.0F, -18.0F, -32.0F, 1, 9, 1, 0.0F, false));
        grill.cubeList.add(new ModelBox(grill, 0, 0, -27.0F, -19.0F, -31.0F, 1, 10, 1, 0.0F, false));
        grill.cubeList.add(new ModelBox(grill, 0, 0, 10.0F, -19.0F, -31.0F, 1, 10, 1, 0.0F, false));

        whywhy = new ModelRenderer(this);
        whywhy.setRotationPoint(0.0F, 24.0F, 0.0F);
        whywhy.cubeList.add(new ModelBox(whywhy, 0, 0, -25.0F, -17.3017F, -34.0F, 5, 7, 1, 0.0F, false));
        whywhy.cubeList.add(new ModelBox(whywhy, 0, 26, -26.0F, -12.0F, -34.0F, 1, 1, 1, 0.0F, false));
        whywhy.cubeList.add(new ModelBox(whywhy, 0, 26, -26.0F, -13.0F, -34.0F, 1, 1, 1, 0.0F, false));
        whywhy.cubeList.add(new ModelBox(whywhy, 0, 26, -26.0F, -14.0F, -34.0F, 1, 1, 1, 0.0F, false));
        whywhy.cubeList.add(new ModelBox(whywhy, 0, 26, -26.0F, -15.0F, -34.0F, 1, 1, 1, 0.0F, false));
        whywhy.cubeList.add(new ModelBox(whywhy, 0, 26, -26.0F, -16.0F, -34.0F, 1, 1, 1, 0.0F, false));
        whywhy.cubeList.add(new ModelBox(whywhy, 0, 26, -26.0F, -17.0F, -34.0F, 1, 1, 1, 0.0F, false));
        whywhy.cubeList.add(new ModelBox(whywhy, 0, 26, 9.0F, -17.0F, -34.0F, 1, 1, 1, 0.0F, false));
        whywhy.cubeList.add(new ModelBox(whywhy, 0, 26, 9.0F, -16.0F, -34.0F, 1, 1, 1, 0.0F, false));
        whywhy.cubeList.add(new ModelBox(whywhy, 0, 26, 9.0F, -15.0F, -34.0F, 1, 1, 1, 0.0F, false));
        whywhy.cubeList.add(new ModelBox(whywhy, 0, 26, 9.0F, -14.0F, -34.0F, 1, 1, 1, 0.0F, false));
        whywhy.cubeList.add(new ModelBox(whywhy, 0, 26, 9.0F, -13.0F, -34.0F, 1, 1, 1, 0.0F, false));
        whywhy.cubeList.add(new ModelBox(whywhy, 0, 26, 9.0F, -12.0F, -34.0F, 1, 1, 1, 0.0F, false));

        r2 = new ModelRenderer(this);
        r2.setRotationPoint(0.0F, 24.0F, 0.0F);
        setRotationAngle(r2, 0.0F, 3.1416F, 0.0F);
        r2.cubeList.add(new ModelBox(r2, 0, 0, -10.0F, -25.0F, 2.0F, 0, 8, 12, 1.0F, false));
        r2.cubeList.add(new ModelBox(r2, 0, 0, -10.0F, -23.0F, 16.0F, 0, 8, 12, 1.0F, false));
        r2.cubeList.add(new ModelBox(r2, 0, 0, 26.0F, -23.0F, 16.0F, 0, 8, 12, 1.0F, false));
        r2.cubeList.add(new ModelBox(r2, 0, 0, -10.0F, -23.0F, 19.0F, 0, 8, 12, 1.0F, false));
        r2.cubeList.add(new ModelBox(r2, 0, 0, 26.0F, -23.0F, 19.0F, 0, 8, 12, 1.0F, false));
        r2.cubeList.add(new ModelBox(r2, 0, 0, -10.0F, -19.0F, 32.0F, 0, 0, 0, 1.0F, false));
        r2.cubeList.add(new ModelBox(r2, 0, 0, 26.0F, -19.0F, 32.0F, 0, 0, 0, 1.0F, false));
        r2.cubeList.add(new ModelBox(r2, 0, 0, -10.0F, -25.0F, -10.0F, 0, 8, 12, 1.0F, false));
        r2.cubeList.add(new ModelBox(r2, 0, 0, -10.0F, -25.0F, -24.0F, 0, 8, 12, 1.0F, false));
        r2.cubeList.add(new ModelBox(r2, 0, 0, -10.0F, -21.0F, -24.0F, 0, 8, 12, 1.0F, false));
        r2.cubeList.add(new ModelBox(r2, 0, 0, -10.0F, -25.0F, -34.0F, 0, 8, 12, 1.0F, false));
        r2.cubeList.add(new ModelBox(r2, 11, 5, -10.0F, -25.0F, -44.0F, 0, 8, 12, 1.0F, false));
        r2.cubeList.add(new ModelBox(r2, 0, 0, -10.0F, -21.0F, -44.0F, 0, 8, 12, 1.0F, false));
        r2.cubeList.add(new ModelBox(r2, 0, 0, 26.0F, -25.0F, -34.0F, 0, 8, 12, 1.0F, false));
        r2.cubeList.add(new ModelBox(r2, 10, 8, 26.0F, -25.0F, -44.0F, 0, 8, 12, 1.0F, false));
        r2.cubeList.add(new ModelBox(r2, 0, 0, 26.0F, -21.0F, -44.0F, 0, 8, 12, 1.0F, false));

        l2 = new ModelRenderer(this);
        l2.setRotationPoint(0.0F, 24.0F, 0.0F);
        setRotationAngle(l2, 0.0F, 3.1416F, 0.0F);
        l2.cubeList.add(new ModelBox(l2, 0, 0, 26.0F, -25.0F, 2.0F, 0, 8, 12, 1.0F, false));
        l2.cubeList.add(new ModelBox(l2, 0, 0, 26.0F, -25.0F, -10.0F, 0, 8, 12, 1.0F, false));
        l2.cubeList.add(new ModelBox(l2, 0, 0, 26.0F, -25.0F, -24.0F, 0, 8, 12, 1.0F, false));
        l2.cubeList.add(new ModelBox(l2, 0, 0, 26.0F, -21.0F, -24.0F, 0, 8, 12, 1.0F, false));

        roof = new ModelRenderer(this);
        roof.setRotationPoint(0.0F, 24.0F, 0.0F);
        roof.cubeList.add(new ModelBox(roof, 36, 26, -7.0F, -20.0F, 13.0F, -2, -37, -12, 19.0F, false));
        roof.cubeList.add(new ModelBox(roof, 21, 22, -18.0F, -19.0F, 50.0F, 20, 0, -12, 7.0F, false));
        roof.cubeList.add(new ModelBox(roof, 21, 22, -18.0F, -19.0F, 25.0F, 20, 0, -12, 7.0F, false));
        roof.cubeList.add(new ModelBox(roof, 7, 6, -26.0F, -38.0F, 6.0F, 1, 12, 2, 0.0F, false));
        roof.cubeList.add(new ModelBox(roof, 7, 6, -26.0F, -38.0F, 18.0F, 1, 12, 2, 0.0F, false));
        roof.cubeList.add(new ModelBox(roof, 7, 6, 9.0F, -38.0F, 18.0F, 1, 12, 2, 0.0F, false));
        roof.cubeList.add(new ModelBox(roof, 7, 6, 9.0F, -38.0F, 6.0F, 1, 12, 2, 0.0F, false));

        whywhy2 = new ModelRenderer(this);
        whywhy2.setRotationPoint(0.0F, 24.0F, 0.0F);
        whywhy2.cubeList.add(new ModelBox(whywhy2, 0, 0, 4.0F, -17.3017F, -34.0F, 5, 7, 1, 0.0F, false));

        mirrar = new ModelRenderer(this);
        mirrar.setRotationPoint(0.0F, 24.0F, 0.0F);
        mirrar.cubeList.add(new ModelBox(mirrar, 0, 0, 9.0F, -27.0F, -12.0F, 5, 1, 1, 0.0F, false));
        mirrar.cubeList.add(new ModelBox(mirrar, 0, 0, -30.0F, -27.0F, -12.0F, 5, 1, 1, 0.0F, false));
        mirrar.cubeList.add(new ModelBox(mirrar, 0, 0, 11.0F, -28.0F, -11.9F, 4, 2, 1, 0.0F, false));
        mirrar.cubeList.add(new ModelBox(mirrar, 0, 0, -31.0F, -28.0F, -11.9F, 4, 2, 1, 0.0F, false));
    }

    @Override
    public void render(Entity entity, float f, float f1, float f2, float f3, float f4, float f5) {
        wheels.render(f5);
        chassis.render(f5);
        hood.render(f5);
        windshield.render(f5);
        r.render(f5);
        wheelwells.render(f5);
        l.render(f5);
        lights.render(f5);
        grill.render(f5);
        whywhy.render(f5);
        r2.render(f5);
        l2.render(f5);
        roof.render(f5);
        whywhy2.render(f5);
        mirrar.render(f5);
    }
    public void setRotationAngle(ModelRenderer modelRenderer, float x, float y, float z) {
        modelRenderer.rotateAngleX = x;
        modelRenderer.rotateAngleY = y;
        modelRenderer.rotateAngleZ = z;
    }
}

 

Just copy the code

Last seen on 14:23, 22. Dec 2019
Joined Jul 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
 Ok Thanks! :)
Sat, 10/26/2019 - 21:46

 Ok Thanks! :)

Last seen on 14:23, 22. Dec 2019
Joined Jul 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Help?
Tue, 10/29/2019 - 23:56

Help?

Last seen on 14:23, 22. Dec 2019
Joined Jul 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm so stuck here. Can…
Sat, 11/02/2019 - 20:05

I'm so stuck here. Can somebody please help?

Last seen on 16:10, 23. Jan 2022
Joined Jun 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If you still need help, in…
Wed, 05/13/2020 - 18:13

If you still need help, in Mcreator there is an option about the bounding box. Juts change it up a little

Last seen on 09:51, 9. Feb 2024
Joined Nov 2015
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
the next update adds custom…
Wed, 05/13/2020 - 18:20

the next update adds custom postion and planes

Last seen on 18:58, 28. Oct 2021
Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I know how to fix this. go…
Wed, 12/23/2020 - 01:36

I know how to fix this. go to edit code of your car, and select edit .java. You will be brought to the source code of your element. Go to the right side and find where it says "GetMountedYOffset()" just go there, and find return super.getMountedYOffset() + X;

Change x to the amount you want.

Last seen on 14:47, 27. Mar 2024
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i dont see the …
Mon, 12/06/2021 - 16:01

i dont see the "GetMountedYOffset()" on the right