Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[Solved] Get When Player Harvests Beehive/Bee Nest


Recommended Posts

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 by CommandCore
Link to post
Share on other sites
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.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.