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

I am trying to make my custom block model rotate on the z axis for certain blockstates but it doesn't seem to be working. The other rotations seem to be working and it places down the block with the blockstates east and west. So only the rotations isn't working and just placing down the normal model.

 

{
    "variants": {
        "active=false,facing=up": { "model": "talecraft:spikeblock", "x": 180 },
        "active=false,facing=down": { "model": "talecraft:spikeblock"},
        "active=false,facing=south": { "model": "talecraft:spikeblock", "x": 90 },
        "active=false,facing=north": { "model": "talecraft:spikeblock", "x": 270 },
        "active=false,facing=east": { "model": "talecraft:spikeblock", "z": 90},
        "active=false,facing=west": { "model": "talecraft:spikeblock", "z": 270 },
        
        "active=true,facing=up": { "model": "talecraft:spikeblock", "x": 180  },
        "active=true,facing=down": { "model": "talecraft:spikeblock"},
        "active=true,facing=south": { "model": "talecraft:spikeblock", "x": 90 },
        "active=true,facing=north": { "model": "talecraft:spikeblock", "x": 270 },
        "active=true,facing=east": { "model": "talecraft:spikeblock", "z": 90},
        "active=true,facing=west": { "model": "talecraft:spikeblock", "z": 270 }
    }
}

  • Author

I am trying to make my custom block model rotate on the z axis for certain blockstates but it doesn't seem to be working. The other rotations seem to be working and it places down the block with the blockstates east and west. So only the rotations isn't working and just placing down the normal model.

 

{
    "variants": {
        "active=false,facing=up": { "model": "talecraft:spikeblock", "x": 180 },
        "active=false,facing=down": { "model": "talecraft:spikeblock"},
        "active=false,facing=south": { "model": "talecraft:spikeblock", "x": 90 },
        "active=false,facing=north": { "model": "talecraft:spikeblock", "x": 270 },
        "active=false,facing=east": { "model": "talecraft:spikeblock", "z": 90},
        "active=false,facing=west": { "model": "talecraft:spikeblock", "z": 270 },
        
        "active=true,facing=up": { "model": "talecraft:spikeblock", "x": 180  },
        "active=true,facing=down": { "model": "talecraft:spikeblock"},
        "active=true,facing=south": { "model": "talecraft:spikeblock", "x": 90 },
        "active=true,facing=north": { "model": "talecraft:spikeblock", "x": 270 },
        "active=true,facing=east": { "model": "talecraft:spikeblock", "z": 90},
        "active=true,facing=west": { "model": "talecraft:spikeblock", "z": 270 }
    }
}

The closest you can get is 3 consecutive rotations: "+x, +y, -x" (all rotations 90 degrees).  The problem is I don't think the json supports two rotations on the same axis.

 

This is, of course, assuming that all 6 sides are uniquely textured (e.g. a die) and that +z is uniquely different than all sequences of a single rotation on x, y, or both.

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.

The closest you can get is 3 consecutive rotations: "+x, +y, -x" (all rotations 90 degrees).  The problem is I don't think the json supports two rotations on the same axis.

 

This is, of course, assuming that all 6 sides are uniquely textured (e.g. a die) and that +z is uniquely different than all sequences of a single rotation on x, y, or both.

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.

  • Author

I was able to get it to work by rotating on the x and y axis. Thanks for the help!

 

 

{
    "variants": {
        "active=false,facing=up": { "model": "talecraft:spikeblock", "x": 180 },
        "active=false,facing=down": { "model": "talecraft:spikeblock"},
        "active=false,facing=south": { "model": "talecraft:spikeblock", "x": 90 },
        "active=false,facing=north": { "model": "talecraft:spikeblock", "x": 270 },
        "active=false,facing=east": { "model": "talecraft:spikeblock", "x": -90, "y": 90},
        "active=false,facing=west": { "model": "talecraft:spikeblock", "x": 90, "y": 90},
        
        "active=true,facing=up": { "model": "talecraft:spikeblock", "x": 180  },
        "active=true,facing=down": { "model": "talecraft:spikeblock"},
        "active=true,facing=south": { "model": "talecraft:spikeblock", "x": 90 },
        "active=true,facing=north": { "model": "talecraft:spikeblock", "x": 270 },
        "active=true,facing=east": { "model": "talecraft:spikeblock", "x": -90, "y": 90},
        "active=true,facing=west": { "model": "talecraft:spikeblock", "x": 90, "y": 90}
    }
}

 

  • Author

I was able to get it to work by rotating on the x and y axis. Thanks for the help!

 

 

{
    "variants": {
        "active=false,facing=up": { "model": "talecraft:spikeblock", "x": 180 },
        "active=false,facing=down": { "model": "talecraft:spikeblock"},
        "active=false,facing=south": { "model": "talecraft:spikeblock", "x": 90 },
        "active=false,facing=north": { "model": "talecraft:spikeblock", "x": 270 },
        "active=false,facing=east": { "model": "talecraft:spikeblock", "x": -90, "y": 90},
        "active=false,facing=west": { "model": "talecraft:spikeblock", "x": 90, "y": 90},
        
        "active=true,facing=up": { "model": "talecraft:spikeblock", "x": 180  },
        "active=true,facing=down": { "model": "talecraft:spikeblock"},
        "active=true,facing=south": { "model": "talecraft:spikeblock", "x": 90 },
        "active=true,facing=north": { "model": "talecraft:spikeblock", "x": 270 },
        "active=true,facing=east": { "model": "talecraft:spikeblock", "x": -90, "y": 90},
        "active=true,facing=west": { "model": "talecraft:spikeblock", "x": 90, "y": 90}
    }
}

 

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.