Yando

Untitled

Mar 1st, 2019
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.31 KB | None | 0 0
  1. #--░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░
  2. #--▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀
  3. #--░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░
  4. #--
  5. #--▒█▀▀▀█ ▒█▀▀█ ▒█▀▀█ ▀█▀ ▒█▀▀█ ▀▀█▀▀   ▒█▀▄▀█ ░█▀▀█ ▒█▀▀▄ ▒█▀▀▀   ▒█▀▀█ ▒█░░▒█
  6. #--░▀▀▀▄▄ ▒█░░░ ▒█▄▄▀ ▒█░ ▒█▄▄█ ░▒█░░   ▒█▒█▒█ ▒█▄▄█ ▒█░▒█ ▒█▀▀▀   ▒█▀▀▄ ▒█▄▄▄█
  7. #--▒█▄▄▄█ ▒█▄▄█ ▒█░▒█ ▄█▄ ▒█░░░ ░▒█░░   ▒█░░▒█ ▒█░▒█ ▒█▄▄▀ ▒█▄▄▄   ▒█▄▄█ ░░▒█░░
  8. #--
  9. #--░█▀▀█ ▒█░░▒█ ▒█░▒█ ░█▀▀█ ▒█▀▄▀█   ░█▀▀█ ▒█░░░ ░█▀▀█ ▒█░░░ ▀█▀
  10. #--▒█▄▄█ ▒█▄▄▄█ ▒█▀▀█ ▒█▄▄█ ▒█▒█▒█   ▒█▄▄█ ▒█░░░ ▒█▄▄█ ▒█░░░ ▒█░
  11. #--▒█░▒█ ░░▒█░░ ▒█░▒█ ▒█░▒█ ▒█░░▒█   ▒█░▒█ ▒█▄▄█ ▒█░▒█ ▒█▄▄█ ▄█▄
  12. #--
  13. #--░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░
  14. #--▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀
  15. #--░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░
  16. #
  17. #--▒█▀▄▀█ ░█▀▀█ ▒█▀▀▄ ▒█▀▀▀   ▒█▀▀▀ ▒█▀▀▀█ ▒█▀▀█
  18. #--▒█▒█▒█ ▒█▄▄█ ▒█░▒█ ▒█▀▀▀   ▒█▀▀▀ ▒█░░▒█ ▒█▄▄▀
  19. #--▒█░░▒█ ▒█░▒█ ▒█▄▄▀ ▒█▄▄▄   ▒█░░░ ▒█▄▄▄█ ▒█░▒█
  20. #--
  21. #--▒█▀▀▀█ ▒█▀▀█ ▒█▀▀█ ░█▀█░ ▒█▀▄▀█ ▒█▀▀▀ ▒█▀▀█ ▒█▀▀▀█
  22. #--▒█░░▒█ ▒█▄▄█ ▒█░▄▄ █▄▄█▄ ▒█▒█▒█ ▒█▀▀▀ ▒█▄▄▀ ░▀▀▀▄▄
  23. #--▒█▄▄▄█ ▒█░░░ ▒█▄▄█ ░░░█░ ▒█░░▒█ ▒█▄▄▄ ▒█░▒█ ▒█▄▄▄█
  24. #--
  25. #--▒█▀▀▀█ ▒█▀▀▀ ▒█▀▀█ ▒█░░▒█ ▒█▀▀▀ ▒█▀▀█
  26. #--░▀▀▀▄▄ ▒█▀▀▀ ▒█▄▄▀ ░▒█▒█░ ▒█▀▀▀ ▒█▄▄▀
  27. #--▒█▄▄▄█ ▒█▄▄▄ ▒█░▒█ ░░▀▄▀░ ▒█▄▄▄ ▒█░▒█
  28. #--
  29. #--░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░
  30. #--▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀ ▀▀
  31. #--░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░ ░░
  32.  
  33. # Skript made by Ayham Alali [iTzAyhamHD] YT: ayham5131
  34. # Made for OPG4MERS server by the OWNER Ayham Alali ^_^
  35. # It can be used for other servers as well :)
  36. # please support me if you can by donating: http://opg4mers.buycraft.net/category/859689
  37. # Thank you for Downloading/Using my Skripts ❤
  38. # Advanced Launch Pads [Custom] :)
  39.  
  40. options: # Say Hi to Options :D
  41.  
  42.  
  43. # DO NOT CHANGE
  44. console: &a&l&oLaunchPads&7>
  45. ver: 1.4.2 # DO NOT CHANGE.. otherwise skript might not work probably
  46.  
  47.  
  48.  
  49. # Configuration (Changable)
  50. CheckUpdate: true
  51. p: &a&l&oLaunchPads&7»
  52. TopBlock: emerald block # Must be a block not a plate + you can use any plate on top of the block and it will work
  53. ButtomBlock: redstone block or air or emerald block # Must be a block not a plate
  54. worlds: "world1" or "world2" or "world3" # Use [ or "World-name" ] to add more worlds (Enabled worlds)
  55. PushForward: 0.7
  56. PushUp: 0.6
  57. PushForwardVIP: 0.8
  58. PushUpVIP: 0.7
  59. # Ver 1.2
  60. LaunchPadsRegister: false # True/False #- Default: false
  61.  
  62.  
  63. # Messages (Changable)
  64. # Ver 1.2
  65. NoPermLaunch: &c&oOops! You don't have permissions to use LaunchPads.
  66. NoPerm: &c&oOops! no permissions brah.
  67.  
  68.  
  69. # Command Configurations [LaunchPad] (Changable)
  70. # Ver 1.2
  71. CmdName: launchpad
  72. CmdPerm: calp.cmd.launchpad
  73. CmdDesc: &aRegister the block below player as a LaunchPad.
  74. CmdAliases: lp, launchp, lpad
  75.  
  76. # Permissions: You can Change them (Changable)
  77. perm: calp.can
  78. permvip: calp.can.vip
  79. # Ver 1.2
  80. UpdateCheckPerm: calp.updatecheck
  81.  
  82.  
  83.  
  84. # Particles: Particle name & Particles count (Changable)
  85.  
  86. # Don't have vip permission
  87. Particle: cloud # Search in SkUnity for particles list.
  88. ParticleCount: 10 # how many particle will spawn when the event happen.
  89.  
  90. # Just for vip permission (Changable)
  91. ParticleVIP1: cloud # Particles List https://gist.github.com/eyesniper2/07f5c0955af05c0782ad
  92. ParticleVIP2: flame
  93. ParticleVIPCount1: 20
  94. ParticleVIPCount2: 20
  95.  
  96.  
  97. # Sounds (Changable)
  98. Sound: mob.enderdragon.wings # NEW» http://www.minecraftforum.net/forums/mapping-and-modding/mapping-and-modding-tutorials/1571574-all-minecraft-playsound-file-names
  99. SoundVIP: mob.wither.shoot
  100.  
  101.  
  102. # Cooldown (Changable)
  103. # Ver 1.1
  104. Cooldown: 2
  105.  
  106.  
  107. # Changelog:
  108. # Version 1.4: 3.7.2017
  109. # - Added message when you do "/lp info" and there is no LP below you. √
  110. # - Fixed Duplicated IDs, so now you can make launchpads with id test, tes, te and t .. and more with no errors √
  111. # - Added Help message "/lp help" √
  112. # - Added Teleport feature (Note: if you have some registered launchpads before version 1.4 you will have to unregister and register them again to use the teleport feature on them) (to set the location of them)√
  113. # - Registered LPs will not break if anything tried to damage it like creeper or explosion √
  114. # - Can't break Redstone(@ButtomBlock) below registered LP √
  115. # - Fixed glitch where player can't break the block in launchpad exact location (This situation happen using WorldEdit (//set) or in some other situations)
  116. # - More coming soon :)
  117. # Version 1.4.1: 3.16.2017
  118. # - Fixed No Permission to use LP again becuase i edited the wrong version in the last update (v1.4)
  119. # Version 1.4.2: 6.20.2017
  120. # - Removed old sounds, and added new sounds which will be played for near players (at player's location) (that means other players will hear the jumping sounds)
  121.  
  122.  
  123. # ----
  124. #
  125. # DO NOT CHANGE THE CODE, Otherwise the Skript might not work probably.
  126. #
  127. # ----
  128.  
  129.  
  130.  
  131. # Say Hi to Code :D
  132.  
  133. on load:
  134. send "&a//&7----&b/ &a&l&oAdvanced LaunchPads&b /&7----&a//" to console
  135. send " " to console
  136. send "{@console} &aRunning on version &c{@ver}" to console
  137. send "{@console} &bThank you for downloading/using my skripts :)" to console
  138. send "{@console} &eSkript made by &aAyham Alali &cYT&7:&a@ayham5131" to console
  139. send " " to console
  140. send "&a//&7----&b/ &a&l&oAdvanced LaunchPads&b /&7----&a//" to console
  141. set {_NewVer} to text from "http://pastebin.com/raw/bdn5ncE6"
  142. set {_UpdateInfo} to text from url "http://pastebin.com/raw/dvCG3pTc"
  143. if "{@CheckUpdate}" is "true":
  144. send "{@console} &eChecking for update..." to console
  145. if "{@CheckUpdate}" is "true":
  146. if "%{_NewVer}%" is not "{@ver}":
  147. replace all "[nl]" with new line in {_UpdateInfo}
  148. replace all "[p]" with "{@p}" in {_UpdateInfo}
  149. send "&7()&c---------&7()" to console
  150. send "{@console} &aThere is a new update for &cAdavanced LaunchPads&7, &aYou are using version &c{@ver}&7, &aNew version&7 > &c%{_NewVer}%" to console
  151. send "{@console} &aUpdate info: %colored {_UpdateInfo}%" to console
  152. send "&7()&c---------&7()" to console
  153. else if "%{_NewVer}%" is "{@ver}":
  154. send "{@console}&a is up to date&7, &aNo new updates." to console
  155.  
  156. loop all players:
  157. if loop-player has permission "{@UpdateCheckPerm}":
  158. if "%{_NewVer}%" is not "{@ver}":
  159. replace all "[nl]" with new line in {_UpdateInfo}
  160. replace all "[p]" with "{@p}" in {_UpdateInfo}
  161. send "&7()&c---------&7()" to loop-player
  162. send "{@p} &aThere is a new update for &cAdvanced LaunchPads&7, &aYou are using version &c{@ver}&7, &aNew version&7 > &c%{_NewVer}%" to loop-player
  163. send "{@p} &aUpdate info: &c%colored {_UpdateInfo}%" to loop-player
  164. send "&7()&c---------&7()" to loop-player
  165. else if "%{_NewVer}%" is "{@ver}":
  166. send "{@p}&a is up to date&7, &aNo new updates." to loop-player
  167. wait 1 ticks
  168. send "{@console} &ahas been loaded successfully." to console
  169.  
  170. on unload:
  171. send "{@console} &chas been unloaded successfully." to console
  172.  
  173.  
  174. on join:
  175. if {Launching.%uuid of player%} is not set:
  176. set {Launching.%uuid of player%} to false
  177.  
  178. if {LaunchingVIP.%uuid of player%} is not set:
  179. set {LaunchingVIP.%uuid of player%} to false
  180.  
  181. if {LaunchPad.%uuid of player%} is not set:
  182. set {LaunchPad.%uuid of player%} to false
  183.  
  184. if {countdown.%uuid of player%} is not set:
  185. set {countdown.%uuid of player%} to false
  186.  
  187. if {flightdis.%uuid of player%} is not set:
  188. set {flightdis.%uuid of player%} to false
  189.  
  190. if {flightena.%uuid of player%} is not set:
  191. set {flightena.%uuid of player%} to false
  192.  
  193.  
  194. command /{@CmdName} [<text>] [<text>]:
  195. permission: {@CmdPerm}
  196. permission message: {@NoPerm}
  197. description: {@CmdDesc}
  198. aliases: {@CmdAliases}
  199. executable by: players
  200. trigger:
  201. if arg-1 is "help":
  202. send "&a&l«&2&m---------&a&l LaunchPads &2&m---------&a&l»"
  203. send ""
  204. send "{@p} Help page.."
  205. send "{@p} &a/{@CmdName}&2 <ID> &7- Register a new launchpad (if LaunchPadsRegister is enabled)"
  206. send "{@p} &a/{@CmdName} &2info &7- Show the info of the LP below you"
  207. send "{@p} &a/{@CmdName} &2list &7- Show the Resgistered Launchpads list"
  208. send "{@p} &a/{@CmdName} &2help &7- Show this message"
  209. send "{@p} &a/{@CmdName} &2teleport&7/&2tp &7- Teleport to launchpad using LP-ID"
  210. send ""
  211. send "&a&l«&2&m------------------------------&a&l»"
  212. stop
  213. if arg-1 is "teleport" or "tp":
  214. if arg-2 is set:
  215. if {Loc.%arg-2%} is set:
  216. teleport player to {Loc.%arg-2%}
  217. send "{@p} &aTeleported to Launchpad ID: &c%arg-2%"
  218. stop
  219. else if {Loc.%arg-2%} is not set:
  220. send "{@p} &7There os no Launchpad with ID: &c%arg-2%"
  221. stop
  222. else:
  223. send "{@p} &7Usage: &a/{@CmdName} tp <ID>"
  224. stop
  225. if "{@LaunchPadsRegister}" is "false":
  226. send "{@p} &7LaunchPadsRegister: &c&l{@LaunchPadsRegister}"
  227. stop
  228. else if "{@LaunchPadsRegister}" is "true":
  229. if arg-1 is not set:
  230. send "{@p} &c&oLaunchPad ID is missing."
  231. stop
  232. if arg-1 is "info":
  233. if {launchpadtoggle.%location of block below player%} is true:
  234. send "&7LaunchPad Registered:&a&l %{launchpadtoggle.%location of block below player%}%"
  235. send "&7LaunchPad Info:&a&l %{launchpadinfo.%location of block below player%}%"
  236. stop
  237. else:
  238. send "{@p} &7This is not a luanchpad!"
  239. stop
  240. if arg-1 is "list":
  241. if "{@LaunchPadsRegister}" is "false":
  242. send "{@p} &7LaunchPadsRegister: &c&l{@LaunchPadsRegister}"
  243. stop
  244. else if "{@LaunchPadsRegister}" is "true":
  245. if {launchpads::*} is set:
  246. send "{@p} &7LaunchPads List:%nl%&a %{LaunchPads::*}%"
  247. stop
  248. if {launchpads::*} is not set:
  249. send "{@p} &cThere is no Registered LaunchPads."
  250. stop
  251. if arg-1 is not "info" or "list" or "help" or "teleport" or "tp":
  252. if block below player is {@TopBlock}:
  253. set {_TopB} to block below player
  254. if block below {_TopB} is {@ButtomBlock}:
  255. if {launchpadtoggle.%location of block below player%} is not set:
  256. if {launchpadsid::ids::*} is not set:
  257. set {launchpadtoggle.%location of block below player%} to true
  258. set {launchpadinfo.%location of block below player%} to "&aID: &c%arg-1%&7, &aWorld: &c%world%&7, &aLoc: &c%location of block below player%%nl%"
  259. add {launchpadinfo.%location of block below player%} to {LaunchPads::*}
  260. add arg-1 to {launchpadsid::ids::*}
  261. set {Loc.%arg-1%} to location of player # of Block will tp him inside the block
  262. send "{@p} &aThe LaunchPad below you has been &l&oEnabled."
  263. stop
  264. else:
  265. loop {launchpadsid::ids::*}:
  266. if "%loop-value%" = "%arg-1%":
  267. send "{@p} &c&oID:&b&o %arg-1%&c&o is used&7,&c&o try another one."
  268. #stop
  269. if "%loop-value%" != "%arg-1%":
  270. set {launchpadtoggle.%location of block below player%} to true
  271. set {launchpadinfo.%location of block below player%} to "&aID: &c%arg-1%&7, &aWorld: &c%world%&7, &aLoc: &c%location of block below player%%nl%"
  272. add {launchpadinfo.%location of block below player%} to {LaunchPads::*}
  273. add arg-1 to {launchpadsid::ids::*}
  274. set {Loc.%arg-1%} to location of player # of Block will tp him inside the block
  275. send "{@p} &aThe LaunchPad below you has been &l&oEnabled."
  276. stop loop
  277. if {launchpadtoggle.%location of block below player%} is false:
  278. if {launchpadsid::ids::*} is not set:
  279. set {launchpadtoggle.%location of block below player%} to true
  280. set {launchpadinfo.%location of block below player%} to "&aID: &c%arg-1%&7, &aWorld: &c%world%&7, &aLoc: &c%location of block below player%%nl%"
  281. add {launchpadinfo.%location of block below player%} to {LaunchPads::*}
  282. set {Loc.%arg-1%} to location of block below player
  283. add arg-1 to {launchpadsid::ids::*}
  284. send "{@p} &aThe LaunchPad below you has been &l&oEnabled."
  285. stop
  286. else:
  287. loop {launchpadsid::ids::*}:
  288. if "%loop-value%" = "%arg-1%":
  289. send "{@p} &c&oID:&b&o %arg-1%&c&o is used&7,&c&o try another one."
  290. stop
  291. else if "%loop-value%" != "%arg-1%":
  292. set {launchpadtoggle.%location of block below player%} to true
  293. set {launchpadinfo.%location of block below player%} to "&aID: &c%arg-1%&7, &aWorld: &c%world%&7, &aLoc: &c%location of block below player%%nl%"
  294. add {launchpadinfo.%location of block below player%} to {LaunchPads::*}
  295. set {Loc.%arg-1%} to location of player # of Block will tp him inside the block
  296. add arg-1 to {launchpadsid::ids::*}
  297. send "{@p} &aThe LaunchPad below you has been &l&oEnabled."
  298. stop loop
  299. else if {launchpadtoggle.%location of block below player%} is true:
  300. set {_RemoveLPI.%location of block below player%} to "&aID: &c%arg-1%&7, &aWorld: &c%world%&7, &aLoc: &c%location of block below player%%nl%"
  301. if "%{launchpadinfo.%location of block below player%}%" is "%{_RemoveLPI.%location of block below player%}%":
  302. set {launchpadtoggle.%location of block below player%} to false
  303. remove {launchpadinfo.%location of block below player%} from {LaunchPads::*}
  304. remove arg-1 from {launchpadsid::ids::*}
  305. clear {Loc.%arg-1%}
  306. clear {launchpadinfo.%location of block below player%}
  307. clear {_RemoveLPI.%location of block below player%}
  308. send "{@p} &cThe LaunchPad below you has been &l&odisabled."
  309. stop
  310. else if "%{launchpadinfo.%location of block below player%}%" is not "%{_RemoveLPI.%location of block below player%}%":
  311. send "{@p}&c This LaunchPad is already Registered."
  312. send "{@p}&7 To remove it type &c/{@CmdName} info"
  313. send "{@p}&7 then type &c/{@CmdName} <ID of LaunchPad below you>"
  314. stop
  315. else:
  316. send "{@p} &c&oBlock below you is not the LaunchPad Buttom Block &7( &b&o{@ButtomBlock} &7)"
  317. stop
  318. else:
  319. send "{@p} &c&oBlock below you is not the LaunchPad Top Block &7( &b&o{@TopBlock} &7)"
  320. stop
  321.  
  322. on break:
  323. if event-block is {@TopBlock}:
  324. if {launchpadtoggle.%location of event-block%} is true:
  325. cancel event
  326. send "{@p} &c&oYou have to Unregister this Launchpad first&7,"
  327. send "{@p} &c&odo &b&o/{@CmdName} info&c&o to see the info of this LaunchPad "
  328. send "{@p} &c&odo &b&o/{@CmdName} <ID of LaunchPad below you>&c&o to Remove it"
  329. if event-block is {@ButtomBlock}:
  330. if {launchpadtoggle.%location of block above event-block%} is true:
  331. cancel event
  332. send "{@p} &c&oYou have to Unregister this Launchpad first&7,"
  333. send "{@p} &c&odo &b&o/{@CmdName} info&c&o to see the info of this LaunchPad "
  334. send "{@p} &c&odo &b&o/{@CmdName} <ID of LaunchPad below you>&c&o to Remove it"
  335.  
  336. on explode:
  337. loop exploded blocks:
  338. if loop-block is {@TopBlock}:
  339. if {launchpadtoggle.%location of loop-block%} is true:
  340. cancel event
  341. if loop-block is {@ButtomBlock}:
  342. if {launchpadtoggle.%location of block above loop-block%} is true:
  343. cancel event
  344.  
  345.  
  346. on fly toggle:
  347. if {LaunchingVIP.%uuid of player%} is true:
  348. cancel event
  349. else if {Launching.%uuid of player%} is true:
  350. cancel event
  351.  
  352. on any move:
  353. if player has permission "{@perm}":
  354. if player's world is {@worlds}:
  355. if "{@LaunchPadsRegister}" is "true":
  356. if {launchpadtoggle.%location of block below player%} is true:
  357. if block below player is {@TopBlock}:
  358. set {_Block1} to block below player
  359. if block below {_Block1} is {@ButtomBlock}:
  360. if player has permission "{@permvip}":
  361. if {countdown.%uuid of player%} is false:
  362. if player's flight state is false:
  363. set {flightdis.%uuid of player%} to true
  364. set player's flight state to true
  365. else if player's flight state is true:
  366. set {flightena.%uuid of player%} to true
  367. play raw sound "{@SoundVIP}" at location of player with pitch 10 volume 1
  368. #skellett play "{@SoundVIP}" to player at volume 1 and pitch 10
  369. set {LaunchingVIP.%uuid of player%} to true
  370. push player upwards at speed {@PushUpVIP}
  371. wait 3 ticks
  372. push player forwards at speed {@PushForwardVIP}
  373. set {countdown.%uuid of player%} to true
  374. wait {@Cooldown} seconds
  375. set {countdown.%uuid of player%} to false
  376. else if player doesn't have permission "{@permvip}":
  377. if {countdown.%uuid of player%} is false:
  378. if player's flight state is false:
  379. set {flightdis.%uuid of player%} to true
  380. set player's flight state to true
  381. else if player's flight state is true:
  382. set {flightena.%uuid of player%} to true
  383. play raw sound "{@Sound}" at location of player with pitch 10 volume 1
  384. #skellett play "{@Sound}" to player at volume 1 and pitch 10
  385. set {Launching.%uuid of player%} to true
  386. push player upwards at speed {@PushUp}
  387. wait 3 ticks
  388. push player forwards at speed {@PushForward}
  389. set {countdown.%uuid of player%} to true
  390. wait {@Cooldown} seconds
  391. set {countdown.%uuid of player%} to false
  392. else if "{@LaunchPadsRegister}" is "false":
  393. if block below player is {@TopBlock}:
  394. set {_Block1} to block below player
  395. if block below {_Block1} is {@ButtomBlock}:
  396. if player has permission "{@permvip}":
  397. if {countdown.%uuid of player%} is false:
  398. if player's flight state is false:
  399. set {flightdis.%uuid of player%} to true
  400. set player's flight state to true
  401. else if player's flight state is true:
  402. set {flightena.%uuid of player%} to true
  403. play raw sound "{@SoundVIP}" at location of player with pitch 10 volume 1
  404. #skellett play "{@SoundVIP}" to player at volume 1 and pitch 10
  405. set {LaunchingVIP.%uuid of player%} to true
  406. push player upwards at speed {@PushUpVIP}
  407. wait 3 ticks
  408. push player forwards at speed {@PushForwardVIP}
  409. set {countdown.%uuid of player%} to true
  410. wait {@Cooldown} seconds
  411. set {countdown.%uuid of player%} to false
  412. else if player doesn't have permission "{@permvip}":
  413. if {countdown.%uuid of player%} is false:
  414. if player's flight state is false:
  415. set {flightdis.%uuid of player%} to true
  416. set player's flight state to true
  417. else if player's flight state is true:
  418. set {flightena.%uuid of player%} to true
  419. play raw sound "{@Sound}" at location of player with pitch 10 volume 1
  420. #skellett play "{@Sound}" to player at volume 1 and pitch 10
  421. set {Launching.%uuid of player%} to true
  422. push player upwards at speed {@PushUp}
  423. wait 3 ticks
  424. push player forwards at speed {@PushForward}
  425. set {countdown.%uuid of player%} to true
  426. wait {@Cooldown} seconds
  427. set {countdown.%uuid of player%} to false
  428.  
  429. else:
  430. # Ver 1.3 and 1.4.1
  431. if player doesn't have permission "{@perm}":
  432. if player's world is {@worlds}:
  433. if block below player is {@TopBlock}:
  434. set {_Block1} to block below player
  435. if block below {_Block1} is {@ButtomBlock}:
  436. send "{@NoPermLaunch}"
  437. on any move:
  438. if {LaunchingVIP.%uuid of player%} is true:
  439. show {@ParticleVIPCount1} "{@ParticleVIP1}" Particle at location of player for player offset by 0, 0.2, 0
  440. show {@ParticleVIPCount2} "{@ParticleVIP2}" Particle at location of player for player offset by 0, 0.2, 0
  441.  
  442. else if {Launching.%uuid of player%} is true:
  443. show {@ParticleCount} "{@Particle}" Particle at location of player for player offset by 0, 0.2, 0
  444.  
  445. on any move:
  446. player is on ground:
  447. if {LaunchingVIP.%uuid of player%} is true:
  448. set {LaunchingVIP.%uuid of player%} to false
  449. if {Launching.%uuid of player%} is true:
  450. set {Launching.%uuid of player%} to false
  451. if {damage.%uuid of player%} is true:
  452. wait 2 ticks
  453. set {damage.%uuid of player%} to false
  454. if {flightdis.%uuid of player%} is true:
  455. set player's flight state to false
  456. set {flightdis.%uuid of player%} to false
  457. else if {flightena.%uuid of player%} is true:
  458. set player's flight state to true
  459. set {flightena.%uuid of player%} to false
  460.  
  461. on damage:
  462. damage cause is fall:
  463. if {damage.%uuid of victim%} is true:
  464. cancel event
  465.  
  466.  
  467. # ------
  468. #
  469. # The End of the Skript :)
  470. # Ayham Alali.
  471. #
  472. # ------
Add Comment
Please, Sign In to add comment