1

How to detect which block is on a players head

That_PricklyPair's Avatar That_PricklyPair11/5/16 5:44 pm
1 emeralds 489 4
11/7/2016 6:42 pm
That_PricklyPair's Avatar That_PricklyPair
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.
Posted by That_PricklyPair's Avatar
That_PricklyPair
Level 1 : New Miner
1

Create an account or sign in to comment.

4

1
11/07/2016 6:42 pm
Level 1 : New Miner
That_PricklyPair
That_PricklyPair's Avatar
Thanks. For some reason the comparator wasn't working before.
1
11/07/2016 6:05 pm
Level 16 : Journeyman Engineer
BannerDesigns
BannerDesigns's Avatar
Put a comparator facing outwards and then put a command block in front of that.
1
11/07/2016 6:02 pm
Level 1 : New Miner
That_PricklyPair
That_PricklyPair's Avatar
Now how would I say, "If player's head is crafting table=true, then ____"?
1
11/05/2016 8:33 pm
Level 23 : Expert Engineer
Heklo
Heklo's Avatar
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"}]
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome