Skip to content
This repository was archived by the owner on Feb 12, 2023. It is now read-only.
Alexander Freeman edited this page Dec 25, 2015 · 1 revision

All events in the Terrabot library can be found in the terrabot.events.Events file. When an event is called, all functions bound to the object are called in order of binding, with extra data as an argument.

Events and arguments

ID Trigger Data
PlayerID Retrieving the player ID during login PlayerID as int
Blocked When not allowed to join Reason as string
Initialized Init during login null
Login When fully logged in null
Chat When receiving a chat message Chat message as string
TileUpdate Receiving tiles Tile 2D array
ItemDropped New Item drops Item object
ItemDropUpdate Server sends update on item Item object
NewPlayer New Player joins PlayerID as int

Clone this wiki locally