Posted September 9, 20169 yr I did some searching and all I found was this thread which is 3 years old. I want to edit the set of blocks which can be harvested without holding a tool. For example, I want the player to be unable to harvest dirt blocks without a shovel. Is this possible to do? If so, does the method in the thread I linked to still work or is there a different way to do it? Is it possible to make a block breakable but not harvestable (like breaking stone with bare hands in vanilla) - or is it only possible to make a block unbreakable by hand? Edit: Solved by using PlayerEvent.BreakSpeed to change how long it takes to break the block and HarvestDropsEvent to remove the drops for blocks which I want to be un-harvestable.
September 9, 20169 yr PlayerEvent.HarvestCheck 1.7.10 is no longer supported by forge, you are on your own.
September 9, 20169 yr Author PlayerEvent.HarvestCheck I tried this but it doesn't work. When I searched for it, I found this old thread which points out that HarvestCheck is not fired when trying to harvest something that can normally be harvested with bare hands.
September 9, 20169 yr You'll probably want to subscribe to PlayerEvent.BreakSpeed to slow down the breaking and BlockEvent.HarvestDropsEvent to remove the drops. I do something similar here, but this prevents the block from being broken at all unless the player has the correct tool. Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.
September 9, 20169 yr Author Thanks, yeah that's what I went with in the end and I've got it working successfully now.
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.