Skip to content
Kaden Scott edited this page Jan 8, 2021 · 8 revisions

This page contains a list of rules included with QuantumAPI.

TOC

avoid-block

Invalidates a location if it's Material type is a specific type.

Options

Example

// Rulesets configuration
{
  type: avoid-block
  options: {
    block-types: [LAVA, WATER]
  }
}

only-block

Invalidates a location if it's Material type is not a specific type.

Options

Example

// Rulesets configuration
{
  type: only-block
  options: {
    block-types: [STONE]
  }
}

avoid-biome

Invalidates a location if it's Biome type is a specific type.

Options

  • biome-types: A list of Biomes

Example

// Rulesets configuration
{
  type: avoid-biome
  options: {
    biome-types: [PLAINS]
  }
}

only-biome

Invalidates a location if it's Biome type is not a specific type.

Options

  • biome-types: A list of Biomes

Example

// Rulesets configuration
{
  type: only-biome
  options: {
    biome-types: [PLAINS]
  }
}

avoid-entity

Invalidates a location if a specific entity type is within radius blocks of the location.

Options

  • entity-types: A list of Entitys
  • radius: How far should one of these mobs be to consider this location invalid

Example

// Rulesets configuration
{
  type: avoid-entity
  options: {
    entity-types: [CREEPER, SKELETON, ZOMBIE],
    radius: 10
  }
}

nearby-entity

Invalidates a location if a specific entity type isn't within radius blocks of the location.

Options

  • entity-types: A list of Entitys
  • radius: How far should one of these mobs be to consider this location valid

Example

// Rulesets configuration
{
  type: nearby-entity
  options: {
    entity-types: [PIG, SHEEP, ZOMBIE],
    radius: 10
  }
}

Clone this wiki locally