I am trying to create a resource pack that changes the texture of a sword based on it's damage value. How would I do this? I have tried many different tutorials for 1.9+ but they do not work. I am on my server which is spigot 1.12.2.
The Meaning of Life, the Universe, and Everything.
Join Date:
5/29/2013
Posts:
449
Member Details
I helped someone do this 2 different ways in 1.13 and there is quite a bit of detail about it here: https://www.minecraftforum.net/forums/mapping-and-modding-java-edition/resource-packs/resource-pack-help/2940489-mc-1-13-help-with-custom-item-textures Both of the example packs I linked there are still active on mediafire and will work for 1.12 with minor modification. Because these examples were made for 1.13 to adapt them to 1.12 you need to: change the pack format in pack.png for 4 to 3, rename the folder in assets/minecraft/textures from 'item' to 'items', and in the folder assets/minecraft/models/item (do not change this folder name) open all of the json files and make sure they are using the new 'items' folder for their texture instead of my originally name 'item' folder. I have tested and doing this to both packs makes them fully functional in 1.12.
If you are trying to insert custom items to the game using the unbreakable tag and damage values, rather than material degradation, the syntax of the command will be different for 1.12 than the 1.13 command, for 1.12 it would be:
/give InfiniteCorners minecraft:golden_shovel 1 1 {Unbreakable:1b} For a golden shovel that looks like a diamond axe and
/give InfiniteCorners minecraft:golden_shovel 1 2 {Unbreakable:1b} for a golden shovel that looks like a diamond sword.
If you're switching textures to show deterioration of the item as it breaks down then the other pack would just be a matter of expanding the predicate array to whatever you want it for the item breaking down. Hope that helps, let us know if you need more help.
1.14 uses the same formatting and file structure as 1.14 so the packs linked work well in 1.13 and 1.14, without needing to be adapted as described above, and this is a vanilla model modification so it requires no optifine. However, since you wanted this for 1.12 the 1.13 pack needs converted down and while my links will work fine for 1.13+ your 1.12 custom items pack will not work in 1.13+ without being converted back.
because I downloaded the axe resource pack and it did not seem to work. It said it was incompatible and I changed the pack.mcmeta to fit my version
You specifically tagged this as being used in a 1.12.2 pack which is why I gave you instructions on how to convert my example from 1.13 to 1.12- if you do not follow the instructions provided then neither pack will work and both will say they are incompatible. You also seem to have downloaded the wrong pack for what you are trying to do. The pack with the axes is to illustrate 'degradation' which is the item changing as what you are using gets more and more damaged. The example that uses golden shovels http://www.mediafire.com/file/wp51ygzurh700a3/Vanilla_Custom_Items.zip/file would be the one you want to convert to 1.12 and then use to add unique textures to the game spawned in with commands.
nevermind I got it to work. But what would the give command be for the different damged axes?
P.S. Sorry for all the trouble I have cause
I don't mind helping, it's no trouble, however I will point out that you have had all the information to do this since I first replied to your message- you just had to read the stuff I linked to you. I'm sorry you spent so much time fighting with the degradation pack but using the axe pack was the wrong one for your needs which is why there are no commands to summon the axes: you use it once to effect the durability and the texture switches, again and the second image appears, and I left it at that since it's all you really need to see how it works. Use the shovel example I linked in this post, convert it for 1.12 using the steps I described above and then those 2 commands will give you the custom items from a golden shovel.
I made these packs as mere examples so that anyone who knows what they're looking at can adapt them and expand them as they need. If you are not familiar with minecraft's json files or if something is giving you a bunch of trouble then it may be better if I did something more specific for your needs, if you are still having trouble after this we may go that route. Hope this helps, if you still have trouble let me know.
because I downloaded the axe resource pack and it did not seem to work. It said it was incompatible and I changed the pack.mcmeta to fit my version
You simply do not change the pack_format value to just get it to work for your version, you need to convert the whole pack for your version or use it in the minecraft version it was made for.
How would I get an axe with a damage of 2 mass produced if you will so I can have multiple. Because I do not want to go through and use the axe once or whatever
How would I get an axe with a damage of 2 mass produced if you will so I can have multiple. Because I do not want to go through and use the axe once or whatever
Based on this question I feel like you are doing something wrong since you should not be seeing the texture at all unless you have spawned the item with an unbreakable tag. The pack with the axes, which you downloaded and seem to be using, is NOT the example pack you should've been using- I was very, very clear about that in my last post where I linked the pack you should be using directly in the post. At this point I have to assume that you want your axe to completely change appearance every time you use it, rather than setting a specific texture for an unbreakable tool based on damage value- although I'm not sure why you would want that.
To /give yourself a damaged axe in 1.12 you would use the command /give @p diamond_axe 1 2 (the 1 is the item quantity and the 2 is the damage value so if you want 10 with a damage of 3 you would just alter the numbers accordingly) but this texture will change as soon as you use the item. If you are looking for special items the are only spawned in with commands then you should read my earlier post and follow the instructions.
I am trying to create a resource pack that changes the texture of a sword based on it's damage value. How would I do this? I have tried many different tutorials for 1.9+ but they do not work. I am on my server which is spigot 1.12.2.
Thanks!
I helped someone do this 2 different ways in 1.13 and there is quite a bit of detail about it here: https://www.minecraftforum.net/forums/mapping-and-modding-java-edition/resource-packs/resource-pack-help/2940489-mc-1-13-help-with-custom-item-textures Both of the example packs I linked there are still active on mediafire and will work for 1.12 with minor modification. Because these examples were made for 1.13 to adapt them to 1.12 you need to: change the pack format in pack.png for 4 to 3, rename the folder in assets/minecraft/textures from 'item' to 'items', and in the folder assets/minecraft/models/item (do not change this folder name) open all of the json files and make sure they are using the new 'items' folder for their texture instead of my originally name 'item' folder. I have tested and doing this to both packs makes them fully functional in 1.12.
If you are trying to insert custom items to the game using the unbreakable tag and damage values, rather than material degradation, the syntax of the command will be different for 1.12 than the 1.13 command, for 1.12 it would be:
/give InfiniteCorners minecraft:golden_shovel 1 1 {Unbreakable:1b} For a golden shovel that looks like a diamond axe and
/give InfiniteCorners minecraft:golden_shovel 1 2 {Unbreakable:1b} for a golden shovel that looks like a diamond sword.
If you're switching textures to show deterioration of the item as it breaks down then the other pack would just be a matter of expanding the predicate array to whatever you want it for the item breaking down. Hope that helps, let us know if you need more help.
I want to make it so if I have a sword with a damage of 1, then it looks like an ice cream for example
My above message, and the link posted in it, has all of the information needed for you to do that.
would it be the same for 1.14?
does it work without optifine?
Yes, it works for 1.8, 1.9, 1.11, 1.12, 1.13, 1.14, 1.15, 1.16, 1.17 and all hopefully all future versions.
Meow~
#F5F8FB
KittenKatja ♥
because I downloaded the axe resource pack and it did not seem to work. It said it was incompatible and I changed the pack.mcmeta to fit my version
nevermind I got it to work. But what would the give command be for the different damged axes?
P.S. Sorry for all the trouble I have cause
1.14 uses the same formatting and file structure as 1.14 so the packs linked work well in 1.13 and 1.14, without needing to be adapted as described above, and this is a vanilla model modification so it requires no optifine. However, since you wanted this for 1.12 the 1.13 pack needs converted down and while my links will work fine for 1.13+ your 1.12 custom items pack will not work in 1.13+ without being converted back.
You specifically tagged this as being used in a 1.12.2 pack which is why I gave you instructions on how to convert my example from 1.13 to 1.12- if you do not follow the instructions provided then neither pack will work and both will say they are incompatible. You also seem to have downloaded the wrong pack for what you are trying to do. The pack with the axes is to illustrate 'degradation' which is the item changing as what you are using gets more and more damaged. The example that uses golden shovels http://www.mediafire.com/file/wp51ygzurh700a3/Vanilla_Custom_Items.zip/file would be the one you want to convert to 1.12 and then use to add unique textures to the game spawned in with commands.
I don't mind helping, it's no trouble, however I will point out that you have had all the information to do this since I first replied to your message- you just had to read the stuff I linked to you. I'm sorry you spent so much time fighting with the degradation pack but using the axe pack was the wrong one for your needs which is why there are no commands to summon the axes: you use it once to effect the durability and the texture switches, again and the second image appears, and I left it at that since it's all you really need to see how it works. Use the shovel example I linked in this post, convert it for 1.12 using the steps I described above and then those 2 commands will give you the custom items from a golden shovel.
I made these packs as mere examples so that anyone who knows what they're looking at can adapt them and expand them as they need. If you are not familiar with minecraft's json files or if something is giving you a bunch of trouble then it may be better if I did something more specific for your needs, if you are still having trouble after this we may go that route. Hope this helps, if you still have trouble let me know.
You simply do not change the pack_format value to just get it to work for your version, you need to convert the whole pack for your version or use it in the minecraft version it was made for.
Meow~
#F5F8FB
KittenKatja ♥
How would I get an axe with a damage of 2 mass produced if you will so I can have multiple. Because I do not want to go through and use the axe once or whatever
Click the item with the middle mouse button.
If it's a stackable item, you can even drag the copied item using the middle mouse button over multiple slots to make more copies.
Meow~
#F5F8FB
KittenKatja ♥
Based on this question I feel like you are doing something wrong since you should not be seeing the texture at all unless you have spawned the item with an unbreakable tag. The pack with the axes, which you downloaded and seem to be using, is NOT the example pack you should've been using- I was very, very clear about that in my last post where I linked the pack you should be using directly in the post. At this point I have to assume that you want your axe to completely change appearance every time you use it, rather than setting a specific texture for an unbreakable tool based on damage value- although I'm not sure why you would want that.
To /give yourself a damaged axe in 1.12 you would use the command /give @p diamond_axe 1 2 (the 1 is the item quantity and the 2 is the damage value so if you want 10 with a damage of 3 you would just alter the numbers accordingly) but this texture will change as soon as you use the item. If you are looking for special items the are only spawned in with commands then you should read my earlier post and follow the instructions.