1
So, my eclipse will not accept my PNG file for my sandwich! it accepts all of my other PNG files for my stuff but it will just not even accept or load the PNG file, iv tried restarting my pc and eclipse, but it just will not show the file!
Here are some SS to make life easyer
THE PNG IN THE FOLDER http://prntscr.com/88jy0d
ECLIPSE NOT SHOWING THE FILE http://prntscr.com/88jyam
Here are some SS to make life easyer
THE PNG IN THE FOLDER http://prntscr.com/88jy0d
ECLIPSE NOT SHOWING THE FILE http://prntscr.com/88jyam
Create an account or sign in to comment.
12
1
Anyone? im still having this problem
1
have you tried googling it? might not me a minecraft issue.. it might be eclipse not noticing theres a new file
1
iv tried googling it and to no avail have i found a fix, thus why im asking the modding community if they can help
1
#LearnToCode
.setTextureName("itemCheeseSandwich"
That is 100% wrong, you didn't define the asset.
.setTextureName("itemCheeseSandwich"
That is 100% wrong, you didn't define the asset.
1
well it worked for all my other mod objects, it just isnt working for anything else ._.
it worked for the first 3 items but now it wont work for anything else!
Also if you look at the origin of this thred, My eclipse isnt even showing that the PNG file exists yet its in the folder and its just like any other PNG iv put in
it worked for the first 3 items but now it wont work for anything else!
Also if you look at the origin of this thred, My eclipse isnt even showing that the PNG file exists yet its in the folder and its just like any other PNG iv put in
1
Coding != Using API correctly
1
This is the code for the item and the texture
iv also tried adding a diffrent PNG without caps, still didnt work
it looks like its only accepting the origional 3 PNG's for the origional 3 items and wont accept anymore
itemCheeseSandwich = new ItemFood(15, 0.9F, false).setUnlocalizedName("itemCheeseSandwich").setTextureName("itemCheeseSandwich").setCreativeTab(tabMooglesPartyPack);
iv also tried adding a diffrent PNG without caps, still didnt work
it looks like its only accepting the origional 3 PNG's for the origional 3 items and wont accept anymore
1
if it doesnt show up in eclipse its fine, but change
to
or replace the whateverclassname.modid with just modid if your modid is in the same class as the item
there should also be an error in eclipse saying whats wrong (if you launch minecraft)
.setTextureName("itemCheeseSandwich")
to
.setTextureName(whateverclassname.modid + ":" + "itemCheeseSandwich");
or replace the whateverclassname.modid with just modid if your modid is in the same class as the item
there should also be an error in eclipse saying whats wrong (if you launch minecraft)
1
whats your texture code? put it in
EDIT 1: ill edit this again once i have my code to show you what i have
EDIT 2, try refreshing the list or close and open eclipse.. i just realized what you meant
Edit 3:
[code][/code]
also ive been told that having capitals in the item texture name is a no go. EDIT 1: ill edit this again once i have my code to show you what i have
EDIT 2, try refreshing the list or close and open eclipse.. i just realized what you meant
Edit 3:
itemSparkleStone= new EItems().setUnlocalizedName("SparkleStone").setCreativeTab(EtherealTabItemBlocks).setTextureName(EtherealStrings.modid + ":" + "sparklestone");
this is what my code is for my texture path and name, and the Etheralstrings. is in another class which the main class that this is in takes the modid from1
Anyone? i really need to figure this out and idk why
1
Check the names and the json files for spelling or capitalization issues. And if that doesn't work I'll think of something else
1
oh i forgot to mention, The mod is 1.7.10, not 1.8. So their is no JSON file.