From b259cc5fc61f7810c5685e4771d6548852d48f86 Mon Sep 17 00:00:00 2001 From: Neoblacks Date: Sat, 2 Aug 2025 19:28:13 +0200 Subject: [PATCH] get Energy --- getStorageEnergy.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/getStorageEnergy.lua b/getStorageEnergy.lua index 078ae5b..66f1a5c 100644 --- a/getStorageEnergy.lua +++ b/getStorageEnergy.lua @@ -2,3 +2,6 @@ local typeOfPeripheral = peripheral.getType("left") print("Type of peripheral on the left: " .. typeOfPeripheral) +local storageEnergy = typeOfPeripheral.getStoredEnergy() --- IGNORE --- + +print("Storage energy: " .. storageEnergy)