fluenzia
-
Posts
8 -
Joined
-
Last visited
Posts posted by fluenzia
-
-
5 minutes ago, Animefan8888 said:
Well yeah because you need to override the one in the Item class. Check the method signature. The one in the Item class has parameters.
So each of my tools implements IHasModels (as that's what the tutorial I was watching, showed me to do) and to fix the errors I have to add the @Override to each class that implements IHasModel. would I just put the file path in the ArmorBase.java?
-
4 minutes ago, Animefan8888 said:
Not sure what you mean here is the method working now or not? If not post your code.
it is not working when I put the method into IHasModels (which it tells me to do when I try to put it into ArmorBase.java) it tells me that everything that implements IHasModels now "must implement the inherited abstract method IHasModel.getArmorTexture()"
-
5 minutes ago, Animefan8888 said:
Does not equal.
Sorry, I did type it as getArmorTexture, and I went back and double checked. I guess I'm just doing it wrong
-
45 minutes ago, oldcheese said:
Are there any errors? Are you sure you've put your texture in the correct folder?
I'm not quite sure on this, but do you need to implement IHasModel? If you're simply making a 'basic' armourpiece then all you need to do is extend ItemArmor.
If the item appears, 'works' (Has the right armour values etc.) and has names/stats except for the black and purple texture than all that's wrong is that it's either missing a texture or a model.
Edit: An armour I have made in 1.12 follows the following structure:
package com.cheese.brpg.item; import com.cheese.brpg.main; import net.minecraft.inventory.EntityEquipmentSlot; import net.minecraft.item.ItemArmor; public class ItemTestarmor extends ItemArmor { public ItemTutorialArmor(ArmorMaterial material, EntityEquipmentSlot equipmentSlot) { super(material, 0, equipmentSlot); setCreativeTab(brpg.RANDOM_SHIT); } }
Everything works fine in game (the armour item textures work fine as well) it's just the textures for when you're wearing the armour
-
6 minutes ago, Animefan8888 said:
Yes that is where it would go.
When I try to override it I get "The method getArmorTexture() of type ArmorBase must override or implement a supertype method" and my options are to remove the override annotation or create getArmourTexture in super type IHasModel, when I do this is gives me a bunch of errors
-
11 minutes ago, Animefan8888 said:
I assume you mean the armor when it's on the player. You need to override getArmorTexture and return a path to your textures.
Where would I put this? In my ArmorBase,java? Sorry completely new to this
-
This is my first time programming anything and first time modding in Minecraft (as a warning). I've been following a beginners tutorial in order to learn the basics (adding blocks, tools, armour, etc.) and everything has worked perfectly. Except for my armour layer models. I took them out of the base game files and only changed the colour, and even just renamed the base ones without any other changes to test it, but still just a black and purple man when the armour goes on. Since I'm a noob I don't really know what files to upload, so if I'm missing anything please let me know and I'll get it up as soon as possible.
My Armour Layer Textures Won't Load (1.12.2) [SOLVED]
in Modder Support
Posted
You are jesus. THANK YOU SO MUCH!!!!