Hello! First you are going to need 4 things:
- Bow
- Repeating Command Block (type /give @s repeating_command_block
- Redstone Comparator
- Redstone Repeater
First by placing a command block, then 4 blocks away place another one. Get the comparators and repeaters and make this setup:
![](https://kenhoang.net/wp-content/uploads/2022/07/image-13.png)
![](https://kenhoang.net/wp-content/uploads/2022/07/image-19.png)
Now in the first command block, type this:
/testfor @e [type=arrow,r=100]
![](https://kenhoang.net/wp-content/uploads/2022/07/image-15-1024x604.png)
Now, on your Minecraft, press on the green arrow.
![](https://kenhoang.net/wp-content/uploads/2022/07/image-16-1024x609.png)
Then type this:
![](https://kenhoang.net/wp-content/uploads/2022/07/image-17-1024x604.png)
Finally, on the last command block, do this:
![](https://kenhoang.net/wp-content/uploads/2022/07/image-18-1024x605.png)
Now shoot the bow, make sure it’s far from the machine, or it’ll destroy it. Don’t do it too far, or the command block won’t work.
ALL COMMANDS:
- /testfor @e [type=arrow,r=100]
- /execute @e [type=arrow,r=100] ~~~ summon tnt ~~~
- kill @e [type=arrow,r=100]