Jump to content

Recommended Posts

Posted

The meta data of ladders is stored, as far as I know, solely to determine which adjacent block the ladder has been placed on. However, it uses the meta data values of 2, 3, 4, and 5. Does anyone know why this is/why the meta data isn't stored as 0-3?

 

I want to give my custom ladders a directional meta value that would need all 16 meta values. I could just make more custom ladders as alternate blocks but I'd rather handle it with meta.

Read my thoughts on my summer mod work and tell me what you think!

http://www.minecraftforge.net/forum/index.php/topic,8396.0.html

 

I absolutely love her when she smiles

Posted

That's what I thought, but it seems like when I try that, my ladder is invisible. Maybe I should try again now that I'm a little farther along with my project but it looks like if the meta values aren't within 2-5 it renders wrong. And I'm pretty sure I changed all the proper methods in my custom ladder class. I'm not sure. I'll try changing things again and post again later if it doesn't work.  :)

Read my thoughts on my summer mod work and tell me what you think!

http://www.minecraftforge.net/forum/index.php/topic,8396.0.html

 

I absolutely love her when she smiles

Posted

They use 2-5 because that's the face they're attached to.

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

So yeah, when I change the meta values to 0-3, all of my hit boxes are in the right place, but 2 of the ladders have no texture and the other 2 ladders (presumably the ones that overlap with 2-5) show the texture but the texture is floating on nothing on the wrong side of the ladder block. I'll do some research on how to fix this unless someone gets to it first and lets me know.

Read my thoughts on my summer mod work and tell me what you think!

http://www.minecraftforge.net/forum/index.php/topic,8396.0.html

 

I absolutely love her when she smiles

Posted

The method I need to change is getRenderType(). Currently the ladders are set to render as ladders, and wherever the rendering is happening, the meta data of the block is being pulled and used. Then the image is being rendered separately from the hit-box so the image and hit-box are displayed in 2 different places.

 

I just changed my rendering type to 1, or flowers. It makes a really cool looking X pattern with my texture.

 

So I need to find the ladder renderer and make my own, possibly involving making a new model depending on if I need to make a new model. The inner workings of a game are fascinating.  :)

Read my thoughts on my summer mod work and tell me what you think!

http://www.minecraftforge.net/forum/index.php/topic,8396.0.html

 

I absolutely love her when she smiles

Posted

@Draco: thats only true for North and East(which are 2 and 3). But South and West are 0 and 1 not 4 and 5

 

0 is bottom

 

1 is top

 

(check any block that has a different face for the top, side == 0 -> bottom, side == 1 -> top)

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

@Draco: Ok, we are talkign about different things then.

and block faces (up, down and all directions).

They use 2-5 because that's the face they're attached to.

 

I'm sorry for your lack of reading comprehension.

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'm sorry for your lack of reading comprehension.

Thanks, same to you:

I was looking at the directions which is wrong in this case.

In other words: I was wrong, you were right. Satisfied?

 

I saw that part, I was pointing out where I had been unambiguous about what I was talking about.

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.

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.