Jump to content

[1.16.5] How to change item texture of custom block?


J3ramy

Recommended Posts

Hey guys,

I wanna change the item texture of my custom block model. I haven't found anything regarding to that. Right now it looks like that:

Image

 

My JSON-Files look like that:
Blockstate

{
  "variants": {
    "": {"model": "edom:block/firealarm"}
  }
}

Block model

Spoiler
{
	"credit": "Made with Blockbench",
	"textures": {
		"0": "edom:block/firealarm_red",
		"1": "edom:block/firealarm_white",
		"particle": "edom:block/firealarm_red"
	},
	"elements": [
		{
			"from": [6, 15.5, 6],
			"to": [10, 16, 10],
			"faces": {
				"north": {"uv": [4, 0, 8, 1], "texture": "#1"},
				"east": {"uv": [4, 1, 8, 2], "texture": "#1"},
				"south": {"uv": [4, 2, 8, 3], "texture": "#1"},
				"west": {"uv": [4, 3, 8, 4], "texture": "#1"},
				"up": {"uv": [4, 4, 0, 0], "texture": "#1"},
				"down": {"uv": [4, 4, 0, 8], "texture": "#1"}
			}
		},
		{
			"from": [6.5, 15, 6.5],
			"to": [9.5, 15.5, 9.5],
			"faces": {
				"north": {"uv": [4, 0, 8, 1], "texture": "#1"},
				"east": {"uv": [4, 1, 8, 2], "texture": "#1"},
				"south": {"uv": [4, 2, 8, 3], "texture": "#1"},
				"west": {"uv": [4, 3, 8, 4], "texture": "#1"},
				"up": {"uv": [4, 4, 0, 0], "texture": "#1"},
				"down": {"uv": [4, 4, 0, 8], "texture": "#1"}
			}
		},
		{
			"from": [7, 14.75, 7],
			"to": [8, 15, 8],
			"faces": {
				"north": {"uv": [0, 0, 1, 1], "texture": "#0"},
				"east": {"uv": [0, 1, 1, 2], "texture": "#0"},
				"south": {"uv": [1, 0, 2, 1], "texture": "#0"},
				"west": {"uv": [1, 1, 2, 2], "texture": "#0"},
				"up": {"uv": [1, 3, 0, 2], "texture": "#0"},
				"down": {"uv": [3, 0, 2, 1], "texture": "#0"}
			}
		}
	],
	"groups": [
		{
			"name": "VoxelShapes",
			"origin": [0, 0, 0],
			"color": 0,
			"children": [0, 1, 2]
		}
	]
}

 

Item Model

{
  "parent": "edom:block/firealarm"
}

Texture

firealarm.png

 

Thanks for your help!

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.

Announcements



×
×
  • Create New...

Important Information

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