Posted July 16, 20187 yr Hi, I'm working on a block that has a shorter height than a normal block. I used the block_slab models as a base, and then changed the size and some of the faces to fit what I needed. However, when I load the model in the game, the texture on the side is stretched up and weird looking. Here's the model files, the block images, and a screenshot of what I mean so hopefully someone can figure it out. base_power_hub.json Spoiler { "parent": "block/block", "textures": { "particle": "#side" }, "elements": [ { "from": [ 0, 0, 0 ], "to": [ 16, 12, 16 ], "faces": { "down": { "uv": [ 0, 0, 16, 16 ], "texture": "#bottom", "cullface": "down" }, "up": { "uv": [ 0, 0, 16, 16 ], "texture": "#top" }, "north": { "uv": [ 0, 12, 16, 16 ], "texture": "#front", "cullface": "north" }, "south": { "uv": [ 0, 12, 16, 16 ], "texture": "#side", "cullface": "south" }, "west": { "uv": [ 0, 12, 16, 16 ], "texture": "#side", "cullface": "west" }, "east": { "uv": [ 0, 12, 16, 16 ], "texture": "#side", "cullface": "east" } } } ] } power_hub.json Spoiler { "parent": "minestuckarsenal:block/base_power_hub", "textures": { "bottom": "minestuckarsenal:blocks/power_hub_bottom", "top": "minestuckarsenal:blocks/power_hub_top", "front": "minestuckarsenal:blocks/power_hub_front", "side": "minestuckarsenal:blocks/power_hub_side" } } The images, enlarged for visibility. Spoiler https://imgur.com/a/jnFqVZI I've tried having the texture file size at 12 height, 16 width just like the model's face, but minecraft won't load it as the aspect ratio is broken. I also tried filling in blank space on the 16x16.
July 16, 20187 yr You changed the physical height of the block, but you didn't increase it's texture UV size. You, in fact, decreased it: "uv": [ 0, 12, 16, 16 ] This says "this face has UV coordinates from (0,12) to (16,16)." Or 16x4. Edited July 16, 20187 yr by Draco18s Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
July 16, 20187 yr Author 52 minutes ago, Draco18s said: You changed the physical height of the block, but you didn't increase it's texture UV size. You, in fact, decreased it: "uv": [ 0, 12, 16, 16 ] This says "this face has UV coordinates from (0,12) to (16,16)." Or 16x4. Actually just wound up figuring that out after I opened it in block bench, thanks for the help though Edited July 16, 20187 yr by naturaGodhead
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.