scoreboard players remove @e[score_tsLightYellow_min=1] tsLightYellow 1

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

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

execute @e[score_tsLightYellow=0,tag=tsLightHasYellow] ~ ~ ~ kill @e[r=1,c=1,tag=tsLightDisYellow] 
execute @e[score_tsLightYellow_min=1,tag=!tsLightHasYellow] ~ ~ ~ summon minecraft:armor_stand ~ ~ ~ {Invisible:1,Invulnerable:1,Marker:1,NoGravity:1,Tags:["tsLightDis","tsLightDisYellow"]}

execute @e[tag=tsLight,score_tsLightYellow_min=1,score_tsLightYellow=1] ~ ~ ~ entitydata @e[tag=tsLightDisYellow,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:155}]}
execute @e[tag=tsLight,score_tsLightYellow_min=2,score_tsLightYellow=2] ~ ~ ~ entitydata @e[tag=tsLightDisYellow,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:157}]}
execute @e[tag=tsLight,score_tsLightYellow_min=3,score_tsLightYellow=3] ~ ~ ~ entitydata @e[tag=tsLightDisYellow,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:158}]}
execute @e[tag=tsLight,score_tsLightYellow_min=4,score_tsLightYellow=4] ~ ~ ~ entitydata @e[tag=tsLightDisYellow,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:160}]}
execute @e[tag=tsLight,score_tsLightYellow_min=5,score_tsLightYellow=5] ~ ~ ~ entitydata @e[tag=tsLightDisYellow,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:161}]}
execute @e[tag=tsLight,score_tsLightYellow_min=6,score_tsLightYellow=6] ~ ~ ~ entitydata @e[tag=tsLightDisYellow,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:163}]}
execute @e[tag=tsLight,score_tsLightYellow_min=7,score_tsLightYellow=7] ~ ~ ~ entitydata @e[tag=tsLightDisYellow,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:164}]}
execute @e[tag=tsLight,score_tsLightYellow_min=8,score_tsLightYellow=8] ~ ~ ~ entitydata @e[tag=tsLightDisYellow,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:166}]}
execute @e[tag=tsLight,score_tsLightYellow_min=9,score_tsLightYellow=9] ~ ~ ~ entitydata @e[tag=tsLightDisYellow,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:168}]}
execute @e[tag=tsLight,score_tsLightYellow_min=10,score_tsLightYellow=10] ~ ~ ~ entitydata @e[tag=tsLightDisYellow,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:169}]}
execute @e[tag=tsLight,score_tsLightYellow_min=11,score_tsLightYellow=11] ~ ~ ~ entitydata @e[tag=tsLightDisYellow,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:171}]}
execute @e[tag=tsLight,score_tsLightYellow_min=12,score_tsLightYellow=12] ~ ~ ~ entitydata @e[tag=tsLightDisYellow,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:172}]}
execute @e[tag=tsLight,score_tsLightYellow_min=13,score_tsLightYellow=13] ~ ~ ~ entitydata @e[tag=tsLightDisYellow,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:174}]}
execute @e[tag=tsLight,score_tsLightYellow_min=14,score_tsLightYellow=14] ~ ~ ~ entitydata @e[tag=tsLightDisYellow,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:175}]}
execute @e[tag=tsLight,score_tsLightYellow_min=15,score_tsLightYellow=15] ~ ~ ~ entitydata @e[tag=tsLightDisYellow,c=1,r=1] {ArmorItems:[{},{},{},{id:"diamond_hoe",Count:1,Damage:177}]}