#(Daxz) Checking if player has enough of an item.
25 messages · Page 1 of 1 (latest)
(Daxz) Checking if player has enough of an item.
Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
You can block this bot if you don't want to see these messages, I won't mind.
<@&525394568410038282>
!t inventory.contains_item.quantity
Returns whether the inventory contains a certain number of items that match the specified item matcher.
Uses the system behind !language Advanced Object Matching.
ElementTag(Boolean)
!t player.inventory
Returns a InventoryTag of the player's current inventory.
Works with offline players.
InventoryTag
ah thanks
np
I’m not sure, probably inventorytag.find_all_items, but there’s most likely a better solution
!t inventorytag.find_all_items
Returns a list of the location of all slots that contains an item that matches the given item matcher.
Returns an empty list if there's no match.
Uses the system behind !language Advanced Object Matching.
ListTag
!t <InventoryTag.quantity_item[(<matcher>)]>
Returns the combined quantity of itemstacks that match an item matcher if one is specified,
or the combined quantity of all itemstacks if one is not.
Uses the system behind !language Advanced Object Matching.
ElementTag(Number)
think this si it