Split Mushroom Stem away from other mushroom variants

mushroom stem (and all-sided stem) are unique blocks, which don't drop anything and which don't stack with other shroom variants when block-picked.
They also get mapped to the same block when placed, and there's no distinction between red mushroom stem and brown mushroom stem.
This commit is contained in:
Dylan K. Taylor
2021-02-07 22:02:50 +00:00
parent edfe9ae745
commit e80c1a0ce9
5 changed files with 88 additions and 7 deletions

View File

@ -37,10 +37,6 @@ class RedMushroomBlock extends Opaque{
*/
protected $rotationData = 0;
public function __construct(BlockIdentifier $idInfo, string $name, ?BlockBreakInfo $breakInfo = null){
parent::__construct($idInfo, $name, $breakInfo ?? new BlockBreakInfo(0.2, BlockToolType::AXE));
}
protected function writeStateToMeta() : int{
return $this->rotationData;
}