Position as {x, y, z}
Teleport the player to the given world coordinates.
World X coordinate
World Y coordinate
World Z coordinate
Get the player's current health (0 = dead, 20 = full by default).
Current health points
Set the player's health to an exact value.
New health value
Get the player's current hunger level (0 = starving, 20 = full).
Current hunger points
Set the player's hunger to an exact value.
New hunger value
Get the player's current oxygen level (decreases while underwater).
Current oxygen level
Set the player's oxygen to an exact value.
New oxygen value
Check whether the player is standing on solid ground.
True if the player is on the ground
Check whether the player is currently sneaking (shift held).
True if sneaking
Check whether the player is dead (health reached 0).
True if dead
Set the player's respawn point (where they appear after dying).
World X coordinate
World Y coordinate
World Z coordinate
Set the player's vertical velocity (use negative for downward, positive for upward/launch).
Vertical velocity in blocks per second
Get the player's current vertical velocity.
Vertical velocity in blocks per second
Set the player's look direction.
Horizontal rotation in radians
Vertical rotation in radians
Get the player's current look direction (yaw, pitch, and unit direction vector).
Look info with yaw, pitch, dx, dy, dz
Get the block the player is currently looking at (raycast from camera).
Block hit info with position, type, and adjacent empty position, or null if nothing in range
Set the gravity strength for the player.
Gravity in blocks/s^2 (default 22)
Set the player's base walking speed.
Speed in blocks per second (default 7)
Set the player's jump force.
Jump impulse strength (default 8.5)
Set the sprint speed multiplier applied when sprinting.
Multiplier (default 1.6, so sprinting is 60% faster)
Set the flying speed (used in creative/fly mode).
Fly speed in blocks per second (default 14)
Enable or disable fly mode for the player.
True to enable flying, false to restore normal gravity
Set mouse look sensitivity.
Sensitivity value (default 0.003)
Get the player's current world position.