Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(not os.loadAPI("hydraApi")) then
- error("Could not load hydraApi")
- end
- local glows = hydraApi.getAllPeripherals("glowstone_illuminator")
- while true do
- for k,glow in pairs(glows) do
- local color = math.random (256*256*256)
- color = string.format("0x%X", color)
- glow.setColor(color)
- end
- os.sleep(0.1)
- end
Advertisement
Add Comment
Please, Sign In to add comment