Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

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 }

    }

}

 

 

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

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

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.