ContentTweaker

ContentTweaker

27M Downloads

[1.12.2] Adding block with different texture on each side

Khantor107 opened this issue · 1 comments

commented

Hi. I tried to add block with different textures on each side. I tried to add new model

{ "parent": "block/cube", "textures": { "down": "contenttweaker:blocks/BLOCK_NAME_HERE"}, "up": "contenttweaker:blocks/BLOCK_NAME_HERE"}, "north": "contenttweaker:blocks/BLOCK_NAME_HERE"}, "south": "contenttweaker:blocks/BLOCK_NAME_HERE"}, "west": "contenttweaker:blocks/BLOCK_NAME_HERE"}, "east": "contenttweaker:blocks/BLOCK_NAME_HERE"}, "elements": [ { "from": [ 0, 0, 0 ], "to": [ 16, 16, 16 ], "faces": { "down": { "texture": "#down", "cullface": "down" }, "up": { "texture": "#up", "cullface": "up" }, "north": { "texture": "#north", "cullface": "north" }, "south": { "texture": "#south", "cullface": "south" }, "west": { "texture": "#west", "cullface": "west" }, "east": { "texture": "#east", "cullface": "east" } } } ] }

And then add new blockstate

{ "forge_marker": 1, "defaults": { "textures": { "down": "contenttweaker:blocks/BLOCK_NAME_HERE"}, "up": "contenttweaker:blocks/BLOCK_NAME_HERE"}, "north": "contenttweaker:blocks/BLOCK_NAME_HERE"}, "south": "contenttweaker:blocks/BLOCK_NAME_HERE"}, "west": "contenttweaker:blocks/BLOCK_NAME_HERE"}, "east": "contenttweaker:blocks/BLOCK_NAME_HERE"}, "particle": "contenttweaker:blocks/BLOCK_NAME" }, "model": "contenttweaker:BLOCK_NAME", "uvlock": true, "transform": "forge:default-block" }, "variants": { "normal": [{}], "inventory": [{}] } }

But no way that I'm trying, block in the game has no texture. Could someone tell me what to do?

commented

I had the same problem.

block in the world has no texture but the item in GUI or Inventory has textures. I can't figure out why. I was trying to add a custom slab—just a simple half-block.