1

Textures Won't Work

EpicOweo 2/6/16 9:24 pm
1k
7/24/2016 5:03 pm
I am making my 1.8 Forge mod, Super Survival, and I am adding an item called Electronite. It's texture won't show up, and I checked EVERYTHING, and it is all correct. This is the model file called electronite.json:

{
"parent": "builtin/generated",
"textures": {
"layer0": "mymod:items/electronite"
},
"display": {
"thirdperson": {
"rotation": [ -90, 0, 0 ],
"translation": [ 0, 1, -3 ],
"scale": [ 0.55, 0.55, 0.55 ]
},
"firstperson": {
"rotation": [ 0, -135, 25 ],
"translation": [ 0, 4, 2 ],
"scale": [ 1.7, 1.7, 1.7 ]
}
}
}

I have my texture made, and it is called electronite.png. I use Eclipse, and I checked and nothing was wrong with my code. This was supposed to be released for v2.0 like a week ago. None of my other items besides one is doing this. it is called sapphireSeed.json and sapphireSeed.png. It's model file is:
{
"parent": "builtin/generated",
"textures": {
"layer0": "mymod:items/sapphireSeed"
},
"display": {
"thirdperson": {
"rotation": [ -90, 0, 0 ],
"translation": [ 0, 1, -3 ],
"scale": [ 0.55, 0.55, 0.55 ]
},
"firstperson": {
"rotation": [ 0, -135, 25 ],
"translation": [ 0, 4, 2 ],
"scale": [ 1.7, 1.7, 1.7 ]
}
}
}
Can someone help??? (If u try to help, u get subscriber, seriously!!! )
Posted by
EpicOweo
Level 6 : Apprentice Mage
3

  Have something to say?

JoinSign in

13

EpicOweo
07/24/2016 5:03 pm
Level 6 : Apprentice Mage
I found out my problem. I didn't register the item. Thanks though!
1
OneBarRouter
02/07/2016 8:03 pm
Level 7 : Apprentice Network
I need to see your src/main/resources folder

not src/main/java
1
EpicOweo
02/07/2016 12:54 pm
Level 6 : Apprentice Mage



1
EpicOweo
02/07/2016 12:46 pm
Level 6 : Apprentice Mage
FAIL
1
EpicOweo
02/07/2016 12:45 pm
Level 6 : Apprentice Mage
[img]file:///home/danny/Desktop/image1.png
[/img]
[img]file:///home/danny/Desktop/image3.png
[/img][img]file:///home/danny/Desktop/image4.png
[/img]
1
EpicOweo
02/07/2016 10:02 am
Level 6 : Apprentice Mage
Yes, I am using Eclipse, but what is IDE?
1
OneBarRouter
02/07/2016 12:31 pm
Level 7 : Apprentice Network
IDE is "Integrated Development Environment". Essentially, your IDE is Eclipse.

Can you take a couple screenshots of your Eclipse Package Explorer (left side)
and the .json files of your items?
1
EpicOweo
02/07/2016 12:33 pm
Level 6 : Apprentice Mage
okay I can do that
1
SirBlobman
02/06/2016 11:12 pm
Level 24 : Expert Modder
Did you forget to add the item to the ItemRenderRegistry? Sometimes I forget that and spend a few hours trying to figure out the issue.
1
OneBarRouter
02/06/2016 11:17 pm
Level 7 : Apprentice Network
Hey SirBlobman,

Long time no see

Anyways, what you said is completely dependent on what he named his class.
1
OneBarRouter
02/06/2016 9:28 pm
Level 7 : Apprentice Network
I have had this exact same problem. If all of your files (such as assets/mymod/textures/items/electronite.png) are in the right places, the problem is with your png file. The only way to fix this is by actually copying an image out of minecraft's source files, and then editing the copied image with an image editor to suit what you need.

For example, copy and paste minecraft's dirt.png into your "items" folder, then use pixlr.com to edit it to look how you want.
1
EpicOweo
02/06/2016 9:53 pm
Level 6 : Apprentice Mage
For some reason, it is not working. But my textures look MUUCH better!
1
OneBarRouter
02/06/2016 10:13 pm
Level 7 : Apprentice Network
Can you post a picture of your IDE?

Are you using Eclipse?
1

Welcome