Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ListeMob= {"Mouton", "Enderman", "Blaze", "Blize", "Wither","Replicator"}
- local ListeBin= {1,2,4,8,16,32,64,128}
- local iOn = false
- while true do
- term.clear()
- term.setCursorPos(1, 1)
- if iOn then
- print("Extraction des Safari Net ? (Y/N)")
- print(" ")
- result = read()
- if (result=="Y") then
- --/envois signal off
- redstone.setBundledOutput("back",32768)
- sleep(3)
- redstone.setBundledOutput("back",0)
- iOn = false
- redstone.setOutput("bottom", iOn )
- elseif(result=="N") then
- print("")
- else
- print("Vous devez ecrire Y ou N :")
- result = read()
- end
- else
- print("Choix du Mob:")
- print(" ")
- for key,value in pairs( ListeMob) do
- print(tostring(key)..": "..tostring(value))
- end
- print(" ")
- choix = tonumber(read())
- redstone.setBundledOutput("back", ListeBin[choix])
- sleep(3)
- redstone.setBundledOutput("back",0)
- iOn = true
- redstone.setOutput("bottom", iOn )
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement