mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 20:19:44 +00:00
Some blocks and entity fixes
This commit is contained in:
parent
3ad75fc9b6
commit
406ab32504
5 changed files with 33 additions and 5 deletions
|
|
@ -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),
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue