-
Notifications
You must be signed in to change notification settings - Fork 6
Rules
Kaden Scott edited this page Jan 8, 2021
·
8 revisions
This page contains a list of rules included with QuantumAPI.
Invalidates a location if it's Material type is a specific type.
-
block-types: A list of Materials
// Rulesets configuration
{
type: avoid-block
options: {
block-types: [LAVA, WATER]
}
}Invalidates a location if it's Material type is not a specific type.
-
block-types: A list of Materials
// Rulesets configuration
{
type: only-block
options: {
block-types: [STONE]
}
}Invalidates a location if it's Biome type is a specific type.
-
biome-types: A list of Biomes
// Rulesets configuration
{
type: avoid-biome
options: {
biome-types: [PLAINS]
}
}Invalidates a location if it's Biome type is not a specific type.
-
biome-types: A list of Biomes
// Rulesets configuration
{
type: only-biome
options: {
biome-types: [PLAINS]
}
}Invalidates a location if a specific entity type is within radius blocks of the location.
-
entity-types: A list of Entitys -
radius: How far should one of these mobs be to consider this location invalid
// Rulesets configuration
{
type: avoid-entity
options: {
entity-types: [CREEPER, SKELETON, ZOMBIE],
radius: 10
}
}Invalidates a location if a specific entity type isn't within radius blocks of the location.
-
entity-types: A list of Entitys -
radius: How far should one of these mobs be to consider this location valid
// Rulesets configuration
{
type: nearby-entity
options: {
entity-types: [PIG, SHEEP, ZOMBIE],
radius: 10
}
}