Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Upper Miner
- --Schleifenfunktion fuer den
- --Upper Miner.
- --
- --iteration : WIe oft der Miner
- -- laufen soll
- local function mine(iteration)
- i = 1
- while i <= iteration do
- --Mining Well
- redstone.setOutput("right", true)
- os.sleep(15)
- redstone.setOutput("right", false)
- --1 Vorwaerts
- redstone.setOutput("left", true)
- os.sleep(2)
- redstone.setOutput("left", false)
- i = i + 1
- end
- end
- --Hauptprogram
- print("Anzahl durchlaeufe?:")
- input = read()
- num = tonumber(input)
- mine(num)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement