1

One Command Creation | 1.8 Combat in 1.9

Dave Yanson 3/20/16 6:44 am
308
Hello! I know alot of people do not like the new 1.9 combat, so, I decided, it would be interesting to make this small little component you can add to your world, if you are doing this on a server, you will need Administrator access, or else it won't work. What the machine does, is very simple, it gives you the Haste effect whenever you are holding a sword, and removes it instantly when you are not, if you didn't know, the Haste effect in 1.9 also decreases the attack cooldown, and that is how this works, I tried my best to make it survival friendly, although, you can still mine simple blocks with your sword instantly, such as, dirt, grass, gravel, sand, etc. But, it seemed impossible to fix that, atleast for me.

Video: https://www.youtube.com/watch?v=FlH62d2dtkQ

Here is the command:
Click to reveal
summon FallingSand ~ ~1 ~ {Block:stone,Time:1,Passengers:[{id:FallingSand,Block:redstone_block,Time:1,Passengers:[{id:FallingSand,Block:activator_rail,Time:1,Passengers:[{id:MinecartCommandBlock,Command:gamerule commandBlockOutput false},{id:MinecartCommandBlock,Command:"fill ~2 ~-3 ~-1 ~8 ~-1 ~2 stained_hardened_clay 7 hollow"},{id:MinecartCommandBlock,Command:"fill ~2 ~-2 ~-1 ~8 ~-2 ~2 stained_glass 3 replace stained_hardened_clay"},{id:MinecartCommandBlock,Command:setblock ~1 ~-3 ~ wall_sign 4 replace {Text1:"{\\\"text\\\":\\\"Toggle\\\",\\\"color\\\":\\\"yellow\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"scoreboard players add @e[type=ArmorStand,name=TogAct,c=1] HeldItem_A 1\\\"}}",Text2:"{\\\"text\\\":\\\"\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"execute @e[score_HeldItem_A_min=1,score_HeldItem_A=1] ~ ~ ~ blockdata ~ ~ ~ {auto:0}\\\"}}",Text3:"{\\\"text\\\":\\\"\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"execute @e[score_HeldItem_A_min=2] ~ ~ ~ blockdata ~ ~ ~ {auto:1}\\\"}}",Text4:"{\\\"text\\\":\\\"\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"scoreboard players reset @e[score_HeldItem_A_min=2] HeldItem_A\\\"}}"}},{id:MinecartCommandBlock,Command:setblock ~1 ~-2 ~ wall_sign 4 replace {Text1:"{\\\"text\\\":\\\"Remove\\\",\\\"color\\\":\\\"dark_red\\\"}",Text4:"{\\\"text\\\":\\\"\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"fill ~ ~-1 ~-1 ~7 ~1 ~2 air\\\"}}"}},{id:MinecartCommandBlock,Command:setblock ~1 ~-1 ~ wall_sign 4 replace {Text1:"{\\\"text\\\":\\\"YouTube\\\",\\\"color\\\":\\\"red\\\",\\\"clickEvent\\\":{\\\"action\\\":\\\"run_command\\\",\\\"value\\\":\\\"/tellraw @p [\\\\\\\"\\\\\\\",{\\\\\\\"text\\\\\\\":\\\\\\\"You\\\\\\\",\\\\\\\"color\\\\\\\":\\\\\\\"red\\\\\\\",\\\\\\\"bold\\\\\\\":true,\\\\\\\"clickEvent\\\\\\\":{\\\\\\\"action\\\\\\\":\\\\\\\"open_url\\\\\\\",\\\\\\\"value\\\\\\\":\\\\\\\"www.youtube.com/channel/UCxzW_7flg8pr19Z_UI5s9PA\\\\\\\"},\\\\\\\"hoverEvent\\\\\\\":{\\\\\\\"action\\\\\\\":\\\\\\\"show_text\\\\\\\",\\\\\\\"value\\\\\\\":{\\\\\\\"text\\\\\\\":\\\\\\\"\\\\\\\",\\\\\\\"extra\\\\\\\":[{\\\\\\\"text\\\\\\\":\\\\\\\"Info> \\\\\\\",\\\\\\\"color\\\\\\\":\\\\\\\"blue\\\\\\\"},{\\\\\\\"text\\\\\\\":\\\\\\\"Click here to go to my YouTube Channel.\\\\\\\",\\\\\\\"color\\\\\\\":\\\\\\\"gray\\\\\\\"}]}}},{\\\\\\\"text\\\\\\\":\\\\\\\"Tube\\\\\\\",\\\\\\\"bold\\\\\\\":true,\\\\\\\"clickEvent\\\\\\\":{\\\\\\\"action\\\\\\\":\\\\\\\"open_url\\\\\\\",\\\\\\\"value\\\\\\\":\\\\\\\"www.youtube.com/channel/UCxzW_7flg8pr19Z_UI5s9PA\\\\\\\"},\\\\\\\"hoverEvent\\\\\\\":{\\\\\\\"action\\\\\\\":\\\\\\\"show_text\\\\\\\",\\\\\\\"value\\\\\\\":{\\\\\\\"text\\\\\\\":\\\\\\\"\\\\\\\",\\\\\\\"extra\\\\\\\":[{\\\\\\\"text\\\\\\\":\\\\\\\"Info> \\\\\\\",\\\\\\\"color\\\\\\\":\\\\\\\"blue\\\\\\\"},{\\\\\\\"text\\\\\\\":\\\\\\\"Click here to go to my YouTube Channel.\\\\\\\",\\\\\\\"color\\\\\\\":\\\\\\\"gray\\\\\\\"}]}},\\\\\\\"color\\\\\\\":\\\\\\\"none\\\\\\\"},{\\\\\\\"text\\\\\\\":\\\\\\\" Channel\\\\\\\",\\\\\\\"color\\\\\\\":\\\\\\\"gold\\\\\\\",\\\\\\\"bold\\\\\\\":true,\\\\\\\"clickEvent\\\\\\\":{\\\\\\\"action\\\\\\\":\\\\\\\"open_url\\\\\\\",\\\\\\\"value\\\\\\\":\\\\\\\"www.youtube.com/channel/UCxzW_7flg8pr19Z_UI5s9PA\\\\\\\"},\\\\\\\"hoverEvent\\\\\\\":{\\\\\\\"action\\\\\\\":\\\\\\\"show_text\\\\\\\",\\\\\\\"value\\\\\\\":{\\\\\\\"text\\\\\\\":\\\\\\\"\\\\\\\",\\\\\\\"extra\\\\\\\":[{\\\\\\\"text\\\\\\\":\\\\\\\"Info> \\\\\\\",\\\\\\\"color\\\\\\\":\\\\\\\"blue\\\\\\\"},{\\\\\\\"text\\\\\\\":\\\\\\\"Click here to go to my YouTube Channel.\\\\\\\",\\\\\\\"color\\\\\\\":\\\\\\\"gray\\\\\\\"}]}}}]\\\"}}"}},{id:MinecartCommandBlock,Command:"summon ArmorStand ~3 ~-2 ~ {CustomName:TogAct,Marker:1,NoGravity:1,Invisible:1}"},{id:MinecartCommandBlock,Command:"scoreboard objectives add HeldItem_A dummy"},{id:MinecartCommandBlock,Command:setblock ~5 ~-2 ~1 chain_command_block 4 replace {auto:1,Command:"effect @a[score_HeldItem=0] haste 0"}},{id:MinecartCommandBlock,Command:setblock ~6 ~-2 ~1 chain_command_block 4 replace {auto:1,Command:"scoreboard players remove @a HeldItem 1"}},{id:MinecartCommandBlock,Command:setblock ~7 ~-2 ~1 chain_command_block 4 replace {auto:1,Command:"effect @a[score_HeldItem_min=1] haste 1 255 true"}},{id:MinecartCommandBlock,Command:setblock ~7 ~-2 ~ chain_command_block 3 replace {auto:1,Command:"scoreboard players set @a HeldItem 2 {SelectedItem:{id:\\\"minecraft:wooden_sword\\\"}}"}},{id:MinecartCommandBlock,Command:setblock ~6 ~-2 ~ chain_command_block 5 replace {auto:1,Command:"scoreboard players set @a HeldItem 2 {SelectedItem:{id:\\\"minecraft:golden_sword\\\"}}"}},{id:MinecartCommandBlock,Command:setblock ~5 ~-2 ~ chain_command_block 5 replace {auto:1,Command:"scoreboard players set @a HeldItem 2 {SelectedItem:{id:\\\"minecraft:stone_sword\\\"}}"}},{id:MinecartCommandBlock,Command:setblock ~4 ~-2 ~ chain_command_block 5 replace {auto:1,Command:"scoreboard players set @a HeldItem 2 {SelectedItem:{id:\\\"minecraft:iron_sword\\\"}}"}},{id:MinecartCommandBlock,Command:setblock ~3 ~-2 ~ repeating_command_block 5 replace {auto:1,Command:"scoreboard players set @a HeldItem 2 {SelectedItem:{id:\\\"minecraft:diamond_sword\\\"}}"}},{id:MinecartCommandBlock,Command:setblock ~ ~ ~1 command_block 0 replace {Command:fill ~ ~-3 ~-1 ~ ~ ~ air}},{id:MinecartCommandBlock,Command:setblock ~ ~-1 ~1 redstone_block},{id:MinecartCommandBlock,Command:kill @e[type=MinecartCommandBlock,r=1]}]}]}]}
Posted by
Dave Yanson
Level 1 : New Crafter
0

  Have something to say?

JoinSign in

Welcome