1
How to detect which block is on a players head
Could anyone help me by telling me how to detect what minecraft block is on a players head? For example, detecting a crafting table on a players head.
Create an account or sign in to comment.
4
1
Thanks. For some reason the comparator wasn't working before.
1
Put a comparator facing outwards and then put a command block in front of that.
1
Now how would I say, "If player's head is crafting table=true, then ____"?
1
Simple if you're testing for a very specific block. If you want to test for just a crafting table, use this:
Click to reveal
/testfor @a {Inventory:[{Slot:103b,id:"minecraft:crafting_table"}]