Ok I Am Trying To Make A Plugin That Gives The Item To The Player On Break To Cause Less Bugs But How Do I Get The Current Item They Are Breaking?
The Block You Break: $event->getBlock(); The Item You use to Break: $event->getItem(); The Stuff it Drop: $event->getDrops(); To set the Drops: $event->setDrops(); http://jenkins.pocketmine.net/job/P..._1_1event_1_1block_1_1_block_break_event.html
Please don't capitalize every word. Our eyes hurt. Offtopic: is there an origin for the behavior? I simply don't understand Why People Are All Doing This.
Actually, PlayerInteractEvent is about starting to break the block, and BlockBreakEvent is about the block being completely broken.
That's what I meant, InteractEvent is called when a player taps or holds on a block long enough for it to register as interacting but BreakEvent happens after the player breaks a block.