Paste #46019: Edit of P#46017 - Untitled Paste

Date: 2017/12/19 14:45:14 UTC-08:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15


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]>
          }