Advertisement
wolrah

Untitled

Jul 2nd, 2025
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.55 KB | Gaming | 0 0
  1. --Hello!
  2. for k,v in pairs(peripheral.getNames()) do
  3.     print(k.. " = "..v)
  4. end
  5.  
  6. print("Type: " .. peripheral.getType("right"))
  7.  
  8. local accumulator = peripheral.wrap("right")
  9. print("Current Fe: ".. accumulator.getEnergy())
  10. print("Maximum Fe: ".. accumulator.getCapacity())
  11. print("Percent:    ".. accumulator.getPercent())
  12.  
  13.  
  14. --for k,v in pairs(peripheral.getMethods("right")) do
  15. --    print(k.. " = "..v)
  16. --end
  17.  
  18. --print("Peripherals: " .. peripheral.getNames())
  19.  
  20. --local da = peripheral.wrap("right")
  21. --print("Peripheral: " .. da.getType())
  22.  
Tags: minecraft
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement