This command add lifesteal sword to your world!that can steal your enemy life!this machine was created by mrgarreto command combiner!
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
/gamerule commandBlockOutput false
/gamerule logAdminCommands false
INIT:/scoreboard objectives add ls dummy
INIT:/scoreboard objectives add lsdamage stat.damageDealt
INIT:/scoreboard objectives add lscraft dummy
/scoreboard players set @e ls 1 {SelectedItemSlot:1,Inventory:[{Slot:1b,tag:{display:{Name:"Lifesteal Blade"}}}]}
/scoreboard players set @e ls 1 {SelectedItemSlot:0,Inventory:[{Slot:0b,tag:{display:{Name:"Lifesteal Blade"}}}]}
/scoreboard players set @e ls 1 {SelectedItemSlot:2,Inventory:[{Slot:2b,tag:{display:{Name:"Lifesteal Blade"}}}]}
/scoreboard players set @e ls 1 {SelectedItemSlot:3,Inventory:[{Slot:3b,tag:{display:{Name:"Lifesteal Blade"}}}]}
/scoreboard players set @e ls 1 {SelectedItemSlot:4,Inventory:[{Slot:4b,tag:{display:{Name:"Lifesteal Blade"}}}]}
/scoreboard players set @e ls 1 {SelectedItemSlot:5,Inventory:[{Slot:5b,tag:{display:{Name:"Lifesteal Blade"}}}]}
/scoreboard players set @e ls 1 {SelectedItemSlot:6,Inventory:[{Slot:6b,tag:{display:{Name:"Lifesteal Blade"}}}]}
/scoreboard players set @e ls 1 {SelectedItemSlot:7,Inventory:[{Slot:7b,tag:{display:{Name:"Lifesteal Blade"}}}]}
/scoreboard players set @e ls 1 {SelectedItemSlot:8,Inventory:[{Slot:8b,tag:{display:{Name:"Lifesteal Blade"}}}]}
/execute @e[score_ls_min=1,score_lsdamage_min=1] ~ ~ ~ particle mobSpell ~ ~1 ~ 1 3 1 0.03 100 @e[type=!Player,r=6]
/execute @e[score_ls_min=1,score_lsdamage_min=1] ~ ~ ~ effect @e[r=3,type=Player] minecraft:regeneration 1 1
/scoreboard players set @e lsdamage 0
/scoreboard players set @e ls 0
/scoreboard players set @e[type=Item] lscraft 1 {Item:{id:"minecraft:golden_sword"},OnGround:1b}
/scoreboard players set @e[type=Item] lscraft 2 {Item:{id:"minecraft:skull"},OnGround:1b}
/scoreboard players set @e[type=Item] lscraft 3 {Item:{id:"minecraft:poisonous_potato"},OnGround:1b}
/execute @e[score_lscraft_min=1,score_lscraft=1] ~ ~ ~ execute @e[r=1,score_lscraft_min=2,score_lscraft=2] ~ ~ ~ execute @e[r=1,score_lscraft_min=3,score_lscraft=3] ~ ~ ~ /summon Item ~ ~ ~ {Item:{id:golden_sword,Count:1,tag:{display:{Name:Lifesteal Blade,Lore:[Lifesteal I]},ench:[{id:16,lvl:2},{id:34,lvl:1}]}}}
/execute @e[score_lscraft_min=1,score_lscraft=1] ~ ~ ~ execute @e[r=1,score_lscraft_min=2,score_lscraft=2] ~ ~ ~ execute @e[r=1,score_lscraft_min=3,score_lscraft=3] ~ ~ ~ particle smoke ~ ~ ~ 0 0 0 0.2 100
/execute @e[score_lscraft_min=1,score_lscraft=1] ~ ~ ~ execute @e[r=1,score_lscraft_min=2,score_lscraft=2] ~ ~ ~ execute @e[r=1,score_lscraft_min=3,score_lscraft=3] ~ ~ ~ kill @e[type=Item,r=3,score_lscraft_min=1,score_lscraft_min=2,score_lscraft=3]
INIT:/tellraw @p ["",{"text":"==================================","color":"gray"}]
INIT:/tellraw @p ["",{"text":"","color":"gray"}]
INIT:/tellraw @p ["",{"text":"","color":"gray"}]
INIT:/tellraw @p ["",{"text":"Created By Sam","color":"green","bold":"true"}]
INIT:/tellraw @p ["",{"text":"Created Using Mrgarreto Command Combiner:http://mrgarretto.com/cmdcombiner","color":"blue","clickEvent":{"action":"open_url","value":"http://mrgarretto.com/cmdcombiner"},"hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"Click Here to Go To The Page!"}]}}}]
INIT:/tellraw @p ["",{"text":"Sam One Cmd Website:http://onecmd.com/?creator=Samuel777","color":"green","bold":"true","clickEvent":{"action":"open_url","value":"http://onecmd.com/?creator=Samuel777"},"hoverEvent":{"action":"show_text","value":{"text":"","extra":[{"text":"Click Here To Go To My One Cmd Website"}]}}}]
INIT:/tellraw @p ["",{"text":"","color":"gray"}]
INIT:/tellraw @p ["",{"text":"","color":"gray"}]
INIT:/tellraw @p ["",{"text":"==================================","color":"gray"}]
/summon MinecartCommandBlock ~ ~1 ~ {Command:kill @e[type=MinecartCommandBlock,r=1],Riding:{id:MinecartCommandBlock,Command:setblock ~ ~-1 ~1 redstone_block,Riding:{id:MinecartCommandBlock,Command:setblock ~ ~ ~1 command_block 0 replace {Command:fill ~ ~-3 ~-1 ~ ~ ~ air},Riding:{id:MinecartCommandBlock,Command:"/tellraw @p [\"\",{\"text\":\"==================================\",\"color\":\"gray\"}]",Riding:{id:MinecartCommandBlock,Command:"/tellraw @p [\"\",{\"text\":\"\",\"color\":\"gray\"}]",Riding:{id:MinecartCommandBlock,Command:"/tellraw @p [\"\",{\"text\":\"\",\"color\":\"gray\"}]",Riding:{id:MinecartCommandBlock,Command:"/tellraw @p [\"\",{\"text\":\"Sam One Cmd Website:http://onecmd.com/?creator=Samuel777\",\"color\":\"green\",\"bold\":\"true\",\"clickEvent\":{\"action\":\"open_url\",\"value\":\"http://onecmd.com/?creator=Samuel777\"},\"hoverEvent\":{\"action\":\"show_text\",\"value\":{\"text\":\"\",\"extra\":[{\"text\":\"Click Here To Go To My One Cmd Website\"}]}}}]",Riding:{id:MinecartCommandBlock,Command:"/tellraw @p [\"\",{\"text\":\"Created Using Mrgarreto Command Combiner:http://mrgarretto.com/cmdcombiner\",\"color\":\"blue\",\"clickEvent\":{\"action\":\"open_url\",\"value\":\"http://mrgarretto.com/cmdcombiner\"},\"hoverEvent\":{\"action\":\"show_text\",\"value\":{\"text\":\"\",\"extra\":[{\"text\":\"Click Here to Go To The Page!\"}]}}}]",Riding:{id:MinecartCommandBlock,Command:"/tellraw @p [\"\",{\"text\":\"Created By Sam\",\"color\":\"green\",\"bold\":\"true\"}]",Riding:{id:MinecartCommandBlock,Command:"/tellraw @p [\"\",{\"text\":\"\",\"color\":\"gray\"}]",Riding:{id:MinecartCommandBlock,Command:"/tellraw @p [\"\",{\"text\":\"\",\"color\":\"gray\"}]",Riding:{id:MinecartCommandBlock,Command:"/tellraw @p [\"\",{\"text\":\"==================================\",\"color\":\"gray\"}]",Riding:{id:MinecartCommandBlock,Command:"/scoreboard objectives add lscraft dummy",Riding:{id:MinecartCommandBlock,Command:"/scoreboard objectives add lsdamage stat.damageDealt",Riding:{id:MinecartCommandBlock,Command:"/scoreboard objectives add ls dummy",Riding:{id:MinecartCommandBlock,Command:blockdata ~3 ~-2 ~-1 {Command:fill ~ ~ ~1 ~5 ~1 ~1 stone},Riding:{id:MinecartCommandBlock,Command:blockdata ~3 ~-2 ~1 {Command:fill ~ ~ ~-1 ~5 ~1 ~-1 redstone_block},Riding:{id:MinecartCommandBlock,Command:blockdata ~4 ~-2 ~-1 {Command:"/gamerule commandBlockOutput false"},Riding:{id:MinecartCommandBlock,Command:blockdata ~4 ~-2 ~1 {Command:"/gamerule logAdminCommands false"},Riding:{id:MinecartCommandBlock,Command:blockdata ~5 ~-2 ~-1 {Command:"/scoreboard players set @e ls 1 {SelectedItemSlot:1,Inventory:[{Slot:1b,tag:{display:{Name:\\\"Lifesteal Blade\\\"}}}]}"},Riding:{id:MinecartCommandBlock,Command:blockdata ~5 ~-2 ~1 {Command:"/scoreboard players set @e ls 1 {SelectedItemSlot:0,Inventory:[{Slot:0b,tag:{display:{Name:\\\"Lifesteal Blade\\\"}}}]}"},Riding:{id:MinecartCommandBlock,Command:blockdata ~6 ~-2 ~-1 {Command:"/scoreboard players set @e ls 1 {SelectedItemSlot:2,Inventory:[{Slot:2b,tag:{display:{Name:\\\"Lifesteal Blade\\\"}}}]}"},Riding:{id:MinecartCommandBlock,Command:blockdata ~6 ~-2 ~1 {Command:"/scoreboard players set @e ls 1 {SelectedItemSlot:3,Inventory:[{Slot:3b,tag:{display:{Name:\\\"Lifesteal Blade\\\"}}}]}"},Riding:{id:MinecartCommandBlock,Command:blockdata ~7 ~-2 ~-1 {Command:"/scoreboard players set @e ls 1 {SelectedItemSlot:4,Inventory:[{Slot:4b,tag:{display:{Name:\\\"Lifesteal Blade\\\"}}}]}"},Riding:{id:MinecartCommandBlock,Command:blockdata ~7 ~-2 ~1 {Command:"/scoreboard players set @e ls 1 {SelectedItemSlot:5,Inventory:[{Slot:5b,tag:{display:{Name:\\\"Lifesteal Blade\\\"}}}]}"},Riding:{id:MinecartCommandBlock,Command:blockdata ~8 ~-2 ~-1 {Command:"/scoreboard players set @e ls 1 {SelectedItemSlot:6,Inventory:[{Slot:6b,tag:{display:{Name:\\\"Lifesteal Blade\\\"}}}]}"},Riding:{id:MinecartCommandBlock,Command:blockdata ~8 ~-2 ~1 {Command:"/scoreboard players set @e ls 1 {SelectedItemSlot:7,Inventory:[{Slot:7b,tag:{display:{Name:\\\"Lifesteal Blade\\\"}}}]}"},Riding:{id:MinecartCommandBlock,Command:blockdata ~3 ~-1 ~-1 {Command:"/scoreboard players set @e ls 1 {SelectedItemSlot:8,Inventory:[{Slot:8b,tag:{display:{Name:\\\"Lifesteal Blade\\\"}}}]}"},Riding:{id:MinecartCommandBlock,Command:blockdata ~3 ~-1 ~1 {Command:"/execute @e[score_ls_min=1,score_lsdamage_min=1] ~ ~ ~ particle mobSpell ~ ~1 ~ 1 3 1 0.03 100 @e[type=!Player,r=6]"},Riding:{id:MinecartCommandBlock,Command:blockdata ~4 ~-1 ~-1 {Command:"/execute @e[score_ls_min=1,score_lsdamage_min=1] ~ ~ ~ effect @e[r=3,type=Player] minecraft:regeneration 1 1"},Riding:{id:MinecartCommandBlock,Command:blockdata ~4 ~-1 ~1 {Command:"/scoreboard players set @e lsdamage 0"},Riding:{id:MinecartCommandBlock,Command:blockdata ~5 ~-1 ~-1 {Command:"/scoreboard players set @e ls 0"},Riding:{id:MinecartCommandBlock,Command:blockdata ~5 ~-1 ~1 {Command:"/scoreboard players set @e[type=Item] lscraft 1 {Item:{id:\\\"minecraft:golden_sword\\\"},OnGround:1b}"},Riding:{id:MinecartCommandBlock,Command:blockdata ~6 ~-1 ~-1 {Command:"/scoreboard players set @e[type=Item] lscraft 2 {Item:{id:\\\"minecraft:skull\\\"},OnGround:1b}"},Riding:{id:MinecartCommandBlock,Command:blockdata ~6 ~-1 ~1 {Command:"/scoreboard players set @e[type=Item] lscraft 3 {Item:{id:\\\"minecraft:poisonous_potato\\\"},OnGround:1b}"},Riding:{id:MinecartCommandBlock,Command:blockdata ~7 ~-1 ~-1 {Command:"/execute @e[score_lscraft_min=1,score_lscraft=1] ~ ~ ~ execute @e[r=1,score_lscraft_min=2,score_lscraft=2] ~ ~ ~ execute @e[r=1,score_lscraft_min=3,score_lscraft=3] ~ ~ ~ /summon Item ~ ~ ~ {Item:{id:golden_sword,Count:1,tag:{display:{Name:Lifesteal Blade,Lore:[Lifesteal I]},ench:[{id:16,lvl:2},{id:34,lvl:1}]}}}"},Riding:{id:MinecartCommandBlock,Command:blockdata ~7 ~-1 ~1 {Command:"/execute @e[score_lscraft_min=1,score_lscraft=1] ~ ~ ~ execute @e[r=1,score_lscraft_min=2,score_lscraft=2] ~ ~ ~ execute @e[r=1,score_lscraft_min=3,score_lscraft=3] ~ ~ ~ particle smoke ~ ~ ~ 0 0 0 0.2 100"},Riding:{id:MinecartCommandBlock,Command:blockdata ~8 ~-1 ~-1 {Command:"/execute @e[score_lscraft_min=1,score_lscraft=1] ~ ~ ~ execute @e[r=1,score_lscraft_min=2,score_lscraft=2] ~ ~ ~ execute @e[r=1,score_lscraft_min=3,score_lscraft=3] ~ ~ ~ kill @e[type=Item,r=3,score_lscraft_min=1,score_lscraft_min=2,score_lscraft=3]"},Riding:{id:MinecartCommandBlock,Command:setblock ~3 ~-2 ~ redstone_block,Riding:{id:MinecartCommandBlock,Command:fill ~3 ~-2 ~-1 ~8 ~-1 ~-1 command_block,Riding:{id:MinecartCommandBlock,Command:fill ~3 ~-2 ~-1 ~8 ~-2 ~-1 command_block,Riding:{id:MinecartCommandBlock,Command:fill ~3 ~-2 ~1 ~7 ~-1 ~1 command_block,Riding:{id:MinecartCommandBlock,Command:fill ~3 ~-2 ~1 ~8 ~-2 ~1 command_block,Riding:{id:MinecartCommandBlock,Command:setblock ~1 ~ ~ wall_sign 4 replace {Text1:"{text:\\\"=================================\\\",color:black}",Text2:"{text:\\\"Lifesteal Sword\\\",color:red,bold:true}",Text3:"{text:\\\"By Sam\\\",color:green,bold:true}",Text4:"{text:\\\"====================================\\\",color:black}"},Riding:{id:MinecartCommandBlock,Command:setblock ~1 ~-1 ~ wall_sign 4 replace {Text1:"{text:\\\"==============================\\\",color:black}",Text2:"{text:\\\"Destroy This\\\",color:dark_red,bold:true}",Text3:"{text:\\\"Machine\\\",color:dark_red,bold:true}",Text4:"{text:\\\"=====================================\\\",color:black,clickEvent:{action:\\\"run_command\\\",value:\\\"fill ~ ~-2 ~-2 ~9 ~3 ~2 air\\\"}}"},Riding:{id:MinecartCommandBlock,Command:setblock ~1 ~-2 ~ wall_sign 4 replace {Text1:"{text:\\\"================================\\\",color:black,clickEvent:{action:\\\"run_command\\\",value:\\\"/tellraw @p [\\\\\\\"\\\\\\\",{\\\\\\\"text\\\\\\\":\\\\\\\"To Craft A Lifesteal Sword You Need A Golden Sword,Skull And A Poisonous Potato!\\\\\\\",\\\\\\\"color\\\\\\\":\\\\\\\"gold\\\\\\\",\\\\\\\"bold\\\\\\\":\\\\\\\"true\\\\\\\"}]\\\"}}",Text2:"{text:\\\"Information\\\",color:yellow,bold:true}",Text4:"{text:\\\"========================================\\\",color:black}"},Riding:{id:MinecartCommandBlock,Command:fill ~2 ~-2 ~-2 ~9 ~-1 ~2 stained_glass 3 replace stained_hardened_clay 3,Riding:{id:MinecartCommandBlock,Command:fill ~2 ~-3 ~-2 ~9 ~ ~2 stained_hardened_clay 3 hollow,Riding:{id:MinecartCommandBlock,Command:gamerule commandBlockOutput false,Riding:{id:MinecartCommandBlock,Riding:{id:FallingSand,Block:activator_rail,Time:1,Riding:{id:FallingSand,Block:redstone_block,Time:1,Riding:{id:FallingSand,Block:stone,Time:1}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}