Posted October 13, 20178 yr Hey, I was wondering if and how you change the harvest level of a block with multiple variants or metadata. For example I have made this block which in my initiation class is called "ORE_OVERWORLD" which is in the class BlockOres where it's currently split into two variants of ores and I want the first ore to be able to be minable by iron by setting its harvest level to 2 but I want the second ore to only be able to be minable by the first ore by setting its harvest level to 4 but I don't know how to go about doing this. I've seen people talking about overriding the setHarvestLevel but I don't know how to do that either so if someone could point me in a direction where I can read up on that more that'd be great.
October 13, 20178 yr override canHarvestBlock 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.
October 13, 20178 yr Author Isn't that for tools only though? What I wanted to change was the harvest levels required on the two different variants of the block.
October 13, 20178 yr Author It worked! This was far more easier than I anticipated, I have a tendancy to overcomplicate everything that has the easiest of solutions... Thank you so much for pointing out that I was missing the obvious
October 13, 20178 yr 1 hour ago, Phealin said: Isn't that for tools only though? What I wanted to change was the harvest levels required on the two different variants of the block. That's a method in the Block class. 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.