Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1.12.2] Adding block with different texture on each side #253

Open
Khantor107 opened this issue Dec 5, 2021 · 1 comment
Open

[1.12.2] Adding block with different texture on each side #253

Khantor107 opened this issue Dec 5, 2021 · 1 comment

Comments

@Khantor107
Copy link

Khantor107 commented Dec 5, 2021

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?

@Xelbayria
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants