Date: 2015/07/15 15:24:16 UTC-07:00
Type: Denizen Script
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]>]>