Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- is=peripheral.wrap("front") --interactive sorter
- pd=peripheral.wrap("left") --playerdetector
- cb=peripheral.wrap("back") --chatbox
- rednet.open("right") --wireless modem
- itemId=24274
- while true do
- event,player=os.pullEvent("player")
- items=is.list(1)
- if items~=nil then
- if items[itemId]~=nil then
- rednet.broadcast(player..";"..tostring(items[itemId]))
- cb.say("Danke "..player.." für deine "..tostring(items[itemId]).." Items")
- turtle.up()
- while turtle.suck() do
- turtle.dropUp()
- end
- turtle.down()
- else
- cb.say("Bitte Lege Popcorn in die Kiste :)")
- sleep(0.5)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement