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

@ -28,6 +28,8 @@ class LadderBlock extends TransparentBlock{
$this->isSolid = false;
$this->isFullBlock = false;
$this->hardness = 2;
$this->breakTime = 0.4;
$this->material = Material::$decoration;
}
public function place(Item $item, Player $player, Block $block, Block $target, $face, $fx, $fy, $fz){
if($face === 0 || $face === 1){