📃
Scripting
  • Introduction
  • Creating a script
  • Dummy API
  • Namespaces
    • breeze
    • mc
    • inventory
    • mathUtil
    • playerController
    • UIRenderer
    • world
    • render3D
    • gameSettings
  • Objects
    • Breeze
      • Settings
        • BooleanSetting
        • IntSetting
        • DoubleSetting
        • ModeSetting
        • ColorSetting
        • MinMaxSetting
        • StringSetting
        • KeyBindSetting
        • PositionSetting
      • Animation
      • Module
        • HudModule
        • RotationModule
    • Minecraft
      • Packets
        • ClientPacket
          • C00PacketKeepAlive
          • C01PacketChatMessage
          • C02PacketUseEntity
          • C03PacketPlayer
            • C04PacketPlayerPosition
            • C05PacketPlayerLook
            • C06PacketPlayerPosLook
          • C07PacketPlayerDigging
          • C08PacketBlockPlacement
          • C09PacketHeldItemChange
          • C0APacketAnimation
          • C0BPacketEntityAction
          • C0CPacketInput
          • C0DPacketCloseWindow
          • C0EPacketClickWindow
          • C0FPacketConfirmTransaction
          • C17PacketCustomPayload
        • ServerPacket
          • S00PacketKeepAlive
          • S01PacketJoinGame
          • S02PacketChat
          • S03PacketTimeUpdate
          • S04PacketEntityEquipment
          • S05PacketSpawnPosition
          • S06PacketUpdateHealth
          • S07PacketRespawn
          • S08PacketPlayerPosLook
          • S09PacketHeldItemChange
          • S0CPacketSpawnPlayer
          • S0DPacketCollectItem
          • S0EPacketSpawnObject
          • S0FPacketSpawnMob
          • S12PacketEntityVelocity
          • S13PacketDestroyEntities
          • S14PacketEntity
            • S15PacketEntityRelMove
            • S16PacketEntityLook
            • S17PacketEntityLookMove
          • S18PacketEntityTeleport
          • S19PacketEntityHeadLook
          • S19PacketEntityStatus
          • S27PacketExplosion
          • S2APacketParticles
          • S2CPacketSpawnGlobalEntity
          • S2DPacketOpenWindow
          • S2EPacketCloseWindow
          • S2FPacketSetSlot
          • S3FPacketCustomPayload
      • Util
        • Vec3
        • AxisAlingenedBB
        • RaytraceResult
        • ItemStack
        • BlockPos
      • Entity
        • LivingEntity
          • EntityPlayerSP
    • Util
      • Timer
      • KeyBind
      • Color
      • Rotation
  • Events
    • Packet send event
    • Packet receive event
    • Pre motion event
    • Motion event
    • Post motion event
    • Input event
    • Render2D event
    • Render3D event
    • Tick event
    • Render Entity event
    • World change event
    • Join server event
  • Examples
    • AntiAim
    • CPS Counter
    • Chat Spammer
    • Blink
    • Auto Sprint
  • EnumFacing
Powered by GitBook
On this page
  • Getting the player entity.
  • setX(double x): void
  • setY(double x): void
  • setZ(double x): void
  • setPosition(Vec3 pos): void
  • setPitch(float pitch): void
  • setYaw(float yaw): void
  • setLastPitch(float pitch): void
  • setLastYaw(float yaw): void
  • setMotionX(double motionX): void
  • setMotionY(double motionY): void
  • setMotionZ(double motionZ): void
  • setMotion(Vec3 motion): void
  • getForward(): float
  • getStrafe(): float
  • isUsingItem(): boolean
  • swingItem(): void
  • sendChatMessage(String message): void
  • jump(): void
  • isSneaking(): boolean
  • setSneaking(boolean sneak): void
  • isSprinting(): boolean
  • setSprinting(boolean sprint): void
  1. Objects
  2. Minecraft
  3. Entity
  4. LivingEntity

EntityPlayerSP

The player entity

Last updated 1 year ago

EntityPlayerSP objects inherit methods from

Getting the player entity.

You can get the player entity from the namespace.

'tick': function() {
    player = mc.getPlayer()
    
    player.jump()
    
    player.swingItem()
}

setX(double x): void

Sets the x position of the player.

setY(double x): void

Sets the y position of the player.

setZ(double x): void

Sets the z position of the player.

Set the x, y, and z position of the player using a Vec3.

setPitch(float pitch): void

Set the pitch of the player.

setYaw(float yaw): void

Set the yaw of the player.

setLastPitch(float pitch): void

Set the prevPitch of the player.

setLastYaw(float yaw): void

Set the prevYaw of the player.

setMotionX(double motionX): void

Sets the motionX of the player.

setMotionY(double motionY): void

Sets the motionY of the player.

setMotionZ(double motionZ): void

Sets the motionZ of the player.

Set the motionX, motionY, and motionZ of the player using a Vec3.

getForward(): float

Returns the moveForward input of the player.

getStrafe(): float

Returns the moveStrafe input of the player.

isUsingItem(): boolean

Returns True if the player is using an item.

swingItem(): void

sendChatMessage(String message): void

Send a chat message to the server, can be used for commands.

jump(): void

Makes the player jump up.

isSneaking(): boolean

Returns true if the player is sneaking.

setSneaking(boolean sneak): void

Set the sneaking state of the player.

isSprinting(): boolean

Returns true if the player is currently sprinting.

setSprinting(boolean sprint): void

Make the player start or stop sprinting.

setPosition( pos): void

setMotion( motion): void

Swings the hand and sends a .

LivingEntity
mc
Vec3
Vec3
C0APacketAnimation