Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Check point
- summon Villager ~ ~ ~ {CustomName:"Checkpoint"}
- Lính xanh
- 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"}
- Lính đỏ
- 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"}
- Cho lính vào team
- scoreboard teams join Red @e[name=Red]
- scoreboard teams join Red @e[name=VR]
- scoreboard teams join Blue @e[name=Blue]
- scoreboard teams join Blue @e[name=VB]
- Lính đánh nhau
- execute @e[type=Zombie,team=Blue] ~ ~ ~ effect @e[r=1,c=1,team=Red,type=Zombie] minecraft:instant_health 1 0 true
- execute @e[type=Zombie,team=Red] ~ ~ ~ effect @e[r=1,c=1,team=Blue,type=Zombie] minecraft:instant_health 1 0 true
- Cho lính đi đến check point
- execute @e[type=Zombie,team=Blue] ~ ~ ~ /scoreboard teams join Blue @e[name=Checkpoint,r=5]
- 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