effect @a [tag=eye_drops] blindness 0 0 true

scoreboard objectives add timer2 dummy
scoreboard players add @a [tag=eye_drops] timer2 1
execute as @a[tag=eye_drops,scores={timer=10..20, blindness=!100},m=!c] positioned ~ ~ ~ run scoreboard players add @a blindness 1
execute as @a[tag=eye_drops,scores={timer=10..20},m=!c] positioned ~ ~ ~ run scoreboard players set @a timer2 0
tag @a[tag=eye_drops,scores={blindness=100},m=!c] remove eye_drops

scoreboard objectives add blindness dummy
scoreboard players add @a [tag=eye_drops] blindness 0
scoreboard players set @a[tag=eye_drops,scores={blindness=101..10000},m=!c] blindness 100
scoreboard players set @a[tag=eye_drops,scores={blindness=-10000..0},m=!c] blindness 0
scoreboard players set @a[tag=eye_drops,scores={blindness=..-1},m=!c] timer 0
scoreboard players set @a [tag=!eye_drops] blindness 0 
