Date: 2024/10/22 17:40:33 UTC-07:00
Type: Denizen Script
fishing_casting_handler:
type: task
debug: false
script:
- stop if:<player.has_flag[nt.reelStateCooldown]>
- define progress 0
- define speed <util.random.decimal[0.02].to[0.08]>
- while <player.has_flag[nt.reelState]>:
- wait 1t
- if <[progress]> >= 1:
- define progress 0
- else:
- define progress:+:<[speed]>
- bossbar auto castingBar_<player.uuid> "title:<&3><&l>[ CASTING ]" color:blue progress:<[progress]>
- if <[progress]> >= 0.95:
- bossbar auto castingBar_<player.uuid> "title:<&a><&l>[ CASTING ]" color:blue progress:1
- narrate <[progress]>
- if <[progress]> >= 0.95:
- bossbar auto castingBar_<player.uuid> "title:<&e><&l>[ PERFECT ]" color:yellow progress:1
- wait 0.5s
- bossbar remove castingBar_<player.uuid>
- else:
- bossbar remove castingBar_<player.uuid>