Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.loadAPI("output")
- term.clear()
- term.setCursorPos(1,1)
- local arg = {...}
- blocks = math.floor(arg[1] / 9)
- ingots = arg[1] % 9
- color = arg[2]
- color2 = arg[3]
- function pourBlock()
- redstone.setOutput("left", true)
- --output.set(color, true)
- sleep(.1)
- --output.set(color, false)
- redstone.setOutput("left", false)
- end
- function pourIngot()
- redstone.setOutput("right", true)
- --output.set(color2, true)
- sleep(.1)
- --output.set(color2, false)
- redstone.setOutput("right", false)
- end
- print("Casting ",blocks," Blocks.")
- print("Casting ",ingots," Ingots.")
- for i=1, blocks do
- pourBlock()
- print("Casting Block #", i)
- sleep(16)
- end
- for i=1, ingots do
- pourIngot()
- print("Casting Ingot #", i)
- sleep(7)
- end
- print("Casting Complete.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement