execute if entity @a[scores={tutorial_room=5,timer4=1}] run data merge entity @e[tag=tut5,limit=1] {CustomNameVisible:1b,CustomName:'[{"text":"[1/3] ","color":"yellow","bold":true,"italic":false},{"text":"At the end of every floor, you are transported to the","color":"white","bold":false,"italic":false},{"text":" Spell Shop","color":"blue","bold":false,"italic":false},{"text":".","color":"white","bold":false,"italic":false}]'}
execute if entity @a[scores={tutorial_room=5,timer4=1}] run execute at @e[tag=tut5,limit=1] run playsound minecraft:ui.button.click master @a ~ ~ ~ 1 1.5

execute if entity @a[scores={tutorial_room=5,timer4=67}] run data merge entity @e[tag=tut5,limit=1] {CustomNameVisible:1b,CustomName:'[{"text":"[2/3] ","color":"yellow","bold":true,"italic":false},{"text":"The","color":"white","bold":false,"italic":false},{"text":" Spell Shop ","color":"blue","bold":false,"italic":false},{"text":"sells various ","color":"white","bold":false,"italic":false},{"text":"spells ","color":"blue","bold":false,"italic":false},{"text":"at the cost of ","color":"white","bold":false,"italic":false},{"text":"shillings","color":"gold","bold":false,"italic":false},{"text":".","color":"white","bold":false,"italic":false}]'}
execute if entity @a[scores={tutorial_room=5,timer4=67}] run execute at @e[tag=tut5,limit=1] run playsound minecraft:ui.button.click master @a ~ ~ ~ 1 1.5

execute if entity @a[scores={tutorial_room=5,timer4=134}] run data merge entity @e[tag=tut5,limit=1] {CustomNameVisible:1b,CustomName:'[{"text":"[3/3] ","color":"yellow","bold":true,"italic":false},{"text":"Punching","color":"red","bold":false,"italic":false},{"text":" a ","color":"white","bold":false,"italic":false},{"text":"spell ","color":"blue","bold":false,"italic":false},{"text":"will allow you to purchase it","color":"white","bold":false,"italic":false},{"text":".","color":"white","bold":false,"italic":false}]'}
execute if entity @a[scores={tutorial_room=5,timer4=134}] run execute at @e[tag=tut5,limit=1] run playsound minecraft:ui.button.click master @a ~ ~ ~ 1 1.5



execute if entity @e[tag=tutbuy,nbt={HurtTime:10s}] run function functionfamily:tutorial/room5_buy