Rise 6 Scripting API
  • Introduction
  • Examples
    • Simple vanilla hop
    • Simple collide fly bypass
    • Events example
    • Example settings
    • Exempted value speed bypass
    • Packet nofall
    • Killaura
    • Arraylist
  • API Documentation
    • Scripting metadata
    • Objects
      • FontRenderer
      • Vector
        • Vector3
        • Vector2
      • ItemStack
      • BlockPos
      • Block
      • Inventory
      • Command
      • Module
      • EntityLiving
      • Entity
    • Global namespaces
      • render
      • input
      • world
      • rise
      • player
      • mc
      • network
      • packet
    • Events
      • Load event
      • Unload event
      • Module events
        • Attack event
        • World Change Event
        • Module Toggle Event
        • Server Kick event
        • Game event
        • Chat input event
        • Click event
        • Entity render event
        • Hit slow down event
        • Jump event
        • Keyboard Input event
        • Kill event
        • Move input event
        • Post motion event
        • Pre motion event
        • Strafe event
        • Pre update event
        • Render 2D event
        • Render 3D event
        • Water event
        • Tick event
        • Slow down event
      • onExecute event
Powered by GitBook
  1. API Documentation

Events

This page and it's sub-pages will go over the events and their parameters.

This page contains documentation about the scripting events.

Each event has the following method:

getHandlerName(): String

This method returns the Event Handler name.

The method above is an internally-used method, should not be used in your scripts.

Handling events

To handle an event, call the handle(handlerName: String, handlerFunction: Function(Event)): Undefined method on an object that you want your handler to run on. (example: your module, command, the entire script)

Cancellable events

Some events can be cancelled, while other events can't be. Cancellable events have 2 methods that non-cancellable events don't.

isCancelled(): Boolean

Returns if the event has been cancelled or not.

setCancelled(cancelled): Undefined

Sets the cancelled state of the event.

PreviouspacketNextLoad event

Last updated 2 years ago