Use Living->knockback() the way pocketmine knocks back players during PvP. https://github.com/pmmp/PocketMine-...85/src/pocketmine/entity/Living.php#L591-L593