hey, question, how can i add knockback to an entity, i tried using $entity->setMotion(0.5, 0.5, 0.5); and parent::knockBack($attacker, $damage, 0.5, 0.5, 0.5); but there both wacky
PHP: $entity = ....;///ENTITY$damager = .....;///DAMAGER $entity->setMotion($entity->subtract($damage));
Can't you just do PHP: $entity->knockBack(Entity $attacker, float $damage, float $x, float $z, float $base);
if you're overriding the motion every tick to make the entity walk in a certain direction, it's never going to take knockback because it's just going to use the walking motion