Added Normal and Big crafting recipes, fixed CraftingTransactionGroup count

This commit is contained in:
Shoghi Cervantes
2014-05-27 23:26:07 +02:00
parent 6746987ce5
commit 3ac60f9860
9 changed files with 333 additions and 51 deletions

View File

@ -24,6 +24,7 @@ namespace pocketmine\block;
use pocketmine\item\Item;
use pocketmine\Player;
//TODO: check orientation
class Stonecutter extends Solid{
public function __construct($meta = 0){
parent::__construct(self::STONECUTTER, $meta, "Stonecutter");
@ -31,7 +32,9 @@ class Stonecutter extends Solid{
}
public function onActivate(Item $item, Player $player = null){
$player->toCraft[-1] = 2;
if($player instanceof Player){
$player->craftingType = 2;
}
return true;
}