Some blocks and entity fixes

This commit is contained in:
ArkQuark 2021-12-24 19:32:52 +03:00
parent 3ad75fc9b6
commit 406ab32504
5 changed files with 33 additions and 5 deletions

View file

@ -27,6 +27,15 @@ class CobwebBlock extends FlowableBlock{
$this->hardness = 25;
}
public function getDrops(Item $item, Player $player){
return array();
if ($item->isSword()){
return array(
array(287, 0, 1),
);
}
elseif ($item->isShears()){
return array(
array(COBWEB, 0, 1),
);
}
}
}

View file

@ -45,4 +45,11 @@ class DeadBushBlock extends FlowableBlock{
return false;
}
public function getDrops(Item $item, Player $player){
if($item->isShears()){
return array(
array(DEAD_BUSH, 0, 1),
);
}
}
}