cc-libs/README.md
2026-05-31 02:48:19 +02:00

1.0 KiB

Trap's ComputerCraft APIs

Development

Requirements:

  • just
  • luacheck

After cloning the repository, run:

just install

This installs the local Git hooks, including a pre-push hook that runs just check.

Installation

wget run https://raw.githubusercontent.com/guillaumearm/cc-libs/master/install.lua

Apis

  • /apis/eventloop: a simple event loop api
  • /apis/net: api to simplify sending and receiving routed messages (based on eventloop library)

Servers

All servers are automatically started at boot

  • /servers/ping-server: allow a machine to respond to a ping command.
  • /servers/cube-server: allow a machine to be controllable via cube.
  • /servers/cube-boot.lua: cube boot script.

Programs

  • router: route messages (you need to setup a router to be able to use all apis/net based programs and libs)
  • ping : ping machines (use apis/net)
  • cube: cube client for deployment (use cube help command for more details)
  • goo: turtle program for Just Dire Things goo block processing.