Skip to content

Player Library

Dennis Dörr edited this page Mar 8, 2020 · 1 revision
KeyTypeDescription
player.healthfloatRanges from 0 - 20
player.hungerintRanges from 0 - 20
player.saturationfloat
player.armor.valueintRanges from 0 - 30
player.gamemodestringCan be survival, creative, adventure or spectator
player.positionPositionSee Position
player.yawfloatCan be set with player.look
player.pitchfloatCan be set with player.look
player.main_handItemItem in main hand
player.off_handItemItem in secondary hand
player.armor.helmetItemItem used as helmet
player.armor.chestplateItemItem used as chestplate
player.armor.leggingsItemItem used as leggings
player.armor.bootsItemItem used as boots
player.biomeBiomeSee Biome
player.total_experienceintAmount of total xp collected
player.experience_progressfloatProgress until next level
player.experience_levelintCurrent xp level
player.look(float yaw, float pitch)nullLooks in the given direction
player.target()TargetReturns the block the player currently targets, see Target

Clone this wiki locally