LordMastodon Posted September 1, 2015 Posted September 1, 2015 Is there a way to have a Block with multiple IBlockStates? I kind of get hung up on getMetaFromState and getStateFromMeta. On everything else, I just pass the blockstate with multiple withProperty functions, but as for those methods I'm not quite sure. Thanks in advance! Quote Who are you? Why have you brought me here? And why are there so many PewDiePie fanboys surrounding meeeeeeeee....... *falls into pit and dies*. Also this. Check it out. http://i.imgur.com/J4rrGt6.png[/img]
LordMastodon Posted September 1, 2015 Author Posted September 1, 2015 I know I have to implement those, I got an error when I didn't. I'm just wondering how I use to metadata to switch through two different properties, a boolean and an integer. I've gotten the boolean to work fine, but how do I use one number to determine the meta and state of 2 different properties? Quote Who are you? Why have you brought me here? And why are there so many PewDiePie fanboys surrounding meeeeeeeee....... *falls into pit and dies*. Also this. Check it out. http://i.imgur.com/J4rrGt6.png[/img]
LordMastodon Posted September 1, 2015 Author Posted September 1, 2015 Well, here's how it works. I've got a block that when right clicked switches between a model, a texture and a light value. The second model is smaller than a block and I want it to get hooked up to a wall kind of like a torch does, but it can hook up to the ceiling as well. That means I need a boolean checking whether or not it's lit up (which is 2 numbers), and an integer telling me what side it's on (0 = North, 1 = East, 2 = South, 3 = West, 4 = Up, 5 = Down) which is 6 numbers. That means that I'd need 8 numbers instead of the 4 you've said is the max. That seems like a really stupid limit. It means you can have at max 2 blockstates if they were both booleans, which for many mods is impossible considering things such as pipes. Quote Who are you? Why have you brought me here? And why are there so many PewDiePie fanboys surrounding meeeeeeeee....... *falls into pit and dies*. Also this. Check it out. http://i.imgur.com/J4rrGt6.png[/img]
LordMastodon Posted September 1, 2015 Author Posted September 1, 2015 OK, thanks for clarifying. Quote Who are you? Why have you brought me here? And why are there so many PewDiePie fanboys surrounding meeeeeeeee....... *falls into pit and dies*. Also this. Check it out. http://i.imgur.com/J4rrGt6.png[/img]
Recommended Posts
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.