nfell2009

RocketTravel Script V2.1 - by nfell2009

Apr 8th, 2014
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 13.01 KB | None | 0 0
  1. #RocketTravel
  2. #By nfell2009
  3.  
  4. options:
  5.     P: &8[&cRT&8]&c #The text default
  6.     Y: 60 #Height for blocks to fall from
  7.  
  8. command /rockettravel [<text>] [<text>] [<text>] [<text>]:
  9.     aliases: /rt, /rockett, /rocket,
  10.     permission: rocket.travel
  11.     trigger:
  12.         if arg 1 is not set:
  13.             message "{@P} Invalid sub-command! Do /rt help for help!"
  14.         else if arg 1 is "create":
  15.             if arg 2 is not set:
  16.                 message "{@P} You must provide a name!"
  17.             else if {rt.rocketlist::*} contains arg 2:
  18.                 message "{@P} This rocket already exists!"
  19.                 #=============================================
  20.                 #=============================================
  21.                 #
  22.                 # SOUTH CREATOR
  23.                 #
  24.                 #=============================================
  25.                 #=============================================
  26.             else if player's horizontal facing is south:
  27.                 set {_loc.pp} to location of player
  28.                 set {_loc.x} to x coordinate of player
  29.                 set {_loc.y} to y coordinate of player
  30.                 set {_loc.z} to z coordinate of player
  31.                 #First Fence
  32.                 add 3 to {_loc.z}
  33.                 set {_loc.p} to the location at {_loc.x}, {_loc.y}, {_loc.z}
  34.                 teleport player to {_loc.p}
  35.                 loop blocks above player:
  36.                     set loop-block to air
  37.                 execute op command "/summon FallingSand ~0 ~{@Y} ~0 {TileID:113,Time:1}"
  38.                 wait 1 tick
  39.                 #Second Fence
  40.                 subtract 1 from {_loc.z}
  41.                 subtract 1 from {_loc.x}
  42.                 set {_loc.p} to the location at {_loc.x}, {_loc.y}, {_loc.z}
  43.                 teleport player to {_loc.p}
  44.                 loop blocks above player:
  45.                     set loop-block to air
  46.                 execute op command "/summon FallingSand ~0 ~{@Y} ~0 {TileID:113,Time:1}"
  47.                 wait 1 tick
  48.                 #Third Fence
  49.                 add 2 to {_loc.x}
  50.                 set {_loc.p} to the location at {_loc.x}, {_loc.y}, {_loc.z}
  51.                 teleport player to {_loc.p}
  52.                 loop blocks above player:
  53.                     set loop-block to air
  54.                 execute op command "/summon FallingSand ~0 ~{@Y} ~0 {TileID:113,Time:1}"
  55.                 wait 1 tick
  56.                 #Red Wool
  57.                 subtract 1 from {_loc.x}
  58.                 set {_loc.p} to the location at {_loc.x}, {_loc.y}, {_loc.z}
  59.                 teleport player to {_loc.p}
  60.                 loop blocks above player:
  61.                     set loop-block to air
  62.                 execute op command "/summon FallingSand ~0 ~{@Y} ~0 {TileID:152,Time:1}"
  63.                 wait 1 tick
  64.                 execute op command "/summon FallingSand ~0 ~{@Y} ~0 {TileID:123,Time:1}"
  65.                 wait 1 tick
  66.                 execute op command "/summon FallingSand ~0 ~{@Y} ~0 {TileID:35,Data:14,Time:1}"
  67.                 wait 1 tick
  68.                 execute op command "/summon FallingSand ~0 ~{@Y} ~0 {TileID:113,Time:1}"
  69.                 wait 1 tick
  70.                 #Final Fence
  71.                 subtract 1 from {_loc.z}
  72.                 set {_loc.p} to the location at {_loc.x}, {_loc.y}, {_loc.z}
  73.                 teleport player to {_loc.p}
  74.                 loop blocks above player:
  75.                     set loop-block to air
  76.                 execute op command "/summon FallingSand ~0 ~{@Y} ~0 {TileID:113,Time:1}"
  77.                 wait 1 second
  78.                 #Sign
  79.                 loop blocks above player:
  80.                     set loop-block to air
  81.                 execute op command "/summon FallingSand ~0 ~{@Y} ~0 {TileID:68,Data:2,Time:10}"
  82.                 wait 5 seconds
  83.                 add 1 to {_loc.y}
  84.                 set {_sign} to location at {_loc.x}, {_loc.y}, {_loc.z}
  85.                 subtract 1 from {_loc.y}
  86.                 set {_loc.p} to the location at {_loc.x}, {_loc.y}, {_loc.z}
  87.                 teleport the player to {_loc.p}
  88.                 loop blocks above player:
  89.                     loop-block is wall sign:2:
  90.                         set line 1 of loop-block to "[RTravel]"
  91.                         set line 2 of loop-block to "%arg 2%"
  92.                         if arg 3 is not set:
  93.                             set line 3 of loop-block to "Landing Bay"
  94.                             set {rt.%arg 2%.goto} to {_loc.pp}
  95.                         else:
  96.                             set line 3 of loop-block to "Take Off!"
  97.                         teleport player to {_loc.pp}
  98.                         message "{@P} Finished Making Rocket!"
  99.                 #=============================================
  100.                 #=============================================
  101.                 #
  102.                 # NORTH CREATOR
  103.                 #
  104.                 #=============================================
  105.                 #=============================================
  106.             else if player's horizontal facing is north:
  107.                 set {_loc.pp} to location of player
  108.                 set {_loc.x} to x coordinate of player
  109.                 set {_loc.y} to y coordinate of player
  110.                 set {_loc.z} to z coordinate of player
  111.                 #First Fence
  112.                 subtract 3 from {_loc.z}
  113.                 set {_loc.p} to the location at {_loc.x}, {_loc.y}, {_loc.z}
  114.                 teleport player to {_loc.p}
  115.                 loop blocks above player:
  116.                     set loop-block to air
  117.                 execute op command "/summon FallingSand ~0 ~{@Y} ~0 {TileID:113,Time:1}"
  118.                 wait 1 tick
  119.                 #Second Fence
  120.                 add 1 to {_loc.z}
  121.                 add 1 to {_loc.x}
  122.                 set {_loc.p} to the location at {_loc.x}, {_loc.y}, {_loc.z}
  123.                 teleport player to {_loc.p}
  124.                 loop blocks above player:
  125.                     set loop-block to air
  126.                 execute op command "/summon FallingSand ~0 ~{@Y} ~0 {TileID:113,Time:1}"
  127.                 wait 1 tick
  128.                 #Third Fence
  129.                 subtract 2 from {_loc.x}
  130.                 set {_loc.p} to the location at {_loc.x}, {_loc.y}, {_loc.z}
  131.                 teleport player to {_loc.p}
  132.                 loop blocks above player:
  133.                     set loop-block to air
  134.                 execute op command "/summon FallingSand ~0 ~{@Y} ~0 {TileID:113,Time:1}"
  135.                 wait 1 tick
  136.                 #Red Wool
  137.                 add 1 to {_loc.x}
  138.                 set {_loc.p} to the location at {_loc.x}, {_loc.y}, {_loc.z}
  139.                 teleport player to {_loc.p}
  140.                 loop blocks above player:
  141.                     set loop-block to air
  142.                 execute op command "/summon FallingSand ~0 ~{@Y} ~0 {TileID:152,Time:1}"
  143.                 wait 1 tick
  144.                 execute op command "/summon FallingSand ~0 ~{@Y} ~0 {TileID:123,Time:1}"
  145.                 wait 1 tick
  146.                 execute op command "/summon FallingSand ~0 ~{@Y} ~0 {TileID:35,Data:14,Time:1}"
  147.                 wait 1 tick
  148.                 execute op command "/summon FallingSand ~0 ~{@Y} ~0 {TileID:113,Time:1}"
  149.                 wait 1 tick
  150.                 #Final Fence
  151.                 add 1 to {_loc.z}
  152.                 set {_loc.p} to the location at {_loc.x}, {_loc.y}, {_loc.z}
  153.                 teleport player to {_loc.p}
  154.                 loop blocks above player:
  155.                     set loop-block to air
  156.                 execute op command "/summon FallingSand ~0 ~{@Y} ~0 {TileID:113,Time:1}"
  157.                 wait 1 second
  158.                 #Sign
  159.                 loop blocks above player:
  160.                     set loop-block to air
  161.                 execute op command "/summon FallingSand ~0 ~{@Y} ~0 {TileID:68,Data:3,Time:10}"
  162.                 wait 5 seconds
  163.                 subtract 1 from {_loc.y}
  164.                 set {_sign} to location at {_loc.x}, {_loc.y}, {_loc.z}
  165.                 add 1 to {_loc.y}
  166.                 set {_loc.p} to the location at {_loc.x}, {_loc.y}, {_loc.z}
  167.                 teleport the player to {_loc.p}
  168.                 loop blocks above player:
  169.                     loop-block is wall sign:3:
  170.                         set line 1 of loop-block to "[RTravel]"
  171.                         set line 2 of loop-block to "%arg 2%"
  172.                         if arg 3 is not set:
  173.                             set line 3 of loop-block to "Landing Bay"
  174.                             set {rt.%arg 2%.goto} to {_loc.pp}
  175.                         else:
  176.                             set line 3 of loop-block to "Take Off!"
  177.                         teleport player to {_loc.pp}
  178.                         message "{@P} Finished Making Rocket!" 
  179.                 #=============================================
  180.                 #=============================================
  181.                 #
  182.                 # EAST CREATOR
  183.                 #
  184.                 #=============================================
  185.                 #=============================================
  186.             else if player's horizontal facing is east:
  187.                 set {_loc.pp} to location of player
  188.                 set {_loc.x} to x coordinate of player
  189.                 set {_loc.y} to y coordinate of player
  190.                 set {_loc.z} to z coordinate of player
  191.                 #First Fence
  192.                 add 3 to {_loc.x}
  193.                 set {_loc.p} to the location at {_loc.x}, {_loc.y}, {_loc.z}
  194.                 teleport player to {_loc.p}
  195.                 loop blocks above player:
  196.                     set loop-block to air
  197.                 execute op command "/summon FallingSand ~0 ~{@Y} ~0 {TileID:113,Time:1}"
  198.                 wait 1 tick
  199.                 #Second Fence
  200.                 subtract 1 from {_loc.z}
  201.                 subtract 1 from {_loc.x}
  202.                 set {_loc.p} to the location at {_loc.x}, {_loc.y}, {_loc.z}
  203.                 teleport player to {_loc.p}
  204.                 loop blocks above player:
  205.                     set loop-block to air
  206.                 execute op command "/summon FallingSand ~0 ~{@Y} ~0 {TileID:113,Time:1}"
  207.                 wait 1 tick
  208.                 #Third Fence
  209.                 add 2 to {_loc.z}
  210.                 set {_loc.p} to the location at {_loc.x}, {_loc.y}, {_loc.z}
  211.                 teleport player to {_loc.p}
  212.                 loop blocks above player:
  213.                     set loop-block to air
  214.                 execute op command "/summon FallingSand ~0 ~{@Y} ~0 {TileID:113,Time:1}"
  215.                 wait 1 tick
  216.                 #Red Wool
  217.                 subtract 1 from {_loc.z}
  218.                 set {_loc.p} to the location at {_loc.x}, {_loc.y}, {_loc.z}
  219.                 teleport player to {_loc.p}
  220.                 loop blocks above player:
  221.                     set loop-block to air
  222.                 execute op command "/summon FallingSand ~0 ~{@Y} ~0 {TileID:152,Time:1}"
  223.                 wait 1 tick
  224.                 execute op command "/summon FallingSand ~0 ~{@Y} ~0 {TileID:123,Time:1}"
  225.                 wait 1 tick
  226.                 execute op command "/summon FallingSand ~0 ~{@Y} ~0 {TileID:35,Data:14,Time:1}"
  227.                 wait 1 tick
  228.                 execute op command "/summon FallingSand ~0 ~{@Y} ~0 {TileID:113,Time:1}"
  229.                 wait 1 tick
  230.                 #Final Fence
  231.                 subtract 1 from {_loc.x}
  232.                 set {_loc.p} to the location at {_loc.x}, {_loc.y}, {_loc.z}
  233.                 teleport player to {_loc.p}
  234.                 loop blocks above player:
  235.                     set loop-block to air
  236.                 execute op command "/summon FallingSand ~0 ~{@Y} ~0 {TileID:113,Time:1}"
  237.                 wait 1 second
  238.                 loop blocks above player:
  239.                     set loop-block to air
  240.                 execute op command "/summon FallingSand ~0 ~{@Y} ~0 {TileID:68,Data:4,Time:10}"
  241.                 wait 5 seconds
  242.                 #Sign
  243.                 subtract 1 from {_loc.y}
  244.                 set {_sign} to location at {_loc.x}, {_loc.y}, {_loc.z}
  245.                 add 1 to {_loc.y}
  246.                 set {_loc.p} to the location at {_loc.x}, {_loc.y}, {_loc.z}
  247.                 teleport the player to {_loc.p}
  248.                 loop blocks above player:
  249.                     loop-block is wall sign:4:
  250.                         set line 1 of loop-block to "[RTravel]"
  251.                         set line 2 of loop-block to "%arg 2%"
  252.                         if arg 3 is not set:
  253.                             set line 3 of loop-block to "Landing Bay"
  254.                             set {rt.%arg 2%.goto} to {_loc.pp}
  255.                         else:
  256.                             set line 3 of loop-block to "Take Off!"
  257.                         teleport player to {_loc.pp}
  258.                         message "{@P} Finished Making Rocket!" 
  259.             else if player's horizontal facing is west:
  260.                 set {_loc.pp} to location of player
  261.                 set {_loc.x} to x coordinate of player
  262.                 set {_loc.y} to y coordinate of player
  263.                 set {_loc.z} to z coordinate of player
  264.                 #First Fence
  265.                 subtract 3 from {_loc.x}
  266.                 set {_loc.p} to the location at {_loc.x}, {_loc.y}, {_loc.z}
  267.                 teleport player to {_loc.p}
  268.                 loop blocks above player:
  269.                     set loop-block to air
  270.                 execute op command "/summon FallingSand ~0 ~{@Y} ~0 {TileID:113,Time:1}"
  271.                 wait 1 tick
  272.                 #Second Fence
  273.                 add 1 to {_loc.z}
  274.                 add 1 to {_loc.x}
  275.                 set {_loc.p} to the location at {_loc.x}, {_loc.y}, {_loc.z}
  276.                 teleport player to {_loc.p}
  277.                 loop blocks above player:
  278.                     set loop-block to air
  279.                 execute op command "/summon FallingSand ~0 ~{@Y} ~0 {TileID:113,Time:1}"
  280.                 wait 1 tick
  281.                 #Third Fence
  282.                 subtract 2 from {_loc.z}
  283.                 set {_loc.p} to the location at {_loc.x}, {_loc.y}, {_loc.z}
  284.                 teleport player to {_loc.p}
  285.                 loop blocks above player:
  286.                     set loop-block to air
  287.                 execute op command "/summon FallingSand ~0 ~{@Y} ~0 {TileID:113,Time:1}"
  288.                 wait 1 tick
  289.                 #Red Wool
  290.                 add 1 to {_loc.z}
  291.                 set {_loc.p} to the location at {_loc.x}, {_loc.y}, {_loc.z}
  292.                 teleport player to {_loc.p}
  293.                 loop blocks above player:
  294.                     set loop-block to air
  295.                 execute op command "/summon FallingSand ~0 ~{@Y} ~0 {TileID:152,Time:1}"
  296.                 wait 1 tick
  297.                 execute op command "/summon FallingSand ~0 ~{@Y} ~0 {TileID:123,Time:1}"
  298.                 wait 1 tick
  299.                 execute op command "/summon FallingSand ~0 ~{@Y} ~0 {TileID:35,Data:14,Time:1}"
  300.                 wait 1 tick
  301.                 execute op command "/summon FallingSand ~0 ~{@Y} ~0 {TileID:113,Time:1}"
  302.                 wait 1 tick
  303.                 #Final Fence
  304.                 add 1 to {_loc.x}
  305.                 set {_loc.p} to the location at {_loc.x}, {_loc.y}, {_loc.z}
  306.                 teleport player to {_loc.p}
  307.                 loop blocks above player:
  308.                     set loop-block to air
  309.                 execute op command "/summon FallingSand ~0 ~{@Y} ~0 {TileID:113,Time:1}"
  310.                 wait 1 second
  311.                 loop blocks above player:
  312.                     set loop-block to air
  313.                 execute op command "/summon FallingSand ~0 ~{@Y} ~0 {TileID:68,Data:5,Time:10}"
  314.                 wait 5 seconds
  315.                 #Sign
  316.                 subtract 1 from {_loc.y}
  317.                 set {_sign} to location at {_loc.x}, {_loc.y}, {_loc.z}
  318.                 add 1 to {_loc.y}
  319.                 set {_loc.p} to the location at {_loc.x}, {_loc.y}, {_loc.z}
  320.                 teleport the player to {_loc.p}
  321.                 loop blocks above player:
  322.                     loop-block is wall sign:5:
  323.                         set line 1 of loop-block to "[RTravel]"
  324.                         set line 2 of loop-block to "%arg 2%"
  325.                         if arg 3 is not set:
  326.                             set line 3 of loop-block to "Landing Bay"
  327.                             set {rt.%arg 2%.goto} to {_loc.pp}
  328.                         else:
  329.                             set line 3 of loop-block to "Take Off!"
  330.                         teleport player to {_loc.pp}
  331.                         message "{@P} Finished Making Rocket!" 
  332.            
  333. on rightclick on a sign:
  334.     line 1 of block is "[RTravel]":
  335.         if line 2 of block is not set:
  336.             message "{@P} Couldn't take you anywhere, there is no location set!"
  337.         else if line 3 of block is "Landing Bay":
  338.             message "{@P} You can't be taken to a Spawn point!"
  339.         else if line 3 of block is "Take Off!":
  340.             set {_rt.goto} to line 2 of block
  341.             if {rt.%{_rt.goto}%.goto} is set:
  342.                 message "{@P} Blasting off in..."
  343.                 message "{@P} 3..."
  344.                 wait 1 second
  345.                 message "{@P} 2..."
  346.                 wait 1 second
  347.                 message "{@P} 1..."
  348.                 wait 1 second
  349.                 message "{@P} Blast off!"
  350.                 teleport player to {rt.%{_rt.goto}%.goto}
  351.         else:
  352.             message "{@P} Unknown RocketTravel Sign!"
Advertisement
Add Comment
Please, Sign In to add comment