but if i have more then 2 in a stack it will say that i did not match the required data structure. But if i have separate stacks of 2 it'll work, any ideas?
That's not the problem, the problem is if i had 3 or more iron it wouldn't take 2 from the stack. It has to be 2 exactly. I want it to take 2 out of the stack even if i had 64
So i'm making a shop and i want to detect a minimum of 2 iron this is the command
testfor @p {Inventory:[{id:minecraft:iron_ingot,Count:2b}]}
but if i have more then 2 in a stack it will say that i did not match the required data structure. But if i have separate stacks of 2 it'll work, any ideas?
You can clear 2 iron ingots and give them again, if the clear succedees, then you know they had 2 items
Op in #minecrafthelp, JIRA Helper in bugs.mojang.com, Chat moderator in Minecraft Forums, Twitch/Mixer mod
How to get a dxdiag
If I helped you, dont forget to click the thanks arrow!
That's not the problem, the problem is if i had 3 or more iron it wouldn't take 2 from the stack. It has to be 2 exactly. I want it to take 2 out of the stack even if i had 64
/clear lets you set how much items you want to clear
Op in #minecrafthelp, JIRA Helper in bugs.mojang.com, Chat moderator in Minecraft Forums, Twitch/Mixer mod
How to get a dxdiag
If I helped you, dont forget to click the thanks arrow!