Posted January 30, 20232 yr Hi! I have a custom block. Now I wanted it to have rotations like standing sign block has. Added IntegerProperty for rotations and all rotations work perfectly fine except the block model. The rotation changes according to the placement (as it should be), but instead of the correct block model I see purple and black squared block. Created the block model with Blockbench, and I think my blockstate.json is also correct: { "variants": { "rotation=0": { "model": "mymodid:block/my_block", "y": 0 }, "rotation=1": { "model": "mymodid:block/my_block", "y": 22.5 }, "rotation=2": { "model": "mymodid:block/my_block", "y": 45 }, "rotation=3": { "model": "mymodid:block/my_block", "y": 67.5 }, "rotation=4": { "model": "mymodid:block/my_block", "y": 90 }, "rotation=5": { "model": "mymodid:block/my_block", "y": 112.5 }, "rotation=6": { "model": "mymodid:block/my_block", "y": 135 }, "rotation=7": { "model": "mymodid:block/my_block", "y": 157.5 }, "rotation=8": { "model": "mymodid:block/my_block", "y": 180 }, "rotation=9": { "model": "mymodid:block/my_block", "y": 202.5 }, "rotation=10": { "model": "mymodid:block/my_block", "y": 225 }, "rotation=11": { "model": "mymodid:block/my_block", "y": 247.5 }, "rotation=12": { "model": "mymodid:block/my_block", "y": 270 }, "rotation=13": { "model": "mymodid:block/my_block", "y": 292.5 }, "rotation=14": { "model": "mymodid:block/my_block", "y": 315 }, "rotation=15": { "model": "mymodid:block/my_block", "y": 337.5 } } } Why is it not working? What am I doing wrong this time? Thanks. Edited January 30, 20232 yr by RInventor7 Solved
January 30, 20232 yr Author The blockstate.json doesn’t accept values such as 22.5 and 45. After searching around for few hours and trying to understand how Minecraft sign block works, I came to conclusion that in order to rotate the block by 22.5 increments you would have to create a custom renderer.
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.