scoreboard players add @s GlassGen 0
scoreboard players add @s[tag=GlassGen2,scores={GlassGen=0..1}] GlassGen 1
tellraw @s[tag=GlassGen2,scores={GlassGen=1}] ["",{"text":"Glass generator toggled on!","color":"green"}]
scoreboard players set @s[tag=GlassGen2,scores={GlassGen=2}] GlassGen 0
tellraw @s[tag=GlassGen2,scores={GlassGen=0}] ["",{"text":"Glass generator toggled off!","color":"yellow"}]
scoreboard players set @s KyuSpells 0