Can't make a Fireball execute a command in a radius

Can't make a Fireball execute a command in a radius - Crop barista preparing coffee in cafe

What I'm trying to do is simply this:

/execute @e[type=Fireball] ~ ~ ~ scoreboard players set @a[score_mage_min=1] Cooldown 15 

And applying it only to players with mage score of 1 in a 2 block radius. So I found out that I had to make something like this:

/execute @e[type=Fireball] ~ ~ ~ scoreboard players set @a[score_mage_min=1,r=2] Cooldown 15 

However it doesn't work, and I cannot realize why.



Best Answer

You have to do:

/execute @e[type=Fireball] ~ ~ ~ scoreboard players set @a[score_mage_min=1,r=3] Cooldown 15 

So make it in a radius of 3 instead of 2. And if you want to make fireballs do:

/execute @e[type=Snowball] ~ ~ ~ /summon Fireball ~ ~ ~ {direction:[],ExplosionPower:1}



Pictures about "Can't make a Fireball execute a command in a radius"

Can't make a Fireball execute a command in a radius - Low angle of focused female in eyeglasses and home t shirt standing at counter with green potted plants while cooking lunch snack at home
Can't make a Fireball execute a command in a radius - Man Holding a Megaphone
Can't make a Fireball execute a command in a radius - Man With Megaphone Pointing





Can - Mother Sky (1970) [HQ]




Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: Ketut Subiyanto, George Milton, Pressmaster, Pressmaster