I'm trying to make a resource pack using Damaged Item Variants but I'm having trouble getting the appropriate models to render properly. I've seen a lot of "tutorials" on YouTube, but they don't really go into a lot of detail. (mainly because I think they're outdated) I've even tried to look through other resource packs that use damaged item variants and see how they do it. No matter what I do, the model that ends up rendering is the "missing item texture." (black and purple checkered box)
If someone can give a (detailed) tutorial on how to do this, I would greatly appreciate it. I really need help and am racking my brains out on how to do it.
(By the way, the model I'm trying to render is a custom model made with Mr. Crayfish's Model Creator)
If you're using 1.10 or above then you need to remove the capital letters from your file names. The most recent versions require all lower-case letters.
I'm not sure if that's your only problem, but it is one of them. I hope that helps you.
If you're using 1.10 or above then you need to remove the capital letters from your file names. The most recent versions require all lower-case letters.
I'm not sure if that's your only problem, but it is one of them. I hope that helps you.
LOL I AM SUCH AN IDIOT!!!!!
Changing all the letters to lowercase was all I needed. XD Thank you so much!!!!!!!
(now I can finally add lightsabers to vanilla minecraft )
(don't forget to add commas to the end of a predicate if it has one below it)
Secondly, the decimal value used is incorrect. The iron sword has a different durability than the diamond_hoe. (you can look durability values of all tools on the minecraft wiki)
Iron swords have a durability of 251. So to get the model to render if it has a damage value of 1, we need to do 1 / 251. The decimal value you need to use for an iron sword is 0.0039.
I've edited the text for you. Try this in the iron_sword JSON file:
The Meaning of Life, the Universe, and Everything.
Join Date:
7/18/2017
Posts:
105
Minecraft:
SonicJDF
Member Details
I still can't get this to work... That's a real bummer.
Rollback Post to RevisionRollBack
If you have mistakes in something you create and don't like them yet release the thing you created to people. then you are letting yourself down and the people you send it to down. -SonicJDF
If you explain what your problem is with examples of what you have done currently, then I can try to help you.
It's not a problem I don't think. It's just how you worded it I can't understand. Whenever I try to understand I can't seem to do it. "
You also replace "<path to model>" with the path to your model (including model name).
Eg. If my custom model was saved at "assets/minecraft/models/item/swords/elven/sting.json" then "<path to model>" would be replaced with "item/swords/elven/sting". No need for .json." I don't understand that at all.
Rollback Post to RevisionRollBack
If you have mistakes in something you create and don't like them yet release the thing you created to people. then you are letting yourself down and the people you send it to down. -SonicJDF
The Meaning of Life, the Universe, and Everything.
Join Date:
7/18/2017
Posts:
105
Minecraft:
SonicJDF
Member Details
Thank you that was much more helpful
Rollback Post to RevisionRollBack
If you have mistakes in something you create and don't like them yet release the thing you created to people. then you are letting yourself down and the people you send it to down. -SonicJDF
I'm trying to make a resource pack using Damaged Item Variants but I'm having trouble getting the appropriate models to render properly. I've seen a lot of "tutorials" on YouTube, but they don't really go into a lot of detail. (mainly because I think they're outdated) I've even tried to look through other resource packs that use damaged item variants and see how they do it. No matter what I do, the model that ends up rendering is the "missing item texture." (black and purple checkered box)
If someone can give a (detailed) tutorial on how to do this, I would greatly appreciate it. I really need help and am racking my brains out on how to do it.
(By the way, the model I'm trying to render is a custom model made with Mr. Crayfish's Model Creator)
I tried this but I'm still getting the same issue.
This is the text I used. Maybe I'm doing something wrong...
If you're using 1.10 or above then you need to remove the capital letters from your file names. The most recent versions require all lower-case letters.
I'm not sure if that's your only problem, but it is one of them. I hope that helps you.
I'm doing this in 1.12, and I have the same problem. I followed the advice of Alvoria and OfficialMihro but to no avail.
LOL I AM SUCH AN IDIOT!!!!!
Changing all the letters to lowercase was all I needed. XD Thank you so much!!!!!!!
(now I can finally add lightsabers to vanilla minecraft )
I can actually help now that I understand a little bit myself.
First of all, try adding these two predicates:
{ "predicate": {"damaged": 1, "damage": 0}, "model": "item/iron_sword"}
{ "predicate": {"damaged": 0, "damage": 0}, "model": "item/iron_sword"}
(don't forget to add commas to the end of a predicate if it has one below it)
Secondly, the decimal value used is incorrect. The iron sword has a different durability than the diamond_hoe. (you can look durability values of all tools on the minecraft wiki)
Iron swords have a durability of 251. So to get the model to render if it has a damage value of 1, we need to do 1 / 251. The decimal value you need to use for an iron sword is 0.0039.
I've edited the text for you. Try this in the iron_sword JSON file:
Hope I've been able to help you.
I managed to get it to work, thanks to you! I had to edit it slightly to get it to work, though. It was missing some }'s.
That's what ended up fixing it. Thanks a ton, man!
Can anyone help me with this ?
I end up with a unknown text the black and purple one
Java: null pointer exception
I still can't get this to work... That's a real bummer.
If you have mistakes in something you create and don't like them yet release the thing you created to people. then you are letting yourself down and the people you send it to down. -SonicJDF
It's not a problem I don't think. It's just how you worded it I can't understand. Whenever I try to understand I can't seem to do it. "
You also replace "<path to model>" with the path to your model (including model name).
Eg. If my custom model was saved at "assets/minecraft/models/item/swords/elven/sting.json" then "<path to model>" would be replaced with "item/swords/elven/sting". No need for .json." I don't understand that at all.
If you have mistakes in something you create and don't like them yet release the thing you created to people. then you are letting yourself down and the people you send it to down. -SonicJDF
Thank you that was much more helpful
If you have mistakes in something you create and don't like them yet release the thing you created to people. then you are letting yourself down and the people you send it to down. -SonicJDF