#tog lang lock 

#score
scoreboard players add lang_lock setting 1
execute if score lang_lock setting matches 2.. run scoreboard players set lang_lock setting 0

#notification
execute if score lang_lock setting matches 0 run tellraw @s [{"nbt":"msg.lang.lock.togf","storage":"lang","interpret":true}]
execute if score lang_lock setting matches 1 run tellraw @s [{"nbt":"msg.lang.lock.togt","storage":"lang","interpret":true}]

playsound entity.experience_orb.pickup block @s ~ ~ ~

#sign change
execute if score lang_lock setting matches 0 run data modify block 38 45 -52 back_text.messages[1] set value '{"nbt":"msg.lang.lock.f","storage":"lang","interpret":true}'
execute if score lang_lock setting matches 1 run data modify block 38 45 -52 back_text.messages[1] set value '{"nbt":"msg.lang.lock.t","storage":"lang","interpret":true}'

