Jump to content

[1.17.1] Multi layer model


vl20100

Recommended Posts

Hi,

I'm creating a mod that adds overlays on some Minecraft's textures.

Here is my model file for the stone block :

Spoiler
{
  "parent": "block/block",
  "textures": {
    "particle": "block/stone",
    "block": "block/stone",
    "overlay": "assembledblocks:block/overlays/assembled_stone"
  },
  "elements": [
    {
      "from": [ 0, 0, 0 ],
      "to": [ 16, 16, 16 ],
      "faces": {
        "down":  { "uv": [0, 0, 16, 16], "texture": "#block", "cullface": "down" },
        "up":    { "uv": [0, 0, 16, 16], "texture": "#block", "cullface": "up" },
        "north": { "uv": [0, 0, 16, 16], "texture": "#block", "cullface": "north" },
        "south": { "uv": [0, 0, 16, 16], "texture": "#block", "cullface": "south" },
        "west":  { "uv": [0, 0, 16, 16], "texture": "#block", "cullface": "west" },
        "east":  { "uv": [0, 0, 16, 16], "texture": "#block", "cullface": "east" }
      }
    },
    {
      "from": [ 0, 0, 0 ],
      "to": [ 16, 16, 16 ],
      "faces": {
        "north": { "uv": [0, 0, 16, 16], "texture": "#overlay", "cullface": "north" },
        "south": { "uv": [0, 0, 16, 16], "texture": "#overlay", "cullface": "south" },
        "west":  { "uv": [0, 0, 16, 16], "texture": "#overlay", "cullface": "west" },
        "east":  { "uv": [0, 0, 16, 16], "texture": "#overlay", "cullface": "east" }
      }
    }
  ]
}

 

My texture has transparency.

My block's display works fine on my blockItem but not on my block (as you can see below).

Spoiler

java_eXaSoV92Un.png

Can you tell me where is my mistake ?

Thank you.

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.