MonsterSettingsBuilder

A builder for MonsterSettings. The following settings are available:

  • piglinSafe - Whether piglins transform into zombified entities.

  • hasRaids - Whether players with bad omen can trigger raids.

  • monsterSpawnLightTest - The light level test used to determine if a monster can spawn. (Value between 0 and 15)

  • monsterSpawnBlockLightLimit - The maximum light level a block can have to allow monsters to spawn. (Value between 0 and 15)

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun build(): DimensionType.MonsterSettings

Builds a MonsterSettings instance from the current state of this builder.

Link copied to clipboard
fun hasRaids(hasRaids: Boolean)

Sets the piglinSafe property which determines whether players with bad omen can trigger raids.

Link copied to clipboard

Sets the monsterSpawnBlockLightLimit property which determines the maximum light level a block can have to allow monsters to spawn. (Value between 0 and 15)

Link copied to clipboard
fun monsterSpawnLightTest(test: IntProvider)

Sets the monsterSpawnLightTest property which determines the light level test used to determine if a monster can spawn. (Value between 0 and 15)

Link copied to clipboard
fun piglinSafe(piglinSafe: Boolean)

Sets the piglinSafe property which determines whether piglins transform into zombified entities.