state Namespace

Note

These functions are not available for biome condition scripts.

Boolean state.isInVillage()

Evalulates whether the player is within 64 blocks of a bell and villagers are present.

Returns:

Returns true if the player is within 64 blocks of a bell and villagers are present, false otherwise.

Return type:

Boolean

Boolean state.isInside()

Evaluates whether the player is under cover. Note that some blocks do not count as cover, such as leaf blocks and fences.

Returns:

Returns true if the area scanner determines the player is under cover, false otherwise.

Return type:

Boolean

Boolean state.isUnderWater()

Evaluates whether the player’s head is inside a liquid block.

Returns:

Returns true if the player’s head is in water, false otherwise.

Return type:

Boolean