Zeldaboy111

Skript Tutorial #27 World config

Oct 11th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.81 KB | None | 0 0
  1. #Cosmetics skript
  2.  
  3. options:
  4. {cparticleCT::%arg 3%} = {cparticleCT::%player%}
  5. {cparticleCT::%arg 3%} = {cparticleCT::%loop-player%}
  6.  
  7. {cParticleName::%arg 3%} = {cParticleName::%loop-player%}
  8.  
  9. {cparticlecn::%arg 2%} = {cparticlecn::%loop-player%}
  10.  
  11. {cfireworkspark::%arg 1%} = {cfireworkspark::%loop-player%}
  12. {cwolfhearts::%arg 1%} = {cwolfhearts::%loop-player%}
  13.  
  14. {chead::type::%arg 2%} = {chead::type::%player%}
  15.  
  16. {vote::time::%player%} = {vote::time::%loop-player%}
  17.  
  18. on enable:
  19. set {VoteKey} to "VK"
  20.  
  21.  
  22. on join:
  23. wait 1 tick
  24. execute console command "mvtp %player% lobby"
  25. set hunger to 10
  26. set player's health to 10
  27. player is in world "lobby":
  28. clear the player's inventory
  29. set slot 4 of player to a chest named "&6Cosmetics" with lore "&7Open een cosmetic GUI"
  30. if {cparticleCT::%player%} is not set:
  31. set {cparticleCT::%player%} to 0
  32. if {cadminchange::%player%} is not set:
  33. set {cadminchange::%player%} to false
  34. if {vote::time::%player%} is not set:
  35. set {vote::time::%player%} to 0
  36. set helmet slot of player to {chead::type::%player%}
  37. if {rewards::%player%} is not set:
  38. set {rewards::%player%} to 0
  39.  
  40. on break:
  41. if player is in "lobby":
  42. if {cadminchangeb::%player%} is false:
  43. send "&6<Lobby> &4Je mag geen blokken breken in de lobby."
  44. cancel event
  45.  
  46. on leftclick:
  47. if player is holding a chest named "&6Cosmetics" with lore "&7Open een cosmetic GUI":
  48. execute console command "/cosmeticmain open %player%"
  49. cancel event
  50.  
  51. on rightclick:
  52. player is holding a chest named "&6Cosmetics" with lore "&7Open een cosmetic GUI":
  53. execute console command "/cosmeticmain open %player%"
  54. cancel event
  55.  
  56. command /cosmeticmain open <offline player>:
  57. executable by: console
  58. trigger:
  59. if player is in world "lobby":
  60. open chest with 1 rows named "&6Cosmetics" to arg 1
  61. format slot 0 of arg 1 with orange dye named "&5Particles" to close then run [execute console command "cosmeticp open %arg 1%"]
  62. format slot 2 of arg 1 with Skull of ("Tom25W" parsed as an offline player) named "&eHeads" to close then run [execute console command "cosmetich1 open %arg 1%"]
  63. format slot 4 of arg 1 with leather chestplate dyed lime named "&aSuits" to close then run [execute console command "cosmeticsuit open %arg 1%"]
  64. #========================================================================================================================
  65. command /cosmeticp open <offline player>:
  66. executable by: console
  67. trigger:
  68. if player is in world "lobby":
  69. wait 3 tick
  70. open chest with 1 rows named "&5Particles" to arg 1
  71. format slot 0 of arg 1 with leather boots dyed white named "&f&lFirework Sparks" with lore "&710 secondes vuurwerk particles" to close then run [execute console command "cparticle FireworkSpark fireworks_spark %arg 1%"]
  72. format slot 1 of arg 1 with bone named "&4&lWolf Hearts" with lore "&710 secondes wolven hartjes particles" to close then run [execute console command "cparticle WolfHearts wolfheart %arg 1%"]
  73.  
  74. command /cparticle <text> <text> <offline player>:
  75. executable by: console
  76. trigger:
  77. if player is in world "lobby":
  78. if {cparticlect::%arg 3%} is 0:
  79. set {cParticleMessage::%arg 3%} to arg 1
  80. set {cParticleName::%arg 3%} to arg 2
  81. set {cparticleCT::%arg 3%} to 10
  82. send "&5<Cosmetics> &dDe particle: &5%{cParticleMessage::%arg 3%}% &dis aangezet." to arg 3
  83. wait 10 seconds
  84. delete {cParticleName::%arg 3%}
  85. send "&5<Cosmetics> &dDe particle: &5%{cParticleMessage::%arg 3%}% &dis uitgezet." to arg 3
  86. stop
  87. else:
  88. send "&5<Cosmetics> &dJe hebt nog een cooldown van: &5%{cparticleCT::%arg 3%}% &dseconden omdat je de particle: &5%{cParticleMessage::%arg 3%}% &dhebt aangezet." to arg 3
  89. stop
  90.  
  91. every 1 second:
  92. loop all players in world "lobby":
  93. if {cparticleCT::%loop-player%} is not 0:
  94. remove 1 from {cparticleCT::%loop-player%}
  95. stop
  96.  
  97. every 5 ticks:
  98. loop all players in world "lobby":
  99. if {cParticleName::%loop-player%} is set:
  100. #show 25 "%{cParticleName::%loop-player%}%" particles at location of loop-player for loop-player offset by 0.5, 1, 0.5
  101. stop
  102. #=================================================================
  103.  
  104. command /cosmetich open <offline player>:
  105. executable by: console
  106. trigger:
  107. if player is in world "lobby":
  108. wait 3 tick
  109. send "&5<Cosmetics> &4Je zit al op de eerste pagina" to arg 1
  110.  
  111. command /cosmetich1 open <offline player>:
  112. executable by: console
  113. trigger:
  114. if player is in world "lobby":
  115. wait 3 tick
  116. open chest with 6 rows named "&5Heads Items" to arg 1
  117.  
  118. #Tweede rij
  119. #Verander slot slot 10 naar een ander slot (na of voor de kist)
  120. format slot 9 of arg 1 with Skull of ("MHF_PigZombie" parsed as an offline player) named "&eZombiePigman" to close then run [execute console command "chead ZombiePigman MHF_PigZombie %arg 1%"]
  121. format slot 10 of arg 1 with Skull of ("Tom25W" parsed as an offline player) named "&eGoldenChest" to close then run [execute console command "/chead GoldenChest Tom25W %arg 1%"]
  122.  
  123.  
  124.  
  125.  
  126. #Onderste rij
  127. format slot 48 of arg 1 with arrow named "&cVorige pagina" to close then run [execute console command "cosmetich open %arg 1%"]
  128. format slot 49 of arg 1 with barrier named "&4Sluit het menu" to close
  129. format slot 50 of arg 1 with arrow named "&cVolgende pagina" to close then run [execute console command "cosmetich2 open %arg 1%"]
  130. format slot 53 of arg 1 with barrier named "&cVerwijder je head" to close then run [execute console command "chead remove %arg 1%"]
  131.  
  132. command /cosmetich2 open <offline player>:
  133. executable by: console
  134. trigger:
  135. if player is in world "lobby":
  136. wait 3 tick
  137. send "&5<Cosmetics> &4Er is nog geen 2de pagina" to arg 1
  138.  
  139.  
  140. command /chead <text> <text> <offline player>:
  141. executable by: console
  142. trigger:
  143. if player is in world "lobby":
  144. if arg 2 is "remove":
  145. set helmet slot of arg 3 to air
  146. send "&5<Cosmetics> &dJe head is verwijderd" to arg 3
  147. stop
  148.  
  149. else:
  150. set helmet slot of arg 3 to Skull of ("%arg 2%" parsed as an offline player)
  151. send "&5<Heads> &dVeel plezier met je &5%arg 1% &dhead!" to arg 3
  152.  
  153. #================================================================
  154.  
  155. command /cosmeticsuit open <offline player>:
  156. executable by: console
  157. trigger:
  158. if player is in world "lobby":
  159. wait 3 ticks
  160. open chest with 6 rows named "&aSuits" to arg 1
  161.  
  162. format slot 9 of arg 1 with leather chestplate dyed blue named "&2Blue chestplate" to close then run [execute console command "csuits BlueChestplate leather_chestplate blue %arg 1%"]
  163. format slot 10 of arg 1 with leather chestplate dyed red named "&2Red chestplate" to close then run [execute console command "csuits RedChestplate leather_chestplate red %arg 1%"]
  164. format slot 11 of arg 1 with leather chestplate dyed yellow named "&2Yellow chestplate" to close then run [execute console command "csuits YellowChestplate leather_chestplate yellow %arg 1%"]
  165.  
  166. format slot 48 of arg 1 with arrow named "&cVorige pagina" to close then run [execute console command "cosmetich open %arg 1%"]
  167. format slot 49 of arg 1 with barrier named "&4Sluit het menu" to close
  168. format slot 50 of arg 1 with arrow named "&cVolgende pagina" to close then run [execute console command "cosmetich2 open %arg 1%"]
  169. format slot 53 of arg 1 with barrier named "&cVerwijder je chestplate" to close then run [execute console command "csuits remove %arg 1%"]
  170.  
  171. command /csuits <text> [<item>] [<color>] <offline player>:
  172. executable by: console
  173. trigger:
  174. if player is in world "lobby":
  175. if arg 1 is "remove":
  176. set chestplate slot of arg 4 to air
  177. send "&5<Suits> &dJe chestplate is removed" to arg 4
  178. else:
  179. equip arg 4 with arg 2 dyed arg 3
  180. send "&5<Suits> &dVeel plezier met je &5%arg 1%&d!" to arg 4
  181. stop
  182.  
  183.  
  184. #================================================================
  185.  
  186. command /cadmin [<text>] [<text>]:
  187. trigger:
  188. if player is in world "lobby":
  189. if player has permission "adminchange":
  190. if arg 1 is "invc" OR "invchange" OR "ic":
  191. if arg 2 is "true" OR "on" OR "aan":
  192. send "&3<AdminCommands> &bJe kan je inventory nu veranderen"
  193. set {cadminchangei::%player%} to true
  194. stop
  195. if arg 2 is "false" OR "off" OR "uit":
  196. send "&3<AdminCommands> &bJe kan je inventory nu niet meer veranderen"
  197. set {cadminchangei::%player%} to false
  198. stop
  199. else:
  200. send "&3<AdminCommands> &4Doe /cadmin &cinvc/invchange/ic true/on/aan &4om inventorychange aan te zetten"
  201. send "&3<AdminCommands> &4Doe /cadmin &cinvc/invchange/ic false/off/uit &4om inventorychange uit te zetten"
  202. stop
  203. if arg 1 is "breakblocks" OR "breakb" OR "bb":
  204. if arg 2 is "true" OR "on" OR "aan":
  205. send "&3<AdminCommands> &bJe kan nu blokken breken in de lobby"
  206. set {cadminchangeb::%player%} to true
  207. stop
  208. if arg 2 is "false" OR "off" OR "uit":
  209. send "&3<AdminCommands> &bJe kan nu geen blokken meer breken in de lobby"
  210. set {cadminchangeb::%player%} to false
  211. stop
  212. else:
  213. send "&3<AdminCommands> &4Doe /cadmin &cbreakblocks/breakb/bb true/on/aan &4om blokken in de lobby te kunnen breken"
  214. send "&3<AdminCommands> &4Doe /cadmin &cbreakblocks/breakb/bb false/off/uit &4om geen blokken in de lobby te kunnen breken"
  215. stop
  216. if arg 1 is not set:
  217. send "&3<AdminCommands> &4Doe /cadmin &cinvc/invchange/ic true/on/aan &4om inventorychange aan te zetten"
  218. send "&3<AdminCommands> &4Doe /cadmin &cinvc/invchange/ic false/off/uit &4om inventorychange uit te zetten"
  219.  
  220. send ""
  221.  
  222. send "&3<AdminCommands> &4Doe /cadmin &cbreakblocks/breakb/bb true/on/aan &4om blokken in de lobby te kunnen breken"
  223. send "&3<AdminCommands> &4Doe /cadmin &cbreakblocks/breakb/bb false/off/uit &4om geen blokken in de lobby te kunnen breken"
  224. stop
  225. else:
  226. send "&3<AdminCommands> &4Je hebt onvoldoende permissies hiervoor"
  227. stop
  228.  
  229. on inventory click:
  230. if player is in world "lobby":
  231. if {cadminchangei::%player%} is false:
  232. cancel event
  233. on drop:
  234. if player is in world "lobby":
  235. if {cadminchangei::%player%} is false:
  236. cancel event
  237.  
  238. #=================================================
  239. #Speciaal item
  240. #Keys/iets anders
  241.  
  242. command /vote:
  243. trigger:
  244. if player is in world "lobby":
  245. if {vote::time::%player%} is 0:
  246. send "&9<Vote> &3Hier is je vote key"
  247. give player 1 tripwire hook named "&9VoteKey" with lore "&kl"
  248. set {vote::time::%player%} to 10
  249. else:
  250. send "&9<Vote> &3Je kan pas voten over: &b%{vote::time::%player%}% &3seconden."
  251.  
  252.  
  253. every 1 seconds:
  254. loop all players in world "lobby":
  255. if {vote::time::%loop-player%} is not 0:
  256. remove 1 from {vote::time::%loop-player%}
  257.  
  258. on rightclick:
  259. player is in world "lobby":
  260. loop all blocks:
  261.  
  262. if clicked block is a chest named {VoteKey}:
  263.  
  264. if player is holding a tripwire hook named "&9VoteKey" with lore "&kl":
  265. remove 1 tripwire hook named "&9VoteKey" with lore "&kl" from player
  266. cancel event
  267. execute console command "cvoteopen %player%"
  268. add 1 to {rewards::%player%}
  269. send "&4Je hebt nu een reward"
  270. stop
  271. else:
  272. send "&9<Vote> &4Je hebt geen &cVoteKey"
  273. cancel event
  274. stop
  275.  
  276. #command /cvoteopen <offline player>:
  277. #trigger:
  278.  
  279.  
  280. on rightclick:
  281. player is in world "lobby":
  282. if clicked block is a end portal frame:
  283.  
  284. if {rewards::%player%} is 0:
  285. execute console command "rewards open %player%"
  286. stop
  287. if {rewards::%player%} is more than 0:
  288. if {rewards::%player%} is less than 9:
  289. execute console command "rewards1 open %player%"
  290. stop
  291. if {rewards::%player%} is more than 8:
  292. if {rewards::%player%} is less than 18:
  293. execute console command "rewards2 open %player%"
  294. stop
  295.  
  296. on rightclick:
  297. player is in world "lobby":
  298. set {_loc} to clicked block
  299. set {_locn} to location 2 meter north of {_loc}
  300. execute console command "rclick %{_locn}%"
  301. #set 1 meter north of event-block to air
  302. # execute console command "/rclick {@locn}"
  303.  
  304. #command /rclick <text>:
  305. # executable by: console
  306. # trigger:
  307. # set "%arg 1%" to air
  308.  
  309. # send "%{_locn::%location%}%"
  310. #set {_loc} to clicked block
  311. #set {_loc} to the location 2 meter north of event-block
  312. #send "%{_loc}%"
  313. #set location of "%{_loc}%" to stone
  314. #send "%{_loc}%"
  315. #stop
  316. #line 1 of {loc} is "Test":
  317. # set {loc} to air
  318. # send "x"
  319. # stop
  320.  
  321. #set {clickedblock} to clicked block
  322. #set {_locn} to the location 2 meter north of clicked block
  323. #set {loc} to the location 2 meter north of {clickedblock}
  324. #if line 1 of {loc} is "Test":
  325. # send "x"
  326. #set {_loc} to location 2 meter east of clicked block
  327. #set {_loc} to location 2 meter south of clicked block
  328. #set {_loc} to location 2 meter west of clicked block
  329.  
  330.  
  331. #clicked block is a chest named {VoteKey}:
  332.  
  333.  
  334. command /rewards open <offline player>:
  335. executable by: console
  336. trigger:
  337. if player is in world "lobby":
  338. wait 3 tick
  339. open chest with 3 rows named "&5Rewards" to arg 1
  340.  
  341. format slot 0 of arg 1 with a barrier named "&cJe hebt geen rewards" to close then run [execute console command "rewards open %arg 1%"]
  342. stop
  343.  
  344.  
  345. command /rewards1 open <offline player>:
  346. executable by: console
  347. trigger:
  348. if player is in world "lobby":
  349. wait 3 tick
  350. open chest with 3 rows named "&5Rewards" to arg 1
  351.  
  352. format slot 0 of arg 1 with a wool named "&cJe hebt geen rewards" to close then run [execute console command ""]
  353. stop
  354.  
  355. command /rewards2 open <offline player>:
  356. executable by: console
  357. trigger:
  358. if player is in world "lobby":
  359. wait 3 tick
  360. open chest with 3 rows named "&5Rewards" to arg 1
  361.  
  362. format slot 0 of arg 1 with a wool named "&cJe hebt geen rewards" to close then run [execute console command ""]
  363. stop
  364.  
  365. command /rreset:
  366. trigger:
  367. if player is in world "lobby":
  368. set {rewards::%player%} to 0
  369. send "&3Je rewards zijn gereset"
Add Comment
Please, Sign In to add comment