forum Forumsplay_arrow Minecraft fiber_manual_record Mods

1

Eclipse Not Accepting my PNG file. Item show default texture

1 emerald12 replies914 views
created 08/24/2015 10:40 pm by Lufuu
last reply 08/28/2015 2:06 pm
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
Posted by avatar
Lufuu
Level 20 : Expert Toast
16

12 replies

1
08/28/2015 2:06 pm
Level 20 : Expert Toast
Lufuu
avatar
Anyone? im still having this problem
1
08/25/2015 11:35 pm
Level 19 : Journeyman Dragon
Latiodile
avatar
have you tried googling it? might not me a minecraft issue.. it might be eclipse not noticing theres a new file
1
08/25/2015 11:41 pm
Level 20 : Expert Toast
Lufuu
avatar
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
08/25/2015 6:51 pm
Level 36 : Artisan Programmer
deadrecon98
avatar
#LearnToCode
.setTextureName("itemCheeseSandwich"
That is 100% wrong, you didn't define the asset.
1
08/25/2015 11:00 pm
Level 20 : Expert Toast
Lufuu
avatar
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
1
08/25/2015 7:25 pm
Level 13 : Journeyman Modder
searchndstroy
avatar
Coding != Using API correctly
1
08/25/2015 6:36 pm
Level 20 : Expert Toast
Lufuu
avatar
This is the code for the item and the texture
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
08/25/2015 7:28 pm
Level 19 : Journeyman Dragon
Latiodile
avatar
if it doesnt show up in eclipse its fine, but change .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
08/25/2015 5:11 pm
Level 19 : Journeyman Dragon
Latiodile
avatar
whats your texture code? put it in [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 from
1
08/25/2015 5:06 pm
Level 20 : Expert Toast
Lufuu
avatar
Anyone? i really need to figure this out and idk why
1
08/24/2015 10:55 pm
Level 7 : Apprentice Taco
Kickrad
avatar
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
08/24/2015 11:27 pm
Level 20 : Expert Toast
Lufuu
avatar
oh i forgot to mention, The mod is 1.7.10, not 1.8. So their is no JSON file.

Planet Minecraft

Browse

Site

© 2010 - 2019
planetminecraft.com

Welcome