Paste #36054: Auto Player Respawner

Date: 2016/09/14 09:10:16 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


Auto_Respawn_Event:
    type: world
    debug: false
    events:
        on player damaged:
        - if <context.final_damage> >= <player.health> {
            - determine cancelled passively
            - drop <player.inventory.list_contents.full> <player.location>
            - inventory remove o:<player.inventory>
            - hurt 0
            - feed amount:20
            - heal 20
            - event "player death"
            - event "player respawns"
        }