Hello! So I'm working on a plugin which allows shearing sheep, and as I was making it I wondered what happens if you tap the button that shows up when getting near the sheep. Does it fire the playerInteractEvent when tapping it? Or is this not implemented in PM yet? Thanks in advance
Most things entity-related aren't implemented, but if you use DataPacketReceiveEvent you can handle this action yourself. IIRC it's sent in InteractPacket as ACTION_RIGHT_CLICK. Currently PocketMine only handles the left-click event. Reference: https://github.com/pmmp/PocketMine-MP/blob/master/src/pocketmine/network/protocol/InteractPacket.php