mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
22 lines
No EOL
420 B
PHP
22 lines
No EOL
420 B
PHP
<?php
|
|
|
|
class CobwebBlock extends FlowableBlock{
|
|
public function __construct(){
|
|
parent::__construct(COBWEB, 0, "Cobweb");
|
|
$this->isSolid = true;
|
|
$this->isFullBlock = false;
|
|
$this->hardness = 25;
|
|
}
|
|
public function getDrops(Item $item, Player $player){
|
|
if ($item->isSword()){
|
|
return array(
|
|
array(287, 0, 1),
|
|
);
|
|
}
|
|
elseif ($item->isShears()){
|
|
return array(
|
|
array(COBWEB, 0, 1),
|
|
);
|
|
}
|
|
}
|
|
} |