Advertisement
LexGamer

Untitled

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