Paste #69315: Untitled Paste

Date: 2020/05/20 22:47:51 UTC-07: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
16


breadhit_effect:
  type: world
  debug: true
  events:
  ##should i have this, or only for win effects?
    on player damages entity:
    #20 looks cool 10 is good too, 100s epic. (maybe add a feature enabling/disabling effects for people/ low, medium, high, epic), maybe a little too performance draining
    #none, low, medium, high
    #none=0, low=10, normal=20, epic=50
    #Flag player Normal/20
    - if <player.has_flag[PlayerSettings.Combat.Effect]>:
      - repeat <player.flag[PlayerSettings.Combat.Effect].after[/]>:
        - displayitem bread <context.entity.location> duration:1s save:<[value]>
        - adjust <entry[<[value]>].dropped> hide_from_players
        - adjust <player> show_entity:<entry[<[value]>].dropped>
        - adjust <entry[<[value]>].dropped> velocity:<util.random.decimal[-1].to[2]>,<util.random.decimal[-0.2].to[0.7]>,<util.random.decimal[-1].to[2]>