Posted December 3, 201410 yr 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
December 3, 201410 yr 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.
December 3, 201410 yr Author I have no idea how to view those classes.... The proud(ish) developer of Ancients
December 3, 201410 yr 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.
December 3, 201410 yr Author 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
December 4, 201410 yr 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.
December 4, 201410 yr 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 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.
December 4, 201410 yr Author 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
December 4, 201410 yr Author bump, I've made no progress so far... :'( The proud(ish) developer of Ancients
December 4, 201410 yr 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.
December 4, 201410 yr Author It's in hex? That makes more sense. Thanks The proud(ish) developer of Ancients
December 4, 201410 yr Hi YOu might find this useful http://www.rapidtables.com/web/color/RGB_Color.htm or http://www.yellowpipe.com/yis/tools/hex-to-rgb/color-converter.php -TGG
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.