nedas60 Posted August 5, 2016 Share Posted August 5, 2016 I tried searching tutorials but most of them had the setup where you type LONG lines to register the item. I also don't understand how to add the textures (Do they have to be in the same package?). I used MrCrayfish's setup ( ) and I want to know how do you add armor with his registering setup. I have the line: public static ArmorMaterial INFUSED_ARMOR = EnumHelper.addArmorMaterial("INFUSED_ARMOR", (I also dont understand how to add the textures), 200, new int[] {4, 9, 7, 4}, 30, SoundEvents.ITEM_ARMOR_EQUIP_DIAMOND, 5.0F); Thanks! Quote Link to comment Share on other sites More sharing options...
Ugdhar Posted August 5, 2016 Share Posted August 5, 2016 I believe this link is what I used as a start to figure out how to do it. Quote Link to comment Share on other sites More sharing options...
nedas60 Posted August 5, 2016 Author Share Posted August 5, 2016 I believe this link is what I used as a start to figure out how to do it. Thanks but I actually want the code not the textures:D Quote Link to comment Share on other sites More sharing options...
Animefan8888 Posted August 5, 2016 Share Posted August 5, 2016 I believe he wants to know how to use the vanilla model, but apply his own texture if not that is how you would go about doing that. But I believe there is a method called getArmorTexture in Item. Quote VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator. Link to comment Share on other sites More sharing options...
nedas60 Posted August 5, 2016 Author Share Posted August 5, 2016 I want to create armor with the infused armor material. I have the textures. I don't have the code for the class and I don't see any tutorials with MrCrayfish's setup. Quote Link to comment Share on other sites More sharing options...
Animefan8888 Posted August 5, 2016 Share Posted August 5, 2016 You create 4 items one for each piece of armor, initialize them using a class that extends ItemArmor. Register them normally. And in the class that extends ItemArmor add getArmorTexture and set the armor texture path as the return for each item you initialize to that class. Quote VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator. Link to comment Share on other sites More sharing options...
nedas60 Posted August 5, 2016 Author Share Posted August 5, 2016 You create 4 items one for each piece of armor, initialize them using a class that extends ItemArmor. Register them normally. And in the class that extends ItemArmor add getArmorTexture and set the armor texture path as the return for each item you initialize to that class. Thanks but how do I add the texture to the ArmorMaterial? That is the main problem for me. It gives an error without it. Quote Link to comment Share on other sites More sharing options...
Animefan8888 Posted August 5, 2016 Share Posted August 5, 2016 Why not try playing around with it a little? Try putting your armor textures path into it. Quote VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator. Link to comment Share on other sites More sharing options...
Ugdhar Posted August 5, 2016 Share Posted August 5, 2016 http://bedrockminer.jimdo.com/modding-tutorials/basic-modding-1-8/custom-armor/ It will be slightly different for 1.10, but it should get you started. Try some stuff, and post your full code (better yet, link to a github) and what works/doesn't work. Asking for someone to give you code is a somewhat unreasonable request. Quote Link to comment Share on other sites More sharing options...
nedas60 Posted August 5, 2016 Author Share Posted August 5, 2016 It seems to render as a black box. Do I need to add something to the class? package Nedas60.TestMod.items; import net.minecraft.item.ItemArmor; import Nedas60.TestMod.Reference; import net.minecraft.inventory.EntityEquipmentSlot; import net.minecraft.item.Item; public class Infused_Helmet extends ItemArmor { public Infused_Helmet(ArmorMaterial material) { super(material, 1, EntityEquipmentSlot.HEAD); // - Sets item texture when in hand and in inventory + some other stuff setUnlocalizedName(Reference.TestItems.INFUSED_HELMET.getUnlocalizedName()); setRegistryName(Reference.TestItems.INFUSED_HELMET.getRegistryName()); } } And the Armor material I have is: public static ArmorMaterial INFUSED_ARMOR = EnumHelper.addArmorMaterial("INFUSED_ARMOR", "ntm:textures/models/armor/Test", 200, new int[] {4, 9, 7, 4}, 30, SoundEvents.ITEM_ARMOR_EQUIP_DIAMOND, 5.0F); Quote Link to comment Share on other sites More sharing options...
Animefan8888 Posted August 5, 2016 Share Posted August 5, 2016 Just put modid:Test and it will append the rest of the path for you. Assuming you have two textures named Test_layer_1.png and Test_layer_2.png Quote VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator. Link to comment Share on other sites More sharing options...
nedas60 Posted August 5, 2016 Author Share Posted August 5, 2016 Still doesn't seem to work. I have it in the src\main\resources\assets\ntm\models\armor folder. Is there anything wrong here? Quote Link to comment Share on other sites More sharing options...
Animefan8888 Posted August 5, 2016 Share Posted August 5, 2016 Should be in this path assets/modid/textures/models/armor can I see a screenshot of your package directory. Quote VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect. Forge and vanilla BlockState generator. Link to comment Share on other sites More sharing options...
nedas60 Posted August 5, 2016 Author Share Posted August 5, 2016 Works perfectly now! Got confused a bit:D Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.