Date: 2017/12/19 14:45:14 UTC-08:00
Type: Denizen Script
on entity damaged by player:
- if !<player.has_flag[blood]> && <script.list_keys[config].contains[<c.entity.entity_type>]> {
- flag player blood:true duration:0.5
- playeffect <context.entity.location> effects:DRIP_LAVA quantity:5
- playeffect <context.entity.location> effects:REDSTONE offset:0.4,0.7,0.4 quantity:25
- actionbar "<&c><c.entity.health.round_to[2]> <&7>/ <&2><c.entity.health.max> <&c>❤"
- define name '<&c><&L>-<context.final_damage.round_to[2]>'
- spawn armor_stand[visible=false;marker=true;gravity=false;custom_name_visible=true;custom_name=<def[name]>] <context.entity.location.add[0,2,0]> save:bar
- define bar <entry[bar].spawned_entities.get[1]>
- repeat 5 {
- wait 0.07s
- adjust <def[bar]> move:0,0.3,0
}
- remove <def[bar]>
}