TheBalliBoys

Sniper

Aug 20th, 2016
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.86 KB | None | 0 0
  1. 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:setblock ~5 ~5 ~ command_block 1 replace {Command:"testfor @a[tag=!Sniper,score_ArcLvl_min=120]"}},{id:MinecartCommandBlock,Command:setblock ~5 ~6 ~ chain_command_block 9 replace {auto:1,Command:"tellraw @a [\\\"\\\",{\\\"text\\\":\\\"\\\\n\\\"},{\\\"selector\\\":\\\"@a[tag=!Sniper,score_ArcLvl_min=120]\\\",\\\"color\\\":\\\"gold\\\",\\\"bold\\\":true},{\\\"text\\\":\\\" has now the Ability \\\",\\\"color\\\":\\\"gold\\\",\\\"bold\\\":false},{\\\"text\\\":\\\"Sniper\\\",\\\"color\\\":\\\"dark_green\\\",\\\"bold\\\":true,\\\"hoverEvent\\\":{\\\"action\\\":\\\"show_text\\\",\\\"value\\\":{\\\"text\\\":\\\"\\\",\\\"extra\\\":[{\\\"text\\\":\\\"Sneak with a bow and a single\\\\narrow in you offhand to shoot\\\\nwithout gravity.\\\"}]}}}]"}},{id:MinecartCommandBlock,Command:setblock ~5 ~7 ~ chain_command_block 9 replace {auto:1,Command:"execute @a[tag=!Sniper,score_ArcLvl_min=120] ~ ~ ~ playsound minecraft:entity.player.levelup master @p"}},{id:MinecartCommandBlock,Command:setblock ~5 ~8 ~ chain_command_block 9 replace {auto:1,Command:"scoreboard players tag @a[tag=!Sniper,score_ArcLvl_min=120] add Sniper"}},{id:MinecartCommandBlock,Command:gamerule commandBlockOutput false},{id:MinecartCommandBlock,Command:"scoreboard objectives add ExtSniper1 stat.sneakTime"},{id:MinecartCommandBlock,Command:"scoreboard objectives add ExtSniper2 stat.useItem.minecraft.bow"},{id:MinecartCommandBlock,Command:"scoreboard players set UseSniper Number 300"},{id:MinecartCommandBlock,Command:setblock ~28 ~-1 ~-1 chain_command_block 3 replace {auto:1,Command:"scoreboard players set @a[score_ExtSniper2_min=1] ExtSniper2 0"}},{id:MinecartCommandBlock,Command:setblock ~27 ~-1 ~-1 chain_command_block 5 replace {auto:1,Command:"scoreboard players set @a[score_ExtSniper1_min=1] ExtSniper1 0"}},{id:MinecartCommandBlock,Command:setblock ~26 ~-1 ~-1 chain_command_block 5 replace {auto:1,Command:"scoreboard players tag @a[tag=Sniper,score_ExtSniper1_min=1] add SniperShot {Inventory:[{id:minecraft:spectral_arrow,Count:1b,Slot:-106b}]}"}},{id:MinecartCommandBlock,Command:setblock ~25 ~-1 ~-1 chain_command_block 5 replace {auto:1,Command:"scoreboard players tag @a[tag=Sniper,score_ExtSniper1_min=1] add SniperShot {Inventory:[{id:minecraft:tipped_arrow,Count:1b,Slot:-106b}]}"}},{id:MinecartCommandBlock,Command:setblock ~24 ~-1 ~-1 chain_command_block 5 replace {auto:1,Command:"scoreboard players tag @a[tag=Sniper,score_ExtSniper1_min=1] add SniperShot {Inventory:[{id:minecraft:arrow,Count:1b,Slot:-106b}]}"}},{id:MinecartCommandBlock,Command:setblock ~23 ~-1 ~-1 chain_command_block 5 replace {auto:1,Command:"scoreboard players tag @a[tag=SniperShot] remove SniperShot"}},{id:MinecartCommandBlock,Command:setblock ~22 ~-1 ~-1 chain_command_block 13 replace {auto:1,Command:"execute @a[tag=SniperShot,score_ExtSniper2_min=1] ~ ~ ~ scoreboard players operation UseSniper Number += @p ArcLvl"}},{id:MinecartCommandBlock,Command:setblock ~21 ~-1 ~-1 chain_command_block 5 replace {auto:1,Command:"execute @a[tag=SniperShot,score_ExtSniper2_min=1] ~ ~ ~ entitydata @e[type=SpectralArrow,c=1,r=3] {NoGravity:1,life:1100s}"}},{id:MinecartCommandBlock,Command:setblock ~20 ~-1 ~-1 chain_command_block 5 replace {auto:1,Command:"execute @a[tag=SniperShot,score_ExtSniper2_min=1] ~ ~ ~ entitydata @e[type=Arrow,c=1,r=3] {NoGravity:1,life:1100s}"}},{id:MinecartCommandBlock,Command:setblock ~19 ~-1 ~-1 repeating_command_block 5 replace {auto:1,Command:"effect @a[tag=SniperShot] slowness 1 100 true"}},{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]}]}]}]}
Advertisement
Add Comment
Please, Sign In to add comment