Advertisement
ecco7777

CC Questbot

Aug 27th, 2016
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.85 KB | None | 0 0
  1. p=peripheral.wrap("front")
  2. c=peripheral.wrap("top")
  3. s=peripheral.wrap("bottom")
  4. --ejector="right"
  5. --extract(direction,id,outputDirection,amount)
  6. while true do
  7.     event, arg1, arg2, arg3, arg4 = os.pullEvent()
  8.     if event=="player" then
  9.     player=arg1
  10.     c.say("Stacey: Hallo "..player.." kannst du mir einen Netherstern geben? Ich gebe dir dafür was tolles :D. Schreibe: bin bereit Stacey   in den Chat wenn ich einen spawnen soll :D")
  11.     end
  12.    
  13.     if event=="chat" then
  14.     player=arg1
  15.     message=arg2
  16.     if message=="bin bereit Stacey" then
  17.     c.say("Stacey: Der Wither ist dort!")
  18.     rs.setOutput("back",true)
  19.     sleep(1)
  20.     rs.setOutput("back",false)
  21.     end
  22.     end
  23.  
  24.     if event=="isort_item" then
  25.     id=arg1
  26.     if id==399 then
  27.     c.say("Stacey: Danke! hier deine Belohnung :)")
  28.     s.sort(5)
  29.     rs.setOutput("right",true)
  30.     sleep(1)
  31.     rs.setOutput("right",false)
  32.     end
  33.     end
  34.  
  35. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement