Skip to content

MineshaftPieces 5.46.0 ​

final class · pocketmine\world\generator\vanilla\structure\piece\mineshaft\MineshaftPieces · source

Vanilla's MineshaftPieces: the random growth of a mineshaft from its start room.

Constants ​

MAGIC_START_Y ​

php
public const MAGIC_START_Y = 50

MineshaftPieces.MAGIC_START_Y

MAX_DEPTH ​

php
public const MAX_DEPTH = 8

MineshaftPieces.MAX_DEPTH

Methods ​

generateAndAddPiece() ​

php
public static function generateAndAddPiece(\pocketmine\world\generator\vanilla\structure\piece\mineshaft\MineShaftRoom $start, \pocketmine\world\generator\vanilla\structure\piece\StructurePiecesBuilder $builder, \pocketmine\world\generator\vanilla\random\LegacyRandom $random, int $footX, int $footY, int $footZ, int $direction, int $depth) : ?\pocketmine\world\generator\vanilla\structure\piece\mine …

MineshaftPieces.generateAndAddPiece(): adds a random piece at the given foot (unless too deep or more than 80 blocks from the start room) and grows its children.

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