Jump to content

[1.8] Fence block with type not render


SteveKunG

Recommended Posts

When I tried to create fence block with type of block. But that isn't render.

 

9faefeaeaf.png

 

2c71f54ccf.png

 

And here my blockstate.json

 

 

{

    "variants": {

        "variant=ancient_dark_fence,east=false,north=false,south=false,west=false": { "model": "moreplanets:ancient_dark_fence_post" },

        "variant=ancient_dark_fence,east=false,north=true,south=false,west=false": { "model": "moreplanets:ancient_dark_fence_n", "uvlock": true },

        "variant=ancient_dark_fence,east=true,north=false,south=false,west=false": { "model": "moreplanets:ancient_dark_fence_n", "y": 90, "uvlock": true },

        "variant=ancient_dark_fence,east=false,north=false,south=true,west=false": { "model": "moreplanets:ancient_dark_fence_n", "y": 180, "uvlock": true },

        "variant=ancient_dark_fence,east=false,north=false,south=false,west=true": { "model": "moreplanets:ancient_dark_fence_n", "y": 270, "uvlock": true },

        "variant=ancient_dark_fence,east=true,north=true,south=false,west=false": { "model": "moreplanets:ancient_dark_fence_ne", "uvlock": true },

        "variant=ancient_dark_fence,east=true,north=false,south=true,west=false": { "model": "moreplanets:ancient_dark_fence_ne", "y": 90, "uvlock": true },

        "variant=ancient_dark_fence,east=false,north=false,south=true,west=true": { "model": "moreplanets:ancient_dark_fence_ne", "y": 180, "uvlock": true },

        "variant=ancient_dark_fence,east=false,north=true,south=false,west=true": { "model": "moreplanets:ancient_dark_fence_ne", "y": 270, "uvlock": true },

        "variant=ancient_dark_fence,east=false,north=true,south=true,west=false": { "model": "moreplanets:ancient_dark_fence_ns", "uvlock": true },

        "variant=ancient_dark_fence,east=true,north=false,south=false,west=true": { "model": "moreplanets:ancient_dark_fence_ns", "y": 90, "uvlock": true },

        "variant=ancient_dark_fence,east=true,north=true,south=true,west=false": { "model": "moreplanets:ancient_dark_fence_nse", "uvlock": true },

        "variant=ancient_dark_fence,east=true,north=false,south=true,west=true": { "model": "moreplanets:ancient_dark_fence_nse", "y": 90, "uvlock": true },

        "variant=ancient_dark_fence,east=false,north=true,south=true,west=true": { "model": "moreplanets:ancient_dark_fence_nse", "y": 180, "uvlock": true },

        "variant=ancient_dark_fence,east=true,north=true,south=false,west=true": { "model": "moreplanets:ancient_dark_fence_nse", "y": 270, "uvlock": true },

        "variant=ancient_dark_fence,east=true,north=true,south=true,west=true": { "model": "moreplanets:ancient_dark_fence_nsew", "uvlock": true },

"variant=orange_fence,east=false,north=false,south=false,west=false": { "model": "moreplanets:orange_fence_post" },

        "variant=orange_fence,east=false,north=true,south=false,west=false": { "model": "moreplanets:orange_fence_n", "uvlock": true },

        "variant=orange_fence,east=true,north=false,south=false,west=false": { "model": "moreplanets:orange_fence_n", "y": 90, "uvlock": true },

        "variant=orange_fence,east=false,north=false,south=true,west=false": { "model": "moreplanets:orange_fence_n", "y": 180, "uvlock": true },

        "variant=orange_fence,east=false,north=false,south=false,west=true": { "model": "moreplanets:orange_fence_n", "y": 270, "uvlock": true },

        "variant=orange_fence,east=true,north=true,south=false,west=false": { "model": "moreplanets:orange_fence_ne", "uvlock": true },

        "variant=orange_fence,east=true,north=false,south=true,west=false": { "model": "moreplanets:orange_fence_ne", "y": 90, "uvlock": true },

        "variant=orange_fence,east=false,north=false,south=true,west=true": { "model": "moreplanets:orange_fence_ne", "y": 180, "uvlock": true },

        "variant=orange_fence,east=false,north=true,south=false,west=true": { "model": "moreplanets:orange_fence_ne", "y": 270, "uvlock": true },

        "variant=orange_fence,east=false,north=true,south=true,west=false": { "model": "moreplanets:orange_fence_ns", "uvlock": true },

        "variant=orange_fence,east=true,north=false,south=false,west=true": { "model": "moreplanets:orange_fence_ns", "y": 90, "uvlock": true },

        "variant=orange_fence,east=true,north=true,south=true,west=false": { "model": "moreplanets:orange_fence_nse", "uvlock": true },

        "variant=orange_fence,east=true,north=false,south=true,west=true": { "model": "moreplanets:orange_fence_nse", "y": 90, "uvlock": true },

        "variant=orange_fence,east=false,north=true,south=true,west=true": { "model": "moreplanets:orange_fence_nse", "y": 180, "uvlock": true },

        "variant=orange_fence,east=true,north=true,south=false,west=true": { "model": "moreplanets:orange_fence_nse", "y": 270, "uvlock": true },

        "variant=orange_fence,east=true,north=true,south=true,west=true": { "model": "moreplanets:orange_fence_nsew", "uvlock": true }

    }

}

 

 

Link to comment
Share on other sites

Maybe I'm too new to understand, but why do you have so many true directions for the way each entry is facing?  why not use something like this (only way more complicated, I'm sure):

 

{

    "variants": {

        "facing=up": { "model": "normal_torch" },

        "facing=east": { "model": "normal_torch_wall" },

        "facing=south": { "model": "normal_torch_wall", "y": 90 },

        "facing=west": { "model": "normal_torch_wall", "y": 180 },

        "facing=north": { "model": "normal_torch_wall", "y": 270 }

    }

}

hw developer in a sw world

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