1

I need Help with Command blocks.

RainPlusThunder's Avatar RainPlusThunder1/18/17 3:44 pm
1 emeralds 600 4
1/20/2017 5:21 am
Pepijn's Avatar Pepijn
So basically, I want to test all players inventorys for 3 coal and 4 iron ore. I tried /testfor@a {Inventory:[ {id:”minecraft:coal”,Count:3b “minecraft:iron_ore” , Count:4b}]} but it didn’t work :/ if you know how to do this or why mine doesn’t work, I would really appriciate it. I have also tried looking it up, but none of the commands worked. I am looking for an exact ammount, and not a minimum. Thank you for your help!
Posted by RainPlusThunder's Avatar
RainPlusThunder
Level 13 : Journeyman Miner
4

Create an account or sign in to comment.

4

1
01/18/2017 5:06 pm
Level 54 : Grandmaster Creeper Hugger
Caribik
Caribik's Avatar
/testfor @a {Inventory:[{id:minecraft:coal,Count:3b},{id:minecraft:iron_ore,Count:4b}]}

1
01/18/2017 4:54 pm
Level 13 : Journeyman Miner
RainPlusThunder
RainPlusThunder's Avatar
if I have 3 coal and 4 iron, will it still work if I have a diamond as well in my inventory?
1
01/20/2017 5:21 am
Level 57 : Grandmaster Cyborg
Pepijn
Pepijn's Avatar
Yes.
1
01/18/2017 4:48 pm
Level 70 : Legendary Engineer
Bertiecrafter
Bertiecrafter's Avatar
/testfor@a {Inventory:[{id:”minecraft:coal”,Count:3b},{id:“minecraft:iron_ore”,Count:4b}]}

Keep in mind that it has to be exact those numbers, so 4 coal and 4 iron_ore doesn't work.
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome