Here is a Tesla Coil in Minecraft With only Command Blocks! It is okay but not the best thing in the world because I am using Motion for the first time! It might be better if I used tp instead of motion then it would work perfectly fine! Oh well, I need to learn Motion anyways lol! I feel like I rant a bit too much in this video...
Please Subscribe and Like for more weird videos!
The command for this video might crash your world! Please make a BACKUP because I kinda blew up my entire world with this...
Also the armor stand is tagged teslacoil
repeat: execute as @e[tag=teslacoil] at @s run particle minecraft:electric_spark ~ ~ ~ .1 .1 .1 1 100 normal
repeat: execute as @e[tag=teslacoil] at @s facing entity @e[type=!minecraft:armor_stand,type=!minecraft:shulker_bullet,distance=..10] eyes run tp @s ~ ~ ~ ~ ~
repeat: execute at @e[tag=teslacoil] rotated ~ ~ if entity @e[type=!minecraft:armor_stand,type=!minecraft:shulker_bullet,distance=..10] run execute positioned 0.0 0 0.0 run summon minecraft:marker ^ ^0.01 ^0.25 {Tags:["direction"]}
conditional: execute as @e[tag=teslacoil] at @s unless entity @e[tag=teslashock] run summon minecraft:shulker_bullet ^ ^0.1 ^0.1 {Tags:["teslashock"]}
chain: execute at @e[tag=teslacoil] run data modify entity @e[tag=teslashock,limit=1,sort=nearest] Motion set from entity @e[tag=direction,limit=1] Pos
chain: kill @e[tag=direction]
repeat: execute as @e[tag=teslashock] at @s if entity @e[type=!minecraft:armor_stand,type=!minecraft:shulker_bullet,distance=..1.8] run summon minecraft:lightning_bolt
conditional: execute as @e[tag=teslashock] at @s if entity @e[type=!minecraft:armor_stand,type=!minecraft:shulker_bullet,distance=..1.8] run kill @s
Become A Member - / @vivtorsing
My Discord - / discord
Thanks for watching