mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +00:00
Added CraftItemEvent, Crafting system now uses Transactions
This commit is contained in:
@ -23,15 +23,24 @@ namespace pocketmine\block;
|
||||
|
||||
|
||||
class Planks extends Solid{
|
||||
const OAK = 0;
|
||||
const SPRUCE = 1;
|
||||
const BIRCH = 2;
|
||||
const JUNGLE = 3;
|
||||
const ACACIA = 4;
|
||||
const DARK_OAK = 5;
|
||||
|
||||
public function __construct($meta = 0){
|
||||
parent::__construct(self::PLANKS, $meta, "Wooden Planks");
|
||||
parent::__construct(self::PLANKS, $meta, "Wood Planks");
|
||||
$names = array(
|
||||
Wood::OAK => "Oak Wooden Planks",
|
||||
Wood::SPRUCE => "Spruce Wooden Planks",
|
||||
Wood::BIRCH => "Birch Wooden Planks",
|
||||
Wood::JUNGLE => "Jungle Wooden Planks",
|
||||
self::OAK => "Oak Wood Planks",
|
||||
self::SPRUCE => "Spruce Wood Planks",
|
||||
self::BIRCH => "Birch Wood Planks",
|
||||
self::JUNGLE => "Jungle Wood Planks",
|
||||
self::ACACIA => "Acacia Wood Planks",
|
||||
self::DARK_OAK => "Jungle Wood Planks",
|
||||
);
|
||||
$this->name = $names[$this->meta & 0x03];
|
||||
$this->name = $names[$this->meta & 0x07];
|
||||
$this->hardness = 15;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user