some new blocks

This commit is contained in:
FreeHij 2023-02-21 21:08:26 +03:00
parent 9b5a3959c4
commit 1a01483453
18 changed files with 395 additions and 9 deletions

View file

@ -5,6 +5,8 @@ class SaplingBlock extends FlowableBlock{
const SPRUCE = 1;
const BIRCH = 2;
const JUNGLE = 3;
const ACACIA = 4;
const DARK_OAK = 5;
const BURN_TIME = 5;
public function __construct($meta = SaplingBlock::OAK){
@ -15,6 +17,8 @@ class SaplingBlock extends FlowableBlock{
1 => "Spruce Sapling",
2 => "Birch Sapling",
3 => "Jungle Sapling",
4 => "Acacia Sapling",
5 => "Dark Oak Sapling",
);
$this->name = $names[$this->meta & 0x03];
$this->hardness = 0;