events

Contains all events you can hook while creating a module table.
BEWARE: If an event has any parameters, you need to add a generalized event argument to your function, NOT THE PARAMETERS THEMSELVES. You can access all the event parameters from the argument!

on_enable()

Called once the module is enabled

on_disable()

Called once the module is disabled

on_tick()

Called on client tick (every 0.05s)

Parameters

nametypedescription
prebooleanDefines if the event was called pre or post tick

on_update()

Called before and after client position update, this is done once every tick.

Parameters

nametypedescription
prebooleanWhether the event was invoked before or after sending the position updates to the server. Keep in mind position, rotation and ground attributes can only be modified when this is true, otherwise changes will be ignored
xdoubleThe x position sent to the server
ydoubleThe y position sent to the server
zdoubleThe z position sent to the server
yawfloatThe yaw rotation sent to the server (Will update the third-person rotations once modified)
pitchfloatThe pitch rotation sent to the server (Will update the third-person rotations once modified)
groundbooleanThe ground state sent to the server

on_move()

Called before the movement of the player gets applied
Mainly used to make the player strafe or move faster

Parameters

nametypedescription
xdoubleThe x motion used to apply the move
ydoubleThe y motion used to apply the move
zdoubleThe z motion used to apply the move

on_packet_send()

Called once the client sends a packet to the server.
Additional parameters are available for specific packets.
Editing is currently supported for the following packets: 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x11, 0x13, 0x14, 0x18, 0x19, 0x0B, 0x0C, 0x0E, 0x0F

Parameters

nametypedescription
packet_idintThe packet id
cancelbooleanWhether the packet sending should be canceled or not

on_packet_receive()

Called once the client receives a packet from the server.
Additional parameters are available for specific packets.
Editing is currently supported for the following packets: 0x00, 0x08, 0x14, 0x27, 0x32, 0x48
Only reading additionally is supported for the following packets: 0x02

Parameters

nametypedescription
packet_idintThe packet id
cancelbooleanWhether the packet processing should be canceled or not

on_overlay_render()

Called once the overlay of the client is being rendered

Parameters

nametypedescription
partial_ticksfloatThe partial ticks
prebooleanWhether its pre or post overlay render

on_world_render()

Called once the world is rendered

Parameters

nametypedescription
partial_ticksfloatThe partial ticks

on_effect_render()

Called once any blur effects are rendered (shadow, blur)

Parameters

nametypedescription
blurbooleanWhether the blur or shadow is called
partial_ticksfloatThe partial ticks