scoreboard players remove @e[score_tsLightWhite_min=1] tsLightWhite 1

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

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

execute @e[score_tsLightWhite=0,tag=tsLightHasWhite] ~ ~ ~ kill @e[r=1,c=1,tag=tsLightDisWhite] 
execute @e[score_tsLightWhite_min=1,tag=!tsLightHasWhite] ~ ~ ~ summon minecraft:armor_stand ~ ~ ~ {Invisible:1,Invulnerable:1,Marker:1,NoGravity:1,Tags:["tsLightDis","tsLightDisWhite"]}

execute @e[tag=tsLight,score_tsLightWhite_min=1,score_tsLightWhite=1] ~ ~ ~ entitydata @e[tag=tsLightDisWhite,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:178}]}
execute @e[tag=tsLight,score_tsLightWhite_min=2,score_tsLightWhite=2] ~ ~ ~ entitydata @e[tag=tsLightDisWhite,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:180}]}
execute @e[tag=tsLight,score_tsLightWhite_min=3,score_tsLightWhite=3] ~ ~ ~ entitydata @e[tag=tsLightDisWhite,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:182}]}
execute @e[tag=tsLight,score_tsLightWhite_min=4,score_tsLightWhite=4] ~ ~ ~ entitydata @e[tag=tsLightDisWhite,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:183}]}
execute @e[tag=tsLight,score_tsLightWhite_min=5,score_tsLightWhite=5] ~ ~ ~ entitydata @e[tag=tsLightDisWhite,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:185}]}
execute @e[tag=tsLight,score_tsLightWhite_min=6,score_tsLightWhite=6] ~ ~ ~ entitydata @e[tag=tsLightDisWhite,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:186}]}
execute @e[tag=tsLight,score_tsLightWhite_min=7,score_tsLightWhite=7] ~ ~ ~ entitydata @e[tag=tsLightDisWhite,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:188}]}
execute @e[tag=tsLight,score_tsLightWhite_min=8,score_tsLightWhite=8] ~ ~ ~ entitydata @e[tag=tsLightDisWhite,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:189}]}
execute @e[tag=tsLight,score_tsLightWhite_min=9,score_tsLightWhite=9] ~ ~ ~ entitydata @e[tag=tsLightDisWhite,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:191}]}
execute @e[tag=tsLight,score_tsLightWhite_min=10,score_tsLightWhite=10] ~ ~ ~ entitydata @e[tag=tsLightDisWhite,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:193}]}
execute @e[tag=tsLight,score_tsLightWhite_min=11,score_tsLightWhite=11] ~ ~ ~ entitydata @e[tag=tsLightDisWhite,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:194}]}
execute @e[tag=tsLight,score_tsLightWhite_min=12,score_tsLightWhite=12] ~ ~ ~ entitydata @e[tag=tsLightDisWhite,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:196}]}
execute @e[tag=tsLight,score_tsLightWhite_min=13,score_tsLightWhite=13] ~ ~ ~ entitydata @e[tag=tsLightDisWhite,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:197}]}
execute @e[tag=tsLight,score_tsLightWhite_min=14,score_tsLightWhite=14] ~ ~ ~ entitydata @e[tag=tsLightDisWhite,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:199}]}
execute @e[tag=tsLight,score_tsLightWhite_min=15,score_tsLightWhite=15] ~ ~ ~ entitydata @e[tag=tsLightDisWhite,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:200}]}