Hey guys I've been trying to get this to work all day and I can do it in Java edition no problem but how do I check if a Hopper has a specific item in one of its slots?
I've attempted Testforblock, Execute, etc. and I can't figure it out. Any help would be most appreciated
The only way you can really achieve that is with testforblocks but unfortunately the two blocks your comparing have to be identical. So if you want the 3rd item in the hopper slots to be specific but not care about the first two that is not possible. If you just want a command to activate when a specific item passes through a hopper this is possible.
Hey guys I've been trying to get this to work all day and I can do it in Java edition no problem but how do I check if a Hopper has a specific item in one of its slots?
I've attempted Testforblock, Execute, etc. and I can't figure it out. Any help would be most appreciated
The only way you can really achieve that is with testforblocks but unfortunately the two blocks your comparing have to be identical. So if you want the 3rd item in the hopper slots to be specific but not care about the first two that is not possible. If you just want a command to activate when a specific item passes through a hopper this is possible.
Oh okay, so I can make it like
testforblocks-359 65 -217 -359 65 -217 -359 65 -216
to basically compare the block at -359 65 -217 and the block at -359 65 -216 and it will compare the items in it too?
Hey that helped me out so much, thank you!
No problem I'm glad it helped! ^^