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