This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
I am going to make a map with power-ups. So I make this
Repeating commandblock execute @e[type=Zombie,tags=powerup1] ~ ~ ~ effect @p 1 2 60
Chain commandblock: kill @e[type=Zombie]
If someone place a Zombie spawn egg it wil give the person Who place it Speed.
Now I make map with 4 teams.
I want the Same system that if someone place a spawnegg All teams het hit by Lightning exept his own team. How to do that?
Creepers are the best.
As long as i don't see them
To make sure you target the right teams, you can use the scoreboard to track who used a spawn egg:
/scoreboard objectives add spawned stat.useItem.minecraft.spawn_egg
This will automatically increase each time someone uses a spawn egg. You would also have to have a command for each different team. For example:
/execute @e[type=Squid,tag=lightning] ~ ~ ~ execute @p[r=1,score_spawned_min=1,team=red] ~ ~ ~ execute @a[team=!red] ~ ~ ~ summon LightningBolt
Just replace red with the names of your four teams. Then put the commands in a repeating command block with three chain command blocks after it. Then put this command at the end to reset the "spawned" objective (you can call it whatever you want):
/scoreboard players set @a spawned 0
I am going to make a map with power-ups. So I make this
Repeating commandblock execute @e[type=Zombie,tags=powerup1] ~ ~ ~ effect @p 1 2 60
Chain commandblock: kill @e[type=Zombie]
If someone place a Zombie spawn egg it wil give the person Who place it Speed.
Now I make map with 4 teams.
I want the Same system that if someone place a spawnegg All teams het hit by Lightning exept his own team. How to do that?
Creepers are the best.
As long as i don't see them
To make sure you target the right teams, you can use the scoreboard to track who used a spawn egg:
This will automatically increase each time someone uses a spawn egg. You would also have to have a command for each different team. For example:
Just replace red with the names of your four teams. Then put the commands in a repeating command block with three chain command blocks after it. Then put this command at the end to reset the "spawned" objective (you can call it whatever you want):