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

So, I have looked all over the internet to solve my problem, but I found nothing.

My problem is the following:

I have been following this tutorial on YouTube for creating a mod, because I am new to modding and know just the basics of Java: https://youtube.com/playlist?list=PLDhiRTZ_vnoWsCqtoG1X1MbGY5xATTadb

I have come to the point, where I have created my own item but the texture of it won't show up in Minecraft. The model is displayed as an item as intended.

I just always get this error in the logs when I'm trying to load up Minecraft:

[07:58:51] [Worker-Main-14/ERROR] [minecraft/AtlasTexture]: Using missing texture, unable to load tutorial:textures/items/ruby.png : java.io.FileNotFoundException: tutorial:textures/items/ruby.png

The .png is 16x16 pixels and placed in the correct directory.

I really don't understand what I have done wrong. Please help me.

21 minutes ago, SchneiderMaster said:

The .png is 16x16 pixels and placed in the correct directory.

I really don't understand what I have done wrong. Please help me.

the file does not exist / in the wrong folder because your ide shows you the error

post your model class because only with the error it will be difficult to help you

  • Author

{
  "parent": "item/generated",
  "textures": {
    "layer0": "tutorial:items/ruby"
  }
}

This is in models/item/ruby.json

 

4 minutes ago, Luis_ST said:

the file does not exist / in the wrong folder because your ide shows you the error

The file is textures/items/ruby.png

 

Also, my registry handler if you need it:

@Mod.EventBusSubscriber
public class RegistryHandler {

    public static final DeferredRegister<Item> ITEMS = DeferredRegister.create(ForgeRegistries.ITEMS, Tutorial.MOD_ID);

    public static void init(){
        ITEMS.register(FMLJavaModLoadingContext.get().getModEventBus());
    }


    //Items

    public static final RegistryObject<Item> RUBY = ITEMS.register("ruby", ItemBase::new);
    
}

 

And my item base:

public class ItemBase extends Item {


    public ItemBase() {
        super(new Item.Properties().group(ItemGroup.MATERIALS));
    }
}

 

18 minutes ago, SchneiderMaster said:

Also, my registry handler if you need it:

the model and your registration looks okay i think that you have your texture in a wrong directory (because your ide shows you the error)

can you create a screenshot of your textures folder in your ide because I suspect that the error is there somewhere

or create a github repo (that would be the best option)

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.