Jump to content

Recommended Posts

Posted

I have four varients of logs, planks, leaves, saplings, grass, and dirt.  The four variants are SA, PLASMA, SPIRE, and MERC.  However, for the SPIRE and MERC logs, leaves, and saplings, the seem to display other the wrong textures. The Planks, grass, and dirt are working fine though. The MERC Log, Leaves, and Saplings display the SA variant of textures textures. And the SPIRE Log, Leaves, and Saplings display the PLASMA variant of textures textures. I've tried to tinker with the meta data values in the block classes, but it seems to never display the right textures. I've tried setting the leaves from 

return apply.getMeta() < 2; and return this.getDefaultState().withProperty(VARIANT, EnumHandler.EnumType.byMetadata(meta % 2));

to 

return apply.getMeta() < 2-5;, and return this.getDefaultState().withProperty(VARIANT, EnumHandler.EnumType.byMetadata(meta % 2-5));

 

The most I've been able to do is get each texture working, but in reverse order. Does think they can help?

 

GitHub:

https://github.com/Viking2481/ProjectMod

 

(Yes I know, its not very organized because I didn't make the repository until recently were I had way to many files to upload at once)

 

 

Posted

EnumType is a terrible name for your variants.

This method is broken. You use the same bits for axis and variant.

This is also broken. You have 4 variants and you're trying to read them from a single bit.

Not sure what this is, but it's probably broken, you have 4 variants. Ditto for your leaves.

Again with the &1.

Again with using the same bits.

Your fromMeta is broken, it doesn't read the DECAYABLE value.

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.

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.