scoreboard players remove @e[score_tsLightRed_min=1] tsLightRed 1

execute @e[tag=tsLightRed] ~ ~ ~ scoreboard players set @e[tag=tsLight,r=15] tsLightRed 1
execute @e[tag=tsLightRed] ~ ~ ~ scoreboard players set @e[tag=tsLight,r=14] tsLightRed 2
execute @e[tag=tsLightRed] ~ ~ ~ scoreboard players set @e[tag=tsLight,r=13] tsLightRed 3
execute @e[tag=tsLightRed] ~ ~ ~ scoreboard players set @e[tag=tsLight,r=12] tsLightRed 4
execute @e[tag=tsLightRed] ~ ~ ~ scoreboard players set @e[tag=tsLight,r=11] tsLightRed 5
execute @e[tag=tsLightRed] ~ ~ ~ scoreboard players set @e[tag=tsLight,r=10] tsLightRed 6
execute @e[tag=tsLightRed] ~ ~ ~ scoreboard players set @e[tag=tsLight,r=9] tsLightRed 7
execute @e[tag=tsLightRed] ~ ~ ~ scoreboard players set @e[tag=tsLight,r=8] tsLightRed 8
execute @e[tag=tsLightRed] ~ ~ ~ scoreboard players set @e[tag=tsLight,r=7] tsLightRed 9
execute @e[tag=tsLightRed] ~ ~ ~ scoreboard players set @e[tag=tsLight,r=6] tsLightRed 10
execute @e[tag=tsLightRed] ~ ~ ~ scoreboard players set @e[tag=tsLight,r=5] tsLightRed 11
execute @e[tag=tsLightRed] ~ ~ ~ scoreboard players set @e[tag=tsLight,r=4] tsLightRed 12
execute @e[tag=tsLightRed] ~ ~ ~ scoreboard players set @e[tag=tsLight,r=3] tsLightRed 13
execute @e[tag=tsLightRed] ~ ~ ~ scoreboard players set @e[tag=tsLight,r=2] tsLightRed 14
execute @e[tag=tsLightRed] ~ ~ ~ scoreboard players set @e[tag=tsLight,r=1] tsLightRed 15
execute @e[tag=tsLightRed] ~ ~ ~ scoreboard players operation @e[tag=tsLight,r=15] tsLightRed += @s tsLightVal
execute @e[tag=tsLightRed] ~ ~ ~ scoreboard players remove @e[tag=tsLight,r=15] tsLightRed 15
execute @e[tag=tsLightRed] ~ ~ ~ scoreboard players set @e[tag=tsLight,r=15,score_tsLightRed=-1] tsLightRed 0


scoreboard players tag @e[tag=tsLight] remove tsLightHasRed
execute @e[tag=tsLightDisRed] ~ ~ ~ scoreboard players tag @e[r=1,c=1,tag=tsLight] add tsLightHasRed

execute @e[score_tsLightRed=0,tag=tsLightHasRed] ~ ~ ~ kill @e[r=1,c=1,tag=tsLightDisRed] 
execute @e[score_tsLightRed_min=1,tag=!tsLightHasRed] ~ ~ ~ summon minecraft:armor_stand ~ ~ ~ {Invisible:1,Invulnerable:1,Marker:1,NoGravity:1,Tags:["tsLightDis","tsLightDisRed"]}

execute @e[tag=tsLight,score_tsLightRed_min=1,score_tsLightRed=1] ~ ~ ~ entitydata @e[tag=tsLightDisRed,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:85}]}
execute @e[tag=tsLight,score_tsLightRed_min=2,score_tsLightRed=2] ~ ~ ~ entitydata @e[tag=tsLightDisRed,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:86}]}
execute @e[tag=tsLight,score_tsLightRed_min=3,score_tsLightRed=3] ~ ~ ~ entitydata @e[tag=tsLightDisRed,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:88}]}
execute @e[tag=tsLight,score_tsLightRed_min=4,score_tsLightRed=4] ~ ~ ~ entitydata @e[tag=tsLightDisRed,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:89}]}
execute @e[tag=tsLight,score_tsLightRed_min=5,score_tsLightRed=5] ~ ~ ~ entitydata @e[tag=tsLightDisRed,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:91}]}
execute @e[tag=tsLight,score_tsLightRed_min=6,score_tsLightRed=6] ~ ~ ~ entitydata @e[tag=tsLightDisRed,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:93}]}
execute @e[tag=tsLight,score_tsLightRed_min=7,score_tsLightRed=7] ~ ~ ~ entitydata @e[tag=tsLightDisRed,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:94}]}
execute @e[tag=tsLight,score_tsLightRed_min=8,score_tsLightRed=8] ~ ~ ~ entitydata @e[tag=tsLightDisRed,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:96}]}
execute @e[tag=tsLight,score_tsLightRed_min=9,score_tsLightRed=9] ~ ~ ~ entitydata @e[tag=tsLightDisRed,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:97}]}
execute @e[tag=tsLight,score_tsLightRed_min=10,score_tsLightRed=10] ~ ~ ~ entitydata @e[tag=tsLightDisRed,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:99}]}
execute @e[tag=tsLight,score_tsLightRed_min=11,score_tsLightRed=11] ~ ~ ~ entitydata @e[tag=tsLightDisRed,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:100}]}
execute @e[tag=tsLight,score_tsLightRed_min=12,score_tsLightRed=12] ~ ~ ~ entitydata @e[tag=tsLightDisRed,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:102}]}
execute @e[tag=tsLight,score_tsLightRed_min=13,score_tsLightRed=13] ~ ~ ~ entitydata @e[tag=tsLightDisRed,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:104}]}
execute @e[tag=tsLight,score_tsLightRed_min=14,score_tsLightRed=14] ~ ~ ~ entitydata @e[tag=tsLightDisRed,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:105}]}
execute @e[tag=tsLight,score_tsLightRed_min=15,score_tsLightRed=15] ~ ~ ~ entitydata @e[tag=tsLightDisRed,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:107}]}