- D1 Meta Docs - Denizen Script -
Home Page / Pi to one million places / Contact mcmonkey / Donate / Paste Scripts / Denizen Help /
You are browsing as a guest.
Login | Register


Click here to create your own public paste ~ ~ click to duplicate and edit this paste


TitleUntitled Paste
TypeDenizen Script
Date2014/07/23 15:22:16 UTC-07:00
ByAnthony
Other
Paste
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
4300
'PortEvents':
  type: world
  speed: 1t
  debug: true
  events:

    on port command:
    - determine passively fulfilled
    - define arg1 <c.args.get[1]>
    - if li@free|starter|intermediate|advanced !contains %arg1% {
      - narrate "That world does not exist!"
      - queue stop
      }
    - if <queue.exists[<player.name>_WarpQueue]> {
      - narrate "You are already waiting to teleport..."
      - queue stop
      }
    - narrate "<&c>Warping in 5s... Please stand still!"
    - run locally warp id:<player.name>_WarpQueue def:%arg1%
    - listen travel type:distance distance:1 script:CancelWarp id:<player.name>_WarpCancel


  warp:
    - ^define counter <def[counter].as_int||5>
    - ^if <def[counter].is[OR_LESS].than[0]> {
      - listen cancel id:<player.name>_WarpCancel
      - adjust <player> 'show_boss_bar:0|<&3><&l>Teleporting Now!'
      - wait 2t
      - narrate "<&b><&o><player.name><&f> has just teleported to the <&b><&o><def[1].to_titlecase><&f> world." targets:<player.location.find.players.within[25]>
      - playeffect <player.location> effect:cloud qty:100 data:1
      - teleport <player> l@0.5,17,0.5,%1%
      - wait 1s
      - adjust <player> 'show_boss_bar:200|<&3><&l>Now in the <def[1].to_titlecase> world'
      - adjust <player> show_boss_bar
      - queue stop
      }
    - ^define barLevel <def[counter].mul[40].as_int>
    - ^adjust <player> 'show_boss_bar:%barLevel%|<&6>Teleporting in<&co> <&c><&l>%counter%'
    - ^playeffect <player.location> effect:cloud qty:100 data:0.07
    - ^define counter <def[counter].sub[1].as_int>
    - ^wait 1s
    - ^inject locally warp



RawRaw



Pastes made: 62777