Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Model issues with a partial block


naturaGodhead
 Share

Recommended Posts

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.

 

 

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.

Link to comment
Share on other sites

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 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.

Link to comment
Share on other sites

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 by naturaGodhead
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.

Guest
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.

 Share



×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.