Skip to content

MegaSpruceTree 5.46.0 ​

class · pocketmine\world\generator\object\MegaSpruceTree · source

Extends TwoByTwoTree

Giant spruce, grown from a 2x2 square of spruce saplings (x, z is the north-west sapling).

Vanilla (https://minecraft.wiki/w/Spruce, Java's MegaPine foliage): a 2x2 trunk 13-28 blocks tall with a narrow conical crown over its top half, and podzol around the base. The crown here grows one block wider every three layers down, up to a radius of 4.

Methods ​

__construct() ​

php
public function __construct()

generateTrunkHeight() protected ​

php
protected function generateTrunkHeight(\pocketmine\utils\Random $random) : int

getBlockTransaction() ​

php
public function getBlockTransaction(\pocketmine\world\ChunkManager $world, int $x, int $y, int $z, \pocketmine\utils\Random $random) : ?\pocketmine\world\BlockTransaction

placeCanopy() protected ​

php
protected function placeCanopy(int $x, int $y, int $z, \pocketmine\utils\Random $random, \pocketmine\world\BlockTransaction $transaction) : void

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.