Events
List of events that will be called on each registered module
on_send_packet
This event will be called before a packet gets sent to the server.
Key
Type
Description
packet_id
Number
ID of the packet that is being sent
cancel
Boolean
If the packet should be stopped from sending
This event will also return extra keys in the table depending on the packet. Changing this table values and returning the table means they will be applied
on_receive_packet
This event will be called before a packet gets processed in the client.
Key
Type
Description
packet_id
Number
ID of the packet that is being sent
This event will also return extra keys in the table depending on the packet.
on_pre_update
This event will be called before the local player gets updated
on_post_update
This event will be called after the local player gets updated
on_player_move
This event will be called before the local player movements get processed
Key
Type
Description
x
Number
Motion X of the player
y
Number
Motion Y of the player
z
Number
Motion Z of the player
Changing this table values and returning the table means they will be applied
Example:
on_player_join
This event will be called when the local player is created in the world
on_pre_motion
This event will be called before the game sends the position/look packets to the server
Key
Type
Description
x
Number
Pos x of the player
y
Number
Pos y of the player
z
Number
Pos z of the player
yaw
Number
Yaw of the player
pitch
Number
Pitch of the player
on_ground
Boolean
Player's on ground state
Changing this table values and returning the table means they will be applied
Example:
on_post_motion
This event will be called after the game sends the position/look packets to the server
on_pre_player_input
This event will be called before the game processes player inputs, basically before moving depending on your yaw, pitch, forward amount and strafe amount
Key
Number
Pos x of the player
strafe
Number
Strafe amount
forward
Number
Forward amount
Changing this table values and returning the table means they will be applied
Changing yaw and pitch on the player on this event, and changing it back to the previous ones in on_post_player_input
will change the movement as you were looking where you setted the angles in this event.
on_post_player_input
This event will be called after the game processes player inputs.
on_render_world
This event will be called when the game is rendering the screen
on_render_screen
This event will be called when the game is rendering the HUD
Key
Type
Description
partial_ticks
Number
How much time has elapsed since the last tick
width
Number
Width of the Minecraft window
height
Number
Height of the Minecraft Window
scale_factor
Number
GUI Scaling
mouse_x
Number
X Mouse coordinates
mouse_y
Number
Y Mouse coordinates
on_enable
This event will be called when the module gets enabled
on_disable
This event will be called when the module gets disabled
Last updated
Was this helpful?