scoreboard players set .number_max dialog 2
execute if score .number dialog matches 0 store result score .random dialog run random value 1..3


execute if score .number dialog matches 1.. if score .random dialog matches 1 run function main:dialog/text/text {"name":"Tobie","name_color":"yellow","text":"Peace of a while...","text_color":"white","duration":10}
execute if score .number dialog matches 1.. if score .random dialog matches 2 run function main:dialog/text/text {"name":"Tobie","name_color":"yellow","text":"At last... some rest...","text_color":"white","duration":10}
execute if score .number dialog matches 1.. if score .random dialog matches 3 run function main:dialog/text/text {"name":"Tobie","name_color":"yellow","text":"Die...","text_color":"white","duration":30}

