Advertisement
Guest User

test

a guest
Sep 25th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.44 KB | None | 0 0
  1. local m = peripheral.wrap("left")
  2. local c = peripheral.wrap("right")
  3. local i = 1
  4. local o = 1
  5.  
  6. while true do
  7.   if rs.getInput("back") == true then
  8.     if i == 1 then  
  9.       c.say("Es ist ein Spieler auf deiner Welt")
  10.       i = i + 1
  11.       o = 1
  12.     else
  13.       sleep(1)
  14.     end
  15.   else
  16.     if o == 1 then
  17.       c.say("Du bist alleine auf deiner Welt")
  18.       o = o + 1    
  19.       i = 1
  20.     else
  21.       sleep(1)    
  22.     end
  23.   end
  24. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement