mojira.dev
MCPE-225381

Material instance tint_method ignores alpha channel of texture.

Seems no matter what you do, the tint_method setting ignores the alpha channel of the texture, causing the wrong regions of it to be tinted.

Example code.

{
	"format_version": "1.19.80",
	"minecraft:block": {
		"description": {
			"identifier": "V1:grass_slab"
		},
		"components": {
			"minecraft:loot": "loot_tables/grass_slab.json",
			"minecraft:material_instances": {
				"bottom": {
					"texture": "grass_bottom",
					"render_method": "opaque"
				},
				"side": {
					"texture": "grass_slab_side",
					"render_method": "opaque",
					"tint_method": "grass"
				},
				"top": {
					"texture": "grass_top",
					"render_method": "opaque",
					"tint_method": "grass"
				}
			},
			"minecraft:geometry": "geometry.customslab",
			"minecraft:selection_box": {
				"size": [
					16,
					8,
					16
				],
				"origin": [
					-8,
					0,
					-8
				]
			},
			"minecraft:collision_box": {
				"size": [
					16,
					8,
					16
				],
				"origin": [
					-8,
					0,
					-8
				]
			}
		}
	}
}

Screenshot of what happens in attachments. As you can see, the dirt is tinted when it shouldn’t be.

The texture being used is the stock minecraft grass texture.

ie: "grass_slab_side": { "textures": [ "textures/blocks/grass_side" ] },

Attachments

Comments 3

Daytime picture to make it more obvious.

[media]

For issues with the addon system we need you to attach a sample pack that can be used to reproduce the issue. Please always clearly state both Expected and Observed results.

[media][media]

Here. Give yourself v1:grass_slab and place it. The expected behaviour is for only part of the side texture to be tinted (the grass top), but it tints the whole texture instead of part of it based on the alpha channel.

Jordon Moss

(Unassigned)

Unconfirmed

Multiple

Windows 11

1.21.94 Hotfix

Retrieved