Jump to content

Recommended Posts

Posted

I've made a block that generates in the world. I want to hide it in the top layer of grass, so I textured the top with Blocks.grass.getBlockTextureFromSide(1). This works, but it's a gray texture. How could I fix this?

The proud(ish) developer of Ancients

Posted

You need to look at BlockGrass and see how it gets a color and then copy that function.  I think it's getColorMultiplier

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

It's amazing what Eclipse can do.  Have you tried hovering your mouse over a class name?  Do that and click the green dot.

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 did that and it said a ton of stuff that I couldn't read (I think it was obfuscated). I just googled BlockGrass and I found

"public int getRenderColor(int p_149741_1_)"

do you know what the argument is?

The proud(ish) developer of Ancients

Posted

It's amazing what Eclipse can do.  Have you tried hovering your mouse over a class name?  Do that and click the green dot.

 

Or you could hold down Ctrl on your keyboard and simply click on the class name. I use that a lot. :)

Posted

Or you could hold down Ctrl on your keyboard and simply click on the class name. I use that a lot. :)

 

That shortcut actually messes me up all the time :P

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

Yeah I  did, I spent some time trying to figure out what it meant, and I figured out the "getRenderColor()" function, although I have no idea what it does.

The proud(ish) developer of Ancients

Posted

All you have to do is return the decimal value that has the color hex you want the color to be.  You're trying to mimic grass, so look at what BlockGrass does.  Copy it, paste it.

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.