Wireless – What is it ?
17/08/2021 | 2min
Wireless transmission is the transfer of information between two or more points that do not use an redstone wire as a medium by which to perform the transfer.
How to create wireless command block
Redstone can wirelessly be 'transmitted' by placing a redstone block at a certain position with the command /setblock
.
Or Update a lever blockstate (on/off)
Example wireless with redstone block
With the command setblock, create a redstone block to activate a command block, then remove the redstone block and continue the chain of command
Step 1 | In first command block (transmitter)
this redstone block activate the receiver command block
setblock ~ ~ ~5 minecraft:redstone_block replace
Step 2 | In second command block (receiver)
this command block is the receiver, it removes the redstone block
setblock ~ ~ ~-1 minecraft:air replace
Step 3 | Others command
then execute the other commands
say enabled receiver.
Download the example, it is a structure file (.nbt format).
Example wireless with lever
With lever, require minimum 2 command block
Step 1 | In first command block (transmitter)
This command block is the transmitter, it set the power on true, for activate the receiver.
setblock ~ ~ ~5 minecraft:lever[powered=true] replace
Step 2 | In second command block (receiver)
This command block is the receiver, it set the power on false.
setblock ~ ~ ~-1 minecraft:lever[powered=false] replace
Step 3 | Others command
Then execute the other commands.
say enabled receiver.
Download the example, it is a structure file (.nbt format).