swimming tweaks, fall damage tweaks

This commit is contained in:
GameHerobrine 2023-02-23 20:07:02 +03:00
parent 6b68b88572
commit db8b221c02
5 changed files with 34 additions and 4 deletions

View file

@ -16,10 +16,12 @@ class TaskSwimming extends TaskBase
{
if(!$ai->entity->inWater){
$this->reset();
$ai->mobController->setJumping(false);
return;
}
if(Utils::randomFloat() < 0.8){ #1.5.2 method
$ai->entity->speedY = 0.42;
$ai->mobController->setJumping(true);
}