Date: 2019/11/04 11:43:06 UTC-08: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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
DeadRinger:
debug: false
type: world
events:
on player damaged:
- if <context.entity.has_flag[ringer2]>:
- determine cancelled
- if "<context.entity.item_in_hand.display.contains_text[dead ringer]>":
- narrate "<&e>Ringer triggered!"
- determine <context.entity.health.mul[10000]>
- flag <context.entity> deathlocation:<context.entity.location.simple>
- flag <context.entity> deathgamemode:<context.entity.gamemode>
- flag <context.entity> deathhealth:<context.entity.health.sub[<context.final_damage>]>
DeadRingerDeath:
debug: false
type: world
events:
on player death:
- if "<context.entity.item_in_hand.display.contains_text[dead ringer]>":
- determine KEEP_INV passively
- determine KEEP_LEVEL passively
- narrate target:<context.entity> "<&e>Dead ringer activated"
- flag <context.entity> ringer
- wait 20t
- adjust <context.entity> respawn:true
- adjust <context.entity> respawn:false
- wait 1t
- teleport <context.entity> <context.entity.flag[deathlocation]>
- adjust <context.entity> gamemode:<context.entity.flag[deathgamemode]>
- adjust <context.entity> health:<context.entity.flag[deathhealth]>
- cast speed d:13 p:2
- cast invisibility d:13 p:2
- disguise misc target:<context.entity> type:falling_block id:54
- wait 13s
- if <context.entity.has_flag[ringer]>:
- flag <context.entity> ringer:!
- disguise remove <context.entity>
- cast speed remove <context.entity>
- cast invisibility remove <context.entity>
- playsound <context.entity.location.simple> sound:block_portal_travel pitch:1.65 volume:0.3
- playsound <context.entity.location.simple> sound:entity_player_levelup pitch:0.5 volume:0.3
- playsound <context.entity.location.simple> sound:entity_player_levelup pitch:0.5 volume:0.3
- playsound <context.entity.location.simple> sound:entity_player_levelup pitch:0.5 volume:0.3
DeadRingerDeath2:
debug: false
type: world
events:
on player death:
- if "<context.entity.item_in_hand.display.contains_text[dead ringer]>":
- wait 1t
- take slot:hand <context.entity>
- flag <context.entity> ringer2
- wait 6s
- flag <context.entity> ringer2:!
################################################################################################################################################################################################
DeadRingerOff:
debug: false
type: world
events:
on player damaged:
- if <context.entity.has_flag[ringer2]>:
- determine cancelled
- if "<context.entity.item_in_offhand.display.contains_text[dead ringer]>":
- narrate "<&e>Ringer triggered!"
- determine <context.entity.health.mul[10000]>
- flag <context.entity> deathlocation:<context.entity.location.simple>
- flag <context.entity> deathgamemode:<context.entity.gamemode>
- flag <context.entity> deathhealth:<context.entity.health.sub[<context.final_damage>]>
DeadRingerDeathOff:
debug: false
type: world
events:
on player death:
- if "<context.entity.item_in_offhand.display.contains_text[dead ringer]>":
- determine KEEP_INV passively
- determine KEEP_LEVEL passively
- narrate target:<context.entity> "<&e>Dead ringer activated"
- flag <context.entity> ringer
- wait 20t
- adjust <context.entity> respawn:true
- adjust <context.entity> respawn:false
- wait 1t
- teleport <context.entity> <context.entity.flag[deathlocation]>
- adjust <context.entity> gamemode:<context.entity.flag[deathgamemode]>
- adjust <context.entity> health:<context.entity.flag[deathhealth]>
- cast speed d:13 p:2
- cast invisibility d:13 p:2
- disguise misc target:<context.entity> type:falling_block id:54
- wait 13s
- if <context.entity.has_flag[ringer]>:
- flag <context.entity> ringer:!
- disguise remove <context.entity>
- cast speed remove <context.entity>
- cast invisibility remove <context.entity>
- playsound <context.entity.location.simple> sound:block_portal_travel pitch:1.65 volume:0.3
- playsound <context.entity.location.simple> sound:entity_player_levelup pitch:0.5 volume:0.3
- playsound <context.entity.location.simple> sound:entity_player_levelup pitch:0.5 volume:0.3
- playsound <context.entity.location.simple> sound:entity_player_levelup pitch:0.5 volume:0.3
DeadRingerDeath2Off:
debug: false
type: world
events:
on player death:
- if "<context.entity.item_in_offhand.display.contains_text[dead ringer]>":
- wait 1t
- take slot:offhand <context.entity>
- flag <context.entity> ringer2
- wait 6s
- flag <context.entity> ringer2:!