Advertisement
Guest User

3

a guest
Feb 24th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.18 KB | None | 0 0
  1. local drive = peripheral.wrap("bottom")
  2. local item = drive.getStackInSlot(1)
  3. if item then
  4. data = item.id
  5. string.gsub(data,":(.*)", function(a) print(a) end )
  6. else
  7. print("Empty")
  8. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement