Skip to main content

ComputerCraft

Mod version shipped with FlammiCraft: 1.13.0

Deutsch · Overview

CC:Tweaked is optional. A computer next to an AFN Bridge or connected over a wired computer network can use the afn_bridge peripheral. Load the supplied Lua module with require('afn').

Computer access starts disabled. Enable Read, Activate and Configure separately in the bridge. Authentication boards additionally require approved computer IDs. A computer name or knowledge of a frequency does not replace authorization.

Start with read calls such as afn.channels() and afn.get('main'), then grant only the needed write access. afn.set('main', 15) creates a sustained external source; afn.clear('main') releases this computer's source. afn.pulse('main', 15, 20) emits a timed pulse. Release your sources when stopping or handling errors.

Strength is 0–15 and pulse duration is 1–1200 ticks. Reading needs Read; activation needs Activate; channel and display edits need Configure. Values also have size and depth limits.

Lua API and events