Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- drive = peripheral.wrap("drive_0") -- if you play minecraft with create and computercraft mod and
- axePlus = "Left" --want know what this does pls contact me on discord (KIRITO__KAZUTO#4360)
- axeMinus = "Right"
- ySelect = "Bottom"
- tool = "top"
- speed = 1
- file = fs.open("drive/test1.mcc","r")
- if true == false then
- println("ERROR : no data")
- else
- step = 1
- active = true
- while active do
- data = file.readLine()
- if data == "end" then
- active = false
- print("done")
- else
- if(data == "+") then
- redstone.setOutput(axePlus,true)
- sleep(0.1)
- redstone.setOutput(axePlus,false)
- end
- if(data == "-") then
- redstone.setOutput(axeMinus,true)
- sleep(0.1)
- redstone.setOutput(axeMinus,false)
- end
- if(data == "y") then
- redstone.setOutput(ySelect,true)
- end
- if(data == "x") then
- redstone.setOutput(ySelect,false)
- end
- if(data == "toolPulse") then
- redstone.setOutput(tool,true)
- sleep(0.1)
- redstone.setOutput(tool,false)
- end
- if(data == "toolOn") then
- redstone.setOutput(tool,true)
- end
- if(data == "toolOff") then
- redstone.setOutput(tool,false)
- end
- step = step + 1
- sleep(speed)
- end
- end
- end
- redstone.setOutput(ySelect,false)
Add Comment
Please, Sign In to add comment