🤠
cedoscript
  • Introduction
  • Documentation
    • Packets
    • Setting Command
    • Java Imports
    • Examples
      • Creating a Pack
      • Custom Block Animation
      • Bhop
      • Setting Creation
      • Post Notification
      • Gradient Round Rectangle
      • Applying a gradient
      • Simulate a command
  • api
    • Events
    • Settings
    • Objects
      • EntityLivingBase
      • ItemStack
      • Player Abilities
      • Color
      • TimerUtil
      • Continual Animation
      • ShaderUtil
      • FrameBuffer
      • Rainbow
      • Drag
      • Pair
      • Module
  • Bindings
    • Client
    • Player
    • Packet
    • Action
    • Facing
    • Potion
    • Notification
    • Render
    • Stats
    • Font
    • User
    • World
Powered by GitBook
On this page
  • How to create
  • Functions
  • disableDamage
  • isFlying
  • allowFlying
  • isCreativeMode
  • allowEdit
  • getFlySpeed
  • setFlySpeed
  • getWalkSpeed
  • setPlayerWalkSpeed

Was this helpful?

  1. api
  2. Objects

Player Abilities

For usage in C13PlayerAbilities packet

How to create

var abilities = packet.newPlayerCapabilities()

Functions

disableDamage

abilities.disableDamage = true

isFlying

abilities.isFlying = true

allowFlying

abilities.allowFlying = true

isCreativeMode

abilities.isCreativeMode = true

allowEdit

abilities.allowEdit = true

getFlySpeed

var speed = abilities.getFlySpeed()

setFlySpeed

abilities.setFlySpeed(2)

getWalkSpeed

var speed = abilities.getWalkSpeed()

setPlayerWalkSpeed

abilities.setPlayerWalkSpeed(2)
PreviousItemStackNextColor

Last updated 2 years ago

Was this helpful?