1

Eclipse Not Accepting my PNG file. Item show default texture

Lufuu's Avatar Lufuu8/24/15 10:40 pm
1 emeralds 1.1k 12
8/28/2015 2:06 pm
Lufuu's Avatar Lufuu
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 Lufuu's Avatar
Lufuu
Level 21 : Expert Toast
17

Create an account or sign in to comment.

12

1
08/28/2015 2:06 pm
Level 21 : Expert Toast
Lufuu
Lufuu's Avatar
Anyone? im still having this problem
1
08/25/2015 11:35 pm
Level 16 : Journeyman Dragon
Latiodile
Latiodile's 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 21 : Expert Toast
Lufuu
Lufuu's 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 38 : Artisan Programmer
deadrecon98
deadrecon98's Avatar
#LearnToCode
.setTextureName("itemCheeseSandwich"
That is 100% wrong, you didn't define the asset.
1
08/25/2015 11:00 pm
Level 21 : Expert Toast
Lufuu
Lufuu's 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 14 : Journeyman Modder
searchndstroy
searchndstroy's Avatar
Coding != Using API correctly
1
08/25/2015 6:36 pm
Level 21 : Expert Toast
Lufuu
Lufuu's 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 16 : Journeyman Dragon
Latiodile
Latiodile's 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 16 : Journeyman Dragon
Latiodile
Latiodile's 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 21 : Expert Toast
Lufuu
Lufuu's Avatar
Anyone? i really need to figure this out and idk why
1
08/24/2015 10:55 pm
Level 10 : Journeyman Taco
Kickrad
Kickrad's 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 21 : Expert Toast
Lufuu
Lufuu's Avatar
oh i forgot to mention, The mod is 1.7.10, not 1.8. So their is no JSON file.
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome