Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function wood()
- redstone.setOutput("back",false)
- sleep(1)
- redstone.setOutput("left",true)
- sleep(0.5)
- redstone.setOutput("left",false)
- sleep(1)
- redstone.setOutput("back",true)
- end
- function crafting()
- redstone.setOutput("back",false)
- sleep(1)
- redstone.setOutput("right",true)
- sleep(0.5)
- redstone.setOutput("right",false)
- sleep(1)
- redstone.setOutput("back",true)
- end
- wood()
- statut=wood
- while true do
- event = os.pullEvent("redstone")
- if redstone.getInput("front") and statut == wood then
- crafting()
- statut=craft
- end
- if redstone.getInput("front") and statut == craft then
- wood()
- statut=wood
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement