Please, help! For a long time I am suffering with a problem and I can’t solve it ...

Started by VladHell on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Please, help! For a long time I am suffering with a problem and I can’t solve it ...
Please, help! For a long time I am suffering with a problem and I can’t solve it ...
Created armor, version 1.14.4
as a result, I downloaded my model from blockbench

package net.mcreator.test.item;

import net.minecraftforge.registries.ObjectHolder;
import net.minecraftforge.registries.ForgeRegistries;
import net.minecraftforge.api.distmarker.OnlyIn;
import net.minecraftforge.api.distmarker.Dist;

import net.minecraft.util.ResourceLocation;
import net.minecraft.item.crafting.Ingredient;
import net.minecraft.item.Items;
import net.minecraft.item.ItemStack;
import net.minecraft.item.ItemGroup;
import net.minecraft.item.Item;
import net.minecraft.item.IArmorMaterial;
import net.minecraft.item.ArmorItem;
import net.minecraft.inventory.EquipmentSlotType;
import net.minecraft.entity.LivingEntity;
import net.minecraft.entity.Entity;
import net.minecraft.client.renderer.entity.model.RendererModel;
import net.minecraft.client.renderer.entity.model.EntityModel;
import net.minecraft.client.renderer.entity.model.BipedModel;

import net.mcreator.test.TestElements;

@TestElements.ModElement.Tag
public class RdAdminItem extends TestElements.ModElement {
    @ObjectHolder("test:rdadminhelmet")
    public static final Item helmet = null;
    @ObjectHolder("test:rdadminbody")
    public static final Item body = null;
    @ObjectHolder("test:rdadminlegs")
    public static final Item legs = null;
    @ObjectHolder("test:rdadminboots")
    public static final Item boots = null;
    public RdAdminItem(TestElements instance) {
        super(instance, 1);
    }

