SpawnConditionsBuilder

Functions

Link copied to clipboard
fun always(priority: Int)

Adds a spawn condition of priority that always returns true.

Link copied to clipboard
fun biome(priority: Int, biome: TagKey<Biome>)
fun biome(priority: Int, biome: TypedKey<Biome>, vararg biomes: TypedKey<Biome>)

Adds a spawn condition of priority that tests if the spawn position is inside any of the specified biomes.

Link copied to clipboard
fun moonBrightness(priority: Int, range: ClosedRange<Double>)

Adds a spawn condition of priority that tests if the moon brightness is in the specified range.

Link copied to clipboard
fun structure(priority: Int, structure: TagKey<*>)
fun structure(priority: Int, structure: TypedKey<*>, vararg structures: TypedKey<*>)

Adds a spawn condition of priority that tests if the spawn position is inside any of the specified structures.