I want to make a fingerprint scanner in minecraft that lets players through a door. I want this to be realistic, so that the player actually has do to something with their hand in order to be let in. I don’t want to stray too far from the point, but this is (in a nutshell) how it works:
- The player rotates glass in an item frame.
- A command block system detects whether the player should be allowed in and, supposing the player is allowed in;
- The glass in the item frame turns green.
I have got part 2, but I need help with part one and three, so, in conclusion:
- How do I use
/testfor
to detect glass rotating in an item frame and; - How do I
/setblock
green_stained_glass_pane
?
/execute
or/data
, both also have wiki pages.