SHARE
TWEET

Untitled

Cool_Colton Nov 8th, 2019 82 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #  _                            _       _____          _    
  2. # | |                          | |     |  __ \        | |    
  3. # | |     __ _ _   _ _ __   ___| |__   | |__) |_ _  __| |___
  4. # | |    / _` | | | | '_ \ / __| '_ \  |  ___/ _` |/ _` / __|
  5. # | |___| (_| | |_| | | | | (__| | | | | |  | (_| | (_| \__ \
  6. # |______\__,_|\__,_|_| |_|\___|_| |_| |_|   \__,_|\__,_|___/
  7. #
  8. # Version 2.0
  9. # Made by: lapisguy
  10.  
  11. # Requirements:
  12. #
  13. # Skript (Bensku Fork) - Required for the script to function, latest supported version of Skript.
  14. # SkDragon - Required for the particle effects used in the script.
  15.  
  16.  
  17. options:
  18. # ######################################################################################
  19. #
  20. # Configuration
  21. #
  22. # ######################################################################################
  23.  
  24. #   PREFIX:
  25.  
  26.     prefix: &8[&e&oLaunch&6Pads&8]&r
  27.  
  28. # ######################################################################################
  29.  
  30. #   PERMISSIONS:
  31.  
  32.     use permissions: false
  33.    
  34. # If this is set to "false", users wont need a permission to use launch pads.
  35.    
  36.     usage permission: launchpads.use
  37.  
  38.     admin permission: launchpads.admin
  39.  
  40. # ######################################################################################
  41.  
  42. #   LAUNCH PAD POWERS:
  43.  
  44.     forward speed: 0.5
  45.    
  46.     upward speed: 0.4
  47.  
  48. # ######################################################################################
  49.  
  50. #   PARTICLE EFFECTS:
  51.  
  52.     wooden pressure plate particle: flame
  53.    
  54.     stone pressure plate particle: explosionlarge
  55.    
  56.     iron pressure plate particle: flame
  57.    
  58.     golden pressure plate particle: flame
  59.    
  60. # LIST OF PARTICLE EFFECTS
  61.  
  62.     # explosion
  63.     # explosionlarge
  64.     # explosionhuge
  65.     # fireworkspark
  66.     # waterbubble
  67.     # watersplash
  68.     # waterwake
  69.     # suspended
  70.     # suspenddepth
  71.     # crit
  72.     # critmagic
  73.     # smoke
  74.     # smokelarge
  75.     # spell
  76.     # spellinstant
  77.     # mobspell
  78.     # mobspellambient
  79.     # witchspell
  80.     # waterdrip
  81.     # lavadrip
  82.     # angryvillager
  83.     # happyvillager
  84.     # townaura
  85.     # note
  86.     # portal
  87.     # enchantmenttable
  88.     # flame
  89.     # lava
  90.     # footstep
  91.     # cloud
  92.     # redstone
  93.     # snowball
  94.     # snowshovel
  95.     # slime
  96.     # heart
  97.     # barrier
  98.     # itemcrack
  99.     # blockcrack
  100.     # blockdust
  101.     # waterdrop
  102.     # itemtake
  103.     # mobappearance
  104.     # dragonbreath - Minecraft version 1.9 or later
  105.     # endrod - Minecraft version 1.9 or later
  106.     # damage - Minecraft version 1.9 or later
  107.     # sweep - Minecraft version 1.9 or later
  108.    
  109. # ######################################################################################
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128. # CODE
  129.  
  130. # TRY NOT TO EDIT IT IF YOU DONT KNOW WHAT YOU ARE DOING!
  131.  
  132. command /launchpads [<text>] [<text>]:
  133.     aliases: launchpad, lp
  134.     trigger:
  135.         if player has permission "{launchpads.admin}":
  136.             if arg-1 is not set:
  137.                 message "&cDo &4/launchpads help &cfor a list of commands."
  138.                 stop
  139.             else:
  140.                 if arg-1 is "give":
  141.                     if arg-2 is not set:
  142.                         message ""
  143.                         message "{@prefix} &cIncorrect usage, please specify launch pad type:"
  144.                         message ""
  145.                         message "&c/launchpads &e&ogive &6(pressure plate type)"
  146.                         message ""
  147.                         message "&cTypes&8: &6Wood &8Stone &7Iron &eGold"
  148.                         message ""
  149.                     if arg-2 is "wood" or "wooden":
  150.                         message "{@prefix} &aYou have recieved&8: &6&oWooden &e&oLaunch Pad"
  151.                         give 1 wooden pressure plate of unbreaking 10 named "&6&oWooden &e&oLaunch Pad" to player
  152.                         stop
  153.                     if arg-2 is "stone":
  154.                         message "{@prefix} &aYou have recieved&8: &8&oStone &e&oLaunch Pad"
  155.                         give 1 stone pressure plate of unbreaking 10 named "&8&oStone &e&oLaunch Pad" to player
  156.                         stop
  157.                     if arg-2 is "iron":
  158.                         message "{@prefix} &aYou have recieved&8: &7&oIron &e&oLaunch Pad"
  159.                         give 1 iron pressure plate of unbreaking 10 named "&7&oIron &e&oLaunch Pad" to player
  160.                         stop
  161.                     if arg-2 is "gold" or "golden":
  162.                         message "{@prefix} &aYou have recieved&8: &e&oGolden &e&oLaunch Pad"
  163.                         give 1 gold pressure plate of unbreaking 10 named "&e&oGolden &e&oLaunch Pad" to player
  164.                         stop
  165.                 if arg-1 is "help":
  166.                     message ""
  167.                     message "{@prefix} &8- &c&oAdmin Commands"
  168.                     message ""
  169.                     message "&7- &c/launchpads &e&ogive &6(pressure plate type)"
  170.                     message ""
  171.                     stop
  172.                 if arg-1 is not "help" or "give":
  173.                     message "{@prefix} &cDo &4/launchpads help &cfor a list of commands."
  174.                     stop
  175.         else:
  176.             message "{@prefix} &cYou do not have permission."
  177.             stop
  178.    
  179. on place:
  180.     if player's tool is a wooden pressure plate or stone pressure plate or iron pressure plate or golden pressure plate:
  181.         if name of player's tool contains "&e&oLaunch Pad":
  182.             if player's tool is enchanted with unbreaking 10:
  183.                 if player has permission "{@admin permission}":
  184.                     remove player's tool from player
  185.                     set {launchpad.pad.%location of event-block%} to 1
  186.                     message "{@prefix} &aLaunch Pad has been successfully set."
  187.                     stop
  188.                 else:
  189.                     cancel event
  190.                     message "{@prefix} &cYou do not have permission to place a launch pad."
  191.                     set player's tool to air
  192.                     stop
  193.                
  194. on break:
  195.     if event-block is a wooden pressure plate, stone pressure plate, iron pressure plate or golden pressure plate:
  196.         if {launchpad.pad.%location of event-block%} is 1:
  197.             if player has permission "{@admin permission}":
  198.                 cancel event
  199.                 set event-block to air
  200.                 delete {launchpad.pad.%location of event-block%}
  201.                 message "{@prefix} &cLaunch Pad has been successfully removed."
  202.                 stop
  203.        
  204. on pressure plate:
  205.     if {@use permissions} is true:
  206.         if player has permission "{usage permission}":
  207.             if {launchpad.pad.%location of event-block%} is 1:
  208.                 cancel event
  209.                 set {launchpad.damage.check.%player%} to 1
  210.                 push player forward at speed {@forward speed}
  211.                 push player upwards at speed {@upward speed}
  212.                 set {_launchpad.pad.location.particle} to location of event-block
  213.                 if event-block is a wooden pressure plate:
  214.                     drawDot count 3, particle "{@wooden pressure plate particle}", XYZ 0.5, 1, 0.5, center {_launchpad.pad.location.particle}, visibleRange 320, pulseDelay 0, keepFor 2 ticks
  215.                 if event-block is a stone pressure plate:
  216.                     drawDot count 3, particle "{@stone pressure plate particle}", XYZ 0.5, 1, 0.5, center {_launchpad.pad.location.particle}, visibleRange 320, pulseDelay 0, keepFor 2 ticks
  217.                 if event-block is a iron pressure plate:
  218.                     drawDot count 3, particle "{@iron pressure plate particle}", XYZ 0.5, 1, 0.5, center {_launchpad.pad.location.particle}, visibleRange 320, pulseDelay 0, keepFor 2 ticks
  219.                 if event-block is a gold pressure plate:
  220.                     drawDot count 3, particle "{@golden pressure plate particle}", XYZ 0.5, 1, 0.5, center {_launchpad.pad.location.particle}, visibleRange 320, pulseDelay 0, keepFor 2 ticks
  221.                 stop
  222.     if {@use permissions} is false:
  223.         if {launchpad.pad.%location of event-block%} is 1:
  224.             cancel event
  225.             set {launchpad.damage.check.%player%} to 1
  226.             push player forward at speed {@forward speed}
  227.             push player upwards at speed {@upward speed}
  228.             set {_launchpad.pad.location.particle} to location of event-block
  229.             if event-block is a wooden pressure plate:
  230.                 drawDot count 5, particle "{@wooden pressure plate particle}", XYZ 0.5, 1, 0.5, center {_launchpad.pad.location.particle}, visibleRange 320, pulseDelay 0, keepFor 10 ticks
  231.             if event-block is a stone pressure plate:
  232.                 drawDot count 5, particle "{@stone pressure plate particle}", XYZ 0.5, 1, 0.5, center {_launchpad.pad.location.particle}, visibleRange 320, pulseDelay 0, keepFor 10 ticks
  233.             if event-block is a iron pressure plate:
  234.                 drawDot count 5, particle "{@iron pressure plate particle}", XYZ 0.5, 1, 0.5, center event-block, visibleRange 320, pulseDelay 0, keepFor 10 ticks
  235.             if event-block is a iron pressure plate:
  236.                 drawDot count 5, particle "{@golden pressure plate particle}", XYZ 0.5, 1, 0.5, center event-block, visibleRange 320, pulseDelay 0, keepFor 10 ticks
  237.             stop
  238.  
  239. on damage:
  240.     if victim is a player:
  241.         if damage is caused by fall:
  242.             if {launchpad.damage.check.%victim%} is 1:
  243.                 cancel event
  244.                 set {launchpad.damage.check.%victim%} to 0
  245.                 stop
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top