TylerRocks

Minecraft How to make Lightning Bows

Jan 14th, 2015
1,308
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.33 KB | None | 0 0
  1. Minecraft Commands for lightning Bow:
  2. Before the build:
  3. Do: /gamerule doTileDrops false, /gamerule CommandblockOutput false
  4.  
  5. On a repeter:
  6. /testfor @p {SelectedItemSlot:1,Inventory:[{Slot:1b,tag:{display:{Name:"Lightning Bow"}}}]}
  7. then a comparator with a redstone repeater leading to a toggle able repeater leading to the next command block:
  8. /testfor @e[type=Arrow] {inGround:1b}
  9. then another comparator leading to the next command block:
  10. /execute @e[type=Arrow] ~ ~ ~ summon LightningBolt ~ ~ ~
  11. then a redstone repeater on two ticks leading to the next command block:
  12. /kill @e[type=Arrow]
  13.  
  14. Those are the commands now I will show you how to toggle the effect such a Tnt arrows it follows the same concept:
  15.  
  16. /testfor @p {SelectedItemSlot:1,Inventory:[{Slot:1b,tag:{display:{Name:"Tnt Bow"}}}]}
  17. then a comparator with a redstone repeater leading to a toggle able repeater leading to the next command block:
  18. /testfor @e[type=Arrow] {inGround:1b}
  19. then another comparator leading to the next command block:
  20. /execute @e[type=Arrow] ~ ~ ~ summon PrimedTnt ~ ~ ~ summon PrimedTnt ~ ~ ~ summon PrimedTnt ~ ~ ~ summon PrimedTnt ~ ~ ~
  21. then a redstone repeater on two ticks leading to the next command block:
  22. /kill @e[type=Arrow]
  23.  
  24. How to use:
  25. First step:name a normal unused bow "Lightning Bow" or "Tnt Bow" depending on what you want, but you can have both
  26. Second step:make the command block stuff
  27. Third step:shoot the arrow
  28. Fourth step: Watch the awesomeness!!!
  29.  
  30. Settings that you can change:
  31. on the first command:
  32. /testfor @p {SelectedItemSlot:1,Inventory:[{Slot:1b,tag:{display:{Name:"Lightning Bow"}}}]}
  33. you can change the number where it says "SelectedItemSlot:1" when you change the #1 to 6 it will only detect the bow when its in the 6th slot of your hotbar, you can also change the name of the bow to when it says:
  34. {Name:"Lightning Bow"}}}]} you can change "Lightning Bow" to "hsjdjfa" and the bow would only summon lightning if you have you bow in the 6th slot of your hot bar and the name is "hsjdifa"
  35.  
  36.  
  37.  
  38.  
  39.  
  40. Notes:
  41. When there is square brackets example:[type=Arrow] you have to use them
  42. When there is a tilde (~) their is always a space between them example:setblock ~0 ~0 ~0 minecraft:redstone_block
  43. You can make a very fast repeater by doing this in a command block /setblock ~1 ~0 ~0 minecraft:redstone_block 0 destroy
Advertisement
Add Comment
Please, Sign In to add comment