HomeJavaModsCC SmartCard
CC SmartCard
CC SmartCard — screenshot 1CC SmartCard — screenshot 2

CC SmartCard

A Fingerprint Scanner, CC: Tweaked computer, and Smart Card Reader with an inserted card

Programmable Smart Cards, identity scanners, passage sensors, and access gates for CC: Tweaked.

Unlike a CC disk, whose holder can freely read and write its shared storage, a Smart Card is written only once when issued. Its contents cannot then be read directly or arbitrarily changed; it can only run commands defined at issuance, giving it a different security boundary and usage model.

It is designed for ComputerCraft-style access cards, identity checks, tickets, tokens, banking systems, and other builds that need more than a plain item ID.

Smart Cards

The CC SmartCard creative tab showing white and dyed Smart Cards

Issued cards cannot be erased or reissued through the supported reader API.

Smart Card Reader

Place the reader beside a CC: Tweaked computer or connect it through a wired modem. Insert or remove a card by right-clicking any face of the reader.

The smart_card_reader peripheral can inspect public card metadata, issue a blank card, call commands on an issued card, and emit insertion or removal events.

local reader = peripheral.find("smart_card_reader")
assert(reader, "No Smart Card Reader found")

local message, cardId = reader.call("ping")
print(message, cardId)

Fingerprint Scanner

A Fingerprint Scanner before and after a successful player scan

The fingerprint_scanner peripheral waits for a player to right-click the scanner, briefly lights its scanned face, and returns the player's stable UUID together with their current profile name.

local scanner = peripheral.find("fingerprint_scanner")
local player = assert(scanner.scan())
print(player.name, player.uuid)

Access Gates and Passage Sensors

An automated two-gate passage closing the entrance, waiting for approval, opening the exit, and resetting

Build automated border-control lanes, secure vestibules, station barriers, or any other two-stage passage. The demonstration uses two independent Access Gates and one Passage Sensor: the entrance starts open, closes after one player enters, the inside computer authorises the exit, and the lane resets after the player leaves.

Place two Gate Cabinets facing each other across a one- or two-block gap to form one animated access_gate peripheral. Both cabinets control the same logical gate.

Two gates remain independent: your Lua program decides how authentication works and whether only one gate may be open. This makes the blocks useful beyond a single hard-coded border-control workflow.

Mount a passage_sensor above the controlled space to receive anonymous observations for players, creatures, vehicles, items, and other entities. Its detection cuboid is configurable from Lua, up to 256 blocks within eight blocks of the sensor. Programs can query a snapshot with getEntities() or react to entry, exit, and reset events. Lua chooses what counts as a traveller; the sensor never exposes player UUIDs, names, equipment, inventories, or NBT.

How Cards Work

  1. Craft a Smart Card and Smart Card Reader.
  2. Connect the reader to a CC: Tweaked computer.
  3. Insert a blank card and issue its Lua program once.
  4. Insert the issued card into other readers and call commands such as authorize, validate, claim, or redeem.

Card programs receive their own file storage and may use familiar ComputerCraft APIs. Secure random bytes are also available inside the card runtime for programs that need nonces or secret material.

Build Ideas

Crafting

The crafting recipes for the Smart Card, Smart Card Reader, and Fingerprint Scanner

The image covers the original card and identity blocks. Gate Cabinet and Passage Sensor recipes are included in the text reference below.

Text recipe reference

Smart Card

Shapeless: Paper, Redstone Dust, Copper Ingot, and optional dyes.

Smart Card Reader

###
#R#
#C#

Fingerprint Scanner

SCS
RGR
SCS

Gate Cabinets (makes 2)

SGS
PRP
SCS

Passage Sensor

CGC
ROR
SSS

Requirements

Install CC SmartCard on the server. Multiplayer clients should also install it so its blocks, items, models, and translations are available.

Documentation

The full README and API reference covers issuing, reader events, every peripheral method, the card runtime API, file layout, and complete examples.

Source code · Issue tracker

Card privacy is a gameplay boundary, not formal protection against server administrators or other out-of-game access.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more