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

I've been following the generic tutorial on the wiki but have run into issues when adding images to my mods. I had it working at one point but after I added another item it stopped working. Ive tried pretty much everything I could think of. but with no luck. Heres a image of the file tree and code. Please ask if you need anything else. 

  • Author

Do you mean on this line setTextureName("extratools:EnderShard");

I should change it to setTextureName("ExtraTools:EnderShard"); ?

Ive already tried that and it didnt help

In your eclipse workspace, it should be (in the folder)

src -> main -> resources -> assets -> [modid] -> textures -> items -> [itemName].png

It your case it should be:

src -> main -> resources -> assets -> extratools -> textures -> items -> EnderShard.png

Try changing the the package

 

assets.extratools.textures.items

 

Also, you might want to make certain that your modid is "extratools"

 

[coolboy actually beat me to this]

 

It's a really good idea to great a static class that references your mod id, mod name, and version number

 

package com.mmg.candymod.lib;

public class Strings {

    public static final String MODID = "extratools";
    public static final String MODNAME = "Extra Tools";
    public static final String VERSION = "0.1";	

}

 

That way, when you have to reference any of that information, it will always be correct.

 

Then your texture would be

setTextureName(Strings.MODID + ":EnderShard");

 

This is assuming that the EnderShard texture is in your assets.extratools.textures.items folder is named "EnderShard.png"

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

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.