Paste #18183: Repo Script Jump Cancel!

Date: 2015/07/15 15:24:16 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
19


TeleportBack:
  type: world
  events:
    on player jumps:
    - if <player.location.direction.contains[north]> {
      - define z 1
      } else if <player.location.direction.contains[south]> {
      - define z -1
      } else {
      - define z 0
      }
    - if <player.location.direction.contains[west]> {
      - define x 1
      } else if <player.location.direction.contains[east]> {
      - define x -1
      } else {
      - define x 0
      }
    - teleport <player> <player.location.add[<def[x]>,-0.5,<def[z]>]>