mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-03 00:29:54 +00:00
Sponges added
This commit is contained in:
parent
1a0bccf288
commit
de98dd920b
@ -45,7 +45,7 @@ define("WOOD", 17);
|
|||||||
define("TRUNK", 17);
|
define("TRUNK", 17);
|
||||||
define("LEAVES", 18);
|
define("LEAVES", 18);
|
||||||
define("LEAVE", 18);
|
define("LEAVE", 18);
|
||||||
|
define("SPONGE", 19);
|
||||||
define("GLASS", 20);
|
define("GLASS", 20);
|
||||||
define("LAPIS_ORE", 21);
|
define("LAPIS_ORE", 21);
|
||||||
define("LAPIS_BLOCK", 22);
|
define("LAPIS_BLOCK", 22);
|
||||||
|
@ -40,6 +40,7 @@ abstract class Block extends Position{
|
|||||||
COAL_ORE => "CoalOreBlock",
|
COAL_ORE => "CoalOreBlock",
|
||||||
WOOD => "WoodBlock",
|
WOOD => "WoodBlock",
|
||||||
LEAVES => "LeavesBlock",
|
LEAVES => "LeavesBlock",
|
||||||
|
SPONGE => "SpongeBlock",
|
||||||
GLASS => "GlassBlock",
|
GLASS => "GlassBlock",
|
||||||
LAPIS_ORE => "LapisOreBlock",
|
LAPIS_ORE => "LapisOreBlock",
|
||||||
LAPIS_BLOCK => "LapisBlock",
|
LAPIS_BLOCK => "LapisBlock",
|
||||||
|
28
src/material/block/solid/Sponge.php
Normal file
28
src/material/block/solid/Sponge.php
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
<?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 SpongeBlock extends SolidBlock{
|
||||||
|
public function __construct(){
|
||||||
|
parent::__construct(SPONGE, $meta, "Sponge");
|
||||||
|
$this->hardness = 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user