Advertisement
ChaoticRedstone

Defensive Structures In Minecraft!

Mar 15th, 2016
499
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.90 KB | None | 0 0
  1. Commands for Defensive Structures in Minecraft
  2. ►MAKE SURE YOU PASTE EACH COMMAND IN ORDER!◄
  3. ///This section is for Arrow Defense///
  4. ►Scoreboards
  5. /scoreboard objectives add arrow dummy
  6. /scoreboard objectives add a dummy
  7. /scoreboard objectives add counter dummy
  8. ►Summon ArmorStand
  9. /summon ArmorStand ~ ~1 ~ {CustomName:"arrow",Small:1,Invisible:1,Invulnerable:1}
  10. ►Test for Zombies near the structure
  11. /execute @e[type=ArmorStand,name=arrow] ~ ~ ~ /execute @e[type=Zombie,r=10] ~ ~ ~ /scoreboard players set @e[type=ArmorStand,name=arrow] arrow 1
  12. ►Start timer
  13. /scoreboard players add @e[type=ArmorStand,name=arrow] counter 1
  14. ►Summon Arrow
  15. /execute @e[score_arrow_min=1,score_counter_min=9] ~ ~ ~ /summon Arrow ~2 ~0.5 ~ {Motion:[1.0,0.0,0.0]}
  16. /execute @e[score_arrow_min=1,score_counter_min=9] ~ ~ ~ /summon Arrow ~-2 ~0.5 ~ {Motion:[-1.0,0.0,0.0]}
  17. /execute @e[score_arrow_min=1,score_counter_min=9] ~ ~ ~ /summon Arrow ~ ~0.5 ~2 {Motion:[0.0,0.0,1.0]}
  18. /execute @e[score_arrow_min=1,score_counter_min=9] ~ ~ ~ /summon Arrow ~ ~0.5 ~-2 {Motion:[0.0,0.0,-1.0]}
  19. /execute @e[score_arrow_min=1,score_counter_min=9] ~ ~ ~ /summon Arrow ~-2 ~0.5 ~-2 {Motion:[-1.0,0.0,-1.0]}
  20. /execute @e[score_arrow_min=1,score_counter_min=9] ~ ~ ~ /summon Arrow ~-2 ~0.5 ~2 {Motion:[-1.0,0.0,1.0]}
  21. /execute @e[score_arrow_min=1,score_counter_min=9] ~ ~ ~ /summon Arrow ~2 ~0.5 ~-2 {Motion:[1.0,0.0,-1.0]}
  22. /execute @e[score_arrow_min=1,score_counter_min=9] ~ ~ ~ /summon Arrow ~2 ~0.5 ~2 {Motion:[1.0,0.0,1.0]}
  23. ►Reset
  24. /scoreboard players set @e[type=ArmorStand,name=arrow] arrow 0
  25. /scoreboard players set @e[type=Arrow] a 1 {inGround:1b}
  26. /kill @e[type=Arrow,score_a_min=1]
  27. /execute @e[score_counter_min=10] ~ ~ ~ /scoreboard players set @e[type=ArmorStand,name=arrow] counter 0
  28.  
  29. ///This section is for Flamethrower Defense///
  30. ►Scoreboards
  31. /scoreboard objectives add on dummy
  32. ►Summon ArmorStand
  33. /summon ArmorStand ~ ~1 ~ {CustomName:"fire",Small:1,Invisible:1,Invulnerable:1}
  34. ►Test for Zombies near the structure
  35. /execute @e[type=ArmorStand,name=fire] ~ ~ ~ /execute @e[type=Zombie,r=15] ~ ~ ~ /scoreboard players set @e[type=ArmorStand,name=fire] on 1
  36. ►Summon Snowball
  37. /execute @e[score_on_min=1] ~ ~ ~ /summon Snowball ~2 ~0.5 ~ {Motion:[1.0,0.0,0.0]}
  38. /execute @e[score_on_min=1] ~ ~ ~ /summon Snowball ~-2 ~0.5 ~ {Motion:[-1.0,0.0,0.0]}
  39. /execute @e[score_on_min=1] ~ ~ ~ /summon Snowball ~ ~0.5 ~2 {Motion:[0.0,0.0,1.0]}
  40. /execute @e[score_on_min=1] ~ ~ ~ /summon Snowball ~ ~0.5 ~-2 {Motion:[0.0,0.0,-1.0]}
  41. ►Burn entites around snowballs
  42. /execute @e[type=Snowball] ~ ~ ~ /entitydata @e[r=10,type=!Player] {Fire:100,Fuse:1,ignited:1}
  43. ►Particles
  44. /execute @e[type=Snowball] ~ ~ ~ /particle lava ~ ~ ~ 0.5 0.5 0.5 1 0 force
  45. ►Reset
  46. /scoreboard players set @e[type=ArmorStand,name=fire] on 0
  47.  
  48. If you need help, watch the YouTube Video:https://www.youtube.com/watch?v=52Wv7f6p3DI&feature=youtu.be
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement