turns out that /testfor isn't super useful for this, but the scoreboard can be manipulated to achieve the same goal. I'll leave this here in case anyone else needs to find it for the same, or similar, reasons.
I run a super small 1.11 forge server for me and my friends, and I'm trying to set up a shop. I've created the 'purchase' commands correctly since all i had to do was test for a minimum score. However, to sell, I need them to have a minimum number of items in their inventory.
The command that I HAVE found checks for an exact number:
what I need is for it to check for someone who has '3 or more,' for example.
Another note: I know zip about coding. Everything I've gotten, so far, is from online research and trial/error. So some detail would be much appreciated. For instance, what does the 'b' listed next to the count # specify/mean?
0
I've found a solution (though it took forever): http://www.minecraftforum.net/forums/minecraft-discussion/redstone-discussion-and/2164463-test-for-multiple-items-in-someones-inventory?comment=7
turns out that /testfor isn't super useful for this, but the scoreboard can be manipulated to achieve the same goal. I'll leave this here in case anyone else needs to find it for the same, or similar, reasons.
0
Hi, first post here, so i'll get right to it:
I run a super small 1.11 forge server for me and my friends, and I'm trying to set up a shop. I've created the 'purchase' commands correctly since all i had to do was test for a minimum score. However, to sell, I need them to have a minimum number of items in their inventory.
The command that I HAVE found checks for an exact number:
what I need is for it to check for someone who has '3 or more,' for example.
Another note: I know zip about coding. Everything I've gotten, so far, is from online research and trial/error. So some detail would be much appreciated. For instance, what does the 'b' listed next to the count # specify/mean?
Thanks in advance!