Unleash the true power of lightning! To craft, throw a iron sword and a nether star on the ground. While holding, lightning will strike any entities in a radius of 10 blocks every 3 seconds. Made using MrGarretto's Command Generator!
How to install
How to import this command into your world
First, you must give yourself a command block (If you are on a server, you must be 'OP'ed, and have access to /gamemode 1)
To get a command block, type
/give @p command_block in the chat.
Once you have a command block, right click it to open it's GUI.
Now, you must copy and paste the command from your browser into the game. Select the entire command from below, then right click and press 'copy'.
Next, go back to your minecraft world, and paste the command you just copied into the command block. There are a few different keys that may be used to do this, depending on your keyboard. The most common ones are 'CTRL + V', 'COMMAND + V', or 'STRG + V'
Finally, you can press done to exit the GUI, and execute the command block by powering it with a redstone block, a lever, or any thing you can get your grubby hands on. Just make sure you don't place it on top of the command block, or the machine will not be installed!
Show source commands
INIT:/tellraw @a {text:"Command made by sumdumdude!",color:gold}
INIT:/tellraw @a {text:"Made using ",color:green,extra:[{text:"MrGarretto's Command Generator!",color:gold}]}
#scoreboards
INIT:/scoreboard objectives add crafting dummy
INIT:/scoreboard objectives add lightning dummy
INIT:/scoreboard objectives add hassword dummy
#crafting
/scoreboard players set @e[type=Item] crafting 1 {Item:{id:minecraft:iron_sword}}
/scoreboard players set @e[type=Item] crafting 2 {Item:{id:minecraft:nether_star}}
/execute @e[score_crafting_min=1,score_crafting=1] ~ ~ ~ execute @e[score_crafting_min=2,score_crafting=2,r=1] ~ ~ ~ summon Item ~ ~ ~ {Item:{id:minecraft:diamond_sword,tag:{ench:[{id:16,lvl:19}],display:{Name:Lightning Sword}},Count:1}}
/execute @e[score_crafting_min=1,score_crafting=1] ~ ~ ~ execute @e[score_crafting_min=2,score_crafting=2,r=1] ~ ~ ~ kill @e[score_crafting_min=1,score_crafting=2]
#hassword
/scoreboard players set @e hassword 0
/scoreboard players set @e hassword 1 {Inventory:[0:{id:minecraft:diamond_sword,tag:{ench:[{id:16,lvl:19}],display:{Name:Lightning Sword}},Slot:0b}],SelectedItemSlot:0}
/scoreboard players set @e hassword 1 {Inventory:[0:{id:minecraft:diamond_sword,tag:{ench:[{id:16,lvl:19}],display:{Name:Lightning Sword}},Slot:1b}],SelectedItemSlot:1}
/scoreboard players set @e hassword 1 {Inventory:[0:{id:minecraft:diamond_sword,tag:{ench:[{id:16,lvl:19}],display:{Name:Lightning Sword}},Slot:2b}],SelectedItemSlot:2}
/scoreboard players set @e hassword 1 {Inventory:[0:{id:minecraft:diamond_sword,tag:{ench:[{id:16,lvl:19}],display:{Name:Lightning Sword}},Slot:3b}],SelectedItemSlot:3}
/scoreboard players set @e hassword 1 {Inventory:[0:{id:minecraft:diamond_sword,tag:{ench:[{id:16,lvl:19}],display:{Name:Lightning Sword}},Slot:4b}],SelectedItemSlot:4}
/scoreboard players set @e hassword 1 {Inventory:[0:{id:minecraft:diamond_sword,tag:{ench:[{id:16,lvl:19}],display:{Name:Lightning Sword}},Slot:5b}],SelectedItemSlot:5}
/scoreboard players set @e hassword 1 {Inventory:[0:{id:minecraft:diamond_sword,tag:{ench:[{id:16,lvl:19}],display:{Name:Lightning Sword}},Slot:6b}],SelectedItemSlot:6}
/scoreboard players set @e hassword 1 {Inventory:[0:{id:minecraft:diamond_sword,tag:{ench:[{id:16,lvl:19}],display:{Name:Lightning Sword}},Slot:7b}],SelectedItemSlot:7}
/scoreboard players set @e hassword 1 {Inventory:[0:{id:minecraft:diamond_sword,tag:{ench:[{id:16,lvl:19}],display:{Name:Lightning Sword}},Slot:8b}],SelectedItemSlot:8}
/scoreboard players set @e hassword 1 {Inventory:[0:{id:minecraft:diamond_sword,tag:{ench:[{id:16,lvl:19}],display:{Name:Lightning Sword}},Slot:9b}],SelectedItemSlot:9}
INIT:/scoreboard players set @a lightning 60
/execute @a[score_lightning_min=1,score_lightning=1,score_hassword_min=1] ~ ~ ~ execute @e[r=10,rm=1] ~ ~ ~ summon LightningBolt
/scoreboard players set @a[score_hassword_min=1,score_lightning_min=1,score_lightning=1] lightning 60
/scoreboard players remove @a[score_hassword_min=1,score_lightning_min=1] lightning 1
/summon FallingSand ~ ~1 ~ {Block:redstone_block,Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:fill ~ ~0 ~1 ~ ~-14 ~1 redstone_block},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:setblock ~ ~3 ~1 stone},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:setblock ~ ~4 ~ command_block 0 replace {Command:fill ~ ~2 ~ ~ ~-18 ~1 air}},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:/scoreboard players set @a lightning 60},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:/scoreboard objectives add hassword dummy},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:/scoreboard objectives add lightning dummy},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:/scoreboard objectives add crafting dummy},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:/tellraw @a {text:"Made using ",color:green,extra:[{text:"MrGarretto's Command Generator!",color:gold}]}},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:/tellraw @a {text:"Command made by sumdumdude!",color:gold}},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:/summon FallingSand ~2 ~ ~-1 {Block:command_block,TileEntityData:{Command:/scoreboard players remove @a[score_hassword_min=1,score_lightning_min=1] lightning 1},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:/execute @a[score_lightning_min=1,score_lightning=1,score_hassword_min=1] ~ ~ ~ execute @e[r=10,rm=1] ~ ~ ~ summon LightningBolt},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:/scoreboard players set @e hassword 1 {Inventory:[0:{id:minecraft:diamond_sword,tag:{ench:[{id:16,lvl:19}],display:{Name:Lightning Sword}},Slot:9b}],SelectedItemSlot:9}},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:/scoreboard players set @e hassword 1 {Inventory:[0:{id:minecraft:diamond_sword,tag:{ench:[{id:16,lvl:19}],display:{Name:Lightning Sword}},Slot:7b}],SelectedItemSlot:7}},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:/scoreboard players set @e hassword 1 {Inventory:[0:{id:minecraft:diamond_sword,tag:{ench:[{id:16,lvl:19}],display:{Name:Lightning Sword}},Slot:5b}],SelectedItemSlot:5}},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:/scoreboard players set @e hassword 1 {Inventory:[0:{id:minecraft:diamond_sword,tag:{ench:[{id:16,lvl:19}],display:{Name:Lightning Sword}},Slot:3b}],SelectedItemSlot:3}},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:/scoreboard players set @e hassword 1 {Inventory:[0:{id:minecraft:diamond_sword,tag:{ench:[{id:16,lvl:19}],display:{Name:Lightning Sword}},Slot:1b}],SelectedItemSlot:1}},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:/scoreboard players set @e hassword 0},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:/execute @e[score_crafting_min=1,score_crafting=1] ~ ~ ~ execute @e[score_crafting_min=2,score_crafting=2,r=1] ~ ~ ~ kill @e[score_crafting_min=1,score_crafting=2]},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:/scoreboard players set @e[type=Item] crafting 2 {Item:{id:minecraft:nether_star}}},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:},Time:1,}}}}}}}}}}}}},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:/summon FallingSand ~2 ~ ~1 {Block:command_block,TileEntityData:{Command:/scoreboard players set @a[score_hassword_min=1,score_lightning_min=1,score_lightning=1] lightning 60},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:/scoreboard players set @e hassword 1 {Inventory:[0:{id:minecraft:diamond_sword,tag:{ench:[{id:16,lvl:19}],display:{Name:Lightning Sword}},Slot:8b}],SelectedItemSlot:8}},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:/scoreboard players set @e hassword 1 {Inventory:[0:{id:minecraft:diamond_sword,tag:{ench:[{id:16,lvl:19}],display:{Name:Lightning Sword}},Slot:6b}],SelectedItemSlot:6}},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:/scoreboard players set @e hassword 1 {Inventory:[0:{id:minecraft:diamond_sword,tag:{ench:[{id:16,lvl:19}],display:{Name:Lightning Sword}},Slot:4b}],SelectedItemSlot:4}},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:/scoreboard players set @e hassword 1 {Inventory:[0:{id:minecraft:diamond_sword,tag:{ench:[{id:16,lvl:19}],display:{Name:Lightning Sword}},Slot:2b}],SelectedItemSlot:2}},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:/scoreboard players set @e hassword 1 {Inventory:[0:{id:minecraft:diamond_sword,tag:{ench:[{id:16,lvl:19}],display:{Name:Lightning Sword}},Slot:0b}],SelectedItemSlot:0}},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:/execute @e[score_crafting_min=1,score_crafting=1] ~ ~ ~ execute @e[score_crafting_min=2,score_crafting=2,r=1] ~ ~ ~ summon Item ~ ~ ~ {Item:{id:minecraft:diamond_sword,tag:{ench:[{id:16,lvl:19}],display:{Name:Lightning Sword}},Count:1}}},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:/scoreboard players set @e[type=Item] crafting 1 {Item:{id:minecraft:iron_sword}}},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:},Time:1,}}}}}}}}}}}},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:gamerule commandBlockOutput false},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:fill ~2 ~-2 ~ ~2 ~10 ~ redstone_block},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:setblock ~2 ~-1 ~-1 command_block 0 replace {Command:fill ~ ~ ~1 ~ ~12 ~1 stone 0 replace redstone_block}},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:setblock ~2 ~ ~1 command_block 0 replace {Command:fill ~ ~ ~-1 ~ ~12 ~-1 redstone_block 0 replace stone}},Time:1,Riding:{id:FallingSand,Block:stone,Time:1}}}}}}}}}}}}}}}}}