-
Notifications
You must be signed in to change notification settings - Fork 24
RFID_reader
MrDiamondDog edited this page Jun 26, 2022
·
7 revisions
RFID Reader Block allows you to read RFID Cards in a players inventory
Can be used as Upgrade for Drones/Microcontrollers/Robots/Tablets
rfid = require("component").os_rfidreader
-- Scans for all entites for RFIDs within range default is 16 blocks
rfid.scan(optional int:1-64)
If you specify an integer it will scan that area, large areas can cause lag.
This will queue a signal with the name rfidData
4 parameters will be returned,: uuid, playerName, distance, data
.
It will also return the data in a table.
The max range is configurable in the mod's config file, though the maximum is 64 blocks.
output = component.os_rfidReader.scan(10)
for k, v in pairs(output[1]) do
print(k, v)
end
It would return:
uuid (uuid)
data (data)
player (player)
range (range)
- Alarm
- Biometric Reader
- Card Writer
- Data Block
- Door Controller
- Energy Turret
- Entity Detector
- Keypad
- Magnetic Card Reader
- NanoFog Terminal
- RFID Reader
- Rolldoor
- Rolldoor Controller
- Security Terminal
- Security Doors