Skip to content

Difficulty

Checks the difficulty of the world.

Type ID: kaya:difficulty

Format

Field Type Default Description
difficulty Difficulty The difficulty to match.

Example

{
    "type": "kaya:difficulty",
    "difficulty": "normal"
}

This example checks if the current difficulty is set to normal.

History

Minecraft Mod Changelog
1.21.5 0.1.0 Added the type.