DistanceToPointFunction 5.46.0
Extends DensityFunction
"minecraft:distance_to_point": distance from the block to a fixed point.
Constants
METRIC_CHEBYSHEV
php
public const METRIC_CHEBYSHEV = 3METRIC_EUCLIDEAN
php
public const METRIC_EUCLIDEAN = 0METRIC_EUCLIDEAN_SQUARED
php
public const METRIC_EUCLIDEAN_SQUARED = 1METRIC_MANHATTAN
php
public const METRIC_MANHATTAN = 2Properties
$metric
php
public readonly int $metric$pointX
php
public readonly float $pointX$pointY
php
public readonly float $pointY$pointZ
php
public readonly float $pointZMethods
__construct()
php
public function __construct(float $pointX, float $pointY, float $pointZ, int $metric)children()
php
public function children() : arraycompute()
php
public function compute(float $x, float $y, float $z) : floatdependsOnY()
php
public function dependsOnY() : bool