Player
Information about the player binding

sendPacket

1
player.sendPacket(packet.C03PacketPlayer, true)
Copied!
​

sendMessage

1
player.sendMessage(msg)
Copied!
Parameter
Type
Description
msg
String
Message you want the player to send

respawn

1
player.respawn()
Copied!
Sends a respawn packet

swingItem

1
player.swingItem()
Copied!
Makes the player swing the current item.

setPitch

1
player.setPitch(pitch)
Copied!
Sets the player's pitch
Parameter
Type
Description
pitch
Number
New player pitch

setYaw

1
player.setYaw(yaw)
Copied!
Sets the player's yaw
Parameter
Type
Description
yaw
Number
New player yaw

setMotionX

1
player.setMotionX(motionX)
Copied!
Sets the player's motionX
Parameter
Type
Description
motionX
Number
New player motionX

setMotionY

1
player.setMotionY(motionY)
Copied!
Sets the player's motionY
Parameter
Type
Description
motionY
Number
New player motionY

setMotionZ

1
player.setMotionZ(motionZ)
Copied!
Sets the player's motionZ
Parameter
Type
Description
motionZ
Number
New player motionZ

setPosition

1
player.setPosition(x, y, z)
Copied!
Sets the players position
Parameter
Type
Description
x
Number
New player pos x
y
Number
New player pos y
z
Number
New player pos z

jump

1
player.jump()
Copied!
Makes the player jump

timerSpeed

1
var currentTimerSpeed = player.timerSpeed()
Copied!
Returns the player's current timer speed as a Number

speed

1
var currentSpeed = player.speed()
Copied!
Returns the player's current speed as a Number

setSpeed

1
player.setSpeed(speed)
Copied!
Sets the player's speed
Parameter
Type
Description
speed
Number
New player speed

setSneaking

1
player.setSneaking(sneaking)
Copied!
Sets to true to make the player sneak
Parameter
Type
Description
sneaking
Boolean
Set to true to make the player sneak

setSprinting

1
player.setSprinting(sprinting)
Copied!
Sets to true to make the player sprint
Parameter
Type
Description
sprinting
Boolean
Set to true to make the player sprint

setFallDistance

1
player.setFallDistance(fallDistance)
Copied!
Sets the player's fall distance
Parameter
Type
Description
fallDistance
Number
New player fall distance

leftClick

1
player.leftClick()
Copied!
Clicks the left mouse button

rightClick

1
player.rightClick()
Copied!
Clicks the right mouse button

setHeldItemSlot

1
player.setHeldItemSlot(slot)
Copied!
Set the current held item of the local player.
Parameter
Type
Description
slot
Number
New slot of the item in the hotbar (0-8)

collidedHorizontally

1
player.collidedHorizontally()
Copied!
Returns true if the player was collided horizontally

collidedVertically

1
player.collidedVertically()
Copied!
Returns true if the player was collided horizontally

collided

1
player.collided()
Copied!
Returns true if the player was collided at all

moving

1
player.moving()
Copied!
Returns true if the player is moving

sneaking

1
player.sneaking()
Copied!
Returns true if the player is sneaking

sprinting

1
player.sprinting()
Copied!
Returns true if the player is sprinting

eating

1
player.eating()
Copied!
Returns true if the player is eating

onGround

1
player.onGround()
Copied!
Returns true if the player is on ground

airBorne

1
player.airBorne()
Copied!
Returns true if the player is air borne

onLadder

1
player.onLadder()
Copied!
Returns true if the player is on a ladder

inWater

1
player.inWater()
Copied!
Returns true if the player is in water

inLava

1
player.inLava()
Copied!
Returns true if the player is in lava

inWeb

1
player.inWeb()
Copied!
Returns true if the player is in a web

inPortal

1
player.inPortal()
Copied!
Returns true if the player is in a portal

usingItem

1
player.usingItem()
Copied!
Returns true if the player is using an item

burning

1
player.burning()
Copied!
Returns true if the player is burning

dead

1
player.dead()
Copied!
Returns true if the player is dead

name

1
player.name()
Copied!
Returns the player's name as a String

hurtTime

1
player.hurtTime()
Copied!
Returns the player's hurt time as a Number

heldItemSlot

1
player.heldItemSlot()
Copied!
Returns the player's currently held item's slot as a Number

ticksExisted

1
player.ticksExisted()
Copied!
Returns the player's ticks existed as a Number

fallDistance

1
player.fallDistance()
Copied!
Returns the player's fall distance as a Number

health

1
player.health()
Copied!
Returns the player's health as a Number

maxHealth

1
player.maxHealth()
Copied!
Returns the player's max health as a Number

armor

1
player.armorValue()
Copied!
Returns the player's total armor value as a Number

hunger

1
player.hunger()
Copied!
Returns the player's food level as a Number

absorption

1
player.absorption()
Copied!
Returns the player's absorption level as a Number

pitch

1
player.pitch()
Copied!
Returns the player's pitch as a Number

yaw

1
player.yaw()
Copied!
Returns the player's yaw as a Number

x

1
player.x()
Copied!
Returns the player's x pos as a Number

y

1
player.y()
Copied!
Returns the player's y pos as a Number

z

1
player.z()
Copied!
Returns the player's z pos as a Number

motionX

1
player.motionX()
Copied!
Returns the player's motion x as a Number

motionY

1
player.motionY()
Copied!
Returns the player's motion y as a Number

motionZ

1
player.motionZ()
Copied!
Returns the player's motion z as a Number

getServerIP

1
var serverIP = player.getServerIP()
Copied!
Returns the current server ip as a String, returns "singleplayer" if the player is in singleplayer mode