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
On this page
  • sendPacket(id, ...parameters): Undefined
  • receivePacket(id, ...parameters): Undefined
  • isMultiplayer(): Boolean
  • isSingleplayer(): Boolean
  • getServerIP(): String
  • getServerName(): String
  • getServerMOTD(): String
  1. API Documentation
  2. Global namespaces

network

This page will go over the networking API namespace.

PreviousmcNextpacket

Last updated 1 year ago

This API is deprecated due to unstable implementation. Consider using instead.

sendPacket(id, ...parameters): Undefined

receivePacket(id, ...parameters): Undefined

Argument
Type
Description

id

Number

Packet ID.

0x03 -> C03, 0x0F -> C0F

...parameters

Variable arguments: Any

Parameters for instantiation of packet. Mismatch between packet constructor parameters and this variable argument will cause the script throw an exception.

Those methods will either send a packet to the server, or force the client to receive a packet from the server.

Some packets might be unsupported. If the packet is not supported, the script will throw an exception.

Every valid packet should be supported.

isMultiplayer(): Boolean

This method will return if the client is connected to the server.

isSingleplayer(): Boolean

This method will return if the client is playing in singlepalyer.

getServerIP(): String

Returns the server IP, if the player is connected to a server. Otherwise, this returns null.

getServerName(): String

Returns the server name, if the player is connected to a server. Otherwise, this returns null.

getServerMOTD(): String

Returns the server MOTD (Message Of The Day, also known as the text under a server name), if the player is connected to a server.

the Packet API