Advertisement
Wassaa

printFields

Jun 25th, 2025 (edited)
404
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local chest = peripheral.wrap("right")
  2. local item = chest.getItemDetail(1)
  3. if not item then
  4.   print("No item")
  5.   return
  6. end
  7.  
  8. print("Fields in item slot 1:")
  9. for key in pairs(item) do
  10.   print("– "..key)
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement