",color:gold}]}},Time:1,Riding:{id:FallingSand,Block:command_block,TileEntityData:{Command:/tellraw @a {text:"Command made by sumdumdude! While holding, lightning will strike any entities in a radius of 10 blocks every 3 seconds. It works with my. I'm trying to figure out how to make a lightning sword by sensing the custom tag which is Lightning:1a, I've made the sword no problem but I don't know how to add the lightning when I hit a mob, Sword Command:/give @p minecraft:diamond_sword{display:{Name:'[{"text":"St","color":"dark_blue","bold":true},{"text":"o","color":"dark_aqua","bold":true},{"text":"rm B","color":"aqua","bold":true},{"text":"eg","color":"dark_aqua","bold":true},{"text":"in","color":"dark_blue","bold":true},{"text":"n","color":"dark_aqua","bold":true},{"text":"er","color":"aqua","bold":true}]',Lore:['{"text":"Sword With the Power of 100 Volts","color":"white","bold":true}','{"text":"-Damage 5","color":"gray","italic":false}','{"text":"-Speed 5","color":"gray","italic":false}','[{"text":"+","color":"gray","italic":false},{"text":"F","color":"red","italic":false},{"text":"i","color":"gold","italic":false},{"text":"r","color":"yellow","italic":false},{"text":"e","color":"white","italic":false}]','[{"text":"+","color":"gray","italic":false},{"text":"Li","color":"dark_blue","italic":false},{"text":"g","color":"dark_aqua"},{"text":"htni","color":"aqua"},{"text":"ng","color":"dark_aqua"}]']},HideFlags:63,Unbreakable:1b,Lightning:1a,AttributeModifiers:[{AttributeName:"generic.movementSpeed",Name:"generic.movementSpeed",Amount:0.05,Operation:0,UUIDLeast:88853,UUIDMost:986398},{AttributeName:"generic.attackDamage",Name:"generic.attackDamage",Amount:5,Operation:0,UUIDLeast:472273,UUIDMost:441222}]} 1. you can use the custom tag in combination with the built-in scoreboard criteria for detecting sword usage. https://fonts.googleapis.com/css?family=Roboto:400%2C400i%2C700%2C700i|Material+Icons&display=swap,//www.planetminecraft.com/css/images.css?v=DL5336loK96DiBKaengSL-i0hO4Bip0V8OqVQm_7pu67DI5f,//www.planetminecraft.com/css/style.css?v=P1wzeFbWMX3F9m5hHfjrjsoHGYLog9jEAiC1lOKJBsfLgaBf,//www.planetminecraft.com/css/editor.css?v=dsvQp9aFSuYT0NkL84iANXCsINWrKZV-fInc_ho8y1fIs5pf, Lightning Swords 3.0 In only One Command! Even if you don't post your own creations, we appreciate feedback on ours. The 3rd Lightning Swords Module Is Finally Here with less lag and a better crafting system. and finally, attach a chain (always active,conditional) command block to the repeating one and paste this in: /scoreboard players reset @a[scores={sword=1..}] sword. Minecraft Map, Redstone Calculator : Multiplication - V0, sugar cane farm + cactus farm + warehouse. Anything You hit with this sword will be struck with lightning, including players, monsters, and animals. Click Here For The Command Made using MrGarretto's Command Generator! Yes, that worked, btw to anyone trying this yourself and questioning why it's not working its cause at the tag part in the repeating command block is supposed to be Lightning:1a and mega forgot to put that in which is fine, sorry if that sounds mean. /scoreboard objectives add sword minecraft.used:minecraft.diamond_sword. You successfully reported this submission. All rights reserved. A place for all things about commands and command blocks in vanilla Minecraft; to share, to question, to discuss, and more! All creations copyright of the creators. It works with my Special Crafting(link here) module for the best result. 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), INIT:/tellraw @a {text:"Command made by sumdumdude! Just create the objective: /scoreboard objectives add sword minecraft.used:minecraft.diamond_sword. Sorry for the non code text. I cant test this out rn but try this command instead of the first one: /execute as @a[nbt={SelectedItem:{id:"minecraft:golden_hoe"}}] if score @s light matches 1 at @s run summon minecraft:lightning_bolt ^ ^ ^6. © 2010 - 2020 Planetminecraft.com. Unleash the true power of lightning! and place down a repeating (always active) command block and paste this in: /execute as @a[scores={sword=1..},nbt={SelectedItem:{tag:{Lightning:1}}}] at @s run execute at @e[type=!player,distance=5..15] run summon minecraft:lightning_bolt. thx for the help tho, New comments cannot be posted and votes cannot be cast, More posts from the MinecraftCommands community. Made using MrGarretto's Command Generator! We're a community of creatives sharing everything Minecraft! Press question mark to learn the rest of the keyboard shortcuts. ",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}}}}}}}}}}}}}}}}}.