diff --git a/src/pocketmine/block/BlockFactory.php b/src/pocketmine/block/BlockFactory.php index 3e5a43e30..3144e2732 100644 --- a/src/pocketmine/block/BlockFactory.php +++ b/src/pocketmine/block/BlockFactory.php @@ -248,8 +248,8 @@ class BlockFactory{ //TODO: STANDING_BANNER //TODO: WALL_BANNER //TODO: DAYLIGHT_DETECTOR_INVERTED - //TODO: RED_SANDSTONE - //TODO: RED_SANDSTONE_STAIRS + self::registerBlock(new RedSandstone()); + self::registerBlock(new RedSandstoneStairs()); self::registerBlock(new DoubleStoneSlab2()); self::registerBlock(new StoneSlab2()); self::registerBlock(new FenceGate(Block::SPRUCE_FENCE_GATE, 0, "Spruce Fence Gate")); diff --git a/src/pocketmine/block/RedSandstone.php b/src/pocketmine/block/RedSandstone.php new file mode 100644 index 000000000..906ec9753 --- /dev/null +++ b/src/pocketmine/block/RedSandstone.php @@ -0,0 +1,37 @@ + "Red Sandstone", + self::CHISELED => "Chiseled Red Sandstone", + self::SMOOTH => "Smooth Red Sandstone" + ]; + return $names[$this->getVariant()] ?? "Unknown"; + } +} \ No newline at end of file diff --git a/src/pocketmine/block/RedSandstoneStairs.php b/src/pocketmine/block/RedSandstoneStairs.php new file mode 100644 index 000000000..6fd572831 --- /dev/null +++ b/src/pocketmine/block/RedSandstoneStairs.php @@ -0,0 +1,34 @@ +