Date: 2020/04/09 18:28:03 UTC-07:00
Type: Denizen Script
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
whatsDeath:
debug: true
type: world
events:
on player death:
- if <player.has_permission[Juggernaut]>:
- determine passively cancelled
- wait 1t
- hurt 40 <player>
- wait 1t
- flag player nodeath
- repeat 10:
- teleport <player> <player.location.add[0,-0.5,0]>
- wait 4t
- wait 40t
- cast regeneration d:920 p:2
nodeathDamage:
debug: true
type: world
events:
on player damaged:
- if <player.has_flag[nodeath]>:
- determine cancelled
nodeathDamagePVP:
debug: true
type: world
events:
on player damages player:
- if <context.entity.has_flag[nodeath]>:
- determine cancelled
nodeathMine:
debug: true
type: world
events:
on player breaks block:
- if <player.has_flag[nodeath]>:
- determine cancelled
nodeathRevive:
debug: true
type: world
events:
on player heals:
- if <player.has_flag[nodeath]>:
- if <player.health> == <player.health_max>:
- cast regeneration remove <player>
- flag player nodeath:!
- narrate "Removed flag nodeath" player:<context.entity>
- flag player rise duration:10s
- wait 10s
- narrate "removed flag rise" player:<context.entity>
nodeathRise:
type: world
events:
on player damaged by suffocation:
- if <context.entity.has_flag[rise]>:
- teleport <player.location.add[0,0.5,0]>
- determine passively cancelled