Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #RocketTravel
- #By nfell2009
- options:
- P: &8[&cRT&8]&c #The text default
- Y: 60 #Height for blocks to fall from
- command /rockettravel [<text>] [<text>] [<text>]:
- aliases: /rt, /rockett, /rocket,
- permission: rocket.travel
- trigger:
- if arg 1 is not set:
- message "{@P} Invalid sub-command! Do /rt help for help!"
- else if arg 1 is "create":
- if arg 2 is not set:
- message "{@P} You must provide a name!"
- else if {rt.rocketlist::*} contains arg 2:
- message "{@P} This rocket already exists!"
- else:
- set {_loc.pp} to location of player
- set {_loc.x} to x coordinate of player
- set {_loc.y} to y coordinate of player
- set {_loc.z} to z coordinate of player
- #First Fence
- add 3 to {_loc.z}
- set {_loc.p} to the location at {_loc.x}, {_loc.y}, {_loc.z}
- teleport player to {_loc.p}
- loop blocks above player:
- set loop-block to air
- execute op command "/summon FallingSand ~0 ~{@Y} ~0 {TileID:113,Time:1}"
- wait 1 tick
- #Second Fence
- subtract 1 from {_loc.z}
- subtract 1 from {_loc.x}
- set {_loc.p} to the location at {_loc.x}, {_loc.y}, {_loc.z}
- teleport player to {_loc.p}
- loop blocks above player:
- set loop-block to air
- execute op command "/summon FallingSand ~0 ~{@Y} ~0 {TileID:113,Time:1}"
- wait 1 tick
- #Third Fence
- add 2 to {_loc.x}
- set {_loc.p} to the location at {_loc.x}, {_loc.y}, {_loc.z}
- teleport player to {_loc.p}
- loop blocks above player:
- set loop-block to air
- execute op command "/summon FallingSand ~0 ~{@Y} ~0 {TileID:113,Time:1}"
- wait 1 tick
- #Red Wool
- subtract 1 from {_loc.x}
- set {_loc.p} to the location at {_loc.x}, {_loc.y}, {_loc.z}
- teleport player to {_loc.p}
- loop blocks above player:
- set loop-block to air
- execute op command "/summon FallingSand ~0 ~{@Y} ~0 {TileID:152,Time:1}"
- wait 1 tick
- execute op command "/summon FallingSand ~0 ~{@Y} ~0 {TileID:123,Time:1}"
- wait 1 tick
- execute op command "/summon FallingSand ~0 ~{@Y} ~0 {TileID:35,Data:14,Time:1}"
- wait 1 tick
- execute op command "/summon FallingSand ~0 ~{@Y} ~0 {TileID:113,Time:1}"
- wait 1 tick
- #Final Fence
- subtract 1 from {_loc.z}
- set {_loc.p} to the location at {_loc.x}, {_loc.y}, {_loc.z}
- teleport player to {_loc.p}
- loop blocks above player:
- set loop-block to air
- execute op command "/summon FallingSand ~0 ~{@Y} ~0 {TileID:113,Time:1}"
- wait 1 second
- #Sign
- loop blocks above player:
- set loop-block to air
- execute op command "/summon FallingSand ~0 ~{@Y} ~0 {TileID:68,Data:2,Time:10}"
- wait 5 seconds
- add 1 to {_loc.y}
- set {_sign} to location at {_loc.x}, {_loc.y}, {_loc.z}
- subtract 1 from {_loc.y}
- set {_loc.p} to the location at {_loc.x}, {_loc.y}, {_loc.z}
- teleport the player to {_loc.p}
- loop blocks above player:
- loop-block is wall sign:2:
- set line 1 of loop-block to "[RTravel]"
- set line 2 of loop-block to "%arg 2%"
- if arg 3 is not set:
- set line 3 of loop-block to "Landing Bay"
- set {rt.%arg 2%.goto} to {_loc.pp}
- else:
- set line 3 of loop-block to "Take Off!"
- teleport player to {_loc.pp}
- message "{@P} Finished Making Rocket!"
- on rightclick on a sign:
- line 1 of block is "[RTravel]":
- if line 2 of block is not set:
- message "{@P} Couldn't take you anywhere, there is no location set!"
- else if line 3 of block is "Landing Bay":
- message "{@P} You can't be taken to a Spawn point!"
- else if line 3 of block is "Take Off!":
- set {_rt.goto} to line 2 of block
- if {rt.%{_rt.goto}%.goto} is set:
- message "{@P} Blasting off in..."
- message "{@P} 3..."
- wait 1 second
- message "{@P} 2..."
- wait 1 second
- message "{@P} 1..."
- wait 1 second
- message "{@P} Blast off!"
- teleport player to {rt.%{_rt.goto}%.goto}
- else:
- message "{@P} Unknown RocketTravel Sign!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement