"Oak", 1 => "Spruce", 2 => "Birch", 3 => "Jungle", 4 => "Acacia", 5 => "Dark Oak", ]; $this->name = "Double " . $names[$this->meta & 0x07] . " Wooden Slab"; $this->hardness = 15; } public function getBreakTime(Item $item){ switch($item->isAxe()){ case 5: return 0.4; case 4: return 0.5; case 3: return 0.75; case 2: return 0.25; case 1: return 1.5; default: return 3; } } public function getDrops(Item $item){ return [ [Item::WOOD_SLAB, $this->meta & 0x07, 2], ]; } }