Skip to content

OreVeinRule 5.46.0 ​

final class · pocketmine\world\generator\vanilla\surface\rule\OreVeinRule · source

Extends MaterialRule

"minecraft:ore_vein" (large copper and iron veins). The density function is the chance that a block belongs to the vein; vein blocks are ore when a richness roll passes outside the gaps (raw ore blocks with a small chance), filler otherwise. Same random draws as the pre-26.3 OreVeinifier ("minecraft:ore" positional random).

Interpolated inputs (vein toggle, ridges) are interpolated over their cells per chunk, and cells whose density can not be positive (interval bounds) are skipped without evaluating any block.

Methods ​

__construct() ​

php
public function __construct(\pocketmine\world\generator\vanilla\density\DensityFunction $density, \pocketmine\world\generator\vanilla\density\DensityFunction $richness, \pocketmine\world\generator\vanilla\density\DensityFunction $fillerGap, int $ore, int $rawOre, int $filler, float $rawOreChance, \pocketmine\world\generator\vanilla\random\PositionalRandomFactory $random, \pocketmine\world\generato …

apply() ​

php
public function apply(\pocketmine\world\generator\vanilla\surface\MaterialContext $c) : int

compile() ​

php
public function compile(\pocketmine\world\generator\vanilla\surface\MaterialRuleCompiler $compiler) : string

open() ​

php
public function open(\pocketmine\world\generator\vanilla\surface\MaterialContext $c) : bool

Whether the density can be positive in the 4x8x4 cell of the block (bounds computed once per cell and chunk).

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