scoreboard players remove @e[score_tsLightGreen_min=1] tsLightGreen 1

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

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

execute @e[score_tsLightGreen=0,tag=tsLightHasGreen] ~ ~ ~ kill @e[r=1,c=1,tag=tsLightDisGreen] 
execute @e[score_tsLightGreen_min=1,tag=!tsLightHasGreen] ~ ~ ~ summon minecraft:armor_stand ~ ~ ~ {Invisible:1,Invulnerable:1,Marker:1,NoGravity:1,Tags:["tsLightDis","tsLightDisGreen"]}

execute @e[tag=tsLight,score_tsLightGreen_min=1,score_tsLightGreen=1] ~ ~ ~ entitydata @e[tag=tsLightDisGreen,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:132}]}
execute @e[tag=tsLight,score_tsLightGreen_min=2,score_tsLightGreen=2] ~ ~ ~ entitydata @e[tag=tsLightDisGreen,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:133}]}
execute @e[tag=tsLight,score_tsLightGreen_min=3,score_tsLightGreen=3] ~ ~ ~ entitydata @e[tag=tsLightDisGreen,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:135}]}
execute @e[tag=tsLight,score_tsLightGreen_min=4,score_tsLightGreen=4] ~ ~ ~ entitydata @e[tag=tsLightDisGreen,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:136}]}
execute @e[tag=tsLight,score_tsLightGreen_min=5,score_tsLightGreen=5] ~ ~ ~ entitydata @e[tag=tsLightDisGreen,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:138}]}
execute @e[tag=tsLight,score_tsLightGreen_min=6,score_tsLightGreen=6] ~ ~ ~ entitydata @e[tag=tsLightDisGreen,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:139}]}
execute @e[tag=tsLight,score_tsLightGreen_min=7,score_tsLightGreen=7] ~ ~ ~ entitydata @e[tag=tsLightDisGreen,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:141}]}
execute @e[tag=tsLight,score_tsLightGreen_min=8,score_tsLightGreen=8] ~ ~ ~ entitydata @e[tag=tsLightDisGreen,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:143}]}
execute @e[tag=tsLight,score_tsLightGreen_min=9,score_tsLightGreen=9] ~ ~ ~ entitydata @e[tag=tsLightDisGreen,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:144}]}
execute @e[tag=tsLight,score_tsLightGreen_min=10,score_tsLightGreen=10] ~ ~ ~ entitydata @e[tag=tsLightDisGreen,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:146}]}
execute @e[tag=tsLight,score_tsLightGreen_min=11,score_tsLightGreen=11] ~ ~ ~ entitydata @e[tag=tsLightDisGreen,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:147}]}
execute @e[tag=tsLight,score_tsLightGreen_min=12,score_tsLightGreen=12] ~ ~ ~ entitydata @e[tag=tsLightDisGreen,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:149}]}
execute @e[tag=tsLight,score_tsLightGreen_min=13,score_tsLightGreen=13] ~ ~ ~ entitydata @e[tag=tsLightDisGreen,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:150}]}
execute @e[tag=tsLight,score_tsLightGreen_min=14,score_tsLightGreen=14] ~ ~ ~ entitydata @e[tag=tsLightDisGreen,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:152}]}
execute @e[tag=tsLight,score_tsLightGreen_min=15,score_tsLightGreen=15] ~ ~ ~ entitydata @e[tag=tsLightDisGreen,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:153}]}