Paste #19654: Edit of P#19652 - Edit of P#19650 - Edit of P#19646 - Untitled Paste

Date: 2015/08/22 18:37:06 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


respawn:
  type: task
  definitions: player
  debug: false
  script:
    - inventory clear d:<p@%player%>
    - burn %player% duration:0
    - heal %player%

playerkilled:
  type: world
  debug: false
  events:
    on player kills player:
      - announce "<context.entity> was killed by <context.damager> with <tern[<context.damager.item_in_hand>.is[==].to[i@air]:their fist||<context.damager.item_in_hand>>"
      - run respawn "def:<context.entity>"

playerdeath:
  type: world
  debug: false
  events:
    on player dies:
      - if <context.damager.is_mob> or <context.damager.is_player> {
        - announce "<context.entity> was killed by <context.damager> with <tern[<context.damager.item_in_hand>.is[==].to[i@air]:their fist||<context.damager.item_in_hand>>"
        - run respawn "def:<context.entity>"
      } else {
        - announce "<context.entity> was killed by <context.cause>"
      }
      - determine CANCELLED