better break time checks, added block materials

This commit is contained in:
GameHerobrine 2025-06-14 07:56:10 +03:00
parent 71da620aa3
commit 625e9ca71f
143 changed files with 496 additions and 54 deletions

View file

@ -23,9 +23,11 @@ class CarpetBlock extends FlowableBlock{
15 => "Black Carpet",
);
$this->name = $names[$this->meta];
$this->hardness = 0;
$this->hardness = 0.5;
$this->breakTime = 0.1;
$this->isFullBlock = false;
$this->isSolid = true;
$this->material = Material::$cloth;
}
public static function getCollisionBoundingBoxes(Level $level, $x, $y, $z, Entity $entity){
return [static::getAABB($level, $x, $y, $z)];