51 $this->treeHeight = $random->nextBoundedInt(4) + 6;
53 $topSize = $this->treeHeight - (1 + $random->nextBoundedInt(2));
54 $lRadius = 2 + $random->nextBoundedInt(2);
56 $this->
placeTrunk($level, $x, $y, $z, $random, $this->treeHeight - $random->nextBoundedInt(3));
58 $radius = $random->nextBoundedInt(2);
62 for($yy = 0; $yy <= $topSize; ++$yy){
63 $yyy = $y + $this->treeHeight - $yy;
65 for($xx = $x - $radius; $xx <= $x + $radius; ++$xx){
66 $xOff = abs($xx - $x);
67 for($zz = $z - $radius; $zz <= $z + $radius; ++$zz){
68 $zOff = abs($zz - $z);
69 if($xOff === $radius and $zOff === $radius and $radius > 0){
74 $level->setBlockIdAt($xx, $yyy, $zz, $this->leafBlock);
75 $level->setBlockDataAt($xx, $yyy, $zz, $this->type);
83 if(++$maxR > $lRadius){