Jump to content

Recommended Posts

Posted

Hello! I have tried to add some localization and textures for my custom item but it does not work.

Package structure is as follows:

4WM2nAt.png

 

en_US.lang:

item.tStone.name=Transmutation Stone
itemGroup.transmutation=Transmutation

 

Registering the item renderer thingamajig:

    @Mod.EventHandler
    public void init(FMLInitializationEvent e)
    {
        if (e.getSide() == Side.CLIENT)
        {
            RenderItem rI = Minecraft.getMinecraft().getRenderItem();
            rI.getItemModelMesher().register(ModItems.tStone, 0, new ModelResourceLocation("transmutation:tStone", "inventory"));
        }
    }

 

In the game, the creative tab is literally called "itemGroup.transmutation" and not "Transmutation", and the item itself is called "item.tStone.name" instead of "Transmutation Stone". The item's texture is a purple and black block. Any idea as to why the game isn't reading this?

 

(Funny side-note, overriding the addInformation() method, clearing the tooltip List and adding a String to it makes it act as the item title!)

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

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