-
Creating Indestructable Items
Thank you again, I have tried every combination of: ModelLoader.setCustomModelResourceLocation(Main.unbreakableSword, 0, new ModelResourceLocation ("minecraft:items/diamond_sword", "inventory")); That I can think off and it is still not loading the model for the item. When i try to include: ModelLoader.setCustomMeshDefinition(Main.unbreakableSword, new ItemMeshDefinition() { @Override public ModelResourceLocation getModelLocation(ItemStack stack) { // TODO Auto-generated method stub return null; } }); I have tried to get the model from Items.diamond_Sword but have been unsuccessful in getting the model to be used? If you could give an example of the correct format for these methods I would very much appreciate it. Thanks
-
Creating Indestructable Items
Thanks Cerandior I have already looked at those tutorials. They allow you to use custom textures for your items and you put them into your mod folders as required. The problem with this is that if i were to load a texture pack that has not replaced that specific texture then it will not change. Specifically i have Indestructible items (as the post above helped with) but i want to reference the destructible item when looking for its textures. For example, i want my indestructible sword to use the same texture as a diamond sword no matter what texture pack you use. So somewhere it tells the system to look in assets.mymod.textures.items for the png with my items name (swordIndestructible) i want to tell it instead to look for a texture with the name "diamond_sword". I can't seem to find that code to override or change it?
-
Creating Indestructable Items
It is forge 1.8. setTexture does not exist. I saw the json files and thought that might be it. How would i set them to use textures of another item?
-
Creating Indestructable Items
Hi, Overriding the basic item worked beautifully with one problem. I had hoped that it would continue to use the texture already set for that item. However it does not. The current texture is the basic pink and black square. Is there any way that i can get it to use the basic texture? I have tried the .setTextureName method inside the constructor (of the indestructible item) but it says that the method does not exist. Thank you in advance.
-
Creating Indestructable Items
Ah thank you. I was hoping to avoid overriding existing class items but if that is the only way ill do that. Thank you again.
-
Creating Indestructable Items
Hi, I'm wondering if someone can help me. I would like to create a recipe that will allow players to create indestructible items. The same way this command works "/give @a minecraft:diamond_sword 1 0 {Unbreakable:1}" In this command it sets the tag "Unbreakable" to 1. I believe that there must be a way to do this from within the code. This is what i have tried so far. [embed=425,349] ItemStack unbreakableSword = new ItemStack(Items.diamond_sword, 1); setUnbreakable(unbreakableSword); System.out.println("done"); GameRegistry.addRecipe(unbreakableSword, "ABA", "ACA", "ADA", 'A', Blocks.diamond_block, 'B', Items.magma_cream, 'C', Items.ender_eye, 'D', Items.diamond_sword); private static void setUnbreakable(ItemStack unbreakableItem) { NBTTagCompound tag1 = new NBTTagCompound(); tag1.setInteger("Unbreakable", 1); unbreakableItem.setTagCompound(tag1); }[/embed] Thank you In advance.
IPS spam blocked by CleanTalk.