- 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








The script repo is an archive of historical scripts. For modern scripts, or to post your own, please use the Scripts forum section.





Jump Cancel!


By Pigman168
Created: 2015/07/15 15:24:16 UTC-07:00 (8 years and 297 days ago)
Edited: 2015/07/20 11:45:56 UTC-07:00 (8 years and 292 days ago)
Likes: 0

Denizen Version: 0.9.7
Script Version: 1.5
Description:

Cancels the players jump perfectly! (Does not account for boosts!)


Download script | View raw 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
2400

TeleportBack:
  type: world
  events:
    on player jumps:
    - if <player.location.x.replace[-].sub[<context.location.x.replace[-]>].is[LESS].than[0.2]> || <player.location.z.replace[-].sub[<context.location.z.replace[-]>].is[LESS].than[0.2]> {
      - queue clear
      }
    - 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]>]>






View History