Date: 2020/06/24 15:17:11 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
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
#Made by AVolkoff, because why not?
rocket_item:
type: item
display name: Rocket
lore:
- Right click to be launched
- upwards.
material: firework_rocket
RocketPlayer:
type: world
debug: true
events:
on player right clicks with:rocket_item:
- narrate hello
- run Countdown
# - run Explode makes a particle at location
- determine cancelled
Countdown:
type: task
script:
- narrate Starting Countdown
- define count 10
- repeat 10:
- playeffect effect:FLAME at:<player.location> visibility:200 quantity:20
- actionbar <[count]>
- define count:--
- wait 1s
- cast levitation d:4 amplifier:12 false false
- run AddRocket
- run RocketFlameTrail
- stop
RocketFlameTrail:
type: task
script:
- narrate hi
- while <player.has_effect[levitation]>:
- playeffect effect:FLAME at:<player.location> visibility:200 quantity:20
- wait 1t
- run RemoveRocket
- stop
AddRocket:
type: task
script:
- narrate mount
- teleport <player> <player.location.add[0,2,0]>
- mount falling_block,end_rod|falling_block,white_concrete|falling_block,white_concrete|falling_block,white_concrete|falling_block,white_concrete|<player>
#Use minecarts with blocks
- cast invisibility d:4 false false
- stop
RemoveRocket:
type: task
script:
- narrate dismount
- remove <player.location.find.entities[falling_block].within[6.0]>
- run ExplodeRocket
- stop
ExplodeRocket:
type: task
script:
- narrate dismount
- playeffect effect:FLAME at:<player.location> visibility:200 quantity:2000 offset:2.0
- stop