mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 04:29:43 +00:00
better break time checks, added block materials
This commit is contained in:
parent
71da620aa3
commit
625e9ca71f
143 changed files with 496 additions and 54 deletions
|
|
@ -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)];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue