difficulty

abstract var difficulty: Difficulty

The difficulty level of the world.

Example:

world.edit {
difficulty = Difficulty.PEACEFUL
}