Chip documentation
Introduction
The chip API allows you to make some baseline interactions with the machine running code (the Minecraft block, not your real computer). This Includes allowing programs to probe for the current Unix time, fetch the machine's make and model, read its UUID, and manipulate the computer's state.
The chip API exists in the global space as "chip" or "_G.chip"
Lookup table
| getUUID() | Fetches a text representation of the computers unique one of a kind id |
| getMachine() | Gets a text description of the type of computer running code |
| crash(message) | Forcefully crashes the computer with the given error message |
| shutdown() | Forcefully shuts down the computer |
| reboot() | Forcefully restarts the computer |
| version() | Looks up the current version of NEET computers in service |
| getTime() | Gets the total amount of time the computer has been executing code, in seconds with a decimal |
| getUnixTime() | Gets the current time in Unix time, in seconds with a decimal |
| getLunarTime() | Gets the current game lunar time |
Functions in detail
getUUID()
Gets the running machines UUID
Parameters: None Returns: StringgetMachine()
Gets a text description of the machine running (example: "Desktop Computer" or "Office Computer")
Parameters: None Returns: Stringcrash(message)
Crashes the computer with the given error message
Parameters: Message[String] Returns: Noneshutdown()
Shuts down the computer
Parameters: None Returns: Nonereboot()
Restarts the computer
Parameters: None Returns: NonegetTime()
Gets the total amount of time the computer has been executing code, in seconds with a decimal
Parameters: None Returns: DecimalgetUnixTime()
Gets the current time in Unix time, in seconds with a decimal
Parameters: None Returns: DecimalgetLunarTime()
Gets the current game lunar time, some benchmarks provided
- Day: 1000
- Noon: 6000
- Night: 13000
- Midnight: 18000