- Notifications
You must be signed in to change notification settings - Fork 1
Player Library
Dennis Dörr edited this page Mar 8, 2020
·
1 revision
| Key | Type | Description |
|---|---|---|
player.health | float | Ranges from 0 - 20 |
player.hunger | int | Ranges from 0 - 20 |
player.saturation | float | |
player.armor.value | int | Ranges from 0 - 30 |
player.gamemode | string | Can be survival, creative, adventure or spectator |
player.position | Position | See Position |
player.yaw | float | Can be set with player.look |
player.pitch | float | Can be set with player.look |
player.main_hand | Item | Item in main hand |
player.off_hand | Item | Item in secondary hand |
player.armor.helmet | Item | Item used as helmet |
player.armor.chestplate | Item | Item used as chestplate |
player.armor.leggings | Item | Item used as leggings |
player.armor.boots | Item | Item used as boots |
player.biome | Biome | See Biome |
player.total_experience | int | Amount of total xp collected |
player.experience_progress | float | Progress until next level |
player.experience_level | int | Current xp level |
player.look(float yaw, float pitch) | null | Looks in the given direction |
player.target() | Target | Returns the block the player currently targets, see Target |