NostalgiaCore/src/material/block/solid/Stonecutter.php
Shoghi Cervantes 4b408675cf Minecraft: Pocket Edition 0.7.0 dev. release
* Crafting enabled, report bugs
* Chat handler
2013-06-06 17:14:09 +02:00

44 lines
No EOL
942 B
PHP

<?php
/*
-
/ \
/ \
/ PocketMine \
/ MP \
|\ @shoghicp /|
|. \ / .|
| .. \ / .. |
| .. | .. |
| .. | .. |
\ | /
\ | /
\ | /
\ | /
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
*/
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),
);
}
}