public function onActivate(Item $item, Player $player = null) { $meta = $this->meta + 4; if ($meta > 15) { $this->meta = $this->meta % 4; } else { $this->meta = $meta; } $this->getLevel()->setBlock($this, $this, true, false); return true; }