Skip to content

Unique Neighbor

  • Id: moderner_beta:unique_neighbor
  • Added in: 3.0.0

The Unique Neighbor biome predicate returns true if a specified amount of neighbors are different from the center biome. This predicate's behavior can be replicated with an Inverted Identical Neighbor biome predicate, however the unique neighbor predicate exists to both reduce the amount of predicates written and to simplify conditions.

Properties

  • requiredCount
    • Type: int
    • Default: 1
    • Description: The amount of neighbors that need to satisfy the biome predicate's condition in order to return true.
  • diagonal
    • Type: bool
    • Default: false
    • Description: Determines if neighbors are sampled from diagonal corners or if they are sampled from the edges of the central biome.