Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local chest = peripheral.find("minecraft:chest")
- local item = chest.getItemDetail(1)
- if not item then print("No item") return end
- print(("%s (%s)"):format(item.displayName, item.name))
- print(("Count: %d/%d"):format(item.count, item.maxCount))
- for _, group in pairs(item.itemGroups) do
- print(("Group: %s"):format(group.displayName))
- end
- if item.damage then
- print(("Damage: %d/%d"):format(item.damage, item.maxDamage))
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement