Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local valore = 0
- print("Inserire oggetti")
- print("")
- redstone.setOutput("top", true)
- print("Premere un tasto quando gli oggetti sono stati inseriti")
- os.pullEvent("key")
- redstone.setOutput("top", false)
- if redstone.getInput("left") == false then
- print("Nessun oggetto inserito")
- exit()
- end
- while redstone.getInput("left") == true do
- redstone.setOutput("back", true)
- sleep(0.25)
- redstone.setOutput("back", false)
- valore = valore+16
- sleep(0.25)
- print(valore)
- end
- print(valore)
Advertisement
Add Comment
Please, Sign In to add comment