22declare(strict_types=1);
39 if($this->getSide(
Facing::DOWN)->isTransparent()){
40 $this->position->getWorld()->useBreakOn($this->position);
45 $down = $this->getSide(
Facing::DOWN);
46 $position = $this->position;
47 $lightLevel = $position->getWorld()->getFullLightAt($position->x, $position->y, $position->z);
48 $downId = $down->getTypeId();
50 if(($lightLevel <= 12 && !$down->isTransparent()) || $downId === BlockTypeIds::MYCELIUM || $downId === BlockTypeIds::PODZOL){
51 return parent::place($tx, $item, $blockReplace, $blockClicked, $face, $clickVector, $player);
place(BlockTransaction $tx, Item $item, Block $blockReplace, Block $blockClicked, int $face, Vector3 $clickVector, ?Player $player=null)