Jump to content

Recommended Posts

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

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

Posted

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.

Posted

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.

Posted

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

 

Posted

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

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