Posted August 1, 20196 yr So I have an idea for a mod, but I'm unsure of the best approach for it, and I would like some guidance. I want to make a mod that allows you to collect netherrack with your fist, like punching trees to get wood.The way I would do it is make an event handler that checks for blocks being beroken, and if the block is netherrack, add drops. however, it seems wasteful to create a whole event handler for this one thing. Is there an easier way to do this? EDIT: Block.setHarvestLevel is unfortunately no longer an option in modern forge Edited August 1, 20196 yr by theishiopian Update status
August 1, 20196 yr Block.setHarvestLevel Nvm i thought this would work but it can only remove the need of a high level pickaxe but not of a pickaxe at all. Edited August 1, 20196 yr by Meldexun
August 1, 20196 yr Author It turns out that this method was removed recently, if anyone else knows a solution, let me know.
August 1, 20196 yr Since my first attempt isn't working i would use the HarvestCheck event. You only need to check if the block is netherrack and set the success to true.
August 1, 20196 yr Author 1 hour ago, Meldexun said: Since my first attempt isn't working i would use the HarvestCheck event. You only need to check if the block is netherrack and set the success to true. Given the lack of an alternative, I think that's what I'll go with. Thanks anyways for your help. If anyone chances upon this thread with a better solution, I'm all ears. Edited August 1, 20196 yr by DaemonUmbra Cleaned up reference to thread hijack that was hidden
August 1, 20196 yr Okay sorry, ill follow the rules next time thank you for helping but yes i wont break them again ive only been on this like once without a account but thank you so much im sorry!
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.