TransWikia.com

how to check if a block is there and if so emit a redstone signal in Minecraft 1.12.2 vanilla

Arqade Asked by anomanous on September 26, 2020

im trying to make it so a command block emits a redstone signal if a block is there. im trying to do this in Minecraft 1.12.2.

One Answer

Read about the "testforblock" command: https://www.digminecraft.com/game_commands/testforblock_command.php

You can have the command block say /testforblock <x> <y> <z> <block>

Heres an example: /testforblock ~ ~-1 ~ diamond_ore

The /testforblock command works in 1.12.2

To have it continuously check, set it to repeat.

To detect when it has found the block, you can have a comparator running out from the command block.

Answered by darthvader1925 on September 26, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP