PHP: use pocketmine\network\mcpe\protocol\InventoryTransactionPacket;public function DataPacketReceive(DataPacketReceiveEvent $event) { $pk = $event->getPacket(); if($pk instanceof InventoryTransactionPacket){ if($pk->transactionType === InventoryTransactionPacket::TYPE_USE_ITEM_ON_ENTITY){ if($pk->trData->actionType === InventoryTransactionPacket::USE_ITEM_ON_ENTITY_ACTION_INTERACT){ $data = $pk->trData; $itemUsedOnEntity = $data->itemInHand; $entityId = $data->entityRuntimeId; $vector1 = $data->vector1; // what are those?! $vector2 = $data->vector2; // what are those?! are these meant to be player and entity positions? //code } } }}