Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Ragnar

Members
  • Posts

    85
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Ragnar's Achievements

Stone Miner

Stone Miner (3/8)

0

Reputation

  1. I made a custom armor model, now how do I make the model stay in the item? for example, the jetpack mekanism mod.
  2. was this, it worked but I had done just to see how it did, can you explain me how is the model render addBox? I speak the arguments, as they told me about .json models
  3. my class does not extend ItemArmor, how can I render the armor if it does not extend to ItemArmor?
  4. the model does not appear, I do not know if it has to put in init, pre init or do something else
  5. is this right? @SideOnly(Side.CLIENT) public class ModelElectricBoots extends ModelBiped{ ModelRenderer rightLeg; ModelRenderer leftLeg; public ModelElectricBoots() { textureWidth = 64; textureHeight = 64; rightLeg = new ModelRenderer(this, 0, 32); rightLeg.addBox(10F, 1F, 10F, 6, 8, 8); setRotation(rightLeg, 1F, 2F, -1F); rightLeg.setTextureSize(64, 64); rightLeg.mirror = true; rightLeg.setRotationPoint(-1F, -2F, 1F); leftLeg = new ModelRenderer(this, 0, 32); leftLeg.addBox(10F, 1F, 10F, 6, 8, 8); setRotation(rightLeg, 1F, 2F, -1F); leftLeg.setTextureSize(64, 64); leftLeg.mirror = true; leftLeg.setRotationPoint(-1F, -2F, 1F); bipedRightLeg.addChild(rightLeg); bipedRightLeg.addChild(leftLeg); } public void render(Entity entity, float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch, float scale) { super.render(entity, limbSwing, limbSwingAmount, ageInTicks, netHeadYaw, headPitch, scale); setRotationAngles(limbSwing, limbSwingAmount, ageInTicks, netHeadYaw, headPitch, scale, entity); } public void setRotation(ModelRenderer model, float x, float y, float z) { model.rotateAngleX = x; model.rotateAngleY = y; model.rotateAngleZ = z; } } in armor class @SideOnly(Side.CLIENT) public ModelBiped getArmorModel(EntityLivingBase entityLiving, ItemStack itemStack, EntityEquipmentSlot armorSlot, ModelBiped _default) { ModelElectricBoots electricBoots = new ModelElectricBoots(); return electricBoots; }
  6. For you, it's easy, you know how to program, you know how to speak English ...
  7. public class LayerBipedArmor extends LayerArmorBase<ModelBiped> { public LayerBipedArmor(RenderLivingBase<?> rendererIn) { super(rendererIn); } protected void initArmor() { this.modelLeggings = new ModelBiped(0.5F); this.modelArmor = new ModelBiped(1.0F); } @SuppressWarnings("incomplete-switch") protected void setModelSlotVisible(ModelBiped p_188359_1_, EntityEquipmentSlot slotIn) { this.setModelVisible(p_188359_1_); switch (slotIn) { case HEAD: p_188359_1_.bipedHead.showModel = true; p_188359_1_.bipedHeadwear.showModel = true; break; case CHEST: p_188359_1_.bipedBody.showModel = true; p_188359_1_.bipedRightArm.showModel = true; p_188359_1_.bipedLeftArm.showModel = true; break; case LEGS: p_188359_1_.bipedBody.showModel = true; p_188359_1_.bipedRightLeg.showModel = true; p_188359_1_.bipedLeftLeg.showModel = true; break; case FEET: p_188359_1_.bipedRightLeg.showModel = true; p_188359_1_.bipedLeftLeg.showModel = true; } } protected void setModelVisible(ModelBiped model) { model.setVisible(false); } @Override protected ModelBiped getArmorModelHook(net.minecraft.entity.EntityLivingBase entity, net.minecraft.item.ItemStack itemStack, EntityEquipmentSlot slot, ModelBiped model) { return net.minecraftforge.client.ForgeHooksClient.getArmorModel(entity, itemStack, slot, model); } } I do not see anything that does the model of the armor here
  8. Can you give me a sample code for a modified armor model? just to have a base please
  9. my armor is not crazy, it's just blocks together
  10. I do not mean without programming, I expressed myself poorly, I mean using only eclipse without other programs like the Techne
  11. I just found a tutorial that uses a program called Techne, which after you create the armature it gives you a .java file which is a ready class. And no tutorial that teaches you to do without the program, just writing in class
×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.