some new blocks

This commit is contained in:
FreeHij 2023-02-21 21:08:26 +03:00
parent 9b5a3959c4
commit 1a01483453
18 changed files with 395 additions and 9 deletions

View file

@ -5,6 +5,26 @@ class BirchWoodStairsBlock extends StairBlock{
parent::__construct(BIRCH_WOOD_STAIRS, $meta, "Birch Wood Stairs");
}
public function getBreakTime(Item $item, Player $player){
if(($player->gamemode & 0x01) === 0x01){
return 0.20;
}
switch($item->isAxe()){
case 5:
return 0.4;
case 4:
return 0.5;
case 3:
return 0.75;
case 2:
return 0.25;
case 1:
return 1.5;
default:
return 3;
}
}
public function getDrops(Item $item, Player $player){
return array(
array($this->id, 0, 1),