Jump to content

[1.8.9][Solved] Item textures for block with meta data


Recommended Posts

Posted

Hello everybody,

 

I'm trying to add the textures for a block with meta data, I set the texture in the blockstate json file. The blocks self have the correct texture but the items not.

 

Screenshot:

 

  Reveal hidden contents

 

 

Ore.json:

 

  Reveal hidden contents

 

 

OreBlock.java:

 

  Reveal hidden contents

 

 

The ModBlock class is just a base class to set the creative tab, the unlocalized name and the registry name.

 

ItemOreBlock.java:

 

  Reveal hidden contents

 

 

Block register:

 

  Reveal hidden contents

 

Posted

This is because you need to specify models for the block item as well.

You should make a file models/item_block_name.json which points to the main block model, like this:

{
    "parent":"modid:block/copper_ore",
    "display": {
        "thirdperson": {
            "rotation": [ 10, -45, 170 ],
            "translation": [ 0, 1.5, -2.75 ],
            "scale": [ 0.375, 0.375, 0.375 ]
        }
    }
}

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.