mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
19 lines
No EOL
395 B
PHP
19 lines
No EOL
395 B
PHP
<?php
|
|
|
|
class StonecutterBlock extends SolidBlock{
|
|
public function __construct($meta = 0){
|
|
parent::__construct(STONECUTTER, $meta, "Stonecutter");
|
|
$this->isActivable = true;
|
|
}
|
|
|
|
public function onActivate(Item $item, Player $player){
|
|
$player->toCraft[-1] = 2;
|
|
return true;
|
|
}
|
|
|
|
public function getDrops(Item $item, Player $player){
|
|
return array(
|
|
array($this->id, 0, 1),
|
|
);
|
|
}
|
|
} |