Jump to content

Recommended Posts

Posted

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!

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.

width=700 height=200http://i.imgur.com/J4rrGt6.png[/img]

Posted

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?

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.

width=700 height=200http://i.imgur.com/J4rrGt6.png[/img]

Posted

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.

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.

width=700 height=200http://i.imgur.com/J4rrGt6.png[/img]

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.