Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- redstone.setOutput("bottom", false)
- redstone.setOutput("top", false)
- m = peripheral.wrap("back")
- event, playerName = os.pullEvent("player")
- print(playerName)
- if playerName == "Generalpickaxe" then
- redstone.setOutput("top", true)
- sleep(3)
- redstone.setOutput("top", false)
- else
- redstone.setOutput("bottom",true)
- sleep(10)
- redstone.setOutput("bottom",false)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement