Advertisement
ecco7777

CC Chatgesteuerte tür

Jul 15th, 2017
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.49 KB | None | 0 0
  1. p=peripheral.wrap("top")
  2. while true do
  3. event,arg1,player,arg3,command = os.pullEvent("glasses_chat_command")
  4.  
  5. if string.find(command, "Schließe die Türen") or string.find(command, "schließe die Türen") then
  6.   redstone.setOutput("right", true)
  7.   sleep(3)
  8.   redstone.setOutput("right", false)
  9.  end
  10. if string.find(command, "Öffne die Türen") or string.find(command, "öffne die Türen") then
  11.   redstone.setOutput("right", true)
  12.   sleep(3)
  13.   redstone.setOutput("right", false)
  14.  end
  15.  
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement