OpposingForces Posted October 28, 2012 Posted October 28, 2012 Hi all, i've been following tech freezers forge tutorials on youtube but i've hit a snag. i followed what he did exactly but my texture doesn't show up for my sword. instead i get a white square with a black rectangle at the bottom. my mod source can be found here: http://www.filehosting.org/file/details/388565/VanillaExpansion.7z any help would be appreciated.
Kore Posted October 28, 2012 Posted October 28, 2012 inside of your sword class, put in: public String getTextureFile() { return ""; //put the texture file in /MCP/eclipse/Minecraft/bin AND start with a /, end with .png } The Korecraft Mod
OpposingForces Posted October 28, 2012 Author Posted October 28, 2012 thanks for the quick reply. but by putting it inside the bin folder what happens if i want to publish my mod? won't whoever downloads it have to throw my textures into the bin folder?
keepcalm Posted October 29, 2012 Posted October 29, 2012 I'm fairly sure you can just chuck the texture files inside your mod's jar - so if the texture file was /textures/terrain.png, you'd put the 'textures' folder inside your jar. Protip: try and find answers yourself before asking on the forum. It's pretty likely that there is an answer. Was I helpful? Give me a thank you! http://bit.ly/HZ03zy[/img] Tired of waiting for mods to port to bukkit? use BukkitForge! (now with a working version of WorldEdit!)
Reslekan Posted October 29, 2012 Posted October 29, 2012 You can. Just create a package inside Eclipse, then drag and drop your textures into it - accessing them after with "/packagename/texturename.png" Requires no fiddling around and you can then edit directly without having to replace files or pop them in /bin or the minecraft.jar.
OpposingForces Posted October 29, 2012 Author Posted October 29, 2012 thanks guys. i think that was the problem: "/packagename/texturename.png" i had my textures inside my package but didn't add my package name so mine just read "/myitems.png" i'll try it a bit later. EDIT/UPDATE: works. thanks guys.
Recommended Posts