Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Commands for Defensive Structures in Minecraft
- ►MAKE SURE YOU PASTE EACH COMMAND IN ORDER!◄
- ///This section is for Arrow Defense///
- ►Scoreboards
- /scoreboard objectives add arrow dummy
- /scoreboard objectives add a dummy
- /scoreboard objectives add counter dummy
- ►Summon ArmorStand
- /summon ArmorStand ~ ~1 ~ {CustomName:"arrow",Small:1,Invisible:1,Invulnerable:1}
- ►Test for Zombies near the structure
- /execute @e[type=ArmorStand,name=arrow] ~ ~ ~ /execute @e[type=Zombie,r=10] ~ ~ ~ /scoreboard players set @e[type=ArmorStand,name=arrow] arrow 1
- ►Start timer
- /scoreboard players add @e[type=ArmorStand,name=arrow] counter 1
- ►Summon Arrow
- /execute @e[score_arrow_min=1,score_counter_min=9] ~ ~ ~ /summon Arrow ~2 ~0.5 ~ {Motion:[1.0,0.0,0.0]}
- /execute @e[score_arrow_min=1,score_counter_min=9] ~ ~ ~ /summon Arrow ~-2 ~0.5 ~ {Motion:[-1.0,0.0,0.0]}
- /execute @e[score_arrow_min=1,score_counter_min=9] ~ ~ ~ /summon Arrow ~ ~0.5 ~2 {Motion:[0.0,0.0,1.0]}
- /execute @e[score_arrow_min=1,score_counter_min=9] ~ ~ ~ /summon Arrow ~ ~0.5 ~-2 {Motion:[0.0,0.0,-1.0]}
- /execute @e[score_arrow_min=1,score_counter_min=9] ~ ~ ~ /summon Arrow ~-2 ~0.5 ~-2 {Motion:[-1.0,0.0,-1.0]}
- /execute @e[score_arrow_min=1,score_counter_min=9] ~ ~ ~ /summon Arrow ~-2 ~0.5 ~2 {Motion:[-1.0,0.0,1.0]}
- /execute @e[score_arrow_min=1,score_counter_min=9] ~ ~ ~ /summon Arrow ~2 ~0.5 ~-2 {Motion:[1.0,0.0,-1.0]}
- /execute @e[score_arrow_min=1,score_counter_min=9] ~ ~ ~ /summon Arrow ~2 ~0.5 ~2 {Motion:[1.0,0.0,1.0]}
- ►Reset
- /scoreboard players set @e[type=ArmorStand,name=arrow] arrow 0
- /scoreboard players set @e[type=Arrow] a 1 {inGround:1b}
- /kill @e[type=Arrow,score_a_min=1]
- /execute @e[score_counter_min=10] ~ ~ ~ /scoreboard players set @e[type=ArmorStand,name=arrow] counter 0
- ///This section is for Flamethrower Defense///
- ►Scoreboards
- /scoreboard objectives add on dummy
- ►Summon ArmorStand
- /summon ArmorStand ~ ~1 ~ {CustomName:"fire",Small:1,Invisible:1,Invulnerable:1}
- ►Test for Zombies near the structure
- /execute @e[type=ArmorStand,name=fire] ~ ~ ~ /execute @e[type=Zombie,r=15] ~ ~ ~ /scoreboard players set @e[type=ArmorStand,name=fire] on 1
- ►Summon Snowball
- /execute @e[score_on_min=1] ~ ~ ~ /summon Snowball ~2 ~0.5 ~ {Motion:[1.0,0.0,0.0]}
- /execute @e[score_on_min=1] ~ ~ ~ /summon Snowball ~-2 ~0.5 ~ {Motion:[-1.0,0.0,0.0]}
- /execute @e[score_on_min=1] ~ ~ ~ /summon Snowball ~ ~0.5 ~2 {Motion:[0.0,0.0,1.0]}
- /execute @e[score_on_min=1] ~ ~ ~ /summon Snowball ~ ~0.5 ~-2 {Motion:[0.0,0.0,-1.0]}
- ►Burn entites around snowballs
- /execute @e[type=Snowball] ~ ~ ~ /entitydata @e[r=10,type=!Player] {Fire:100,Fuse:1,ignited:1}
- ►Particles
- /execute @e[type=Snowball] ~ ~ ~ /particle lava ~ ~ ~ 0.5 0.5 0.5 1 0 force
- ►Reset
- /scoreboard players set @e[type=ArmorStand,name=fire] on 0
- 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