# repeat 2
# wifi接続
# execute if score wifi_seach b matches 1  


execute positioned 48 66 30 run titleraw @a[hasitem={item=c:iphone,location=slot.weapon.mainhand}] title { "rawtext": [{ "translate": "app_4_lv1.text" }] }
execute positioned 48 66 30 run titleraw @a[hasitem={item=c:iphone,location=slot.weapon.mainhand},r=10] title { "rawtext": [{ "translate": "app_4_lv2.text" }] }
execute positioned 48 66 30 run titleraw @a[hasitem={item=c:iphone,location=slot.weapon.mainhand},r=0.8] title { "rawtext": [{ "translate": "app_4_lv3.text" }] }

execute positioned 48 66 30 if entity @a[hasitem={item=c:iphone,location=slot.weapon.mainhand},r=0.8] run scoreboard players add wifi_connect b 2
execute if score wifi_connect b matches 1.. run scoreboard players remove wifi_connect b 1

execute if score wifi_connect b matches 70.. run scoreboard players set wifi_seach b 1
execute if score wifi_seach b matches 1 run function app/4/app_clear
