Paste #42387: Untitled Paste

Date: 2017/06/04 16:10:09 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9


- if <context.entity.health.percentage.div[1].as_int||0> == 100 {
        - bossbar update BOSSBAR_<context.entity> players:<context.entity.location.find.players.within[30]> title:<&4><&l>DungeonBoss progress:1.0
        }
        else if <context.entity.health.percentage.div[1].as_int||0> == 0.1 || <context.entity.health.percentage.div[1].as_int||0> == 0.9 || <context.entity.health.percentage.div[1].as_int||0> == 0.8 || <context.entity.health.percentage.div[1].as_int||0> == 0.7 || <context.entity.health.percentage.div[1].as_int||0> == 0.6 || <context.entity.health.percentage.div[1].as_int||0> == 0.5 || <context.entity.health.percentage.div[1].as_int||0> == 0.4 || <context.entity.health.percentage.div[1].as_int||0> == 0.3 || <context.entity.health.percentage.div[1].as_int||0> == 0.2 || <context.entity.health.percentage.div[1].as_int||0> == 0.1 {
        - bossbar update BOSSBAR_<context.entity> players:<context.entity.location.find.players.within[30]> title:<&4><&l>DungeonBoss progress:0.0<context.entity.health.percentage.div[1].as_int||0>
        }
        else {
        - bossbar update BOSSBAR_<context.entity> players:<context.entity.location.find.players.within[30]> title:<&4><&l>DungeonBoss progress:0.<context.entity.health.percentage.div[1].as_int||0>
        }