Advertisement
DarkHeroz

Zombie đánh nhau

Oct 21st, 2014
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. Check point
  2. summon Villager ~ ~ ~ {CustomName:"Checkpoint"}
  3. Lính xanh
  4. summon Villager ~ ~ ~ {Attributes:[{Name:generic.maxHealth,Base:1},{Name:generic.movementSpeed,Base:0.01}],ActiveEffects:[{Id:14,Duration:999999,Ambient:1}],Riding:{id:Zombie,Attributes:[{Name:generic.maxHealth,Base:60}],CustomName:"Blue"},CustomName:"VB"}
  5. Lính đỏ
  6. summon Villager ~ ~ ~ {Attributes:[{Name:generic.maxHealth,Base:1},{Name:generic.movementSpeed,Base:0.01}],ActiveEffects:[{Id:14,Duration:999999,Ambient:1}],Riding:{id:Zombie,Attributes:[{Name:generic.maxHealth,Base:60}],CustomName:"Red"},CustomName:"VR"}
  7. Cho lính vào team
  8. scoreboard teams join Red @e[name=Red]
  9. scoreboard teams join Red @e[name=VR]
  10. scoreboard teams join Blue @e[name=Blue]
  11. scoreboard teams join Blue @e[name=VB]
  12. Lính đánh nhau
  13. execute @e[type=Zombie,team=Blue] ~ ~ ~ effect @e[r=1,c=1,team=Red,type=Zombie] minecraft:instant_health 1 0 true
  14. execute @e[type=Zombie,team=Red] ~ ~ ~ effect @e[r=1,c=1,team=Blue,type=Zombie] minecraft:instant_health 1 0 true
  15. Cho lính đi đến check point
  16. execute @e[type=Zombie,team=Blue] ~ ~ ~ /scoreboard teams join Blue @e[name=Checkpoint,r=5]
  17. execute @e[type=Zombie,team=Red] ~ ~ ~ /scoreboard teams join Red @e[name=Checkpoint,r=5]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement