entities will collide with blocks like door, glass pane, iron bars

This commit is contained in:
GameHerobrine 2023-10-27 16:28:32 +03:00
parent df54826e4c
commit f3d726cddf
10 changed files with 107 additions and 8 deletions

View file

@ -11,4 +11,8 @@ class SolidBlock extends GenericBlock{
$this->isSolid = true;
$this->isFullBlock = true;
}
public static function getCollisionBoundingBoxes(Level $level, $x, $y, $z, Entity $entity){
return [new AxisAlignedBB($x, $y, $z, $x + 1, $y + 1, $z + 1)];
}
}