Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Piston Geheimtuer Standard Edition
- -- made by Nike622000
- --weitergabe nicht gestattet
- os.loadAPI("ocs/apis/sensor")
- sen = sensor.wrap("top")
- local name1 = "Im_Skajo"
- local name2 = "korbi11"
- local name3 = "Andi467"
- local name4 = "Melonekopp"
- local name5 = "IVrogrez"
- -- Output 1 = green wire
- -- Output 2 = yellow wire
- -- Computer Input "front"
- term.clear()
- term.setTextColor(colors.white)
- term.setCursorPos(1,1)
- print("Piston Geheimtuer made by Nike622000")
- term.setCursorPos(1,2)
- print("+----------------------------------+")
- term.setCursorPos(1,6)
- print("+----------------------------------+")
- term.setCursorPos(11,7)
- term.setTextColor(colors.gray)
- print("Standard Edition")
- x=2
- while true do
- i=0
- ziele = sen.getTargets()
- redstone.setOutput("back", false)
- for k,v in pairs(ziele) do
- if v.Name == "Player" then
- if k == name1 or k == name2 or k == name3 or k == name4 or k == name5 then
- i=1
- end
- end
- end
- if i == 1 and x == 2 then
- term.setTextColor(colors.lime)
- term.setCursorPos(15,4)
- print("Tuer auf")
- rs.setBundledOutput("front", colors.green)
- sleep(1)
- rs.setBundledOutput("front", 0)
- x=1
- end
- if i == 1 and x == 1 then
- term.setTextColor(colors.lime)
- term.setCursorPos(15,4)
- print("Tuer auf")
- rs.setBundledOutput("front", 0)
- end
- if i == 0 and x == 2 then
- term.setTextColor(colors.red)
- term.setCursorPos(15,4)
- print("Tuer zu ")
- rs.setBundledOutput("front", colors.combine(colors.green,colors.yellow))
- end
- if i == 0 and x == 1 then
- term.setTextColor(colors.red)
- term.setCursorPos(15,4)
- print("Tuer zu ")
- rs.setBundledOutput("front", colors.green)
- sleep(1)
- rs.setBundledOutput("front", colors.combine(colors.green,colors.yellow))
- x=2
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment