Files
Craftoria-ComputerCraft/automate_farming/database_main.lua
2025-05-12 14:08:20 +02:00

6 lines
438 B
Lua

local databaseStorage = peripheral.find("drive") or error("No drive attached", 0)
if (databaseStorage.isDiskPresent() == false or databaseStorage.getDiskLabel() ~= "Farming Data") then error("Missing or wrong drive", 0) end
local databasePath = databaseStorage.getMountPath()
local databaseModem = peripheral.find("modem") or error("No modem attached", 0)
local databaseStorage = peripheral.find("drive") or error("No modem attached", 0)