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
trueif the player is within 64 blocks of a bell and villagers are present,falseotherwise.- 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
trueif the area scanner determines the player is under cover,falseotherwise.- Return type:
Boolean
- Boolean state.isUnderWater()
Evaluates whether the player’s head is inside a liquid block.
- Returns:
Returns
trueif the player’s head is in water,falseotherwise.- Return type:
Boolean