Other available versions. Ordered by newest to oldest versions:
Just so you know, we don't know the file format for every file. If it's just a bunch of random characters, it's probably a .zip or .jar.
options:
# [ Change what block you want to be used in the elevator ]
block: wool
# [ The sound that plays when you use the elevator ]
sound: "block.note_block.bell"
on jump:
block below player is {@block}
loop integers between 0 and 100:
if block loop-value above block above player is {@block}:
set {_j} to block above block loop-value-1 above block above player
{_j} is passable
set {_p} to location of player
set y-coord of {_p} to floor(y-coord of {_j})
teleport player to {_p}
play sound {@sound} to player
stop
# [ Elevator 2.1 | sentai#7144 ]
on sneak toggle:
block below player is {@block}
player is sneaking
loop integers between 1 and 100:
if block loop-value below block below player is {@block}:
set {_b} to block above block loop-value-1 below block below player
{_b} is passable
set {_p} to location of player
set y-coord of {_p} to floor(y-coord of {_b})
teleport player to {_p}
play sound {@sound} to player
stop
# [ No need to to change anything else, that's it! ]