No item.maxCount on 1.20.1 Fabric? #2251
-
Trying to make a storage system and don't particularly want to hardcode all the non-64 item stacks, the docs for getItemDetail show an item.maxCount value being used yet when I use textutils.serialize(item) it only displays name and count, erroring when I try to do anything with item.maxCount. Any workarounds that don't require me to hardcode non-64 item stacks? Can't seem to find any other posts on this. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Are these items coming from |
Beta Was this translation helpful? Give feedback.
Oh,
maxCount
should be there!Are these items coming from
getItemDetail()
orlist()
? The latter only returns the name, count and NBT hash, which sounds like what you're seeing.