Events
The available events to hook in NovoScript
enable
This event will be called when the module enables
disable
This event will be called when the module disables
playerUpdateEvent
This event will be called on the local player update if the chunk you're currently at is loaded. Called before preUpdateEvent and postUpdateEvent
playerPreUpdate
This event will be called before sending all of the position packets
Method | Parameters | Type | Description |
getX | None | double | Position X of a player |
getY | None | double | Position Y of a player |
getZ | None | double | Position Z of a player |
setX | double | void | Sets the position X for a player |
setY | double | void | Sets the position Y for a player |
setZ | double | void | Sets the position Z for a player |
getYaw | None | float | Rotation yaw of a player |
getPitch | None | float | Rotation pitch of a player |
setYaw | float | void | Sets the yaw for a player (Silent) |
setPitch | float | void | Sets the pitch for a player (Silent) |
isOnGround | None | boolean | The ground state of a player |
setOnGround | boolean | void | Sets the ground state for a player |
playerPostUpdate
This event will be called after sending all of the position packets
moveEvent
This event will be called before the player moves
Method | Parameters | Type | Description |
getX | None | double | X motion of a player |
getY | None | double | Y motion of a player |
getZ | None | double | Z motion of a player |
setX | double | void | Sets the X motion for a player |
setY | double | void | Sets the Y motion for a player |
setZ | double | void | Sets the Z motion for a player |
setMoveSpeed | double | void | Sets the movement speed for the player |
render2DEvent
This event will be called before the overlay is rendered
Method | Parameters | Type | Description |
getPartialTicks | None | float | The delta between the last render tick |
getResolution | None | ScaledResolution | Scaled resolution of the window |
render3D
This event will be called before the world is rendered
Method | Parameters | Type | Description |
getPartialTicks | void | float | The delta between the last render tick |
loadWorld
This event will be called before the world is loaded
packetSend
This event will be called before the packet is send
Method | Parameters | Type | Description |
setPacket | String; Object... | void | Replaces the packet you send with the one you provide. See the example below |
getPacket | None | Packet | Returns the packet you send (only a few of them are editable) |
Cancelling the event
packetReceive
This event will be called before the packet is received
Method | Parameters | Type | Description |
getPacket | None | Packet | Returns the packet you receive |
Canceling the event
Last updated