Jump to content

[1.12] List of key in textures section of model json file?


dakamojo

Recommended Posts

What are the possible keys in the texture section of a model json file?  Is it documented anywhere?  For example I want all side to use the same texture (not not top and bottom).  Is there a cleaner way than this?  I tired the key "side" but it didn't work.

 

{
  "parent": "block/cube_all",
  "textures": {
    "up": "blocks/stone",
    "down": "blocks/stone",
    "east": "earlygameminer:blocks/miner_stone_side",
    "west": "earlygameminer:blocks/miner_stone_side",
    "north": "earlygameminer:blocks/miner_stone_side",
    "south": "earlygameminer:blocks/miner_stone_side"
  }
}

 

Link to comment
Share on other sites

You're using cube_all as the parent model, which defines that all six sides use the texture key "#all". You want cube_bottom_top instead, which uses #top, #bottom, and #side.

Edited by Draco18s

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

Open up the model json file(s) from the Referenced Libraries -> ForgeSrc[version] -> assets.minecraft.models.block

 

There are 8 template cube_xxx models that are easily located. For other blocks, as long as you know the name of a vanilla block that uses it, you can find its parent name from that model.

Edited by Draco18s

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Link to comment
Share on other sites

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.



×
×
  • Create New...

Important Information

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