mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-18 03:35:33 +00:00
Added more Wood stairs, and planks
This commit is contained in:
parent
de98dd920b
commit
5fa6c5962e
@ -150,6 +150,13 @@ define("NETHER_BRICKS_STAIRS", 114);
|
|||||||
|
|
||||||
define("SANDSTONE_STAIRS", 128);
|
define("SANDSTONE_STAIRS", 128);
|
||||||
|
|
||||||
|
define("SPRUCE_WOOD_STAIRS", 134);
|
||||||
|
define("SPRUCE_WOODEN_STAIRS", 134);
|
||||||
|
define("BIRCH_WOOD_STAIRS", 135);
|
||||||
|
define("BIRCH_WOODEN_STAIRS", 135);
|
||||||
|
define("JUNGLE_WOOD_STAIRS", 136);
|
||||||
|
define("JUNGLE_WOODEN_STAIRS", 136);
|
||||||
|
|
||||||
define("QUARTZ_BLOCK", 155);
|
define("QUARTZ_BLOCK", 155);
|
||||||
define("QUARTZ_STAIRS", 156);
|
define("QUARTZ_STAIRS", 156);
|
||||||
|
|
||||||
|
@ -120,6 +120,10 @@ abstract class Block extends Position{
|
|||||||
NETHER_BRICKS_STAIRS => "NetherBricksStairsBlock",
|
NETHER_BRICKS_STAIRS => "NetherBricksStairsBlock",
|
||||||
|
|
||||||
SANDSTONE_STAIRS => "SandstoneStairsBlock",
|
SANDSTONE_STAIRS => "SandstoneStairsBlock",
|
||||||
|
|
||||||
|
SPRUCE_WOOD_STAIRS => "SpruceWoodStairsBlock",
|
||||||
|
BIRCH_WOOD_STAIRS => "BirchWoodStairsBlock",
|
||||||
|
JUNGLE_WOOD_STAIRS => "JungleWoodStairsBlock",
|
||||||
|
|
||||||
QUARTZ_BLOCK => "QuartzBlock",
|
QUARTZ_BLOCK => "QuartzBlock",
|
||||||
QUARTZ_STAIRS => "QuartzStairsBlock",
|
QUARTZ_STAIRS => "QuartzStairsBlock",
|
||||||
|
32
src/material/block/nonfull/stairs/BirchWoodStairs.php
Normal file
32
src/material/block/nonfull/stairs/BirchWoodStairs.php
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
<?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/
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
class BirchWoodStairsBlock extends StairBlock{
|
||||||
|
public function __construct($meta = 0){
|
||||||
|
parent::__construct(BIRCH_WOOD_STAIRS, $meta, "Birch Wood Stairs");
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getDrops(Item $item, Player $player){
|
||||||
|
return array(
|
||||||
|
array($this->id, 0, 1),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
32
src/material/block/nonfull/stairs/JungleWoodStairs.php
Normal file
32
src/material/block/nonfull/stairs/JungleWoodStairs.php
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
<?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/
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
class JungleWoodStairsBlock extends StairBlock{
|
||||||
|
public function __construct($meta = 0){
|
||||||
|
parent::__construct(JUNGLE_WOOD_STAIRS, $meta, "Jungle Wood Stairs");
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getDrops(Item $item, Player $player){
|
||||||
|
return array(
|
||||||
|
array($this->id, 0, 1),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
32
src/material/block/nonfull/stairs/SpruceWoodStairs.php
Normal file
32
src/material/block/nonfull/stairs/SpruceWoodStairs.php
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
<?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/
|
||||||
|
*
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
class SpruceWoodStairsBlock extends StairBlock{
|
||||||
|
public function __construct($meta = 0){
|
||||||
|
parent::__construct(SPRUCE_WOOD_STAIRS, $meta, "Spruce Wood Stairs");
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getDrops(Item $item, Player $player){
|
||||||
|
return array(
|
||||||
|
array($this->id, 0, 1),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
@ -22,6 +22,13 @@
|
|||||||
class PlanksBlock extends SolidBlock{
|
class PlanksBlock extends SolidBlock{
|
||||||
public function __construct($meta = 0){
|
public function __construct($meta = 0){
|
||||||
parent::__construct(PLANKS, $meta, "Wooden Planks");
|
parent::__construct(PLANKS, $meta, "Wooden Planks");
|
||||||
|
$names = array(
|
||||||
|
WoodBlock::OAK => "Oak Wooden Planks",
|
||||||
|
WoodBlock::SPRUCE => "Spruce Wooden Planks",
|
||||||
|
WoodBlock::BIRCH => "Birch Wooden Planks",
|
||||||
|
WoodBlock::JUNGLE => "Jungle Wooden Planks",
|
||||||
|
);
|
||||||
|
$this->name = $names[$this->meta & 0x03];
|
||||||
$this->hardness = 15;
|
$this->hardness = 15;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -23,13 +23,15 @@ class WoodBlock extends SolidBlock{
|
|||||||
const OAK = 0;
|
const OAK = 0;
|
||||||
const SPRUCE = 1;
|
const SPRUCE = 1;
|
||||||
const BIRCH = 2;
|
const BIRCH = 2;
|
||||||
|
const JUNGLE = 3;
|
||||||
|
|
||||||
public function __construct($meta = 0){
|
public function __construct($meta = 0){
|
||||||
parent::__construct(WOOD, $meta, "Wood");
|
parent::__construct(WOOD, $meta, "Wood");
|
||||||
$names = array(
|
$names = array(
|
||||||
WoodBlock::OAK => "Oak Wood",
|
WoodBlock::OAK => "Oak Wood",
|
||||||
WoodBlock::SPRUCE => "Spruce Wood",
|
WoodBlock::SPRUCE => "Spruce Wood",
|
||||||
WoodBlock::BIRCH => "Birch Wood",
|
WoodBlock::BIRCH => "Birch Wood",
|
||||||
3 => "Jungle Wood",
|
WoodBlock::JUNGLE => "Jungle Wood",
|
||||||
);
|
);
|
||||||
$this->name = $names[$this->meta & 0x03];
|
$this->name = $names[$this->meta & 0x03];
|
||||||
$this->hardness = 10;
|
$this->hardness = 10;
|
||||||
|
@ -28,7 +28,10 @@ class CraftingRecipes{
|
|||||||
"SNOWBALL:?x4=>SNOW_BLOCK:0x1",
|
"SNOWBALL:?x4=>SNOW_BLOCK:0x1",
|
||||||
"WOODEN_PLANKS:?x2=>STICK:0x4",
|
"WOODEN_PLANKS:?x2=>STICK:0x4",
|
||||||
"COBBLESTONE:?x4=>STONECUTTER:0x1",
|
"COBBLESTONE:?x4=>STONECUTTER:0x1",
|
||||||
"WOOD:?x1=>WOODEN_PLANKS:0x4",
|
"WOOD:0x1=>WOODEN_PLANKS:0x4",
|
||||||
|
"WOOD:1x1=>WOODEN_PLANKS:1x4",
|
||||||
|
"WOOD:2x1=>WOODEN_PLANKS:2x4",
|
||||||
|
"WOOD:3x1=>WOODEN_PLANKS:3x4",
|
||||||
"WOOL:0x1,DYE:0x1=>WOOL:15x1",
|
"WOOL:0x1,DYE:0x1=>WOOL:15x1",
|
||||||
"WOOL:0x1,DYE:1x1=>WOOL:14x1",
|
"WOOL:0x1,DYE:1x1=>WOOL:14x1",
|
||||||
"WOOL:0x1,DYE:2x1=>WOOL:13x1",
|
"WOOL:0x1,DYE:2x1=>WOOL:13x1",
|
||||||
@ -90,8 +93,14 @@ class CraftingRecipes{
|
|||||||
"DIAMOND:?x3,IRON_INGOT:?x6=>NETHER_REACTOR:0x1",
|
"DIAMOND:?x3,IRON_INGOT:?x6=>NETHER_REACTOR:0x1",
|
||||||
"WOODEN_PLANKS:?x6=>TRAPDOOR:0x2",
|
"WOODEN_PLANKS:?x6=>TRAPDOOR:0x2",
|
||||||
"WOODEN_PLANKS:?x6=>WOODEN_DOOR:0x1",
|
"WOODEN_PLANKS:?x6=>WOODEN_DOOR:0x1",
|
||||||
"WOODEN_PLANKS:?x6=>WOODEN_STAIRS:0x4",
|
"WOODEN_PLANKS:0x6=>WOODEN_STAIRS:0x4",
|
||||||
"WOODEN_PLANKS:?x3=>SLAB:2x6",
|
"WOODEN_PLANKS:0x3=>SLAB:2x6",
|
||||||
|
"WOODEN_PLANKS:1x6=>SPRUCE_WOOD_STAIRS:0x4",
|
||||||
|
//"WOODEN_PLANKS:1x3=>SPRUCE_WOOD_SLAB:2x6",
|
||||||
|
"WOODEN_PLANKS:2x6=>BIRCH_WOOD_STAIRS:0x4",
|
||||||
|
//"WOODEN_PLANKS:2x3=>BIRCH_WOOD_SLAB:2x6",
|
||||||
|
"WOODEN_PLANKS:3x6=>JUNGLE_WOOD_STAIRS:0x4",
|
||||||
|
//"WOODEN_PLANKS:3x3=>JUNGLE_WOOD_SLAB:2x6",
|
||||||
|
|
||||||
//Tools
|
//Tools
|
||||||
"STICK:?x1,FEATHER:?x1,FLINT:?x1=>ARROW:0x4",
|
"STICK:?x1,FEATHER:?x1,FLINT:?x1=>ARROW:0x4",
|
||||||
|
@ -35,6 +35,9 @@ class FuelData{
|
|||||||
FENCE => 15,
|
FENCE => 15,
|
||||||
FENCE_GATE => 15,
|
FENCE_GATE => 15,
|
||||||
WOODEN_STAIRS => 15,
|
WOODEN_STAIRS => 15,
|
||||||
|
SPRUCE_WOOD_STAIRS => 15,
|
||||||
|
BIRCH_WOOD_STAIRS => 15,
|
||||||
|
JUNGLE_WOOD_STAIRS => 15,
|
||||||
TRAPDOOR => 15,
|
TRAPDOOR => 15,
|
||||||
WORKBENCH => 15,
|
WORKBENCH => 15,
|
||||||
BOOKSHELF => 15,
|
BOOKSHELF => 15,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user