Posted November 10, 20204 yr Hello, I just wanted to ask how I can rotate any kind of block (in my case it would be a self created presentblock) in more tiny steps like for example rotate it by +45 degrees. Thanks to everyone helping me!
November 10, 20204 yr The simplest way to have a block rotate if there is no extra data is to store a blockstate on it. You can have 8 facing values where the model rotates depending on the way it's facing. The mathematics would be handled similar to that of a sign or banner if you need examples in the source.
November 10, 20204 yr Author Thanks for the answer. I guess I understood what you mean in theory. Could you post an example source in here for better understanding in praxis?
November 10, 20204 yr Within the source provided when you set up the workspace? You can also find the block registry references and grab the class from there.
November 10, 20204 yr Author Alright so I got it to read now with Rotations. But how can I make the block rotate in the "blockstates.json" ?
November 10, 20204 yr 2 hours ago, ChampionAsh5357 said: Just look at the sign or banner block and mimic. You can also have a look at their blockstate jsons
November 10, 20204 yr Author 2 minutes ago, poopoodice said: You can also have a look at their blockstate jsons How? I can only find their texture path in there
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.