Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local projectors = {}
- for i = 1, 4 do
- local p = peripheral.wrap("hybridprojector_"..(i-1))
- if p then
- p.setPeriod(0)
- p.setPosition(0, 0, 1.5)
- p.setScale(2.5, 0)
- projectors[i] = p
- end
- end
- p2 = peripheral.wrap("right")
- while true do
- stacks = p2.getAllStacks()
- count = math.min(#stacks, 4)
- for i = 1, count do
- stack = stacks[i].all()
- local p = projectors[i]
- if p then
- p.setImage(stack.id.."@"..stack.dmg)
- end
- end
- os.sleep(5)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement