Jump to content

Recommended Posts

Posted

I'm creating a custom wall that resembles oak wood log, and so far, things look really good! The only problem I'm having is I want the top of the wall to have the log_oak_top texture on the top of the log, instead of being bark on all sides to make it look more like the oak log.

 

Here's my post model jsons:

{
    "parent": "block/wall_post",
    "textures": {
        "wall": "blocks/log_oak"
    }
}

 

Any suggestions?

Posted

Instead of using "parent": "block/wall_post", define your own json file for that and use that as a parent

So for example, you define a json file called "my_wall.json"

{
    "textures": {
        "particle": "#wall"
    },
    "elements": [
        {   "from": [ 4, 0, 4 ],
            "to": [ 12, 16, 12 ],
            "faces": {
                "down":  { "uv": [ 4, 4, 12, 12 ], "texture": "#wall", "cullface": "down" },
                "up":    { "uv": [ 4, 4, 12, 12 ], "texture": "#up", "cullface": "up"   },
                "north": { "uv": [ 4, 0, 12, 16 ], "texture": "#wall" },
                "south": { "uv": [ 4, 0, 12, 16 ], "texture": "#wall" },
                "west":  { "uv": [ 4, 0, 12, 16 ], "texture": "#wall" },
                "east":  { "uv": [ 4, 0, 12, 16 ], "texture": "#wall" }
            },
        }
    ]
}

 

With this code you have a different texture on the upper side, so in your wall json file (the one that you've posted) you need to do this

{
    "parent": "ID:block/my_wall",
    "textures": {
        "wall": "blocks/log_oak",
        "up" :  "blocks/stone"
    }
}

 

ID is your modid, my_wall is the file that "replace" the wall_post of before, and with this you can make a wall that has a stone texture on the upper side ;)

[/code]

Don't blame me if i always ask for your help. I just want to learn to be better :)

Posted

Alright! I got it working!!! Thanks so much!

I got tripped up a bit on that last comma in the my_wall file, but I figured it out in the end!

 

Thanks again JimiT!! Really appreciate the help!!!

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.