applyDamage(1); if($this->variant === self::COARSE){ $this->getLevel()->setBlock($this, BlockFactory::get(Block::DIRT)); }else{ $this->getLevel()->setBlock($this, BlockFactory::get(Block::FARMLAND)); } return true; } return false; } }