scoreboard players remove @e[score_tsLightBlue_min=1] tsLightBlue 1

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

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

execute @e[score_tsLightBlue=0,tag=tsLightHasBlue] ~ ~ ~ kill @e[r=1,c=1,tag=tsLightDisBlue] 
execute @e[score_tsLightBlue_min=1,tag=!tsLightHasBlue] ~ ~ ~ summon minecraft:armor_stand ~ ~ ~ {Invisible:1,Invulnerable:1,Marker:1,NoGravity:1,Tags:["tsLightDis","tsLightDisBlue"]}

execute @e[tag=tsLight,score_tsLightBlue_min=1,score_tsLightBlue=1] ~ ~ ~ entitydata @e[tag=tsLightDisBlue,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:108}]}
execute @e[tag=tsLight,score_tsLightBlue_min=2,score_tsLightBlue=2] ~ ~ ~ entitydata @e[tag=tsLightDisBlue,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:110}]}
execute @e[tag=tsLight,score_tsLightBlue_min=3,score_tsLightBlue=3] ~ ~ ~ entitydata @e[tag=tsLightDisBlue,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:111}]}
execute @e[tag=tsLight,score_tsLightBlue_min=4,score_tsLightBlue=4] ~ ~ ~ entitydata @e[tag=tsLightDisBlue,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:113}]}
execute @e[tag=tsLight,score_tsLightBlue_min=5,score_tsLightBlue=5] ~ ~ ~ entitydata @e[tag=tsLightDisBlue,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:114}]}
execute @e[tag=tsLight,score_tsLightBlue_min=6,score_tsLightBlue=6] ~ ~ ~ entitydata @e[tag=tsLightDisBlue,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:116}]}
execute @e[tag=tsLight,score_tsLightBlue_min=7,score_tsLightBlue=7] ~ ~ ~ entitydata @e[tag=tsLightDisBlue,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:118}]}
execute @e[tag=tsLight,score_tsLightBlue_min=8,score_tsLightBlue=8] ~ ~ ~ entitydata @e[tag=tsLightDisBlue,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:119}]}
execute @e[tag=tsLight,score_tsLightBlue_min=9,score_tsLightBlue=9] ~ ~ ~ entitydata @e[tag=tsLightDisBlue,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:121}]}
execute @e[tag=tsLight,score_tsLightBlue_min=10,score_tsLightBlue=10] ~ ~ ~ entitydata @e[tag=tsLightDisBlue,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:122}]}
execute @e[tag=tsLight,score_tsLightBlue_min=11,score_tsLightBlue=11] ~ ~ ~ entitydata @e[tag=tsLightDisBlue,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:124}]}
execute @e[tag=tsLight,score_tsLightBlue_min=12,score_tsLightBlue=12] ~ ~ ~ entitydata @e[tag=tsLightDisBlue,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:125}]}
execute @e[tag=tsLight,score_tsLightBlue_min=13,score_tsLightBlue=13] ~ ~ ~ entitydata @e[tag=tsLightDisBlue,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:127}]}
execute @e[tag=tsLight,score_tsLightBlue_min=14,score_tsLightBlue=14] ~ ~ ~ entitydata @e[tag=tsLightDisBlue,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:129}]}
execute @e[tag=tsLight,score_tsLightBlue_min=15,score_tsLightBlue=15] ~ ~ ~ entitydata @e[tag=tsLightDisBlue,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:130}]}