mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-13 01:09:44 +00:00
Added Acacia wood and Dark Oak wood
This commit is contained in:
parent
6722540bdc
commit
b3820bedbc
@ -199,6 +199,10 @@ abstract class Block extends Position implements Metadatable{
|
|||||||
const WOOD_SLABS = 158;
|
const WOOD_SLABS = 158;
|
||||||
const WOODEN_SLABS = 158;
|
const WOODEN_SLABS = 158;
|
||||||
|
|
||||||
|
const WOOD2 = 162;
|
||||||
|
const TRUNK2 = 162;
|
||||||
|
const LOG2 = 162;
|
||||||
|
|
||||||
const HAY_BALE = 170;
|
const HAY_BALE = 170;
|
||||||
const CARPET = 171;
|
const CARPET = 171;
|
||||||
|
|
||||||
@ -546,6 +550,8 @@ abstract class Block extends Position implements Metadatable{
|
|||||||
self::DOUBLE_WOOD_SLAB => new DoubleWoodSlab(),
|
self::DOUBLE_WOOD_SLAB => new DoubleWoodSlab(),
|
||||||
self::WOOD_SLAB => new WoodSlab(),
|
self::WOOD_SLAB => new WoodSlab(),
|
||||||
|
|
||||||
|
self::WOOD2 => new Wood2(),
|
||||||
|
|
||||||
self::HAY_BALE => new HayBale(),
|
self::HAY_BALE => new HayBale(),
|
||||||
self::CARPET => new Carpet(),
|
self::CARPET => new Carpet(),
|
||||||
|
|
||||||
|
38
src/pocketmine/block/Wood2.php
Normal file
38
src/pocketmine/block/Wood2.php
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
/*
|
||||||
|
*
|
||||||
|
* ____ _ _ __ __ _ __ __ ____
|
||||||
|
* | _ \ ___ ___| | _____| |_| \/ (_)_ __ ___ | \/ | _ \
|
||||||
|
* | |_) / _ \ / __| |/ / _ \ __| |\/| | | '_ \ / _ \_____| |\/| | |_) |
|
||||||
|
* | __/ (_) | (__| < __/ |_| | | | | | | | __/_____| | | | __/
|
||||||
|
* |_| \___/ \___|_|\_\___|\__|_| |_|_|_| |_|\___| |_| |_|_|
|
||||||
|
*
|
||||||
|
* 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.
|
||||||
|
*
|
||||||
|
* @author PocketMine Team
|
||||||
|
* @link http://www.pocketmine.net/
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace pocketmine\block;
|
||||||
|
|
||||||
|
use pocketmine\item\Item;
|
||||||
|
use pocketmine\Player;
|
||||||
|
|
||||||
|
class Wood2 extends Wood{
|
||||||
|
|
||||||
|
public function __construct($meta = 0){
|
||||||
|
Solid::__construct(self::WOOD2, $meta, "Wood");
|
||||||
|
$names = array(
|
||||||
|
0 => "Acacia Wood",
|
||||||
|
1 => "Dark Oak Wood"
|
||||||
|
);
|
||||||
|
$this->name = $names[$this->meta & 0x03];
|
||||||
|
$this->hardness = 10;
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user