Files
scriptLua/getStorageEnergy.lua
2025-08-02 19:28:13 +02:00

8 lines
232 B
Lua

local typeOfPeripheral = peripheral.getType("left")
print("Type of peripheral on the left: " .. typeOfPeripheral)
local storageEnergy = typeOfPeripheral.getStoredEnergy() --- IGNORE ---
print("Storage energy: " .. storageEnergy)