NielsUtrecht

disco

Sep 8th, 2013
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.32 KB | None | 0 0
  1. if(not os.loadAPI("hydraApi")) then
  2.     error("Could not load hydraApi")
  3. end
  4.  
  5. local glows = hydraApi.getAllPeripherals("glowstone_illuminator")
  6.  
  7. while true do
  8.     for k,glow in pairs(glows) do
  9.         local color = math.random (256*256*256)
  10.         color = string.format("0x%X", color)
  11.         glow.setColor(color)
  12.     end
  13.     os.sleep(0.1)
  14. end
Advertisement
Add Comment
Please, Sign In to add comment