fishing_casting_handler: type: task debug: false script: - stop if: - define progress 0 - define speed - while : - wait 1t - if <[progress]> >= 1: - define progress 0 - else: - define progress:+:<[speed]> - bossbar auto castingBar_ "title:<&3><&l>[ CASTING ]" color:blue progress:<[progress]> - if <[progress]> >= 0.95: - bossbar auto castingBar_ "title:<&a><&l>[ CASTING ]" color:blue progress:1 - narrate <[progress]> - if <[progress]> >= 0.95: - bossbar auto castingBar_ "title:<&e><&l>[ PERFECT ]" color:yellow progress:1 - wait 0.5s - bossbar remove castingBar_ - else: - bossbar remove castingBar_