Arqade Asked on May 2, 2021
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:
I have got part 2, but I need help with part one and three, so, in conclusion:
/testfor
to detect glass rotating in an item/setblock
green_stained_glass_pane
?Answered by Devan S. on May 2, 2021
With command blocks you can use this setup:
/testfor @a <coordinates of block in front of your "scanner".
You can then have a comparator run out of it and into the second command block.
/testforblock <position of wool block>
Then have a comparator running out of two redstone dust one piece to the left of the first piece and one to the right of the first piece.
/setblock <coordinates of were the wool should be> wool <data value of the color you want>
The right one should say:
/setblock <coordinates of the left of the wool> concrete <data value of lime>
and the front one should say
/setblock <the block under the block under the door> redstone_block
Out of the front and right block should be a comparator 2 repeaters set to four tick and another repeater set to 2 ticks for a 1 second delay attached to both of those should be a command_block. The right one should say:
/setblock <where the lime concrete is> concrete <data value for red>
The front one should say:
/setblock <the block under the block under the door air.
Answered by Aiden Read on May 2, 2021
For 1, you can either use a /data get entity @e[type=item_frame,limit=1] ItemRotation
or a comparator.
For 3, you can simply just use /kill @e [type=item_frame,limit=1]
and then /summon ItemFrame <x> <y> <z> {Direction:facingb,Item:{green_stained_glass_pane}}
replacing "facing" (leave the letter b as it is) with the way it is facing (0=south, 1=west, 2=north, and 3=east.)
Also, item frames count as entities, not as blocks.
Answered by Sayne on May 2, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP