Posted July 10, 20205 yr Hey all, I'm trying to get something to happen when a beehive or bee nest is harvested (Getting honeycombs from it) but I've already tried overriding shears (it's called on the block before the onUtemUse of the shears, so that's never called when the honey level is 5 on a bee nest or beehive) I also tried overriding the vanilla block, but bee's seem to be able to go into the hive, just not make honey It would be nice if there was some sort of PlayerEvent.HarvestBeehive event or something, but I can't seem to find one that can match that. Any other ideas, or maybe I'm missing something? Thanks for the help guys. Edited July 10, 20205 yr by CommandCore
July 10, 20205 yr Author 1 hour ago, diesieben07 said: You can use PlayerInteractEvent.RightClickBlock for this purpose. Got it. I wasn't eager to do it at first because I thought you weren't able to specify the item used, but I found out that you can through event.getItemStack().getItem() Thanks man.
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.