Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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.

 

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

  • Author

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?

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!

 

 

width=635 height=903http://bit.ly/HZ03zy[/img]

 

 

Tired of waiting for mods to port to bukkit?

use BukkitForge! (now with a working version of WorldEdit!)

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.

  • Author

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.

Guest
This topic is now closed to further replies.

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.