Advertisement
ecco7777

CC Sammelevent item Zaeler Ultimate

Jan 9th, 2017
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.60 KB | None | 0 0
  1. is=peripheral.wrap("front") --interactive sorter
  2. pd=peripheral.wrap("left") --playerdetector
  3. cb=peripheral.wrap("back") --chatbox
  4. rednet.open("right") --wireless modem
  5. itemId=24274
  6. while true do
  7. event,player=os.pullEvent("player")
  8. items=is.list(1)
  9.     if items~=nil then
  10.         if items[itemId]~=nil then
  11.         rednet.broadcast(player..";"..tostring(items[itemId]))
  12.         cb.say("Danke "..player.." für deine "..tostring(items[itemId]).." Items")
  13.         turtle.up()
  14.             while turtle.suck() do
  15.             turtle.dropUp()
  16.             end
  17.         turtle.down()
  18.         else
  19.         cb.say("Bitte Lege Popcorn in die Kiste :)")
  20.         sleep(0.5)
  21.         end
  22.     end
  23. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement