scoreboard players set .number_max dialog 5



execute if score .number dialog matches 1.. run function main:dialog/text/text {"name":"Diann","name_color":"aqua","text":"Well shit, they got activated.","text_color":"white","duration":20}
execute if score .number dialog matches 2.. run function main:dialog/text/text {"name":"L-30","name_color":"blue","text":"Use your peashooter!","text_color":"white","duration":20}
execute if score .number dialog matches 3.. run function main:dialog/text/text {"name":"Diann","name_color":"aqua","text":"DON`T CALL IT A PEASHOOTER!!!","text_color":"white","duration":20}
execute if score .number dialog matches 4.. run function main:dialog/text/text_custom {text:'{"color":"white","text":"Press","bold":false},{"color":"green","text":" LEFT CLICK ","bold":true},{"color":"white","text":"to use your Normal Attack!","bold":false}',"duration":50}
execute if score .number dialog matches 5.. run function main:dialog/text/text_custom {text:'{"color":"white","text":"Press","bold":false},{"color":"green","text":" RIGHT CLICK ","bold":true},{"color":"white","text":"for alt-fire!","bold":false}',"duration":50}



# execute if score .number dialog matches 1.. run tellraw @a [{"bold":false,"color":"white","text":">>>>"},{"bold":true,"clickEvent":{"action":"run_command","value":"/function main:dialog/stop"},"color":"red","text":"DON`T SKIP"},{"bold":false,"color":"white","text":"<<<<"}]