Giving score to entities in certain radius of players

Giving score to entities in certain radius of players - Aerial View of Soccer Field

So my idea was when you are wearing a chestplate flame particles spawn around them

/execute @a[score_ARMOR_min=1] ~ ~ ~ /particle flame ~ ~-1 ~ .01 5 5 5 50

then if the score of "ARMOR" is 1 it detects all entities in a radius of 5 from the player

/execute @a[score_ARMOR_min=1] ~ ~ ~ /testfor @e[type=!Player,r=5]

it doesn't update though even though I'm standing right next to a cow it won't give me an output and the fill clock is on. What I wanted to know can I give a score to those entities, so I can

/execute @e[score_BurnMobs_min=1] ~ ~ ~ /setblock fire ~ ~-1 ~ 0 replace air


Best Answer

Yes, you can. Since scoreboard is a command, it can be chained off execute just like any other command.

What you want to do is as simple as:

/execute @a[score_ARMOR_min=1] ~ ~ ~ /scoreboard players set @e[type=!Player,r=5] BurnMobs 1



Pictures about "Giving score to entities in certain radius of players"

Giving score to entities in certain radius of players - Football Players
Giving score to entities in certain radius of players - Gathering Football Players
Giving score to entities in certain radius of players - Ice Hockey Players





Testing Radius from Mobs/Entities in Minecraft 1.8 (14w07a)




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

Images: Mike, Joe Calomeni, Pixabay, Pixabay