From de98dd920bc9d2b71b6b089dfde59f887873e29c Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Sat, 23 Nov 2013 15:34:32 +0100 Subject: [PATCH] Sponges added --- src/constants/BlockIDs.php | 2 +- src/material/Block.php | 1 + src/material/block/solid/Sponge.php | 28 ++++++++++++++++++++++++++++ 3 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 src/material/block/solid/Sponge.php diff --git a/src/constants/BlockIDs.php b/src/constants/BlockIDs.php index 8246f4656..eab6e62e5 100644 --- a/src/constants/BlockIDs.php +++ b/src/constants/BlockIDs.php @@ -45,7 +45,7 @@ define("WOOD", 17); define("TRUNK", 17); define("LEAVES", 18); define("LEAVE", 18); - +define("SPONGE", 19); define("GLASS", 20); define("LAPIS_ORE", 21); define("LAPIS_BLOCK", 22); diff --git a/src/material/Block.php b/src/material/Block.php index 7bff673a1..2bd7b3f9b 100644 --- a/src/material/Block.php +++ b/src/material/Block.php @@ -40,6 +40,7 @@ abstract class Block extends Position{ COAL_ORE => "CoalOreBlock", WOOD => "WoodBlock", LEAVES => "LeavesBlock", + SPONGE => "SpongeBlock", GLASS => "GlassBlock", LAPIS_ORE => "LapisOreBlock", LAPIS_BLOCK => "LapisBlock", diff --git a/src/material/block/solid/Sponge.php b/src/material/block/solid/Sponge.php new file mode 100644 index 000000000..1a671d43f --- /dev/null +++ b/src/material/block/solid/Sponge.php @@ -0,0 +1,28 @@ +hardness = 3; + } + +} \ No newline at end of file