Paste #20916: Untitled Paste

Date: 2015/10/15 04:57:49 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
16
17
18


JetPackMaze:
  type: world
  events:
    on player right clicks with stone:
    - if <context.item> contains display_name=<&8>JetPack {
      - if <player.flag[cooldownJetPackMaze]> == true {
        - narrate "On cooldown."
        } else {
        - narrate "<player.location.line_of_sight[<player.location.add[0,8,0]>]>"
        - if <player.location.line_of_sight[<player.location.add[0,8,0]>]> == true {
          - ^fly <player> origin:<player.location> destinations:<player.location.add[0,8,0]> rotationthreshold:2
          - ^cast DAMAGE_RESISTANCE duration:4.5s power:8 <player>
          - ^flag player "cooldownJetPackMaze:true" duration:1.0S
          } else {
          - narrate "Not in sight bla"
          }
        }
      }