Armor rendering error

Started by brok4d on

Topic category: Troubleshooting, bugs, and solutions

Joined Apr 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Armor rendering error

Hello good, I am making a custom armor and it is giving me a rendering error, I do not know why it is from Blockbench or Mcreator, I have looked at the models well and I do not see anything bad, I am attaching some images so that you can see it of the armor in Blockbench and the bug in Minecraft.

1

2

Joined Apr 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I've been creating another…
Wed, 02/03/2021 - 17:36

I've been creating another project with the forge 1.15.2 and you can see the arms but the helmet and the body come out the same, although before there was no error in the body, do you know why?.

3

Joined Apr 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I have been doing tests and…
Thu, 02/04/2021 - 08:56

I have been doing tests and I have realized that it was the texture the reice and almost everything was solved but now the arms are not seen if I do the arms to the body it is seen but they do not move in synchrony with the arms, just not they move, I understand that the arms are not made of the body, in theory the error is made by Mcreator because I no longer know what to do.

Joined Apr 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I fixed it was the code that…
Thu, 02/04/2021 - 09:43

I fixed it was the code that generated the template, it was without.

@Override
			@SideOnly(Side.CLIENT)
			public ModelBiped getArmorModel(EntityLivingBase living, ItemStack stack, EntityEquipmentSlot slot, ModelBiped defaultModel) {
				ModelBiped armorModel = new ModelBiped();
				armorModel.bipedBody = new Modeldark_body().body;;
				armorModel.isSneak = living.isSneaking();
				armorModel.isRiding = living.isRiding();
				armorModel.isChild = living.isChild();
				return armorModel;
			}

			@Override
			public String getArmorTexture(ItemStack stack, Entity entity, EntityEquipmentSlot slot, String type) {
				return "brokmod:textures/armordarkborktexture.png";
			}

And I have corrected it as well.

@Override
			@SideOnly(Side.CLIENT)
			public ModelBiped getArmorModel(EntityLivingBase living, ItemStack stack, EntityEquipmentSlot slot, ModelBiped defaultModel) {
				ModelBiped armorModel = new ModelBiped();
				armorModel.bipedBody = new Modeldark_body().body;
				armorModel.bipedLeftArm= new Modeldark_body().leftArm;
				armorModel.bipedRightArm= new Modeldark_body().rightArm;
				armorModel.isSneak = living.isSneaking();
				armorModel.isRiding = living.isRiding();
				armorModel.isChild = living.isChild();
				return armorModel;
			}

			@Override
			public String getArmorTexture(ItemStack stack, Entity entity, EntityEquipmentSlot slot, String type) {
				return "brokmod:textures/armordarkborktexture.png";
			}

 

Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I have question. where…
Tue, 09/28/2021 - 00:49

I have question. where should i paste this code? Java Blockbench file or a ready made reservation code at Mcreator

Joined Feb 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Also, i tried paste this…
Tue, 09/28/2021 - 01:16

Also, i tried paste this code-part in your mod and get this error.
What i do wrong?Error