Guest User

checkchest.lua

a guest
Jun 30th, 2023
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.16 KB | None | 0 0
  1. local chest = peripheral.find("minecraft:chest")
  2. for slot, item in pairs(chest.list()) do
  3.   print(("%d x %s in slot %d"):format(item.count, item.name, slot))
  4. end
  5.  
Advertisement
Add Comment
Please, Sign In to add comment