    @Override
    public void initElements() {
        IArmorMaterial armormaterial = new IArmorMaterial() {
            public int getDurability(EquipmentSlotType slot) {
                return new int[]{13, 15, 16, 11}[slot.getIndex()] * 900;
            }

            public int getDamageReductionAmount(EquipmentSlotType slot) {
                return new int[]{200, 500, 600, 200}[slot.getIndex()];
            }

            public int getEnchantability() {
                return 99;
            }

            public net.minecraft.util.SoundEvent getSoundEvent() {
                return (net.minecraft.util.SoundEvent) ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("block.anvil.break"));
            }

            public Ingredient getRepairMaterial() {
                return Ingredient.fromStacks(new ItemStack(Items.NETHER_STAR, (int) (1)));
            }

            @OnlyIn(Dist.CLIENT)
            public String getName() {
                return "rdadmin";
            }

            public float getToughness() {
                return 2f;
            }
        };
        elements.items.add(() -> new ArmorItem(armormaterial, EquipmentSlotType.HEAD, new Item.Properties().group(ItemGroup.COMBAT)) {
            @Override
            @OnlyIn(Dist.CLIENT)
            public BipedModel getArmorModel(LivingEntity living, ItemStack stack, EquipmentSlotType slot, BipedModel defaultModel) {
                BipedModel armorModel = new BipedModel();
                armorModel.bipedHead = new ModelRdArmorHead().head;
                armorModel.isSneak = living.isSneaking();
                armorModel.isSitting = defaultModel.isSitting;
                armorModel.isChild = living.isChild();
                return armorModel;
            }

            @Override
            public String getArmorTexture(ItemStack stack, Entity entity, EquipmentSlotType slot, String type) {
                return "test:textures/zombie.png";
            }
        }.setRegistryName("rdadminhelmet"));
        elements.items.add(() -> new ArmorItem(armormaterial, EquipmentSlotType.CHEST, new Item.Properties().group(ItemGroup.COMBAT)) {
            @Override
            @OnlyIn(Dist.CLIENT)
            public BipedModel getArmorModel(LivingEntity living, ItemStack stack, EquipmentSlotType slot, BipedModel defaultModel) {
                BipedModel armorModel = new BipedModel();
                armorModel.bipedBody = new ModelRdArmorBody().body;
                armorModel.isSneak = living.isSneaking();
                armorModel.isSitting = defaultModel.isSitting;
                armorModel.isChild = living.isChild();
                return armorModel;
            }

            @Override
            public String getArmorTexture(ItemStack stack, Entity entity, EquipmentSlotType slot, String type) {
                return "test:textures/zombie.png";
            }
        }.setRegistryName("rdadminbody"));
        elements.items.add(() -> new ArmorItem(armormaterial, EquipmentSlotType.LEGS, new Item.Properties().group(ItemGroup.COMBAT)) {
            @Override
            @OnlyIn(Dist.CLIENT)
            public BipedModel getArmorModel(LivingEntity living, ItemStack stack, EquipmentSlotType slot, BipedModel defaultModel) {
                BipedModel armorModel = new BipedModel();
                armorModel.bipedLeftLeg = new ModelRdArmorlegs().leftLeg;
                armorModel.bipedRightLeg = new ModelRdArmorlegs().rightLeg;
                armorModel.isSneak = living.isSneaking();
                armorModel.isSitting = defaultModel.isSitting;
                armorModel.isChild = living.isChild();
                return armorModel;
            }

            @Override
            public String getArmorTexture(ItemStack stack, Entity entity, EquipmentSlotType slot, String type) {
                return "test:textures/zombie.png";
            }
        }.setRegistryName("rdadminlegs"));
        elements.items.add(() -> new ArmorItem(armormaterial, EquipmentSlotType.FEET, new Item.Properties().group(ItemGroup.COMBAT)) {
            @Override
            @OnlyIn(Dist.CLIENT)
            public BipedModel getArmorModel(LivingEntity living, ItemStack stack, EquipmentSlotType slot, BipedModel defaultModel) {
                BipedModel armorModel = new BipedModel();
                armorModel.bipedLeftLeg = new ModelRdArmorbots().bots;
                armorModel.bipedRightLeg = new ModelRdArmorbots().bots;
                armorModel.isSneak = living.isSneaking();
                armorModel.isSitting = defaultModel.isSitting;
                armorModel.isChild = living.isChild();
                return armorModel;
            }

            @Override
            public String getArmorTexture(ItemStack stack, Entity entity, EquipmentSlotType slot, String type) {
                return "test:textures/zombie.png";
            }
        }.setRegistryName("rdadminboots"));
    }
    public static class ModelRdArmorbots extends EntityModel<Entity> {
        private final RendererModel bots;
        public ModelRdArmorbots() {
            textureWidth = 64;
            textureHeight = 32;
            bots = new RendererModel(this);
            bots.setRotationPoint(0.0F, 24.0F, 0.0F);
            bots.setTextureOffset(0, 0).addBox(-4.0F, 0.0F, -2.0F, 3.0F, 0.0F, 4.0F, 0.0F, false);
            bots.setTextureOffset(0, 0).addBox(1.0F, 0.0F, -2.0F, 3.0F, 0.0F, 4.0F, 0.0F, false);
        }

        @Override
        public void setRotationAngles(Entity entity, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch) {
            // previously the render function, render code was moved to a method below
        }

        @Override
        public void render(MatrixStack matrixStack, IVertexBuilder buffer, int packedLight, int packedOverlay, float red, float green, float blue,
                float alpha) {
            bots.render(matrixStack, buffer, packedLight, packedOverlay);
        }

        public void setRotationAngle(RendererModel modelRenderer, float x, float y, float z) {
            modelRenderer.rotateAngleX = x;
            modelRenderer.rotateAngleY = y;
            modelRenderer.rotateAngleZ = z;
        }
    }

    public static class ModelRdArmorlegs extends EntityModel<Entity> {
        private final RendererModel leftLeg;
        private final RendererModel rightLeg;
        public ModelRdArmorlegs() {
            textureWidth = 64;
            textureHeight = 32;
            leftLeg = new RendererModel(this);
            leftLeg.setRotationPoint(-1.9F, 12.0F, 0.0F);
            leftLeg.setTextureOffset(0, 0).addBox(1.9F, 0.0F, -2.0F, 1.0F, 12.0F, 4.0F, 0.0F, false);
            leftLeg.setTextureOffset(0, 0).addBox(1.9F, 0.0F, -3.0F, 4.0F, 12.0F, 1.0F, 0.0F, false);
            leftLeg.setTextureOffset(0, 0).addBox(2.9F, 1.0F, -4.0F, 2.0F, 10.0F, 1.0F, 0.0F, false);
            leftLeg.setTextureOffset(0, 0).addBox(5.9F, 0.0F, -2.0F, 1.0F, 12.0F, 4.0F, 0.0F, false);
            leftLeg.setTextureOffset(0, 26).addBox(6.9F, 1.0F, -1.0F, 1.0F, 4.0F, 2.0F, 0.0F, false);
            leftLeg.setTextureOffset(0, 0).addBox(6.9F, 6.0F, -1.0F, 1.0F, 5.0F, 2.0F, 0.0F, false);
            leftLeg.setTextureOffset(0, 0).addBox(1.9F, 0.0F, 2.0F, 4.0F, 12.0F, 1.0F, 0.0F, false);
            leftLeg.setTextureOffset(0, 0).addBox(2.9F, 1.0F, 3.0F, 2.0F, 10.0F, 1.0F, 0.0F, false);
            rightLeg = new RendererModel(this);
            rightLeg.setRotationPoint(1.9F, 12.0F, 0.0F);
            rightLeg.setTextureOffset(0, 0).addBox(-5.9F, 0.0F, -3.0F, 4.0F, 12.0F, 1.0F, 0.0F, false);
            rightLeg.setTextureOffset(0, 0).addBox(-4.9F, 1.0F, -4.0F, 2.0F, 10.0F, 1.0F, 0.0F, false);
            rightLeg.setTextureOffset(0, 0).addBox(-6.9F, 0.0F, -2.0F, 1.0F, 12.0F, 4.0F, 0.0F, false);
            rightLeg.setTextureOffset(0, 0).addBox(-2.9F, 0.0F, -2.0F, 1.0F, 12.0F, 4.0F, 0.0F, false);
            rightLeg.setTextureOffset(0, 0).addBox(-5.9F, 0.0F, 2.0F, 4.0F, 12.0F, 1.0F, 0.0F, false);
            rightLeg.setTextureOffset(0, 26).addBox(-7.9F, 1.0F, -1.0F, 1.0F, 4.0F, 2.0F, 0.0F, false);
            rightLeg.setTextureOffset(0, 0).addBox(-7.9F, 6.0F, -1.0F, 1.0F, 5.0F, 2.0F, 0.0F, false);
            rightLeg.setTextureOffset(0, 0).addBox(-4.9F, 1.0F, 3.0F, 2.0F, 10.0F, 1.0F, 0.0F, false);
        }

        @Override
        public void setRotationAngles(Entity entity, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch) {
            // previously the render function, render code was moved to a method below
        }

        @Override
        public void render(MatrixStack matrixStack, IVertexBuilder buffer, int packedLight, int packedOverlay, float red, float green, float blue,
                float alpha) {
            leftLeg.render(matrixStack, buffer, packedLight, packedOverlay);
            rightLeg.render(matrixStack, buffer, packedLight, packedOverlay);
        }

        public void setRotationAngle(RendererModel modelRenderer, float x, float y, float z) {
            modelRenderer.rotateAngleX = x;
            modelRenderer.rotateAngleY = y;
            modelRenderer.rotateAngleZ = z;
        }
    }

    public static class ModelRdArmorHead extends EntityModel<Entity> {
        private final RendererModel head;
        public ModelRdArmorHead() {
            textureWidth = 64;
            textureHeight = 32;
            head = new RendererModel(this);
            head.setRotationPoint(0.0F, 0.0F, 0.0F);
            head.setTextureOffset(46, 30).addBox(-4.0F, -9.0F, -5.0F, 8.0F, 1.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(46, 30).addBox(-5.0F, -9.0F, -4.0F, 1.0F, 9.0F, 8.0F, 0.0F, false);
            head.setTextureOffset(46, 30).addBox(-5.0F, -8.0F, -5.0F, 1.0F, 7.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(46, 30).addBox(-5.0F, -9.0F, 4.0F, 10.0F, 9.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(46, 30).addBox(4.0F, -9.0F, -4.0F, 1.0F, 9.0F, 8.0F, 0.0F, false);
            head.setTextureOffset(46, 30).addBox(4.0F, -8.0F, -5.0F, 1.0F, 7.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(48, 18).addBox(-6.0F, -8.0F, -3.0F, 1.0F, 7.0F, 7.0F, 0.0F, false);
            head.setTextureOffset(46, 30).addBox(5.0F, -8.0F, -3.0F, 1.0F, 7.0F, 7.0F, 0.0F, false);
            head.setTextureOffset(46, 30).addBox(-1.0F, -4.0F, -5.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(46, 30).addBox(-1.5F, -4.0F, -5.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(46, 30).addBox(0.0F, -4.0F, -5.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(46, 30).addBox(0.45F, -4.0F, -5.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(46, 30).addBox(-4.0F, -3.0F, -5.0F, 8.0F, 2.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(46, 30).addBox(-4.0F, -1.0F, -5.0F, 8.0F, 1.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(29, 13).addBox(-4.0F, 0.0F, -4.0F, 8.0F, 1.0F, 2.0F, 0.0F, false);
            head.setTextureOffset(46, 30).addBox(-5.0F, -8.0F, 5.0F, 10.0F, 7.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(46, 30).addBox(-4.0F, -7.0F, 6.0F, 8.0F, 5.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(46, 30).addBox(-3.0F, -6.0F, 7.0F, 6.0F, 4.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(46, 30).addBox(-2.0F, -5.0F, 8.0F, 4.0F, 4.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(46, 30).addBox(-1.0F, -3.0F, 9.0F, 2.0F, 3.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(46, 30).addBox(-1.5F, -2.0F, 7.0F, 3.0F, 1.0F, 2.0F, 0.0F, false);
            head.setTextureOffset(46, 30).addBox(-0.5F, -1.0F, 8.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(46, 30).addBox(-4.5F, 0.0F, 2.0F, 9.0F, 1.0F, 2.0F, 0.0F, false);
            head.setTextureOffset(60, 0).addBox(-0.5F, 0.0F, 9.0F, 1.0F, 4.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(60, 0).addBox(0.5F, 4.0F, 9.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(56, 0).addBox(-0.5F, 4.0F, 8.0F, 1.0F, 1.0F, 3.0F, 0.0F, false);
            head.setTextureOffset(60, 0).addBox(-0.5F, 5.0F, 9.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(60, 0).addBox(-1.5F, 4.0F, 9.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(60, 0).addBox(3.0F, -4.0F, -5.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(60, 0).addBox(2.0F, -3.0F, -6.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(60, 0).addBox(2.0F, -2.0F, -6.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(60, 0).addBox(3.0F, -2.0F, -6.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(60, 0).addBox(3.0F, -1.0F, -6.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(56, 0).addBox(3.0F, 0.0F, -7.0F, 1.0F, 1.0F, 3.0F, 0.0F, false);
            head.setTextureOffset(60, 0).addBox(2.0F, 0.0F, -6.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(60, 0).addBox(4.0F, 0.0F, -6.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(60, 0).addBox(3.0F, 1.0F, -6.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(56, 0).addBox(-3.0F, 5.0F, -6.0F, 1.0F, 1.0F, 3.0F, 0.0F, false);
            head.setTextureOffset(60, 0).addBox(-4.0F, 5.0F, -5.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(60, 0).addBox(-2.0F, 5.0F, -5.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(60, 0).addBox(-3.0F, 6.0F, -5.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(60, 0).addBox(-3.0F, 1.0F, -5.0F, 1.0F, 4.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(60, 0).addBox(-3.0F, -3.0F, -6.0F, 1.0F, 4.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(60, 0).addBox(-4.0F, -4.0F, -5.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(32, 23).addBox(-4.0F, -10.0F, -4.0F, 8.0F, 1.0F, 8.0F, 0.0F, false);
            head.setTextureOffset(46, 30).addBox(-4.0F, -9.0F, -5.0F, 8.0F, 1.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(46, 30).addBox(-5.0F, -9.0F, -4.0F, 1.0F, 9.0F, 8.0F, 0.0F, false);
            head.setTextureOffset(46, 30).addBox(-5.0F, -8.0F, -5.0F, 1.0F, 7.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(46, 30).addBox(-1.5F, -4.0F, -5.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(46, 30).addBox(-1.0F, -4.0F, -5.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(46, 30).addBox(0.0F, -4.0F, -5.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(46, 30).addBox(0.45F, -4.0F, -5.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(46, 30).addBox(-4.0F, -3.0F, -5.0F, 8.0F, 2.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(46, 30).addBox(-4.0F, -1.0F, -5.0F, 8.0F, 1.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(60, 0).addBox(-4.0F, -4.0F, -5.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(60, 0).addBox(-3.0F, -3.0F, -6.0F, 1.0F, 4.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(60, 0).addBox(-3.0F, 1.0F, -5.0F, 1.0F, 4.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(56, 0).addBox(-3.0F, 5.0F, -6.0F, 1.0F, 1.0F, 3.0F, 0.0F, false);
            head.setTextureOffset(60, 0).addBox(-4.0F, 5.0F, -5.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(60, 0).addBox(-2.0F, 5.0F, -5.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(56, 0).addBox(3.0F, 0.0F, -7.0F, 1.0F, 1.0F, 3.0F, 0.0F, false);
            head.setTextureOffset(60, 0).addBox(2.0F, 0.0F, -6.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(60, 0).addBox(3.0F, -1.0F, -6.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(60, 0).addBox(3.0F, -2.0F, -6.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(60, 0).addBox(2.0F, -2.0F, -6.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(60, 0).addBox(2.0F, -3.0F, -6.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(60, 0).addBox(3.0F, -4.0F, -5.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(60, 0).addBox(4.0F, 0.0F, -6.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(60, 0).addBox(3.0F, 1.0F, -6.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(60, 0).addBox(-3.0F, 6.0F, -5.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(29, 13).addBox(-4.0F, 0.0F, -4.0F, 8.0F, 1.0F, 2.0F, 0.0F, false);
            head.setTextureOffset(48, 18).addBox(-6.0F, -8.0F, -3.0F, 1.0F, 7.0F, 7.0F, 0.0F, false);
            head.setTextureOffset(46, 30).addBox(-5.0F, -9.0F, 4.0F, 10.0F, 9.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(46, 30).addBox(-5.0F, -8.0F, 5.0F, 10.0F, 7.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(46, 30).addBox(-4.0F, -7.0F, 6.0F, 8.0F, 5.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(46, 30).addBox(-3.0F, -6.0F, 7.0F, 6.0F, 4.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(46, 30).addBox(-2.0F, -5.0F, 8.0F, 4.0F, 4.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(46, 30).addBox(-1.0F, -3.0F, 9.0F, 2.0F, 3.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(46, 30).addBox(4.0F, -9.0F, -4.0F, 1.0F, 9.0F, 8.0F, 0.0F, false);
            head.setTextureOffset(46, 30).addBox(5.0F, -8.0F, -3.0F, 1.0F, 7.0F, 7.0F, 0.0F, false);
            head.setTextureOffset(46, 30).addBox(-1.5F, -2.0F, 7.0F, 3.0F, 1.0F, 2.0F, 0.0F, false);
            head.setTextureOffset(46, 30).addBox(-0.5F, -1.0F, 8.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(46, 30).addBox(-4.5F, 0.0F, 2.0F, 9.0F, 1.0F, 2.0F, 0.0F, false);
            head.setTextureOffset(60, 0).addBox(-0.5F, 0.0F, 9.0F, 1.0F, 4.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(56, 0).addBox(-0.5F, 4.0F, 8.0F, 1.0F, 1.0F, 3.0F, 0.0F, false);
            head.setTextureOffset(60, 0).addBox(0.5F, 4.0F, 9.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(60, 0).addBox(-0.5F, 5.0F, 9.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(60, 0).addBox(-1.5F, 4.0F, 9.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(46, 30).addBox(4.0F, -8.0F, -5.0F, 1.0F, 7.0F, 1.0F, 0.0F, false);
            head.setTextureOffset(32, 23).addBox(-4.0F, -10.0F, -4.0F, 8.0F, 1.0F, 8.0F, 0.0F, false);
            head.setTextureOffset(48, 18).addBox(-6.0F, -8.0F, -3.0F, 1.0F, 7.0F, 7.0F, 0.0F, false);
            head.setTextureOffset(46, 30).addBox(-4.0F, -9.0F, -4.0F, 8.0F, 1.0F, 8.0F, 0.0F, false);
        }

        @Override
        public void setRotationAngles(Entity entity, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch) {
            // previously the render function, render code was moved to a method below
        }

        @Override
        public void render(MatrixStack matrixStack, IVertexBuilder buffer, int packedLight, int packedOverlay, float red, float green, float blue,
                float alpha) {
            head.render(matrixStack, buffer, packedLight, packedOverlay);
        }

        public void setRotationAngle(RendererModel modelRenderer, float x, float y, float z) {
            modelRenderer.rotateAngleX = x;
            modelRenderer.rotateAngleY = y;
            modelRenderer.rotateAngleZ = z;
        }
    }

    public static class ModelRdArmorBody extends EntityModel<Entity> {
        private final RendererModel body;
        private final RendererModel leftArm;
        private final RendererModel rightArm;
        public ModelRdArmorBody() {
            textureWidth = 64;
            textureHeight = 32;
            body = new RendererModel(this);
            body.setRotationPoint(0.0F, 0.0F, 0.0F);
            body.setTextureOffset(0, 0).addBox(-4.0F, 1.0F, 2.0F, 8.0F, 11.0F, 1.0F, 0.0F, false);
            body.setTextureOffset(0, 0).addBox(-5.0F, 0.0F, -3.0F, 1.0F, 12.0F, 6.0F, 0.0F, false);
            body.setTextureOffset(0, 0).addBox(4.0F, 0.0F, -3.0F, 1.0F, 12.0F, 6.0F, 0.0F, false);
            body.setTextureOffset(0, 27).addBox(-4.0F, 8.0F, -4.0F, 2.0F, 4.0F, 1.0F, 0.0F, false);
            body.setTextureOffset(0, 27).addBox(3.0F, 8.0F, -4.0F, 2.0F, 4.0F, 1.0F, 0.0F, false);
            body.setTextureOffset(0, 29).addBox(-1.0F, 10.0F, -4.0F, 1.0F, 2.0F, 1.0F, 0.0F, false);
            body.setTextureOffset(0, 29).addBox(1.0F, 10.0F, -4.0F, 1.0F, 2.0F, 1.0F, 0.0F, false);
            body.setTextureOffset(0, 0).addBox(-3.0F, 2.0F, 3.0F, 6.0F, 9.0F, 1.0F, 0.0F, false);
            body.setTextureOffset(0, 18).addBox(-1.0F, 2.0F, -4.0F, 4.0F, 6.0F, 1.0F, 0.0F, false);
            body.setTextureOffset(0, 0).addBox(-4.0F, 1.0F, -3.0F, 8.0F, 11.0F, 1.0F, 0.0F, false);
            leftArm = new RendererModel(this);
            leftArm.setRotationPoint(-5.0F, 2.0F, 0.0F);
            leftArm.setTextureOffset(0, 0).addBox(10.0F, 6.0F, -3.0F, 3.0F, 4.0F, 1.0F, 0.0F, false);
            leftArm.setTextureOffset(0, 0).addBox(10.0F, 4.0F, -3.0F, 1.0F, 2.0F, 1.0F, 0.0F, false);
            leftArm.setTextureOffset(0, 0).addBox(12.0F, 4.0F, -3.0F, 1.0F, 2.0F, 1.0F, 0.0F, false);
            leftArm.setTextureOffset(0, 0).addBox(13.0F, 6.0F, -2.0F, 1.0F, 4.0F, 4.0F, 0.0F, false);
            leftArm.setTextureOffset(0, 0).addBox(13.0F, 4.0F, -2.0F, 1.0F, 2.0F, 1.0F, 0.0F, false);
            leftArm.setTextureOffset(0, 0).addBox(13.0F, -2.0F, -2.0F, 1.0F, 6.0F, 4.0F, 0.0F, false);
            leftArm.setTextureOffset(0, 0).addBox(9.0F, -2.0F, -2.0F, 1.0F, 6.0F, 4.0F, 0.0F, false);
            leftArm.setTextureOffset(0, 0).addBox(10.0F, -3.0F, -2.0F, 3.0F, 1.0F, 4.0F, 0.0F, false);
            leftArm.setTextureOffset(0, 0).addBox(10.0F, -2.0F, -3.0F, 3.0F, 6.0F, 1.0F, 0.0F, false);
            leftArm.setTextureOffset(0, 0).addBox(9.0F, 4.0F, -2.0F, 1.0F, 2.0F, 1.0F, 0.0F, false);
            leftArm.setTextureOffset(0, 0).addBox(9.0F, 4.0F, 1.0F, 1.0F, 2.0F, 1.0F, 0.0F, false);
            leftArm.setTextureOffset(0, 0).addBox(9.0F, 6.0F, -2.0F, 1.0F, 4.0F, 4.0F, 0.0F, false);
            leftArm.setTextureOffset(0, 0).addBox(10.0F, 6.0F, 2.0F, 3.0F, 4.0F, 1.0F, 0.0F, false);
            leftArm.setTextureOffset(0, 0).addBox(13.0F, 4.0F, 1.0F, 1.0F, 2.0F, 1.0F, 0.0F, false);
            leftArm.setTextureOffset(0, 0).addBox(12.0F, 4.0F, 2.0F, 1.0F, 2.0F, 1.0F, 0.0F, false);
            leftArm.setTextureOffset(0, 0).addBox(10.0F, -2.0F, 2.0F, 3.0F, 6.0F, 1.0F, 0.0F, false);
            leftArm.setTextureOffset(0, 0).addBox(10.0F, 4.0F, 2.0F, 1.0F, 2.0F, 1.0F, 0.0F, false);
            leftArm.setTextureOffset(8, 30).addBox(13.0F, -2.0F, 2.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
            leftArm.setTextureOffset(11, 30).addBox(14.0F, -3.0F, 2.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
            leftArm.setTextureOffset(9, 30).addBox(13.0F, -3.0F, 3.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
            leftArm.setTextureOffset(10, 30).addBox(12.0F, -5.0F, 4.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
            leftArm.setTextureOffset(10, 30).addBox(13.0F, -4.0F, 4.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
            leftArm.setTextureOffset(10, 30).addBox(13.0F, -5.0F, 5.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
            leftArm.setTextureOffset(10, 30).addBox(15.0F, -4.0F, 4.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
            leftArm.setTextureOffset(10, 30).addBox(15.0F, -3.0F, 3.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
            leftArm.setTextureOffset(10, 30).addBox(16.0F, -4.0F, 3.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
            rightArm = new RendererModel(this);
            rightArm.setRotationPoint(5.0F, 2.0F, 0.0F);
            rightArm.setTextureOffset(0, 0).addBox(-13.0F, 6.0F, -3.0F, 3.0F, 4.0F, 1.0F, 0.0F, false);
            rightArm.setTextureOffset(0, 0).addBox(-14.0F, 6.0F, -2.0F, 1.0F, 4.0F, 4.0F, 0.0F, false);
            rightArm.setTextureOffset(0, 0).addBox(-14.0F, 4.0F, -2.0F, 1.0F, 2.0F, 1.0F, 0.0F, false);
            rightArm.setTextureOffset(0, 0).addBox(-14.0F, -2.0F, -2.0F, 1.0F, 6.0F, 4.0F, 0.0F, false);
            rightArm.setTextureOffset(0, 0).addBox(-13.0F, -2.0F, -3.0F, 3.0F, 6.0F, 1.0F, 0.0F, false);
            rightArm.setTextureOffset(0, 0).addBox(-13.0F, 4.0F, -3.0F, 1.0F, 2.0F, 1.0F, 0.0F, false);
            rightArm.setTextureOffset(0, 0).addBox(-11.0F, 4.0F, -3.0F, 1.0F, 2.0F, 1.0F, 0.0F, false);
            rightArm.setTextureOffset(0, 0).addBox(-10.0F, 6.0F, -2.0F, 1.0F, 4.0F, 4.0F, 0.0F, false);
            rightArm.setTextureOffset(0, 0).addBox(-10.0F, 4.0F, -2.0F, 1.0F, 2.0F, 1.0F, 0.0F, false);
            rightArm.setTextureOffset(0, 0).addBox(-10.0F, -2.0F, -2.0F, 1.0F, 6.0F, 4.0F, 0.0F, false);
            rightArm.setTextureOffset(0, 0).addBox(-10.0F, 4.0F, 1.0F, 1.0F, 2.0F, 1.0F, 0.0F, false);
            rightArm.setTextureOffset(0, 0).addBox(-13.0F, -2.0F, 2.0F, 3.0F, 6.0F, 1.0F, 0.0F, false);
            rightArm.setTextureOffset(0, 0).addBox(-11.0F, 4.0F, 2.0F, 1.0F, 2.0F, 1.0F, 0.0F, false);
            rightArm.setTextureOffset(0, 0).addBox(-13.0F, 6.0F, 2.0F, 3.0F, 4.0F, 1.0F, 0.0F, false);
            rightArm.setTextureOffset(0, 0).addBox(-13.0F, 4.0F, 2.0F, 1.0F, 2.0F, 1.0F, 0.0F, false);
            rightArm.setTextureOffset(0, 0).addBox(-14.0F, 4.0F, 1.0F, 1.0F, 2.0F, 1.0F, 0.0F, false);
            rightArm.setTextureOffset(0, 0).addBox(-13.0F, -3.0F, -2.0F, 3.0F, 1.0F, 4.0F, 0.0F, false);
            rightArm.setTextureOffset(10, 30).addBox(-14.0F, -3.0F, 3.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
            rightArm.setTextureOffset(10, 30).addBox(-13.0F, -5.0F, 4.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
            rightArm.setTextureOffset(10, 30).addBox(-14.0F, -5.0F, 5.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
            rightArm.setTextureOffset(10, 30).addBox(-14.0F, -4.0F, 4.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
            rightArm.setTextureOffset(10, 30).addBox(-16.0F, -4.0F, 4.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
            rightArm.setTextureOffset(10, 30).addBox(-17.0F, -4.0F, 3.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
            rightArm.setTextureOffset(10, 30).addBox(-16.0F, -3.0F, 3.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
            rightArm.setTextureOffset(10, 30).addBox(-15.0F, -3.0F, 2.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
            rightArm.setTextureOffset(10, 30).addBox(-14.0F, -2.0F, 2.0F, 1.0F, 1.0F, 1.0F, 0.0F, false);
        }

        @Override
        public void setRotationAngles(Entity entity, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch) {
            // previously the render function, render code was moved to a method below
        }

        @Override
        public void render(MatrixStack matrixStack, IVertexBuilder buffer, int packedLight, int packedOverlay, float red, float green, float blue,
                float alpha) {
            body.render(matrixStack, buffer, packedLight, packedOverlay);
            leftArm.render(matrixStack, buffer, packedLight, packedOverlay);
            rightArm.render(matrixStack, buffer, packedLight, packedOverlay);
        }

        public void setRotationAngle(RendererModel modelRenderer, float x, float y, float z) {
            modelRenderer.rotateAngleX = x;
            modelRenderer.rotateAngleY = y;
            modelRenderer.rotateAngleZ = z;
        }
    }
}

 

 

Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
What is the problem? What…
Tue, 06/23/2020 - 03:48

What is the problem? What does the console say?

Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Executing Gradle task:…
Tue, 06/23/2020 - 04:18

Executing Gradle task: runClient
Build info: MCreator 2020.2.14217, 1.14.4, 64-bit, 8155 MB, Windows 10, JVM 1.8.0_232, JAVA_HOME: E:\Games\MCMIR (x64)\MCreator20202\jdk
> Configure project :
New Dep: net.minecraftforge:forge:1.14.4-28.2.3_mapped_snapshot_20190719-1.14.3
> Task :compileJava FAILED
E:\Games\Videos\workspace\src\main\java\net\mcreator\test\item\RdAdminItem.java:160: error: cannot find symbol       public void render(MatrixStack matrixStack, IVertexBuilder buffer, int packedLight, int packedOverlay, float red, float green, float blue,
                         ^
  symbol:   class MatrixStack
  location: class ModelRdArmorbots
E:\Games\Videos\workspace\src\main\java\net\mcreator\test\item\RdAdminItem.java:160: error: cannot find symbol       public void render(MatrixStack matrixStack, IVertexBuilder buffer, int packedLight, int packedOverlay, float red, float green, float blue,
                                                  ^
  symbol:   class IVertexBuilder
  location: class ModelRdArmorbots
E:\Games\Videos\workspace\src\main\java\net\mcreator\test\item\RdAdminItem.java:206: error: cannot find symbol       public void render(MatrixStack matrixStack, IVertexBuilder buffer, int packedLight, int packedOverlay, float red, float green, float blue,
                         ^
  symbol:   class MatrixStack
  location: class ModelRdArmorlegs
E:\Games\Videos\workspace\src\main\java\net\mcreator\test\item\RdAdminItem.java:206: error: cannot find symbol       public void render(MatrixStack matrixStack, IVertexBuilder buffer, int packedLight, int packedOverlay, float red, float green, float blue,
                                                  ^
  symbol:   class IVertexBuilder
  location: class ModelRdArmorlegs
E:\Games\Videos\workspace\src\main\java\net\mcreator\test\item\RdAdminItem.java:326: error: cannot find symbol       public void render(MatrixStack matrixStack, IVertexBuilder buffer, int packedLight, int packedOverlay, float red, float green, float blue,
                         ^
  symbol:   class MatrixStack
  location: class ModelRdArmorHead
E:\Games\Videos\workspace\src\main\java\net\mcreator\test\item\RdAdminItem.java:326: error: cannot find symbol       public void render(MatrixStack matrixStack, IVertexBuilder buffer, int packedLight, int packedOverlay, float red, float green, float blue,
                                                  ^
  symbol:   class IVertexBuilder
  location: class ModelRdArmorHead
E:\Games\Videos\workspace\src\main\java\net\mcreator\test\item\RdAdminItem.java:421: error: cannot find symbol       public void render(MatrixStack matrixStack, IVertexBuilder buffer, int packedLight, int packedOverlay, float red, float green, float blue,
                         ^
  symbol:   class MatrixStack
  location: class ModelRdArmorBody
E:\Games\Videos\workspace\src\main\java\net\mcreator\test\item\RdAdminItem.java:421: error: cannot find symbol       public void render(MatrixStack matrixStack, IVertexBuilder buffer, int packedLight, int packedOverlay, float red, float green, float blue,
                                                  ^
  symbol:   class IVertexBuilder
  location: class ModelRdArmorBody
8 errors
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/4.9/userguide/command_line_interface.html#sec:c…
BUILD FAILED in 6s
1 actionable task: 1 executed
BUILD FAILED
Task completed in 7498 milliseconds
 

Joined Jun 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can you tell me what the…
Tue, 06/23/2020 - 06:47
Can you tell me what the problem is? And then I'm sitting without a break trying to fix it, nothing comes of it :(