Zeldaboy111

Skript #275 ]|[ Cosmetics (9)

Dec 29th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 101.01 KB | None | 0 0
  1. #© This Skript reselling/reuploading and claiming as it is yours is not allowed! ©
  2. #© Using this Skript in a video is no problem, only mention the things below this ©
  3. #
  4. #Skript made by Zeldaboy111
  5. #YouTube creator: https://www.youtube.com/channel/UClmeX0PpxrQd9q-4kRaBefg?view_as=subscriber
  6. #More content of the creator: https://forums.skunity.com/search/26443679/
  7.  
  8.  
  9. options:
  10. logo: &6Server &7▬ &2
  11. lobby: &cLobby &7► &2
  12. lcompass: &9C&3ompass
  13. cGuiName: &9M&3inigames
  14.  
  15. path: Files/Lobby
  16. config: Files/Lobby/config.yml
  17. cosConfig: Files/Lobby/Cosmetics/config.yml
  18. suitPath: Files/Lobby/Cosmetics/Suits
  19. helmetPath: Files/Lobby/Cosmetics/Helmets
  20.  
  21. window1: yml value "Lobby.Crates.Animations.Window1" of file "Files/Lobby/config.yml"
  22. randomAnimation: yml value "Lobby.Crates.Animations.Random.Enabled" of file "Files/Lobby/config.yml"
  23. animation: yml value "Lobby.Crates.Animations.Random.DisabledAnimation" of file "Files/Lobby/config.yml"
  24. particles: yml value "Lobby.Crates.Particles.Enabled" of file "Files/Lobby/config.yml"
  25. heads: yml value "Lobby.Crates.Heads.Enabled" of file "Files/Lobby/config.yml"
  26. suits: yml value "Lobby.Crates.Suits.Enabled" of file "Files/Lobby/config.yml"
  27. gadgets: yml value "Lobby.Crates.Gadgets.Enabled" of file "Files/Lobby/config.yml"
  28.  
  29.  
  30.  
  31. #alt + 15 = ☼
  32. #alt + 26 = →
  33. #alt + 16 = ►
  34. #alt + 22 = ▬
  35.  
  36. #------------------- Functions -------------------
  37. function contains(list: objects, check: object) :: boolean:
  38. loop {_list::*}:
  39. if loop-value is {_check}:
  40. return true
  41. return false
  42.  
  43. function lcompGui(p: Player, gname: String, rows: Integer, slot1: Integer, slot2: Integer, item1: Item, item2: Item, i1name: String, i2name: String, accept: String, deny: String, command: Boolean):
  44. open chest with {_rows} rows named {_gname} to {_p}
  45.  
  46. set name of {_item1} to {_i1name}
  47. set name of {_item2} to {_i2name}
  48.  
  49. format gui slot {_slot1} of {_p} with {_item1} to run:
  50. close {_p}'s inventory
  51. if {_command} is true:
  52. execute player command {_accept}
  53. else:
  54. send {_accept} to {_p}
  55.  
  56. format gui slot {_slot2} of {_p} with {_item2} to run:
  57. close {_p}'s inventory
  58. send {_deny} to {_p}
  59.  
  60.  
  61. function deleteVariables(p: Player):
  62. delete {cosmetics.edit.%{_p}%.helmet}
  63. delete {cosmetics.edit.%{_p}%.chestplate}
  64. delete {cosmetics.edit.%{_p}%.leggings}
  65. delete {cosmetics.edit.%{_p}%.boots}
  66.  
  67. delete {cosmetics.edit.%{_p}%.type}
  68. delete {cosmetics.edit.%{_p}%.current}
  69. delete {cosmetics.edit.%{_p}%.crate}
  70. delete {cosmetics.edit.%{_p}%.pieceText}
  71. delete {cosmetics.edit.%{_p}%.helmet.name}
  72. delete {cosmetics.edit.%{_p}%.helmet.lore::*}
  73. delete {cosmetics.edit.%{_p}%.helmet.ench::*}
  74. delete {cosmetics.edit.%{_p}%.chestplate.name}
  75. delete {cosmetics.edit.%{_p}%.chestplate.lore::*}
  76. delete {cosmetics.edit.%{_p}%.chestplate.ench::*}
  77. delete {cosmetics.edit.%{_p}%.leggings.name}
  78. delete {cosmetics.edit.%{_p}%.leggings.lore::*}
  79. delete {cosmetics.edit.%{_p}%.leggings.ench::*}
  80. delete {cosmetics.edit.%{_p}%.boots.name}
  81. delete {cosmetics.edit.%{_p}%.boots.lore::*}
  82. delete {cosmetics.edit.%{_p}%.boots.ench::*}
  83. delete {cosmetics.edit.%{_p}%.helmet.helmet.type}
  84. delete {cosmetics.edit.%{_p}%.helmet.player}
  85. delete {cosmetics.edit.%{_p}%.helmet.type}
  86. delete {cosmetics.edit.%{_p}%.helmet.skull}
  87.  
  88.  
  89. function openCompass(p: Player):
  90. if {lobby.compassRows} is not set:
  91. set {lobby.compassRows} to 1
  92.  
  93. open chest with {lobby.compassRows} rows named "{@cGuiName}" to {_p}
  94.  
  95. loop {lobby.minigames.list::*}:
  96. if {lobby.minigames.%loop-value%.slot} starts with "-":
  97. stop
  98.  
  99. else:
  100. if ({lobby.minigames.%loop-value%.slot} parsed as a number) is set:
  101. if {lobby.minigames.%loop-value%.item} is "&cNone":
  102. set {_item} to paper
  103.  
  104. else if ({lobby.minigames.%loop-value%.item} parsed as an item) is not set:
  105. set {_item} to paper
  106.  
  107. else:
  108. set {_item} to {lobby.minigames.%loop-value%.item}
  109.  
  110. set {_slot} to ({lobby.minigames.%loop-value%.slot} parsed as a number)
  111.  
  112. if {lobby.minigames.%loop-value%.name} is set:
  113. if {lobby.minigames.%loop-value%.name} is not "&cNone":
  114. set {_name} to {lobby.minigames.%loop-value%.name}
  115. replace "&" in {_name} with "§"
  116. if {lobby.minigames.%loop-value%.lore} is set:
  117. if {lobby.minigames.%loop-value%.lore} is not "&cNone":
  118. set {_lore} to {lobby.minigames.%loop-value%.lore}
  119. replace "&" in {_lore} with "§"
  120. format gui slot {_slot} of {_p} with "%{lobby.minigames.%loop-value%.item}%" parsed as an item named "%{_name}%" with lore "%{_lore}%" to do nothing
  121. else:
  122. format gui slot {_slot} of {_p} with "%{lobby.minigames.%loop-value%.item}%" parsed as an item named "%{_name}%" to do nothing
  123. else:
  124. format gui slot {_slot} of {_p} with "%{lobby.minigames.%loop-value%.item}%" parsed as an item named "%{_name}%" to do nothing
  125. else:
  126. format gui slot {_slot} of {_p} with "%{lobby.minigames.%loop-value%.item}%" parsed as an item to do nothing
  127. else:
  128. format gui slot {_slot} of {_p} with "%{lobby.minigames.%loop-value%.item}%" parsed as an item to do nothing
  129.  
  130. function randomReward(crate: String) :: Item:
  131. set {_rewards1::*} to yml list "Item.List" of file "{@path}/%{_crate}%.yml"
  132. set {_rewardsNames::*} to yml list "Item.ConfigName" of file "{@path}/%{_crate}%.yml"
  133.  
  134. set {_count} to 1
  135. loop {_rewards1::*}:
  136. if yml value "Item.Chance.%{_rewardsNames::%{_count}%}%" of file "{@path}/%{_crate}%.yml" is set:
  137. set {_chance} to yml value "Item.Chance.%{_rewardsNames::%{_count}%}%" of file "{@path}/%{_crate}%.yml" parsed as a string
  138.  
  139. if ({_chance} parsed as a number) is set:
  140. loop ({_chance} parsed as a number) times:
  141. add "%loop-value-1% [{$^^$}] %{_rewardsNames::%{_count}%}%" to {_rewards::*}
  142.  
  143. else:
  144. send "%nl%{@lobby} &c%{_chance}% &4is not a number!%nl%" to console
  145.  
  146. add 1 to {_count}
  147.  
  148. set {_length} to size of {_rewards::*}
  149. set {_prizeCount} to a random integer between 0 and {_length}
  150. set {_splitPrize::*} to {_rewards::%{_prizeCount}%} split at " [{$^^$}] "
  151.  
  152. set {_prize} to {_splitPrize::1}
  153. set {_prizeCName} to {_splitPrize::2}
  154.  
  155. if ({_prize} parsed as an item) is not set:
  156. send "{@lobby} &c%{_prize}% &4is not an item! Stopping opening the crate!" to console
  157.  
  158. else:
  159. set {_prize} to {_prize} parsed as an item
  160.  
  161. if yml value "Item.Name.%{_prizeCName}%" of file "{@path}/%{_crate}%.yml" is set:
  162. set {_prizeName} to yml value "Item.Name.%{_prizeCName}%" of file "{@path}/%{_crate}%.yml"
  163. set {_prizeName} to "%colored {_prizeName}%"
  164. set name of {_prize} to "&f%{_prizeName}%"
  165.  
  166. if yml value "Item.Amount.%{_prizeCName}%" of file "{@path}/%{_crate}%.yml" is set:
  167. set {_prizeAmount} to yml value "Item.Amount.%{_prizeCName}%" of file "{@path}/%{_crate}%.yml"
  168. set {_prizeAmount} to ({_prizeAmount} parsed as a number)
  169. if {_prizeAmount} is set:
  170. set {_prize} to ("%{_prizeAmount}% %{_prize}%" parsed as an item)
  171.  
  172. else:
  173. send "{@lobby} &c%{_prizeAmount}% &4is not a number!" to console
  174. set {_prize} to ("1 %{_prize}%" parsed as an item)
  175.  
  176. if yml value "Item.Lore.%{_prizeCName}%" of file "{@path}/%{_crate}%.yml" is set:
  177. set {_loreList::*} to yml list "Item.Lore.%{_prizeCName}%" of file "{@path}/%{_crate}%.yml"
  178. loop {_loreList::*}:
  179. if {_lore} is not set:
  180. set {_lore} to "%loop-value%"
  181. else:
  182. set {_lore} to "%{_lore}%||%loop-value%"
  183.  
  184. set lore of {_prize} to {_lore}
  185.  
  186.  
  187. if yml value "Item.Enchants.%{_prizeCName}%" of file "{@path}/%{_crate}%.yml" is set:
  188. set {_enchantList::*} to yml list "Item.Enchants.%{_prizeCName}%" of file "{@path}/%{_crate}%.yml"
  189. loop {_enchantList::*}:
  190. set {_ench} to "%loop-value%"
  191. set {_split::*} to {_ench} split at ""
  192.  
  193. if contains({_split::*}, ":") is true:
  194. set {_eSplit::*} to {_ench} split at ":"
  195. set {_ench1} to {_eSplit::1}
  196. set {_ench2} to {_eSplit::2}
  197.  
  198. if ({_ench1} parsed as an enchantment type) is set:
  199. if ({_ench2} parsed as a number) is set:
  200. enchant {_prize} with "%{_ench1}% %{_ench2}%" parsed as an enchantment type
  201. set name of {_prize} to "&b%{_prizeName}%"
  202. else:
  203. send "%nl%{@lobby} &c%{_s2}% &4is not a number!%nl%" to console
  204. else:
  205. send "%nl%{@lobby} &c%{_s1}% &4is not an enchantment type!%nl%" to console
  206.  
  207. else:
  208. if (loop-value parsed as an enchantment type) is set:
  209. enchant {_prize} with "%loop-value% 1" parsed as an enchantment type
  210.  
  211. else:
  212. send "{@lobby} &c%loop-value% &4is not an enchantment type!" to console
  213.  
  214. return {_prize}
  215.  
  216. function animation1(p: Player, count: Integer, count2: Integer) :: boolean:
  217.  
  218. loop 9 times:
  219. if {crates.reopening.%{_p}%} is true:
  220. delete {crates.reopening.%{_p}%}
  221. clear {crate.%{_p}%.inv::*}
  222. clear {crate.%{_p}%.name}
  223.  
  224.  
  225. if {crates.closed.%{_p}%} is true:
  226. if {_count} = {_count2}-18:
  227. set {crate.%{_p}%.inv::%{_count}%} to "light green glass"
  228. set {crate.%{_p}%.inv::%{_count2}%} to "light green glass"
  229. else:
  230. set {crate.%{_p}%.inv::%{_count}%} to "gray glass"
  231. set {crate.%{_p}%.inv::%{_count2}%} to "gray glass"
  232.  
  233. else:
  234. if {_count} = {_count2}-18:
  235. format gui slot {_count} of {_p} with light green stained glass pane to do nothing
  236. format gui slot {_count2} of {_p} with light green stained glass pane to do nothing
  237.  
  238. else:
  239. format gui slot {_count} of {_p} with gray stained glass pane to do nothing
  240. format gui slot {_count2} of {_p} with gray stained glass pane to do nothing
  241.  
  242. add 1 to {_count}
  243. remove 1 from {_count2}
  244. wait 5 ticks
  245.  
  246. set {animation.%{_p}%} to false
  247.  
  248. function runAnimation(p: Player, animation: Integer, count: Integer, count2: Integer, forced: Boolean):
  249. if {_animation} is 1:
  250. if {_forced} is false:
  251. if {@window1} is true:
  252. animation1({_p}, {_count}, {_count2})
  253. set {animation.%{_p}%} to true
  254. else:
  255. animation1({_p}, {_count}, {_count2})
  256. set {animation.%{_p}%} to true
  257.  
  258.  
  259. function openCrate(p: Player, crate: String):
  260. if {keys.%{_p}%.%{_crate}%} > 0:
  261. open chest with 3 rows named "&2%{_crate}%" to {_p}
  262.  
  263.  
  264. set {crates.opening.%{_p}%} to true
  265.  
  266. #Value to wait for animation
  267. set {animation.%{_p}%} to false
  268. set {_count} to 0
  269. set {_count2} to 26
  270.  
  271.  
  272. #Animations
  273. set {_random} to randomReward({_crate})
  274.  
  275. if {@randomAnimation} is true:
  276. set {_animationNumber} to a random integer between 0 and 1
  277. else:
  278. set {_animation} to yml value "Lobby.Crates.Animations.Random.DisabledAnimation" of file "{@config}"
  279.  
  280. if {_animation} is "Window1":
  281. set {_animationNumber} to 1
  282.  
  283. else:
  284. send "{@lobby} &4The animation &c%{_animation}% &4doesn't exist! Running Window1 as animation!" to console
  285. set {_animationNumber} to 1
  286.  
  287.  
  288. runAnimation({_p}, {_animationNumber}, {_count}, {_count2}, false)
  289.  
  290. if {animation.%{_p}%} is false:
  291. runAnimation({_p}, 1, {_count}, {_count2}, true)
  292.  
  293. while {animation.%{_p}%} is true:
  294. wait 1 tick
  295.  
  296.  
  297. delete {animation.%{_p}%}
  298.  
  299. format gui slot 13 of {_p} with {_random} to do nothing
  300. play sound "ENTITY_PLAYER_LEVELUP" with volume 10 and pitch 5 at {_p} for all players
  301.  
  302. delete {crates.closed.%{_p}%}
  303. remove {_p} from {crates.openinglist::*}
  304. delete {crate.%{_p}%.inv::*}
  305. delete {crate.%{_p}%.name}
  306. delete {crates.opening.%{_p}%}
  307. remove 1 from {keys.%{_p}%.%{_crate}%}
  308. set {_name} to name of {_random}
  309.  
  310. launch ball coloured aqua and blue at {_p}'s location timed 0.9
  311. give {_p} {_random}
  312. send "{@lobby} You've won &a%{_name}%&2!" to {_p}
  313.  
  314. else:
  315. send "{@lobby} &4You don't have anough keys to do this!" to {_p}
  316. play sound "ENTITY.ITEM.BREAK" with volume 10 and pitch 1 at {_p} for {_p}
  317.  
  318. function setHeadType(p: Player, nbt: String, name: String):
  319. play sound "BLOCK_NOTE_PLING" with volume 10 and pitch 1 at {_p} for {_p}
  320. set {cosmetics.edit.%{_p}%} to "go_back"
  321. close {_p}'s inventory
  322. delete {cosmetics.edit.%{_p}%}
  323. set {cosmetics.edit.%{_p}%.helmet.player} to "%{_nbt}%"
  324. set {cosmetics.edit.%{_p}%.helmet.name} to "%{_name}%"
  325. editPiece({_p}, "helmet", "Helmet", {cosmetics.edit.%{_p}%.type})
  326.  
  327. function editCosFormat(p: Player, piece: String, pieceText: String) :: item:
  328. set {_item} to ("barrier" parsed as an item)
  329.  
  330. if {cosmetics.edit.%{_p}%.%{_piece}%} is set:
  331.  
  332. if ("%{cosmetics.edit.%{_p}%.%{_piece}%}%" parsed as an item type) is set:
  333. set {_item} to ("%{cosmetics.edit.%{_p}%.%{_piece}%}%" parsed as an item)
  334.  
  335. else if {_piece} is "helmet":
  336. set {_headType} to "%{cosmetics.edit.%{_p}%.%{_piece}%}%"
  337. if contains(({_headType} split at " "), "head"):
  338. set {_item} to head
  339.  
  340. if {cosmetics.edit.%{_p}%.%{_piece}%.name} is set:
  341. set name of {_item} to "%{cosmetics.edit.%{_p}%.%{_piece}%.name}%"
  342.  
  343. else:
  344. set name of {_item} to "&2%{_pieceText}%"
  345.  
  346. if {cosmetics.edit.%{_p}%.%{_piece}%.lore} is set:
  347. set lore of {_item} to {cosmetics.edit.%{_p}%.%{_piece}%.lore}
  348.  
  349. else:
  350. set name of {_item} to "&4%{_pieceText}%"
  351.  
  352. return {_item}
  353.  
  354. function setSkullType(p: Player):
  355. wait 2 tick
  356. open chest with 3 rows named "&8Choose Type" to {_p}
  357.  
  358. if {cosmetics.edit.%{_p}%.helmet.type} is "Player":
  359. set {_player} to skull of ("MHF_Steve" parsed as an offline player) named "&2Player"
  360. set {_mob} to skull of ("MHF_CaveSpider" parsed as an offline player) named "&4Mob"
  361.  
  362. else if {cosmetics.edit.%{_p}%.helmet.type} is "Mob":
  363. set {_player} to skull of ("MHF_Steve" parsed as an offline player) named "&4Player"
  364. set {_mob} to skull of ("MHF_CaveSpider" parsed as an offline player) named "&2Mob"
  365.  
  366. else:
  367. set {_player} to skull of ("MHF_Steve" parsed as an offline player) named "&4Player"
  368. set {_mob} to skull of ("MHF_CaveSpider" parsed as an offline player) named "&4Mob"
  369.  
  370.  
  371. format gui slot 12 of {_p} with {_player} to run:
  372. set {cosmetics.edit.%{_p}%} to "go_back"
  373. close {_p}'s inventory
  374. delete {cosmetics.edit.%{_p}%}
  375. set {cosmetics.edit.%{_p}%.helmet.type} to "Player"
  376. editPiece({_p}, "helmet", "Helmet", {cosmetics.edit.%{_p}%.type})
  377.  
  378. format gui slot 14 of {_p} with {_mob} to run:
  379. set {cosmetics.edit.%{_p}%} to "go_back"
  380. close {_p}'s inventory
  381. delete {cosmetics.edit.%{_p}%}
  382. set {cosmetics.edit.%{_p}%.helmet.type} to "Mob"
  383. editPiece({_p}, "helmet", "Helmet", {cosmetics.edit.%{_p}%.type})
  384.  
  385.  
  386.  
  387. format gui slot 18 of {_p} with arrow named "&c<< Go Back" to run:
  388. set {cosmetics.edit.%{_p}%} to "go_back"
  389. close {_p}'s inventory
  390. delete {cosmetics.edit.%{_p}%}
  391. editPiece({_p}, "helmet", "Helmet", {cosmetics.edit.%{_p}%.type})
  392.  
  393.  
  394. function setSkullOwnerMob(p: Player, page: Integer):
  395. wait 1 tick
  396. open chest with 3 rows named "&8Edit SkullOwner" to {_p}
  397.  
  398. if {_page} is 1:
  399. format gui slot 26 of {_p} with an arrow named "&cNext Page >>" to run:
  400. set {cosmetics.edit.%{_p}%} to "go_back"
  401. close {_p}'s inventory
  402. delete {cosmetics.edit.%{_p}%}
  403. setSkullOwnerMob({_p}, 2)
  404.  
  405. format gui slot 0 of {_p} with skull of "%{_p}%" parsed as an offline player with nbt "{SkullOwner:{Id:cfdaf903-18cf-4a92-acf2-efa8626cf0b2,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvOWU5OWRlZWY5MTlkYjY2YWMyYmQyOGQ2MzAyNzU2Y2NkNTdjN2Y4YjEyYjlkY2E4ZjQxYzNlMGEwNGFjMWNjIn19fQ}]}}}" named "&eBat" to run function setHeadType({_p}, "{SkullOwner:{Id:cfdaf903-18cf-4a92-acf2-efa8626cf0b2,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvOWU5OWRlZWY5MTlkYjY2YWMyYmQyOGQ2MzAyNzU2Y2NkNTdjN2Y4YjEyYjlkY2E4ZjQxYzNlMGEwNGFjMWNjIn19fQ}]}}}", "Bat")
  406. format gui slot 1 of {_p} with skull of "%{_p}%" parsed as an offline player with nbt "{SkullOwner:{Id:7ceb88b2-7f5f-4399-abb9-7068251baa9d,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYjc4ZWYyZTRjZjJjNDFhMmQxNGJmZGU5Y2FmZjEwMjE5ZjViMWJmNWIzNWE0OWViNTFjNjQ2Nzg4MmNiNWYwIn19fQ}]}}}" named "&eBlaze" to run function setHeadType({_p}, "{SkullOwner:{Id:7ceb88b2-7f5f-4399-abb9-7068251baa9d,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYjc4ZWYyZTRjZjJjNDFhMmQxNGJmZGU5Y2FmZjEwMjE5ZjViMWJmNWIzNWE0OWViNTFjNjQ2Nzg4MmNiNWYwIn19fQ}]}}}", "Blaze")
  407. format gui slot 2 of {_p} with skull of "%{_p}%" parsed as an offline player with nbt "{SkullOwner:{Id:39173a7a-c957-4ec1-ac1a-43e5a64983df,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNDE2NDVkZmQ3N2QwOTkyMzEwN2IzNDk2ZTk0ZWViNWMzMDMyOWY5N2VmYzk2ZWQ3NmUyMjZlOTgyMjQifX19}]}}}" named "&eCave Spider" to run function setHeadType({_p}, "{SkullOwner:{Id:39173a7a-c957-4ec1-ac1a-43e5a64983df,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNDE2NDVkZmQ3N2QwOTkyMzEwN2IzNDk2ZTk0ZWViNWMzMDMyOWY5N2VmYzk2ZWQ3NmUyMjZlOTgyMjQifX19}]}}}", "Cave Spider")
  408. format gui slot 3 of {_p} with skull of "%{_p}%" parsed as an offline player with nbt "{SkullOwner:{Id:7d3a8ace-e045-4eba-ab71-71dbf525daf1,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMTYzODQ2OWE1OTljZWVmNzIwNzUzNzYwMzI0OGE5YWIxMWZmNTkxZmQzNzhiZWE0NzM1YjM0NmE3ZmFlODkzIn19fQ}]}}}" named "&eChicken" to run function setHeadType({_p}, "{SkullOwner:{Id:7d3a8ace-e045-4eba-ab71-71dbf525daf1,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMTYzODQ2OWE1OTljZWVmNzIwNzUzNzYwMzI0OGE5YWIxMWZmNTkxZmQzNzhiZWE0NzM1YjM0NmE3ZmFlODkzIn19fQ}]}}}", "Chicken")
  409. format gui slot 4 of {_p} with skull of "%{_p}%" parsed as an offline player with nbt "{SkullOwner:{Id:97ddf3b3-9dbe-4a3b-8a0f-1b19ddeac0bd,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNWQ2YzZlZGE5NDJmN2Y1ZjcxYzMxNjFjNzMwNmY0YWVkMzA3ZDgyODk1ZjlkMmIwN2FiNDUyNTcxOGVkYzUifX19}]}}}" named "&eCow" to run function setHeadType({_p}, "{SkullOwner:{Id:97ddf3b3-9dbe-4a3b-8a0f-1b19ddeac0bd,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNWQ2YzZlZGE5NDJmN2Y1ZjcxYzMxNjFjNzMwNmY0YWVkMzA3ZDgyODk1ZjlkMmIwN2FiNDUyNTcxOGVkYzUifX19}]}}}", "Cow")
  410. format gui slot 5 of {_p} with skull of "%{_p}%" parsed as an offline player with nbt "{SkullOwner:{Id:eed2d903-ca32-4cc7-b33b-ca3bdbe18da4,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZjQyNTQ4MzhjMzNlYTIyN2ZmY2EyMjNkZGRhYWJmZTBiMDIxNWY3MGRhNjQ5ZTk0NDQ3N2Y0NDM3MGNhNjk1MiJ9fX0}]}}}" named "&eCreeper" to run function setHeadType({_p}, "{SkullOwner:{Id:eed2d903-ca32-4cc7-b33b-ca3bdbe18da4,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZjQyNTQ4MzhjMzNlYTIyN2ZmY2EyMjNkZGRhYWJmZTBiMDIxNWY3MGRhNjQ5ZTk0NDQ3N2Y0NDM3MGNhNjk1MiJ9fX0}]}}}", "Creeper")
  411. format gui slot 6 of {_p} with skull of "%{_p}%" parsed as an offline player with nbt "{SkullOwner:{Id:26f49e8e-2414-40e4-be79-fcf921ad1d12,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNjNhOTc2YzA0N2Y0MTJlYmM1Y2IxOTcxMzFlYmVmMzBjMDA0YzBmYWY0OWQ4ZGQ0MTA1ZmNhMTIwN2VkYWZmMyJ9fX0}]}}}" named "&eDonkey" to run function setHeadType({_p}, "{SkullOwner:{Id:26f49e8e-2414-40e4-be79-fcf921ad1d12,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNjNhOTc2YzA0N2Y0MTJlYmM1Y2IxOTcxMzFlYmVmMzBjMDA0YzBmYWY0OWQ4ZGQ0MTA1ZmNhMTIwN2VkYWZmMyJ9fX0}]}}}", "Donkey")
  412. format gui slot 7 of {_p} with skull of "%{_p}%" parsed as an offline player with nbt "{SkullOwner:{Id:e56a8749-8a4a-40cc-9ded-3c90f8ae8c63,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMWM3OTc0ODJhMTRiZmNiODc3MjU3Y2IyY2ZmMWI2ZTZhOGI4NDEzMzM2ZmZiNGMyOWE2MTM5Mjc4YjQzNmIifX19}]}}}" named "&eElder Guardian" to run function setHeadType({_p}, "{SkullOwner:{Id:e56a8749-8a4a-40cc-9ded-3c90f8ae8c63,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMWM3OTc0ODJhMTRiZmNiODc3MjU3Y2IyY2ZmMWI2ZTZhOGI4NDEzMzM2ZmZiNGMyOWE2MTM5Mjc4YjQzNmIifX19}]}}}", "Elder Guardian")
  413. format gui slot 8 of {_p} with skull of "%{_p}%" parsed as an offline player with nbt "{SkullOwner:{Id:0de98464-1274-4dd6-bba8-370efa5d41a8,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvN2E1OWJiMGE3YTMyOTY1YjNkOTBkOGVhZmE4OTlkMTgzNWY0MjQ1MDllYWRkNGU2YjcwOWFkYTUwYjljZiJ9fX0}]}}}" named "&eEnderman" to run function setHeadType({_p}, "{SkullOwner:{Id:0de98464-1274-4dd6-bba8-370efa5d41a8,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvN2E1OWJiMGE3YTMyOTY1YjNkOTBkOGVhZmE4OTlkMTgzNWY0MjQ1MDllYWRkNGU2YjcwOWFkYTUwYjljZiJ9fX0}]}}}", "Enderman")
  414.  
  415. format gui slot 9 of {_p} with skull of "%{_p}%" parsed as an offline player with nbt "{SkullOwner:{Id:af1e1c5d-c3af-45c5-93eb-212c2a485338,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNWJjN2I5ZDM2ZmI5MmI2YmYyOTJiZTczZDMyYzZjNWIwZWNjMjViNDQzMjNhNTQxZmFlMWYxZTY3ZTM5M2EzZSJ9fX0}]}}}" named "&eEndermite" to run function setHeadType({_p}, "{SkullOwner:{Id:af1e1c5d-c3af-45c5-93eb-212c2a485338,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNWJjN2I5ZDM2ZmI5MmI2YmYyOTJiZTczZDMyYzZjNWIwZWNjMjViNDQzMjNhNTQxZmFlMWYxZTY3ZTM5M2EzZSJ9fX0}]}}}", "Endermite")
  416. format gui slot 10 of {_p} with skull of "%{_p}%" parsed as an offline player with nbt "{SkullOwner:{Id:9aef1ff9-7e67-4954-8cb6-0bf685147fe6,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNjMwY2U3NzVlZGI2NWRiOGMyNzQxYmRmYWU4NGYzYzBkMDI4NWFiYTkzYWZhZGM3NDkwMGQ1NWRmZDk1MDRhNSJ9fX0}]}}}" named "&eEvoker" to run function setHeadType({_p}, "{SkullOwner:{Id:9aef1ff9-7e67-4954-8cb6-0bf685147fe6,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNjMwY2U3NzVlZGI2NWRiOGMyNzQxYmRmYWU4NGYzYzBkMDI4NWFiYTkzYWZhZGM3NDkwMGQ1NWRmZDk1MDRhNSJ9fX0}]}}}", "Evoker")
  417. format gui slot 11 of {_p} with skull of "%{_p}%" parsed as an offline player with nbt "{SkullOwner:{Id:807f287f-6499-4e93-a887-0a298ab3091f,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvOGI2YTcyMTM4ZDY5ZmJiZDJmZWEzZmEyNTFjYWJkODcxNTJlNGYxYzk3ZTVmOTg2YmY2ODU1NzFkYjNjYzAifX19}]}}}" named "&eGhast" to run function setHeadType({_p}, "{SkullOwner:{Id:807f287f-6499-4e93-a887-0a298ab3091f,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvOGI2YTcyMTM4ZDY5ZmJiZDJmZWEzZmEyNTFjYWJkODcxNTJlNGYxYzk3ZTVmOTg2YmY2ODU1NzFkYjNjYzAifX19}]}}}", "Ghast")
  418. format gui slot 12 of {_p} with skull of "%{_p}%" parsed as an offline player with nbt "{SkullOwner:{Id:f3898fe0-04fb-4f9c-8f8b-146a1d894007,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYzI1YWY5NjZhMzI2ZjlkOTg0NjZhN2JmODU4MmNhNGRhNjQ1M2RlMjcxYjNiYzllNTlmNTdhOTliNjM1MTFjNiJ9fX0}]}}}" named "&eGuardian" to run function setHeadType({_p}, "{SkullOwner:{Id:f3898fe0-04fb-4f9c-8f8b-146a1d894007,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYzI1YWY5NjZhMzI2ZjlkOTg0NjZhN2JmODU4MmNhNGRhNjQ1M2RlMjcxYjNiYzllNTlmNTdhOTliNjM1MTFjNiJ9fX0}]}}}", "Guardian")
  419. format gui slot 13 of {_p} with skull of "%{_p}%" parsed as an offline player with nbt "{SkullOwner:{Id:022202fd-9546-4492-b8b6-b768e95701c2,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvN2JiNGIyODg5OTFlZmI4Y2EwNzQzYmVjY2VmMzEyNThiMzFkMzlmMjQ5NTFlZmIxYzljMThhNDE3YmE0OGY5In19fQ}]}}}" named "&eHorse" to run function setHeadType({_p}, "{SkullOwner:{Id:022202fd-9546-4492-b8b6-b768e95701c2,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvN2JiNGIyODg5OTFlZmI4Y2EwNzQzYmVjY2VmMzEyNThiMzFkMzlmMjQ5NTFlZmIxYzljMThhNDE3YmE0OGY5In19fQ}]}}}", "Horse")
  420. format gui slot 14 of {_p} with skull of "%{_p}%" parsed as an offline player with nbt "{SkullOwner:{Id:1abe147b-ea7a-470c-8e74-16ce8fed6cb6,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZDY3NGM2M2M4ZGI1ZjRjYTYyOGQ2OWEzYjFmOGEzNmUyOWQ4ZmQ3NzVlMWE2YmRiNmNhYmI0YmU0ZGIxMjEifX19}]}}}" named "&eHusk" to run function setHeadType({_p}, "{SkullOwner:{Id:1abe147b-ea7a-470c-8e74-16ce8fed6cb6,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZDY3NGM2M2M4ZGI1ZjRjYTYyOGQ2OWEzYjFmOGEzNmUyOWQ4ZmQ3NzVlMWE2YmRiNmNhYmI0YmU0ZGIxMjEifX19}]}}}", "Husk")
  421. format gui slot 15 of {_p} with skull of "%{_p}%" parsed as an offline player with nbt "{SkullOwner:{Id:75fb08e5-2419-46fa-bf09-57362138f234,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYzJiMWVjZmY3N2ZmZTNiNTAzYzMwYTU0OGViMjNhMWEwOGZhMjZmZDY3Y2RmZjM4OTg1NWQ3NDkyMTM2OCJ9fX0}]}}}" named "&eLlama" to run function setHeadType({_p}, "{SkullOwner:{Id:75fb08e5-2419-46fa-bf09-57362138f234,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYzJiMWVjZmY3N2ZmZTNiNTAzYzMwYTU0OGViMjNhMWEwOGZhMjZmZDY3Y2RmZjM4OTg1NWQ3NDkyMTM2OCJ9fX0}]}}}", "Llama")
  422. format gui slot 16 of {_p} with skull of "%{_p}%" parsed as an offline player with nbt "{SkullOwner:{Id:96aced64-5b85-4b99-b825-53cd7a9f9726,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMzg5NTdkNTAyM2M5MzdjNGM0MWFhMjQxMmQ0MzQxMGJkYTIzY2Y3OWE5ZjZhYjM2Yjc2ZmVmMmQ3YzQyOSJ9fX0}]}}}" named "&eMagma Cube" to run function setHeadType({_p}, "{SkullOwner:{Id:96aced64-5b85-4b99-b825-53cd7a9f9726,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMzg5NTdkNTAyM2M5MzdjNGM0MWFhMjQxMmQ0MzQxMGJkYTIzY2Y3OWE5ZjZhYjM2Yjc2ZmVmMmQ3YzQyOSJ9fX0}]}}}", "Magma Cube")
  423. format gui slot 17 of {_p} with skull of "%{_p}%" parsed as an offline player with nbt "{SkullOwner:{Id:e206ac29-ae69-475b-909a-fb523d894336,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZDBiYzYxYjk3NTdhN2I4M2UwM2NkMjUwN2EyMTU3OTEzYzJjZjAxNmU3YzA5NmE0ZDZjZjFmZTFiOGRiIn19fQ}]}}}" named "&eMooshroom" to run function setHeadType({_p}, "{SkullOwner:{Id:e206ac29-ae69-475b-909a-fb523d894336,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZDBiYzYxYjk3NTdhN2I4M2UwM2NkMjUwN2EyMTU3OTEzYzJjZjAxNmU3YzA5NmE0ZDZjZjFmZTFiOGRiIn19fQ}]}}}", "Mooshroom")
  424.  
  425.  
  426. else if {_page} is 2:
  427. format gui slot 18 of {_p} with an arrow named "&c<< Page Back" to run:
  428. set {cosmetics.edit.%{_p}%} to "go_back"
  429. close {_p}'s inventory
  430. delete {cosmetics.edit.%{_p}%}
  431. setSkullOwnerMob({_p}, 1)
  432.  
  433. format gui slot 0 of {_p} with skull of "%{_p}%" parsed as an offline player with nbt "{SkullOwner:{Id:1fd5db60-329f-4dcd-9e8d-7d4adc68ff29,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYTA0ODZhNzQyZTdkZGEwYmFlNjFjZTJmNTVmYTEzNTI3ZjFjM2IzMzRjNTdjMDM0YmI0Y2YxMzJmYjVmNWYifX19}]}}}" named "&eMule" to run function setHeadType({_p}, "{SkullOwner:{Id:1fd5db60-329f-4dcd-9e8d-7d4adc68ff29,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYTA0ODZhNzQyZTdkZGEwYmFlNjFjZTJmNTVmYTEzNTI3ZjFjM2IzMzRjNTdjMDM0YmI0Y2YxMzJmYjVmNWYifX19}]}}}", "Mule")
  434. format gui slot 1 of {_p} with skull of "%{_p}%" parsed as an offline player with nbt "{SkullOwner:{Id:664dd492-3fcd-443b-9e61-4c7ebd9e4e10,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNTY1N2NkNWMyOTg5ZmY5NzU3MGZlYzRkZGNkYzY5MjZhNjhhMzM5MzI1MGMxYmUxZjBiMTE0YTFkYjEifX19}]}}}" named "&eOcelot" to run function setHeadType({_p}, "{SkullOwner:{Id:664dd492-3fcd-443b-9e61-4c7ebd9e4e10,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNTY1N2NkNWMyOTg5ZmY5NzU3MGZlYzRkZGNkYzY5MjZhNjhhMzM5MzI1MGMxYmUxZjBiMTE0YTFkYjEifX19}]}}}", "Ocelot")
  435. format gui slot 2 of {_p} with skull of "%{_p}%" parsed as an offline player with nbt "{SkullOwner:{Id:d890586d-3e18-41fc-a93d-9040dc25409b,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYTRiYThkNjZmZWNiMTk5MmU5NGI4Njg3ZDZhYjRhNTMyMGFiNzU5NGFjMTk0YTI2MTVlZDRkZjgxOGVkYmMzIn19fQ}]}}}" named "&eParrot" to run function setHeadType({_p}, "{SkullOwner:{Id:d890586d-3e18-41fc-a93d-9040dc25409b,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYTRiYThkNjZmZWNiMTk5MmU5NGI4Njg3ZDZhYjRhNTMyMGFiNzU5NGFjMTk0YTI2MTVlZDRkZjgxOGVkYmMzIn19fQ}]}}}", "Parrot")
  436. format gui slot 3 of {_p} with skull of "%{_p}%" parsed as an offline player with nbt "{SkullOwner:{Id:e1e1c2e4-1ed2-473d-bde2-3ec718535399,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNjIxNjY4ZWY3Y2I3OWRkOWMyMmNlM2QxZjNmNGNiNmUyNTU5ODkzYjZkZjRhNDY5NTE0ZTY2N2MxNmFhNCJ9fX0}]}}}" named "&ePig" to run function setHeadType({_p}, "{SkullOwner:{Id:e1e1c2e4-1ed2-473d-bde2-3ec718535399,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNjIxNjY4ZWY3Y2I3OWRkOWMyMmNlM2QxZjNmNGNiNmUyNTU5ODkzYjZkZjRhNDY5NTE0ZTY2N2MxNmFhNCJ9fX0}]}}}", "Pig")
  437. format gui slot 4 of {_p} with skull of "%{_p}%" parsed as an offline player with nbt "{SkullOwner:{Id:87324464-1700-468f-8333-e7779ec8c21e,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZDQ2ZDIzZjA0ODQ2MzY5ZmEyYTM3MDJjMTBmNzU5MTAxYWY3YmZlODQxOTk2NjQyOTUzM2NkODFhMTFkMmIifX19}]}}}" named "&ePolar Bear" to run function setHeadType({_p}, "{SkullOwner:{Id:87324464-1700-468f-8333-e7779ec8c21e,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZDQ2ZDIzZjA0ODQ2MzY5ZmEyYTM3MDJjMTBmNzU5MTAxYWY3YmZlODQxOTk2NjQyOTUzM2NkODFhMTFkMmIifX19}]}}}", "Polar Bear")
  438. format gui slot 5 of {_p} with skull of "%{_p}%" parsed as an offline player with nbt "{SkullOwner:{Id:02703b0c-573f-4042-a91b-659a3981b508,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZmZlY2M2YjVlNmVhNWNlZDc0YzQ2ZTc2MjdiZTNmMDgyNjMyN2ZiYTI2Mzg2YzZjYzc4NjMzNzJlOWJjIn19fQ}]}}}" named "&eRabbit" to run function setHeadType({_p}, "{SkullOwner:{Id:02703b0c-573f-4042-a91b-659a3981b508,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZmZlY2M2YjVlNmVhNWNlZDc0YzQ2ZTc2MjdiZTNmMDgyNjMyN2ZiYTI2Mzg2YzZjYzc4NjMzNzJlOWJjIn19fQ}]}}}", "Rabbit")
  439. format gui slot 6 of {_p} with skull of "%{_p}%" parsed as an offline player with nbt "{SkullOwner:{Id:fa234925-9dbe-4b8f-a544-7c70fb6b6ac5,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZjMxZjljY2M2YjNlMzJlY2YxM2I4YTExYWMyOWNkMzNkMThjOTVmYzczZGI4YTY2YzVkNjU3Y2NiOGJlNzAifX19}]}}}" named "&eSheep" to run function setHeadType({_p}, "{SkullOwner:{Id:fa234925-9dbe-4b8f-a544-7c70fb6b6ac5,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZjMxZjljY2M2YjNlMzJlY2YxM2I4YTExYWMyOWNkMzNkMThjOTVmYzczZGI4YTY2YzVkNjU3Y2NiOGJlNzAifX19}]}}}", "Sheep")
  440. format gui slot 7 of {_p} with skull of "%{_p}%" parsed as an offline player with nbt "{SkullOwner:{Id:ef81234c-eb95-4ed6-b914-ca4ec0ac165e,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMTQzM2E0YjczMjczYTY0YzhhYjI4MzBiMGZmZjc3N2E2MWE0ODhjOTJmNjBmODNiZmIzZTQyMWY0MjhhNDQifX19}]}}}" named "&eShulker" to run function setHeadType({_p}, "{SkullOwner:{Id:ef81234c-eb95-4ed6-b914-ca4ec0ac165e,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMTQzM2E0YjczMjczYTY0YzhhYjI4MzBiMGZmZjc3N2E2MWE0ODhjOTJmNjBmODNiZmIzZTQyMWY0MjhhNDQifX19}]}}}", "Shulker")
  441. format gui slot 8 of {_p} with skull of "%{_p}%" parsed as an offline player with nbt "{SkullOwner:{Id:30a4cd5c-5754-4db8-8960-18022a74627d,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZGE5MWRhYjgzOTFhZjVmZGE1NGFjZDJjMGIxOGZiZDgxOWI4NjVlMWE4ZjFkNjIzODEzZmE3NjFlOTI0NTQwIn19fQ}]}}}" named "&eSilverfish" to run function setHeadType({_p}, "{SkullOwner:{Id:30a4cd5c-5754-4db8-8960-18022a74627d,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZGE5MWRhYjgzOTFhZjVmZGE1NGFjZDJjMGIxOGZiZDgxOWI4NjVlMWE4ZjFkNjIzODEzZmE3NjFlOTI0NTQwIn19fQ}]}}}", "Silverfish")
  442.  
  443. format gui slot 9 of {_p} with skull of "%{_p}%" parsed as an offline player with nbt "{SkullOwner:{Id:4e02d3bb-f0d1-4730-b282-c3d5d99192d8,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNGE0ZTJhZjY1MDA1MzhkZmVhMzc5YmVhMTE0NzFlNjJjM2RkNDY2NjE3YWYxYzVmMmJkYTM0NzI3NWE4NjkifX19}]}}}" named "&eSkeleton" to run function setHeadType({_p}, "{SkullOwner:{Id:4e02d3bb-f0d1-4730-b282-c3d5d99192d8,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNGE0ZTJhZjY1MDA1MzhkZmVhMzc5YmVhMTE0NzFlNjJjM2RkNDY2NjE3YWYxYzVmMmJkYTM0NzI3NWE4NjkifX19}]}}}", "Skeleton")
  444. format gui slot 10 of {_p} with skull of "%{_p}%" parsed as an offline player with nbt "{SkullOwner:{Id:bcbce5bf-86c4-4e62-9fc5-0cc90de94b6d,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNDdlZmZjZTM1MTMyYzg2ZmY3MmJjYWU3N2RmYmIxZDIyNTg3ZTk0ZGYzY2JjMjU3MGVkMTdjZjg5NzNhIn19fQ}]}}}" named "&eSkeleton Horse" to run function setHeadType({_p}, "{SkullOwner:{Id:bcbce5bf-86c4-4e62-9fc5-0cc90de94b6d,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNDdlZmZjZTM1MTMyYzg2ZmY3MmJjYWU3N2RmYmIxZDIyNTg3ZTk0ZGYzY2JjMjU3MGVkMTdjZjg5NzNhIn19fQ}]}}}", "Skeleton Horse")
  445. format gui slot 11 of {_p} with skull of "%{_p}%" parsed as an offline player with nbt "{SkullOwner:{Id:7f0b0873-df6a-4a19-9bcd-f6c90ef804c7,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvODk1YWVlYzZiODQyYWRhODY2OWY4NDZkNjViYzQ5NzYyNTk3ODI0YWI5NDRmMjJmNDViZjNiYmI5NDFhYmU2YyJ9fX0}]}}}" named "&eSlime" to run function setHeadType({_p}, "{SkullOwner:{Id:7f0b0873-df6a-4a19-9bcd-f6c90ef804c7,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvODk1YWVlYzZiODQyYWRhODY2OWY4NDZkNjViYzQ5NzYyNTk3ODI0YWI5NDRmMjJmNDViZjNiYmI5NDFhYmU2YyJ9fX0}]}}}", "Slime")
  446. format gui slot 12 of {_p} with skull of "%{_p}%" parsed as an offline player with nbt "{SkullOwner:{Id:8bdb71d0-4724-48b2-9344-e79480424798,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvY2Q1NDE1NDFkYWFmZjUwODk2Y2QyNThiZGJkZDRjZjgwYzNiYTgxNjczNTcyNjA3OGJmZTM5MzkyN2U1N2YxIn19fQ}]}}}" named "&eSpider" to run function setHeadType({_p}, "{SkullOwner:{Id:8bdb71d0-4724-48b2-9344-e79480424798,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvY2Q1NDE1NDFkYWFmZjUwODk2Y2QyNThiZGJkZDRjZjgwYzNiYTgxNjczNTcyNjA3OGJmZTM5MzkyN2U1N2YxIn19fQ}]}}}", "Spider")
  447. format gui slot 13 of {_p} with skull of "%{_p}%" parsed as an offline player with nbt "{SkullOwner:{Id:f95d9504-ea2b-4b89-b2d0-d400654a7010,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMDE0MzNiZTI0MjM2NmFmMTI2ZGE0MzRiODczNWRmMWViNWIzY2IyY2VkZTM5MTQ1OTc0ZTljNDgzNjA3YmFjIn19fQ}]}}}" named "&eSquid" to run function setHeadType({_p}, "{SkullOwner:{Id:f95d9504-ea2b-4b89-b2d0-d400654a7010,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMDE0MzNiZTI0MjM2NmFmMTI2ZGE0MzRiODczNWRmMWViNWIzY2IyY2VkZTM5MTQ1OTc0ZTljNDgzNjA3YmFjIn19fQ}]}}}", "Squid")
  448. format gui slot 14 of {_p} with skull of "%{_p}%" parsed as an offline player with nbt "{SkullOwner:{Id:644c9bad-958b-43ce-9d2f-199d85be607c,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNzhkZGY3NmU1NTVkZDVjNGFhOGEwYTVmYzU4NDUyMGNkNjNkNDg5YzI1M2RlOTY5ZjdmMjJmODVhOWEyZDU2In19fQ}]}}}" named "&eStray" to run function setHeadType({_p}, "{SkullOwner:{Id:644c9bad-958b-43ce-9d2f-199d85be607c,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNzhkZGY3NmU1NTVkZDVjNGFhOGEwYTVmYzU4NDUyMGNkNjNkNDg5YzI1M2RlOTY5ZjdmMjJmODVhOWEyZDU2In19fQ}]}}}", "Stray")
  449. format gui slot 15 of {_p} with skull of "%{_p}%" parsed as an offline player with nbt "{SkullOwner:{Id:f6e25015-1a90-46eb-88b7-ce3f14bf00d4,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYzJlYzVhNTE2NjE3ZmYxNTczY2QyZjlkNWYzOTY5ZjU2ZDU1NzVjNGZmNGVmZWZhYmQyYTE4ZGM3YWI5OGNkIn19fQ}]}}}" named "&eVex" to run function setHeadType({_p}, "{SkullOwner:{Id:f6e25015-1a90-46eb-88b7-ce3f14bf00d4,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvYzJlYzVhNTE2NjE3ZmYxNTczY2QyZjlkNWYzOTY5ZjU2ZDU1NzVjNGZmNGVmZWZhYmQyYTE4ZGM3YWI5OGNkIn19fQ}]}}}", "Vex")
  450. format gui slot 16 of {_p} with skull of "%{_p}%" parsed as an offline player with nbt "{SkullOwner:{Id:0a9e8efb-9191-4c81-80f5-e27ca5433156,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvODIyZDhlNzUxYzhmMmZkNGM4OTQyYzQ0YmRiMmY1Y2E0ZDhhZThlNTc1ZWQzZWIzNGMxOGE4NmU5M2IifX19}]}}}" named "&eVillager" to run function setHeadType({_p}, "{SkullOwner:{Id:0a9e8efb-9191-4c81-80f5-e27ca5433156,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvODIyZDhlNzUxYzhmMmZkNGM4OTQyYzQ0YmRiMmY1Y2E0ZDhhZThlNTc1ZWQzZWIzNGMxOGE4NmU5M2IifX19}]}}}", "Villager")
  451. format gui slot 17 of {_p} with skull of "%{_p}%" parsed as an offline player with nbt "{SkullOwner:{Id:98f19bf0-2ba9-45f8-a89b-c0f4243909f9,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNmRlYWVjMzQ0YWIwOTViNDhjZWFkNzUyN2Y3ZGVlNjFiMDYzZmY3OTFmNzZhOGZhNzY2NDJjODY3NmUyMTczIn19fQ}]}}}" named "&eVindicator" to run function setHeadType({_p}, "{SkullOwner:{Id:98f19bf0-2ba9-45f8-a89b-c0f4243909f9,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNmRlYWVjMzQ0YWIwOTViNDhjZWFkNzUyN2Y3ZGVlNjFiMDYzZmY3OTFmNzZhOGZhNzY2NDJjODY3NmUyMTczIn19fQ}]}}}", "Vindicator")
  452.  
  453.  
  454. format gui slot 26 of {_p} with an arrow named "&cNext Page >>" to run:
  455. set {cosmetics.edit.%{_p}%} to "go_back"
  456. close {_p}'s inventory
  457. delete {cosmetics.edit.%{_p}%}
  458. setSkullOwnerMob({_p}, 3)
  459.  
  460. else if {_page} is 3:
  461. format gui slot 18 of {_p} with an arrow named "&c<< Page Back" to run:
  462. set {cosmetics.edit.%{_p}%} to "go_back"
  463. close {_p}'s inventory
  464. delete {cosmetics.edit.%{_p}%}
  465. setSkullOwnerMob({_p}, 2)
  466.  
  467. format gui slot 0 of {_p} with skull of "%{_p}%" parsed as an offline player with nbt "{SkullOwner:{Id:7f92b3d6-5ee0-4ab6-afae-2206b9514a63,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMjBlMTNkMTg0NzRmYzk0ZWQ1NWFlYjcwNjk1NjZlNDY4N2Q3NzNkYWMxNmY0YzNmODcyMmZjOTViZjlmMmRmYSJ9fX0}]}}}" named "&eWitch" to run function setHeadType({_p}, "{SkullOwner:{Id:7f92b3d6-5ee0-4ab6-afae-2206b9514a63,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMjBlMTNkMTg0NzRmYzk0ZWQ1NWFlYjcwNjk1NjZlNDY4N2Q3NzNkYWMxNmY0YzNmODcyMmZjOTViZjlmMmRmYSJ9fX0}]}}}", "Witch")
  468. format gui slot 1 of {_p} with skull of "%{_p}%" parsed as an offline player with nbt "{SkullOwner:{Id:9b6eb2a3-8c99-4e14-9162-58debe3f9262,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNzk1M2I2YzY4NDQ4ZTdlNmI2YmY4ZmIyNzNkNzIwM2FjZDhlMWJlMTllODE0ODFlYWQ1MWY0NWRlNTlhOCJ9fX0}]}}}" named "&eWither Skeleton" to run function setHeadType({_p}, "{SkullOwner:{Id:9b6eb2a3-8c99-4e14-9162-58debe3f9262,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNzk1M2I2YzY4NDQ4ZTdlNmI2YmY4ZmIyNzNkNzIwM2FjZDhlMWJlMTllODE0ODFlYWQ1MWY0NWRlNTlhOCJ9fX0}]}}}", "Wither Skeleton")
  469. format gui slot 2 of {_p} with skull of "%{_p}%" parsed as an offline player with nbt "{SkullOwner:{Id:fa5d3210-6e39-47ca-adb4-a3b2f0f966d9,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNjlkMWQzMTEzZWM0M2FjMjk2MWRkNTlmMjgxNzVmYjQ3MTg4NzNjNmM0NDhkZmNhODcyMjMxN2Q2NyJ9fX0}]}}}" named "&eWolf" to run function setHeadType({_p}, "{SkullOwner:{Id:fa5d3210-6e39-47ca-adb4-a3b2f0f966d9,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNjlkMWQzMTEzZWM0M2FjMjk2MWRkNTlmMjgxNzVmYjQ3MTg4NzNjNmM0NDhkZmNhODcyMjMxN2Q2NyJ9fX0}]}}}", "Wolf")
  470. format gui slot 3 of {_p} with skull of "%{_p}%" parsed as an offline player with nbt "{SkullOwner:{Id:9959dd98-efb3-4ee9-a8fb-2fda0218cda0,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNTZmYzg1NGJiODRjZjRiNzY5NzI5Nzk3M2UwMmI3OWJjMTA2OTg0NjBiNTFhNjM5YzYwZTVlNDE3NzM0ZTExIn19fQ}]}}}" named "&eZombie" to run function setHeadType({_p}, "{SkullOwner:{Id:9959dd98-efb3-4ee9-a8fb-2fda0218cda0,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNTZmYzg1NGJiODRjZjRiNzY5NzI5Nzk3M2UwMmI3OWJjMTA2OTg0NjBiNTFhNjM5YzYwZTVlNDE3NzM0ZTExIn19fQ}]}}}", "Zombie")
  471. format gui slot 4 of {_p} with skull of "%{_p}%" parsed as an offline player with nbt "{SkullOwner:{Id:ab9ea02c-4fd1-4895-85c9-d2b407d5d6f2,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZDIyOTUwZjJkM2VmZGRiMThkZTg2ZjhmNTVhYzUxOGRjZTczZjEyYTZlMGY4NjM2ZDU1MWQ4ZWI0ODBjZWVjIn19fQ}]}}}" named "&eZombie Horse" to run function setHeadType({_p}, "{SkullOwner:{Id:ab9ea02c-4fd1-4895-85c9-d2b407d5d6f2,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZDIyOTUwZjJkM2VmZGRiMThkZTg2ZjhmNTVhYzUxOGRjZTczZjEyYTZlMGY4NjM2ZDU1MWQ4ZWI0ODBjZWVjIn19fQ}]}}}", "Zombie Horse")
  472. format gui slot 5 of {_p} with skull of "%{_p}%" parsed as an offline player with nbt "{SkullOwner:{Id:6540c046-d6ea-4aff-9766-32a54ebe6958,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNzRlOWM2ZTk4NTgyZmZkOGZmOGZlYjMzMjJjZDE4NDljNDNmYjE2YjE1OGFiYjExY2E3YjQyZWRhNzc0M2ViIn19fQ}]}}}" named "&eZombie Pigman" to run function setHeadType({_p}, "{SkullOwner:{Id:6540c046-d6ea-4aff-9766-32a54ebe6958,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNzRlOWM2ZTk4NTgyZmZkOGZmOGZlYjMzMjJjZDE4NDljNDNmYjE2YjE1OGFiYjExY2E3YjQyZWRhNzc0M2ViIn19fQ}]}}}", "Zombie Pigman")
  473. format gui slot 6 of {_p} with skull of "%{_p}%" parsed as an offline player with nbt "{SkullOwner:{Id:dd1b157c-d732-4d1c-8185-da205188a8cf,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZTVlMDhhODc3NmMxNzY0YzNmZTZhNmRkZDQxMmRmY2I4N2Y0MTMzMWRhZDQ3OWFjOTZjMjFkZjRiZjNhYzg5YyJ9fX0}]}}}" named "&eZombie Villager" to run function setHeadType({_p}, "{SkullOwner:{Id:dd1b157c-d732-4d1c-8185-da205188a8cf,Properties:{textures:[{Value:eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZTVlMDhhODc3NmMxNzY0YzNmZTZhNmRkZDQxMmRmY2I4N2Y0MTMzMWRhZDQ3OWFjOTZjMjFkZjRiZjNhYzg5YyJ9fX0}]}}}", "Zombie Villager")
  474.  
  475.  
  476. format gui slot 22 of {_p} with a barrier named "&4Go Back" to run:
  477. set {cosmetics.edit.%{_p}%} to "go_back"
  478. close {_p}'s inventory
  479. delete {cosmetics.edit.%{_p}%}
  480. editPiece({_p}, "helmet", "Helmet", {cosmetics.edit.%{_p}%.type})
  481.  
  482.  
  483.  
  484.  
  485.  
  486.  
  487. function editCos(p: Player, type: String):
  488. wait 2 tick
  489. set {cosmetics.edit.%{_p}%.type} to {_type}
  490. open chest with 1 rows named "&8Choose Category" to {_p}
  491.  
  492. set {_count} to 0
  493. if {@particles} is true:
  494. format gui slot {_count} of {_p} with redstone named "&cParticle" to do nothing
  495. add 1 to {_count}
  496.  
  497. if {@heads} is true:
  498. format gui slot {_count} of {_p} with skull of {_p} named "&2Heads" to do nothing
  499. add 1 to {_count}
  500.  
  501. if {@suits} is true:
  502. format gui slot {_count} of {_p} with golden helmet named "&5Suits" to close then run function editSuit({_p}, {_type})
  503. add 1 to {_count}
  504.  
  505. if {@gadgets} is true:
  506. format gui slot {_count} of {_p} with fire charge named "&bGadgets" to do nothing
  507. add 1 to {_count}
  508.  
  509. if {_count} is 0:
  510. format gui slot 0 of {_p} with barrier named "&4None Enabled" to close
  511.  
  512. function editSuit(p: Player, type: String):
  513. #=========== Variables ===========
  514. set {cosmetics.edit.%{_p}%.type} to {_type}
  515.  
  516. if {cosmetics.edit.%{_p}%.crate} is not set:
  517. set {cosmetics.edit.%{_p}%.crate} to ""
  518.  
  519. if {cosmetics.edit.%{_p}%.helmet} is not set:
  520. set {_helmet} to editCosFormat({_p}, "helmet", "Helmet")
  521.  
  522. else:
  523. set {_helmet} to {cosmetics.edit.%{_p}%.helmet}
  524.  
  525. if {cosmetics.edit.%{_p}%.chestplate} is not set:
  526. set {_chestplate} to editCosFormat({_p}, "chestplate", "Chestplate")
  527.  
  528. else:
  529. set {_chestplate} to {cosmetics.edit.%{_p}%.chestplate}
  530.  
  531. if {cosmetics.edit.%{_p}%.leggings} is not set:
  532. set {_leggings} to editCosFormat({_p}, "leggings", "Leggings")
  533.  
  534. else:
  535. set {_leggings} to {cosmetics.edit.%{_p}%.leggings}
  536.  
  537. if {cosmetics.edit.%{_p}%.boots} is not set:
  538. set {_boots} to editCosFormat({_p}, "boots", "Boots")
  539.  
  540. else:
  541. set {_boots} to {cosmetics.edit.%{_p}%.boots}
  542.  
  543.  
  544. set {_save} to true
  545. if {cosmetics.edit.%{_p}%.type} or {cosmetics.edit.%{_p}%.crate} is "":
  546. set {_save} to false
  547.  
  548. else if {_helmet} and {_chestplate} and {_leggings} and {_boots} is barrier:
  549. set {_save} to false
  550.  
  551. #=========== GUI ===========
  552. #Item doesn't show the proper name
  553.  
  554. open chest with 6 rows named "&8Edit" to {_p}
  555.  
  556. if {cosmetics.edit.%{_p}%.type} is "":
  557. format gui slot 22 of {_p} with a paper named "&7Type: &c<none>" to run:
  558. set {cosmetics.edit.%{_p}%} to "setType"
  559. close {_p}'s inventory
  560. send "{@lobby} Type the new type of your set in the chat" to {_p}
  561.  
  562. else:
  563. format gui slot 22 of {_p} with a paper named "&7Type: &e%{cosmetics.edit.%{_p}%.type}%" to run:
  564. close {_p}'s inventory
  565. set {cosmetics.edit.%{_p}%} to "setType"
  566. send "{@lobby} Type the new type of your set in the chat" to {_p}
  567.  
  568. if {cosmetics.edit.%{_p}%.crate} is "":
  569. format gui slot 31 of {_p} with a chest named "&7Crate: &c<none>" to run:
  570. set {cosmetics.edit.%{_p}%} to "setCrate"
  571. close {_p}'s inventory
  572. send "{@lobby} Type the new crate of your set in the chat" to {_p}
  573. else:
  574. format gui slot 31 of {_p} with a chest named "&7Crate: &e%{cosmetics.edit.%{_p}%.crate}%" to run:
  575. set {cosmetics.edit.%{_p}%} to "setCrate"
  576. close {_p}'s inventory
  577. send "{@lobby} Type the new crate of your set in the chat" to {_p}
  578.  
  579.  
  580.  
  581. format gui slot 10 of {_p} with {_helmet} to run:
  582. set {cosmetics.edit.%{_p}%} to "helmet"
  583. close {_p}'s inventory
  584. delete {cosmetics.edit.%{_p}%}
  585. editPiece({_p}, "helmet", "Helmet", {cosmetics.edit.%{_p}%.type})
  586.  
  587. format gui slot 19 of {_p} with {_chestplate} to run:
  588. set {cosmetics.edit.%{_p}%} to "chestplate"
  589. close {_p}'s inventory
  590. delete {cosmetics.edit.%{_p}%}
  591. editPiece({_p}, "chestplate", "Chestplate", {cosmetics.edit.%{_p}%.type})
  592.  
  593. format gui slot 28 of {_p} with {_leggings} to run:
  594. set {cosmetics.edit.%{_p}%} to "leggings"
  595. close {_p}'s inventory
  596. delete {cosmetics.edit.%{_p}%}
  597. editPiece({_p}, "leggings", "Leggings", {cosmetics.edit.%{_p}%.type})
  598.  
  599.  
  600. format gui slot 37 of {_p} with {_boots} to run:
  601. set {cosmetics.edit.%{_p}%} to "boots"
  602. close {_p}'s inventory
  603. delete {cosmetics.edit.%{_p}%}
  604. editPiece({_p}, "boots", "Boots", {cosmetics.edit.%{_p}%.type})
  605.  
  606. if {_save}:
  607. format gui slot 53 of {_p} with green wool named "&2Save" to run:
  608. close {_p}'s inventory
  609. #Save function
  610.  
  611. else:
  612. format gui slot 53 of {_p} with red wool named "&4Save not possible" to do nothing
  613.  
  614.  
  615.  
  616. function editPiece(p: Player, piece: String, pieceText: String, type: String):
  617. wait 2 tick
  618.  
  619. #=========== Variables ===========
  620. set {cosmetics.edit.%{_p}%.current} to "%{_piece}%"
  621. set {cosmetics.edit.%{_p}%.pieceText} to "%{_pieceText}%"
  622. set {_displayItem} to editCosFormat({_p}, "%{_piece}%", "%{_pieceText}%")
  623.  
  624. if {cosmetics.edit.%{_p}%.%{_piece}%} is not set:
  625. set {_item} to an item frame named "&7Item: &c<none>"
  626.  
  627. else if {cosmetics.edit.%{_p}%.%{_piece}%} is "":
  628. set {_item} to an item frame named "&7Item: &c<none>"
  629.  
  630. else if {cosmetics.edit.%{_p}%.%{_piece}%} is barrier:
  631. set {_item} to an item frame named "&7Item: &c<none>"
  632.  
  633. else:
  634. set {_item} to an item frame named "&7Item: &2%{cosmetics.edit.%{_p}%.%{_piece}%}%"
  635.  
  636. if {cosmetics.edit.%{_p}%.%{_piece}%.name} is not set:
  637. set {cosmetics.edit.%{_p}%.%{_piece}%.displayName} to ""
  638.  
  639. if {cosmetics.edit.%{_p}%.%{_piece}%.name} is "":
  640. set {cosmetics.edit.%{_p}%.%{_piece}%.displayName} to ""
  641.  
  642. if {cosmetics.edit.%{_p}%.%{_piece}%.displayName} is "":
  643. if {_displayItem} is barrier:
  644. set {_itemName} to "&4%{_pieceText}%"
  645.  
  646. else:
  647. set {_itemName} to "&2%{_pieceText}%"
  648.  
  649. else:
  650. set {_itemName} to {cosmetics.edit.%{_p}%.%{_piece}%.name}
  651.  
  652. if {cosmetics.edit.%{_p}%.%{_piece}%.name} is not set:
  653. set {_itemName2} to "&c<none>"
  654.  
  655. if {cosmetics.edit.%{_p}%.%{_piece}%.name} is "":
  656. set {_itemName2} to "&c<none>"
  657.  
  658. else:
  659. set {_itemName2} to {cosmetics.edit.%{_p}%.%{_piece}%.name}
  660.  
  661. set {cosmetics.edit.%{_p}%.%{_piece}%} to {_displayItem}
  662.  
  663. replace all "&" in {_itemName} with "§"
  664. replace all "&" in {_itemName2} with "§"
  665.  
  666. set {_nameItem} to a paper named "&7Name: &e%{_itemName2}%"
  667. set name of {_displayItem} to {_itemName2}
  668.  
  669. #=========== GUI ===========
  670. open chest with 3 rows named "&8Edit %{_pieceText}%" to {_p}
  671.  
  672. #Display from your created item
  673.  
  674. #item, name, enchantment and lore (lore || -> new line (also in message!!!))
  675.  
  676. if {_piece} is "helmet":
  677. set {_string} to "%{cosmetics.edit.%{_p}%.helmet}%"
  678. set {_split::*} to {_string} split at " "
  679.  
  680. if contains({_split::*}, "head"):
  681. if {cosmetics.edit.%{_p}%.helmet.type} is set:
  682. set {_changeType} to a redstone torch on named "&7Skull Type: &e%{cosmetics.edit.%{_p}%.helmet.type}%"
  683.  
  684. else:
  685. set {_changeType} to a redstone torch on named "&7Skull Type: &c<none>"
  686.  
  687. if {cosmetics.edit.%{_p}%.helmet.player} is set:
  688. if {cosmetics.edit.%{_p}%.helmet.type} is "Mob":
  689. set {cosmetics.edit.%{_p}%.helmet.skull} to skull of "%{_p}%" parsed as an offline player with nbt "%{cosmetics.edit.%{_p}%.helmet.player}%" named "&7Skull Owner: &e%{cosmetics.edit.%{_p}%.helmet.name}%"
  690. set {_displayItem} to skull of "%{_p}%" parsed as an offline player with nbt "%{cosmetics.edit.%{_p}%.helmet.player}%" named "&f%{cosmetics.edit.%{_p}%.helmet.name}%"
  691. set {cosmetics.edit.%{_p}%.helmet} to {_displayItem}
  692.  
  693. else if {cosmetics.edit.%{_p}%.helmet.type} is "Player":
  694. set {cosmetics.edit.%{_p}%.helmet.skull} to skull of "%{cosmetics.edit.%{_p}%.helmet.player}%" parsed as an offline player named "&7Skull Owner: &e%{cosmetics.edit.%{_p}%.helmet.player}%"
  695. set {_displayItem} to skull of "%{_p}%" parsed as an offline player with nbt "%{cosmetics.edit.%{_p}%.helmet.player}%" named "&f%{cosmetics.edit.%{_p}%.helmet.name}%"
  696. set {cosmetics.edit.%{_p}%.helmet} to {_displayItem}
  697.  
  698. else:
  699. set {cosmetics.edit.%{_p}%.helmet.skull} to skull of ("MHF_Steve" parsed as an offline player) named "&7Skull Owner: &c<none>"
  700.  
  701. format gui slot 1 of {_p} with {_changeType} to run:
  702. set {cosmetics.edit.%{_p}%} to "go_back"
  703. close {_p}'s inventory
  704. delete {cosmetics.edit.%{_p}%}
  705. setSkullType({_p})
  706.  
  707. format gui slot 19 of {_p} with {cosmetics.edit.%{_p}%.helmet.skull} to run:
  708. if {cosmetics.edit.%{_p}%.helmet.type} is "Player":
  709. send "{@lobby} Type the name of the player of your skull in the chat" to {_p}
  710. set {cosmetics.edit.%{_p}%} to "setSkullOwner"
  711. close {_p}'s inventory
  712.  
  713. else if {cosmetics.edit.%{_p}%.helmet.type} is "Mob":
  714. set {cosmetics.edit.%{_p}%} to "go_back"
  715. close {_p}'s inventory
  716. delete {cosmetics.edit.%{_p}%}
  717. setSkullOwnerMob({_p}, 1)
  718.  
  719. if {cosmetics.edit.%{_p}%.helmet.type} is not "Mob" and "Player":
  720.  
  721.  
  722. format gui slot 18 of {_p} with arrow named "&c<< Go Back" to run:
  723. set {cosmetics.edit.%{_p}%} to "go_back"
  724. close {_p}'s inventory
  725. delete {cosmetics.edit.%{_p}%}
  726. editSuit({_p}, {_type})
  727.  
  728.  
  729. format gui slot 12 of {_p} with {_item} to run:
  730. set {cosmetics.edit.%{_p}%} to "set%{_pieceText}%Item"
  731. close {_p}'s inventory
  732. send "{@lobby} Type the %{_piece}% type in the chat" to {_p}
  733.  
  734. format gui slot 13 of {_p} with {_nameItem} to run:
  735. set {cosmetics.edit.%{_p}%} to "set%{_pieceText}%Name"
  736. close {_p}'s inventory
  737. send "{@lobby} Type the %{_piece}% name in the chat" to {_p}
  738.  
  739.  
  740. format gui slot 10 of {_p} with {_displayItem} to do nothing
  741.  
  742.  
  743.  
  744.  
  745. #------------------- Periotic Events -------------------
  746.  
  747.  
  748.  
  749.  
  750.  
  751. #------------------- Events -------------------
  752. on enable:
  753. if file "{@config}" doesn't exist:
  754. create file "{@config}"
  755.  
  756. set yml value "Lobby.Crates.Animations.Window1" of file "Files/Lobby/config.yml" to true
  757. set yml value "Lobby.Crates.Animations.Random.Enabled" of file "Files/Lobby/config.yml" to true
  758. set yml value "Lobby.Crates.Animations.Random.DisabledAnimation" of file "Files/Lobby/config.yml" to "Window1"
  759. set yml value "Lobby.Crates.Particles.Enabled" of file "Files/Lobby/config.yml" to true
  760. set yml value "Lobby.Crates.Heads.Enabled" of file "Files/Lobby/config.yml" to true
  761. set yml value "Lobby.Crates.Suits.Enabled" of file "Files/Lobby/config.yml" to true
  762. set yml value "Lobby.Crates.Gadgets.Enabled" of file "Files/Lobby/config.yml" to true
  763.  
  764. else:
  765. if yml value "Lobby.Crates.Animations.Window1" of file "Files/Lobby/config.yml" is not set:
  766. set yml value "Lobby.Crates.Animations.Window1" of file "Files/Lobby/config.yml" to true
  767. if yml value "Lobby.Crates.Animations.Random.Enabled" of file "Files/Lobby/config.yml" is not set:
  768. set yml value "Lobby.Crates.Animations.Random.Enabled" of file "Files/Lobby/config.yml" to true
  769. if yml value "Lobby.Crates.Animations.Random.DisabledAnimation" of file "Files/Lobby/config.yml" is not set:
  770. set yml value "Lobby.Crates.Animations.Random.DisabledAnimation" of file "Files/Lobby/config.yml" to "Window1"
  771.  
  772. if yml value "Lobby.Crates.Particles.Enabled" of file "Files/Lobby/config.yml" is not set:
  773. set yml value "Lobby.Crates.Particles.Enabled" of file "Files/Lobby/config.yml" to true
  774. if yml value "Lobby.Crates.Heads.Enabled" of file "Files/Lobby/config.yml" is not set:
  775. set yml value "Lobby.Crates.Heads.Enabled" of file "Files/Lobby/config.yml" to true
  776. if yml value "Lobby.Crates.Suits.Enabled" of file "Files/Lobby/config.yml" is not set:
  777. set yml value "Lobby.Crates.Suits.Enabled" of file "Files/Lobby/config.yml" to true
  778. if yml value "Lobby.Crates.Gadgets.Enabled" of file "Files/Lobby/config.yml" is not set:
  779. set yml value "Lobby.Crates.Gadgets.Enabled" of file "Files/Lobby/config.yml" to true
  780.  
  781.  
  782. set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
  783.  
  784. loop {_list::*}:
  785. set {_world} to world of {lobby.location}
  786. loop {lobbycr.%loop-value%.location::*}:
  787. set {holo-crate-%{_world}%-%loop-value-2%} to a new hologram at block above loop-value-2
  788. add text "&a&l%loop-value-1%" to hologram {holo-crate-%{_world}%-%loop-value-2%}
  789.  
  790. on disable:
  791. set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
  792. set {_world} to world of {lobby.location}
  793.  
  794. loop {_list::*}:
  795. delete yml list "Locations" of file "{@path}/%loop-value%.yml"
  796. loop {lobbycr.%loop-value%.location::*}:
  797. add "%loop-value-2%" to yml list "Locations" of file "{@path}/%loop-value-1%.yml"
  798. unregister hologram {holo-crate-%{_world}%-%loop-value-2%}
  799.  
  800. loop {crates.openinglist::*}:
  801. clear {crates.opening.%loop-value%}
  802. clear {crates.%loop-value%.inv::*}
  803. clear {crates.%loop-value%.name}
  804. clear {crate.closed.%loop-value%}
  805.  
  806. clear {crates.openinglist::*}
  807.  
  808. on join:
  809. if {lobby.location} is set:
  810. teleport player to {lobby.location}
  811. set join message to ""
  812. wait 10 ticks
  813.  
  814. clear player's inventory
  815. send "{@lobby} &fThe player %player% has joined!" to all players in world of player
  816. set slot 4 of player to a compass named "{@lcompass}"
  817.  
  818. on quit:
  819. if {crates.opening.%player%} is set:
  820. clear {crates.opening.%player%}
  821. clear {crates.%player%.inv::*}
  822. clear {crates.%player%.name}
  823. clear {crates.closed.%player%}
  824. remove player from {crates.openinglist::*}
  825.  
  826. deleteVariables(player)
  827.  
  828.  
  829. on command:
  830. command is "plugins" or "pl":
  831. cancel event
  832.  
  833. if player is not op:
  834. stop
  835.  
  836. else:
  837. set {_list::*} to list of plugins
  838. set {_count} to 0
  839. loop {_list::*}:
  840. add 1 to {_count}
  841. send "{@logo} Plugin list:%nl%&f(&a%{_count}%&f) &2%list of plugins%"
  842.  
  843. else:
  844. set {cmd} to "%command to lower case%"
  845.  
  846. on damage:
  847. if world of victim is world of {lobby.location}:
  848. if damage cause is "void" parsed as a damage cause:
  849. set victim's health to 0
  850.  
  851. else:
  852. cancel event
  853.  
  854. on death:
  855. if world of player is "%{lobby.location}'s world%":
  856. set death message to ""
  857.  
  858. on respawn:
  859. if world of player is "%{lobby.location}'s world%":
  860. set slot 4 of player to a compass named "{@lcompass}"
  861. teleport player to {lobby.location}
  862.  
  863. on inventory click:
  864. if world of player is "%{lobby.location}'s world%":
  865. if clicked item is a compass named "{@lcompass}":
  866. cancel event
  867. close player's inventory
  868. openCompass(player)
  869.  
  870. on click:
  871. if world of player is "%{lobby.location}'s world%":
  872. if player's held item is a compass named "{@lcompass}":
  873. cancel event
  874. openCompass(player)
  875.  
  876. on drop:
  877. if world of player is "%{lobby.location}'s world%":
  878. if event-item is a compass named "{@lcompass}":
  879. cancel event
  880.  
  881. on place of chest:
  882. set {_world} to world of event-block
  883. if {_world} is world of {lobby.location}:
  884. set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
  885. if contains({_list::*}, "%uncolored name of player's tool%"):
  886.  
  887. add location of block at event-block to {lobbycr.%uncolored name of player's tool%.location::*}
  888. add world of event-block to {lobbycr.%uncolored name of player's tool%.world::*}
  889.  
  890. set {holo-crate-%world of event-block%-%location of event-block%} to new hologram at location 1 meters above event-block
  891. add text "&a&l%uncolored name of player's tool%" to hologram {holo-crate-%world of event-block%-%location of event-block%}
  892. add "%location of block at event-block%" to yml list "Locations" of file "{@path}/%uncolored name of player's tool%.yml"
  893.  
  894. send "{@lobby} &2Succesfully created a &a%uncolored name of player's tool% &2Crate!"
  895.  
  896. on break of chest:
  897. set {_world} to world of event-block
  898. if {_world} is world of {lobby.location}:
  899. set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
  900. loop {_list::*}:
  901. loop {lobbycr.%loop-value-1%.location::*}:
  902. if loop-value-2 is location of event-block:
  903. remove location of block at event-block from {lobbycr.%loop-value-1%.location::*}
  904. remove world of event-block from {lobbycr.%loop-value-1%.world::*}
  905.  
  906. unregister hologram {holo-crate-%world of event-block%-%location of event-block%}
  907. delete {holo-crate-%world of event-block%-%location of event-block%}
  908. remove "%location of event-block%" from yml list "Locations" of file "{@path}/%loop-value-1%.yml"
  909.  
  910. send "{@lobby} &2Succesfully removed a &a%loop-value-1% &2Crate!"
  911.  
  912. on rightclick on a chest:
  913. set {_world} to world of clicked block
  914. if {_world} is "%world of {lobby.location}%":
  915.  
  916. set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
  917. loop {_list::*}:
  918.  
  919. loop {lobbycr.%loop-value-1%.location::*}:
  920. if "%loop-value-2%" is "%location of clicked block%":
  921. cancel event
  922. if "%uncolored {crate.%player%.name}%" = loop-value-1:
  923. if {crates.opening.%player%} is true:
  924. open chest with 3 rows named "&2%{crate.%player%.name}%" to player
  925.  
  926. set {crates.reopening.%player%} to true
  927. set {_count} to 0
  928. loop 27 times:
  929. if {crate.%player%.inv::%{_count}%} is set:
  930. set {_value} to "%{crate.%player%.inv::%{_count}%}%"
  931. set {_color::*} to {_value} split at " "
  932.  
  933. if contains({_color::*}, "glass") is true:
  934. if contains({_color::*}, "light") is true:
  935. format gui slot {_count} of player with ("light %{_color::2}% stained glass pane" parsed as an item) to do nothing
  936.  
  937. else if contains({_color::*}, "dark") is true:
  938. format gui slot {_count} of player with ("dark %{_color::2}% stained glass pane" parsed as an item) to do nothing
  939.  
  940. else:
  941. format gui slot {_count} of player with ("%{_color::1}% stained glass pane" parsed as an item) to do nothing
  942.  
  943. else:
  944. format gui slot {_count} of player with ({crate.%player%.inv::%{_count}%} parsed as an item) to do nothing
  945.  
  946.  
  947. add 1 to {_count}
  948.  
  949. delete {crates.closed.%player%}
  950. delete {crates.openinglist::*}
  951. delete {crate.%player%.inv::*}
  952. delete {crate.%player%.name}
  953.  
  954.  
  955. else:
  956. open chest with 3 rows named "&2%loop-value-1%" to player
  957. format gui slot 13 of player with a tripwire hook named "&7Open crate" with lore "&7Keys left: %{keys.%player%.%loop-value-1%}%" to close then run function openCrate(player, "%loop-value-1%")
  958. stop loop
  959. else:
  960. open chest with 3 rows named "&2%loop-value-1%" to player
  961. format gui slot 13 of player with a tripwire hook named "&7Open crate" with lore "&7Keys left: %{keys.%player%.%loop-value-1%}%" to close then run function openCrate(player, "%loop-value-1%")
  962. stop loop
  963.  
  964. on inventory close:
  965. if {crates.opening.%player%} is true:
  966. set {crates.closed.%player%} to true
  967. add player to {crates.openinglist::*}
  968. clear {crate.%player%.inv::*}
  969. set {crate.%player%.name} to name of player's current inventory
  970. set {_count} to 0
  971.  
  972.  
  973. loop 27 times:
  974. set {crate.%player%.inv::%{_count}%} to slot {_count} of player's current inventory
  975. add 1 to {_count}
  976.  
  977. else if {crates.opening.%player%} is set:
  978. delete {crates.opening.%player%}
  979.  
  980. if name of current inventory of player is "&8Edit" or "&8Edit Helmet" or "&8Edit Chestplate" or "&8Edit Leggings" or "&8Edit Boots" or "&8Choose Category" or "&8Choose Type" or "&8Edit SkullOwner":
  981. if {cosmetics.edit.%player%} is not set:
  982. deleteVariables(player)
  983.  
  984.  
  985.  
  986. on chat:
  987. if {cosmetics.edit.%player%} is set:
  988. cancel event
  989.  
  990. if {cosmetics.edit.%player%} is "set%{cosmetics.edit.%player%.pieceText}%Item":
  991. if "%message%" is "cancel":
  992. send "{@lobby} Cancelled setting the %{cosmetics.edit.%player%.pieceText} to lower case%."
  993. editPiece(player, {cosmetics.edit.%player%.current}, {cosmetics.edit.%player%.pieceText}, {cosmetics.edit.%player%.type})
  994. delete {cosmetics.edit.%player%}
  995.  
  996. else if "%message%" parsed as an item type is not set:
  997. send "{@lobby} &c%message% &4is not a a %{cosmetics.edit.%player%.pieceText} to lower case%!"
  998.  
  999. else:
  1000. if {cosmetics.edit.%player%.type} is not set:
  1001. set {cosmetics.edit.%player%.type} to ""
  1002.  
  1003. set {_var} to "%message%"
  1004. replace all " " in {_var} with "_"
  1005.  
  1006. if {_var} contains "_":
  1007. set {_message::*} to {_var} split at "_"
  1008.  
  1009. if ({cosmetics.edit.%player%.pieceText} to lower case) is "helmet":
  1010. set {_piece} to ("%{cosmetics.edit.%player%.pieceText}%" to lower case)
  1011.  
  1012. if contains({_message::*}, "helmet"):
  1013. set {cosmetics.edit.%player%.%{_piece}%} to "%message to lower case%"
  1014.  
  1015. else if "%message%" = "head":
  1016. set {cosmetics.edit.%player%.%{_piece}%} to "head"
  1017.  
  1018. else if contains({_message::*}, "head"):
  1019. set {cosmetics.edit.%player%.%{_piece}%} to "head"
  1020.  
  1021. else:
  1022. send "{@lobby} &c%message% &4is not a helmet!"
  1023. stop
  1024.  
  1025. send "{@lobby} Succesfully set helmet to &a%message%"
  1026.  
  1027. editPiece(player, {cosmetics.edit.%player%.current}, {cosmetics.edit.%player%.pieceText}, {cosmetics.edit.%player%.type})
  1028. delete {cosmetics.edit.%player%}
  1029.  
  1030. else if ({cosmetics.edit.%player%.pieceText} to lower case) is "chestplate":
  1031. set {_piece} to ("%{cosmetics.edit.%player%.pieceText}%" to lower case)
  1032.  
  1033. if contains({_message::*}, "chestplate") or contains({_message::*}, "tunic"):
  1034. set {cosmetics.edit.%player%.%{_piece}%} to "%message to lower case%"
  1035.  
  1036.  
  1037. else:
  1038. send "{@lobby} &c%message% &4is not a chestplate!"
  1039. stop
  1040.  
  1041. send "{@lobby} Succesfully set chestplate to &a%message%"
  1042.  
  1043. editPiece(player, {cosmetics.edit.%player%.current}, {cosmetics.edit.%player%.pieceText}, {cosmetics.edit.%player%.type})
  1044. delete {cosmetics.edit.%player%}
  1045.  
  1046.  
  1047. else if ({cosmetics.edit.%player%.pieceText} to lower case) is "leggings":
  1048. set {_piece} to ("%{cosmetics.edit.%player%.pieceText}%" to lower case)
  1049.  
  1050. if contains({_message::*}, "leggings"):
  1051. set {cosmetics.edit.%player%.%{_piece}%} to "%message to lower case%"
  1052.  
  1053. else:
  1054. send "{@lobby} &c%message% &4are no leggings!"
  1055. stop
  1056.  
  1057. send "{@lobby} Succesfully set leggings to &a%message%"
  1058.  
  1059. editPiece(player, {cosmetics.edit.%player%.current}, {cosmetics.edit.%player%.pieceText}, {cosmetics.edit.%player%.type})
  1060. delete {cosmetics.edit.%player%}
  1061.  
  1062. else if ({cosmetics.edit.%player%.pieceText} to lower case) is "boots":
  1063. set {_piece} to ("%{cosmetics.edit.%player%.pieceText}%" to lower case)
  1064.  
  1065. if contains({_message::*}, "boots"):
  1066. set {cosmetics.edit.%player%.%{_piece}%} to "%message to lower case%"
  1067.  
  1068. else:
  1069. send "{@lobby} &c%message% &4are no boots!"
  1070. stop
  1071.  
  1072. send "{@lobby} Succesfully set boots to &a%message%"
  1073.  
  1074. editPiece(player, {cosmetics.edit.%player%.current}, {cosmetics.edit.%player%.pieceText}, {cosmetics.edit.%player%.type})
  1075. delete {cosmetics.edit.%player%}
  1076.  
  1077.  
  1078. else:
  1079. send "{@lobby} &c%message% &4is not a %{cosmetics.edit.%player%.pieceText} to lower case%!"
  1080.  
  1081. else if {cosmetics.edit.%player%} is "setType":
  1082. if "%message%" is "cancel":
  1083. send "{@lobby} Cancelled setting the type."
  1084. editPiece(player, {cosmetics.edit.%player%.current}, {cosmetics.edit.%player%.pieceText}, {cosmetics.edit.%player%.type})
  1085. delete {cosmetics.edit.%player%}
  1086.  
  1087. set {cosmetics.edit.%player%.type} to "%message%"
  1088. delete {cosmetics.edit.%player%}
  1089.  
  1090. send "{@lobby} Succesfully set type to &a%message%"
  1091. editSuit(player, {cosmetics.edit.%player%.type})
  1092.  
  1093.  
  1094. else if {cosmetics.edit.%player%} is "setCrate":
  1095. if "%message%" is "cancel":
  1096. send "{@lobby} Cancelled setting the crate."
  1097. editPiece(player, {cosmetics.edit.%player%.current}, {cosmetics.edit.%player%.pieceText}, {cosmetics.edit.%player%.type})
  1098. delete {cosmetics.edit.%player%}
  1099.  
  1100. else:
  1101. set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
  1102. if contains({_list::*}, "%message to lower case%"):
  1103. set {cosmetics.edit.%player%.crate} to "%message to lower case%"
  1104. editSuit(player, {cosmetics.edit.%player%.type})
  1105. delete {cosmetics.edit.%player%}
  1106. else:
  1107. send "{@lobby} &c%message% &4is not a valid crate!"
  1108.  
  1109. else if {cosmetics.edit.%player%} is "setSkullOwner":
  1110. if "%message%" is "cancel":
  1111. send "{@lobby} Cancelled setting the skull owner."
  1112. editPiece(player, {cosmetics.edit.%player%.current}, {cosmetics.edit.%player%.pieceText}, {cosmetics.edit.%player%.type})
  1113. delete {cosmetics.edit.%player%}
  1114.  
  1115. else:
  1116. set {cosmetics.edit.%player%.helmet.player} to "%message%"
  1117. set {cosmetics.edit.%player%.helmet.name} to "%message%"
  1118. delete {cosmetics.edit.%player%}
  1119.  
  1120. send "{@lobby} Succesfully set the skull owner to &a%message%"
  1121. editPiece(player, {cosmetics.edit.%player%.current}, {cosmetics.edit.%player%.pieceText}, {cosmetics.edit.%player%.type})
  1122.  
  1123. #{cosmetics.edit.%{_p}%.current}
  1124. #{cosmetics.edit.%{_p}%.pieceText}
  1125. else if {cosmetics.edit.%player%} is "set%{cosmetics.edit.%player%.pieceText}%Name":
  1126. if "%message%" is "cancel":
  1127. send "{@lobby} Cancelled setting the %{cosmetics.edit.%player%.current}% name."
  1128. editPiece(player, {cosmetics.edit.%player%.current}, {cosmetics.edit.%player%.pieceText}, {cosmetics.edit.%player%.type})
  1129. delete {cosmetics.edit.%player%}
  1130.  
  1131. else:
  1132. set {cosmetics.edit.%player%.%{cosmetics.edit.%player%.current}%.displayName} to "%message%"
  1133. set {cosmetics.edit.%player%.%{cosmetics.edit.%player%.current}%.name} to "%message%"
  1134.  
  1135. delete {cosmetics.edit.%player%}
  1136.  
  1137. send "{@lobby} Succesfully set the %{cosmetics.edit.%player%.current}% name to &a%message%"
  1138. editPiece(player, {cosmetics.edit.%player%.current}, {cosmetics.edit.%player%.pieceText}, {cosmetics.edit.%player%.type})
  1139.  
  1140.  
  1141.  
  1142.  
  1143. else if world of player is world of {lobby.location}:
  1144. cancel event
  1145. send "&7[&e%player%&7] &8>> &f%message%" to all players in world of player
  1146. send "&7[&eLobby&7][&e%player%&7] &f>> %message%" to console
  1147.  
  1148.  
  1149. #------------------- Commands -------------------
  1150. command /lobby [<text>] [<text>]:
  1151. aliases: /hub
  1152. trigger:
  1153. if player has permission "lobby.*":
  1154. if arg-1 is set:
  1155. if arg-1 is "help":
  1156. send "&2----------[ &a%{cmd}% &2]----------"
  1157. send "&e&o/%{cmd}% help &d→ &fGet the help page"
  1158. send "&e&o/%{cmd}% set &d→ &fSet the lobby"
  1159. send "&2----------[ &a%{cmd}% &2]----------"
  1160.  
  1161. else if arg-1 is "set":
  1162. send "{@logo} &2Succesfully set the &a%{cmd}% &2to your location!"
  1163. set {lobby.location} to location of player
  1164.  
  1165. else:
  1166. if {lobby.location} is set:
  1167. if world of player is not "%world of {lobby.location}%":
  1168. teleport player to {lobby.location}
  1169. send "{@lobby} &fThe player %player% went to the lobby!" to all players in world of player
  1170. clear player's inventory
  1171. set slot 4 of player to a compass named "{@lcompass}"
  1172.  
  1173. else:
  1174. teleport player to {lobby.location}
  1175.  
  1176. else:
  1177. send "{@lobby} &cThe %{cmd}% is not set yet!"
  1178.  
  1179.  
  1180. else if {lobby.location} is set:
  1181. if world of player is not "%world of {lobby.location}%":
  1182. teleport player to {lobby.location}
  1183. send "{@lobby} &fThe player %player% went to the lobby!" to all players in world of player
  1184. clear player's inventory
  1185. set slot 4 of player to a compass named "{@lcompass}"
  1186.  
  1187. else:
  1188. teleport player to {lobby.location}
  1189.  
  1190. else:
  1191. send "{@lobby} &cThe %{cmd}% is not set yet!"
  1192.  
  1193.  
  1194. command /lobbycompass [<text>] [<text>] [<text>]:
  1195. aliases: /lcomp, /lcompass
  1196. trigger:
  1197. if player has permission "lobbycompass.*":
  1198. if arg 1 is not set:
  1199. send "{@lobby} &4Do &c&o/%{cmd}% help &4for more info."
  1200.  
  1201. else if arg 1 is set:
  1202. if arg 1 is "help":
  1203. send "&2----------[ &a%{cmd}% &2]----------"
  1204. send "&e&o/%{cmd}% help &d→ &fKrijg help pagina"
  1205. send "&e&o/%{cmd}% create <minigame> &d→ &fCreate a minigame"
  1206. send "&e&o/%{cmd}% remove/delete <minigame> &d→ &fDelete a minigame"
  1207. send "&e&o/%{cmd}% setspawn <minigame> &d→ &fSet the spawn of a minigame"
  1208. send "&e&o/%{cmd}% slot <minigame> <number> &d→ &fSet the GUI slot of a minigame"
  1209.  
  1210. send "&e&o/%{cmd}% setname <minigame> <name> &d→ &fSet a name"
  1211. send "&e&o/%{cmd}% deletename <minigame> &d→ &fDelete the name of a minigame"
  1212. send "&e&o/%{cmd}% setlore <minigame> <lore> &d→ &fSet a lore"
  1213. send "&e&o/%{cmd}% deletelore <minigame> <minigame> &d→ &fDelete the lore of a minigame"
  1214. send "&e&o/%{cmd}% setitem <minigame> <item> &d→ &fSet the item of a minigame"
  1215. send "&e&o/%{cmd}% list &d→ &fGet a list of all the minigames"
  1216. send "&e&o/%{cmd}% setrows <number> &d→ &fSet the amount of rows in the GUI"
  1217. send "&e&o/%{cmd}% gui <minigame> &d→ &fOpen the config-GUI"
  1218. send "&2----------[ &a%{cmd}% &2]----------"
  1219.  
  1220. else if arg 1 is "create":
  1221. if arg 2 is set:
  1222. if {lobby.minigames.%arg 2%} is not set:
  1223. set {lobby.minigames.%arg 2%} to true
  1224. set {lobby.minigames.%arg 2%.name} to "&cNone"
  1225. set {lobby.minigames.%arg 2%.lore} to "&cNone"
  1226. set {lobby.minigames.%arg 2%.item} to "&cNone"
  1227. set {lobby.minigames.%arg 2%.slot} to "&cNone"
  1228. set {lobby.minigames.%arg 2%.spawn} to "&cNone"
  1229. add arg 2 to {lobby.minigames.list::*}
  1230.  
  1231. send "{@lobby} &2Succesfully made the minigame &a%arg 2%&2!"
  1232.  
  1233. else:
  1234. send "{@lobby} &4The minigame &c%arg 2% &4already exists!"
  1235. else:
  1236. send "{@lobby} &4Command not used correct! &c&o/%{cmd}% %arg 1% <minigame>&4."
  1237.  
  1238. else if arg 1 is "delete" or "remove":
  1239. if arg 2 is set:
  1240. if {lobby.minigames.%arg 2%} is set:
  1241. delete {lobby.minigames.%arg 2%}
  1242. delete {lobby.minigames.%arg 2%.name}
  1243. delete {lobby.minigames.%arg 2%.lore}
  1244. delete {lobby.minigames.%arg 2%.item}
  1245. delete {lobby.minigames.%arg 2%.slot}
  1246. delete {lobby.minigames.%arg 2%.spawn}
  1247. remove arg 2 from {lobby.minigames.list::*}
  1248.  
  1249. send "{@lobby} &2Succesfully removed the minigame &a%arg 2%&2!"
  1250.  
  1251. else:
  1252. send "{@lobby} &4The minigame &c%arg 2% &4doesn't exist!"
  1253. else:
  1254. send "{@lobby} &4Command not used correct! &c&o/%{cmd}% %arg 1 to lower case% <minigame>&4."
  1255.  
  1256.  
  1257. else if arg 1 is "setspawn":
  1258. if arg 2 is set:
  1259. if {lobby.minigames.%arg 2%} is set:
  1260. set {lobby.minigames.%arg 2%.spawn} to location of player
  1261. send "{@lobby} &2Succesfully set the spawn of the minigame%nl%&a%arg 2% &2arg &a%location of player%&2!"
  1262.  
  1263. else:
  1264. send "{@lobby} &4The minigame &c%arg 2% &4doesn't exist!"
  1265. else:
  1266. send "{@lobby} &4Command not used correct! &c&o/%{cmd}% %arg 1 to lower case% <minigame>&4."
  1267.  
  1268. else if arg 1 is "slot":
  1269. if arg 2 is set:
  1270. if {lobby.minigames.%arg 2%} is set:
  1271. if arg 3 is set:
  1272. if (arg 3 parsed as a number) is set:
  1273. if {lobby.compassRows} is not set:
  1274. set {lobby.compassRows} to 1
  1275.  
  1276. if {lobby.compassRows} < 1:
  1277. set {lobby.compassRows} to 1
  1278.  
  1279.  
  1280. if {lobby.compassRows}*9-1 < arg-3 parsed as a number:
  1281. send "{@lobby} &4The amount &c%arg 3% &4is to large bacause the max amount of slots is &c%{lobby.compassRows}*9+1%&4!"
  1282.  
  1283. else:
  1284. loop {lobby.minigames.list::*}:
  1285. if {lobby.minigames.%loop-value%.slot} is arg 3:
  1286. set {_set} to loop-value
  1287. stop loop
  1288.  
  1289. if {_set} is set:
  1290. send "{@lobby} &4The slot &c%arg 3% &4is already in use by the minigame &c%{_set}%&4!"
  1291. else:
  1292. set {lobby.minigames.%arg 2%.slot} to arg 3
  1293. send "{@lobby} &2Succesfully set the slot of the minigame &a%arg 2% &2to &a%arg 3%&2!"
  1294. else:
  1295. send "{@lobby} &c%arg 3% &4is not a number!"
  1296. else:
  1297. send "{@lobby} &4Command not used correct! &c&o/%{cmd}% %arg 1 to lower case% %arg 2% <number>&4."
  1298. else:
  1299. send "{@lobby} &4The minigame &c%arg 2% &4doesn't exist!"
  1300. else:
  1301. send "{@lobby} &4Command not used correct! &c&o/%{cmd}% %arg 1 to lower case% <minigame> <number>&4."
  1302.  
  1303.  
  1304. else if arg 1 is "setname":
  1305. if arg 2 is set:
  1306. if {lobby.minigames.%arg 2%} is set:
  1307. if arg 3 is set:
  1308. set {lobby.minigames.%arg 2%.name} to arg 3
  1309. send "{@lobby} &2Succesfully set the name of the minigame &a%arg 2% &2to &a%arg 3%&2!"
  1310.  
  1311. else:
  1312. send "{@lobby} &4Command not used correct! &c&o/%{cmd}% %arg 1 to lower case% %arg 2% <name>&4."
  1313. else:
  1314. send "{@lobby} &4The minigame &c%arg 2% &4doesn't exist!"
  1315. else:
  1316. send "{@lobby} &4Command not used correct! &c&o/%{cmd}% %arg 1 to lower case% <name>&4."
  1317.  
  1318. else if arg 1 is "delname" or "deletename":
  1319. if arg 2 is set:
  1320. delete {lobby.minigames.%arg 2%.name}
  1321. send "{@lobby} &2Succesfully deleted the name from the minigame &a%arg 2%&2!"
  1322.  
  1323. else:
  1324. send "{@lobby} &4Command not used correct! &c&o/%{cmd}% %arg 1 to lower case% <minigame>&4."
  1325.  
  1326. else if arg 1 is "setlore":
  1327. if arg 2 is set:
  1328. if {lobby.minigames.%arg 2%} is set:
  1329. if arg 3 is set:
  1330. set {lobby.minigames.%arg 2%.lore} to arg 3
  1331. send "{@lobby} &2Succesfully set the lore of the minigame &a%arg 2% &2to &a%arg 3%&2!"
  1332.  
  1333. else:
  1334. send "{@lobby} &4Command not used correct! &c&o/%{cmd}% %arg 1 to lower case% %arg 2% <lore>&4."
  1335. else:
  1336. send "{@lobby} &4The minigame &c%arg 2% &4doesn't exist!"
  1337. else:
  1338. send "{@lobby} &4Command not used correct! &c&o/%{cmd}% %arg 1 to lower case% <minigame> <lore>&4."
  1339.  
  1340. else if arg 1 is "dellore" or "deletelore":
  1341. if arg 2 is set:
  1342. if {lobby.minigames.%arg 2%} is set:
  1343. delete {lobby.minigames.%arg 2%.lore}
  1344. send "{@lobby} &2Succesfully deleted the lore from the minigame &a%arg 2%&2!"
  1345.  
  1346. else:
  1347. send "{@lobby} &4The minigame &c%arg 2% &4doesn't exist!"
  1348. else:
  1349. send "{@lobby} &4Command not used correct! &c&o/%{cmd}% %arg 1 to lower case% <name>&4."
  1350.  
  1351. else if arg 1 is "setitem":
  1352. if arg 2 is set:
  1353. if {lobby.minigames.%arg 2%} is set:
  1354. if arg 3 is set:
  1355. if (arg 3 parsed as an item) is set:
  1356. set {lobby.minigames.%arg 2%.item} to arg 3 parsed as an item
  1357. send "{@lobby} &2Succesfully set the item from the minigame &a%arg 2% &2to &a%arg 3%&2!"
  1358.  
  1359. else:
  1360. send "{@lobby} &c%arg 3% &4is not an item!"
  1361. else:
  1362. send "{@lobby} &4Command not used correct! &c&o/%{cmd}% %arg 1 to lower case% %arg 2% <item>&4."
  1363. else:
  1364. send "{@lobby} &4The minigame &c%arg 2% &4doesn't exist!"
  1365. else:
  1366. send "{@lobby} &4Command not used correct! &c&o/%{cmd}% %arg 1 to lower case% <minigame> <item>&4."
  1367.  
  1368.  
  1369. else if arg 1 is "list":
  1370. if {lobby.minigames.list::*} is not empty:
  1371. loop {lobby.minigames.list::*}:
  1372. if {_list} is set:
  1373. set {_list} to "%{_list}%&2, &a%loop-value%"
  1374. else:
  1375. set {_list} to "%loop-value%"
  1376.  
  1377. else:
  1378. set {_list} to "Geen"
  1379.  
  1380. send "{@lobby} &2This is the list of all the minigames:%nl%&a%{_list}%"
  1381.  
  1382.  
  1383. else if arg 1 is "setrows":
  1384. if arg 2 is set:
  1385. if (arg 2 parsed as a number) is set:
  1386. if (arg-2 parsed as a number) < 7:
  1387. set {lobby.compassRows} to (arg-2 parsed as a number)
  1388. send "{@lobby} &2Succesfully set the amount of rows to &a%arg 2%&2!"
  1389.  
  1390. else:
  1391. send "{@lobby} &4The max amount of rows is &c6&4!"
  1392. else:
  1393. send "{@lobby} &c%arg 2% &4is not a number!"
  1394. else:
  1395. send "{@lobby} &4Command not used correct! &c&o/%{cmd}% %arg 1 to lower case% <number>&4."
  1396.  
  1397.  
  1398. else if arg 1 is "gui":
  1399. if arg 2 is set:
  1400. if {lobby.minigames.%arg 2%} is set:
  1401. open chest with 2 rows named "&7Config GUI" to player
  1402.  
  1403. set {_name} to {lobby.minigames.%arg 2%.name}
  1404. replace "&" in {_name} with "§"
  1405.  
  1406. set {_lore} to {lobby.minigames.%arg 2%.lore}
  1407. replace "&" in {_lore} with "§"
  1408.  
  1409. format gui slot 2 of player with a book named "&2Minigame: &a%arg-2%" to do nothing
  1410. format gui slot 3 of player with a name tag named "&2Name: &f%{_name}%" to close then run function lcompGui(player, "&7Name &8%arg-2%", 3, 12, 14, green_wool, red_wool, "&aChange", "&cDeny", "{@lobby} &2Click <suggest command:/lcomp setname %arg-2% [naam]>&ahere&r &2to edit the name.", "{@lobby} &4You have chosen to give the minigame%nl%&c%arg-2% &4not an other name.", false)
  1411. format gui slot 4 of player with a paper named "&2Lore: &f%{_lore}%" to close then run function lcompGui(player, "&7Lore &8%arg-2%", 3, 12, 14, green_wool, red_wool, "&aChange", "&cDeny", "{@lobby} &2Click <suggest command:/lcomp setlore %arg-2% [lore]>&ahere&r &2to edit the lore.", "{@lobby} &4You have chosen to give the minigame%nl%&c%arg-2% &4not an other lore.", false)
  1412. format gui slot 5 of player with an item frame named "&2Item: &a%{lobby.minigames.%arg-2%.item}%" to close then run function lcompGui(player, "&7Item &8%arg-2%", 3, 12, 14, green_wool, red_wool, "&aChange", "&cDeny", "{@lobby} &2Click <suggest command:/lcompass setitem %arg-2% [item]>&ahere<reset> &2to edit the item.", "{@lobby} &4You have chosen to give the minigame%nl%&c%arg-2% &4not an other item.", false)
  1413. format gui slot 6 of player with a clock named "&2Slot: &a%{lobby.minigames.%arg-2%.slot}%" to close then run function lcompGui(player, "&7Slot &8%arg-2%", 3, 12, 14, green_wool, red_wool, "&aChange", "&cDeny", "{@lobby} &2Click <suggest command:/lcompass slot %arg-2% [slot]>&ahere<reset> &2to edit the slot.", "{@lobby} &4You have chosen to give the minigame%nl%&c%arg-2% &4not an other slot.", false)
  1414.  
  1415. format gui slot 12 of player with a paper named "&2Spawn: &a%{lobby.minigames.%arg-2%.spawn}%" to close then run function lcompGui(player, "&7Spawn &8%arg-2%", 3, 12, 14, green_wool, red_wool, "&aSet", "&cDeny", "{@lobby} &2Click <command:/lcompass setspawn %arg-2%>&ahere<reset> &2to set the spawn.", "{@lobby} &4You have chosen to give the minigame%nl%&c%arg-2% &4not an other spawn.", false)
  1416. format gui slot 13 of player with a barrier named "&cClose menu" to close
  1417. format gui slot 14 of player with a redstone named "&4Delete" to close then run function lcompGui(player, "&7Delete &8%arg-2%", 3, 12, 14, green_wool, red_wool, "&aDelete", "&cDeny", "/lcompass delete %arg-2%", "{@lobby} &4You have chosen to delete the minigame%nl%&c%arg-2% &4not.", true)
  1418.  
  1419. else:
  1420. send "{@lobby} &4The minigame &c%arg 2% &4doesn't exist!"
  1421. else:
  1422. send "{@lobby} &4Command not used correct! &c&o/%{cmd}% %arg 1 to lower case% <minigame>&4."
  1423. else:
  1424. send "{@lobby} &4Do &c/%{cmd}% help &4for more info."
  1425.  
  1426. command /lobbycrate [<text>] [<text>]:
  1427. aliases: /lobbycr, /lcrate
  1428. trigger:
  1429. if player is in world of {lobby.location}:
  1430. if player has permission "votecrate.*":
  1431. if arg-1 is set:
  1432. if arg-1 is "help":
  1433. send "&2----------[ &a%{cmd}% &2]----------"
  1434. send "&e&o/%{cmd}% help &d→ &fGet the help page"
  1435. send "&e&o/%{cmd}% list &d→ &fGet a list with all crates"
  1436. send "&e&o/%{cmd}% create <crate> &d→ &fCreate a create"
  1437. send "&e&o/%{cmd}% delete/remove <crate> &d→ &fDelete a crate"
  1438. send "&e&o/%{cmd}% path <crate> &d→ &fGet the edit path of a crate"
  1439. send "&e&o/%{cmd}% get <crate> &d→ &fGet a crate"
  1440.  
  1441. send "&2----------[ &a%{cmd}% &2]----------"
  1442.  
  1443. else if arg-1 is "list":
  1444. set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
  1445. if {_list::*} is not empty:
  1446. loop {_list::*}:
  1447. if {_list} is set:
  1448. set {_list} to "%{_list}%&2, &a%loop-value%"
  1449. else:
  1450. set {_list} to "%loop-value%"
  1451.  
  1452. send "{@lobby} &2There are the following crates:%nl%&a%{_list}%"
  1453.  
  1454. else:
  1455. send "{@lobby} &2There are no crates made yet."
  1456.  
  1457.  
  1458. else if arg-1 is "create":
  1459. if arg-2 is set:
  1460. set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
  1461. set {_arg2} to "%arg-2 to lower case%"
  1462. if contains({_list::*}, {_arg2}):
  1463. send "{@lobby} &4The crate &c%{_arg2}% &4already exists!"
  1464.  
  1465.  
  1466. else:
  1467.  
  1468. send "{@lobby} &2Making the crate &a%{_arg2}%&2..."
  1469. add {_arg2} to yml list "Lobby.Crates.List" of file "{@config}"
  1470. create file "{@path}/%{_arg2}%.yml"
  1471. add "diamond_sword" to yml list "Item.List" of file "{@path}/%{_arg2}%.yml"
  1472. add "diamond_sword-1" to yml list "Item.ConfigName" of file "{@path}/%{_arg2}%.yml"
  1473.  
  1474. set yml value "Item.Chance.diamond_sword-1" of file "{@path}/%{_arg2}%.yml" to "100"
  1475. set yml value "Item.Name.diamond_sword-1" of file "{@path}/%{_arg2}%.yml" to "&aDiamond Sword"
  1476. set yml value "Item.Amount.diamond_sword-1" of file "{@path}/%{_arg2}%.yml" to 1
  1477.  
  1478. add "This is a lore" to yml list "Item.Lore.diamond_sword-1" of file "{@path}/%{_arg2}%.yml"
  1479.  
  1480. add "sharpness:1" to yml list "Item.Enchants.diamond_sword-1" of file "{@path}/%{_arg2}%.yml"
  1481.  
  1482. send "{@lobby} &2Succesfully made the crate &a%{_arg2}%&2!"
  1483.  
  1484.  
  1485. else:
  1486. send "{@lobby} &4You need to give up a &cname &4for the crate!"
  1487.  
  1488. else if arg-1 is "delete" or "remove":
  1489. if arg-2 is set:
  1490. set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
  1491. set {_arg2} to "%arg-2 to lower case%"
  1492. if contains({_list::*}, {_arg2}):
  1493. send "{@lobby} &2Deleting the crate &a%{_arg2}%&2..."
  1494.  
  1495. remove "%{_arg2}%" from yml list "Lobby.Crates.List" of file "{@config}"
  1496. delete file "{@path}/%{_arg2}%.yml"
  1497.  
  1498. send "{@lobby} &2Succesfully deleted the crate &a%{_arg2}%&2!"
  1499.  
  1500. else:
  1501. send "{@lobby} &4The crate &c%{_arg2}% &4doesn't exist!"
  1502.  
  1503. else:
  1504. send "{@lobby} &4You need to give up a &cname &4of the crate you want to delete!"
  1505.  
  1506. else if arg-1 is "path":
  1507. if arg-2 is set:
  1508. set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
  1509. set {_arg2} to "%arg-2 to lower case%"
  1510.  
  1511. if contains({_list::*}, {_arg2}):
  1512. send "{@lobby} &2Location of %{_arg2}%: &a{@path}/%{_arg2}%&2."
  1513.  
  1514.  
  1515. else:
  1516. send "{@lobby} &4The crate &c%{_arg2}% &4doesn't exists!"
  1517. else:
  1518. send "{@lobby} &4You need to give up a &cname &4of the crate you want to get the path of!"
  1519.  
  1520. else if arg-1 is "get":
  1521. if arg 2 is set:
  1522. set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
  1523. set {_arg2} to "%arg-2 to lower case%"
  1524. if contains({_list::*}, {_arg2}):
  1525. send "{@lobby} &2Here you have the &a%{_arg2}% &2crate!%nl%&2Place it to create a chest."
  1526. give player 1 chest named "&e%{_arg2}%" with lore "&7Place to create a crate!"
  1527. else:
  1528. send "{@lobby} &4The crate &c%{_arg2}% &4doesn't exist!"
  1529. else:
  1530. send "{@lobby} &4You must give up a crate type!"
  1531.  
  1532. else:
  1533. send "{@lobby} &4Do &c/%{cmd}% help &4for more info."
  1534. else:
  1535. send "{@lobby} &4Do &c/%{cmd}% help &4for more info."
  1536.  
  1537.  
  1538. command /key [<text>] [<text>] [<text>] [<text>]:
  1539. trigger:
  1540. if player has permission "key.*":
  1541. if arg-1 is set:
  1542. if arg-1 is "help":
  1543. send "&2----------[ &a%{cmd}% &2]----------"
  1544. send "&e&o/%{cmd}% help &d→ &fGet the help page"
  1545. send "&e&o/%{cmd}% get <crate/all> [number] &d→ &fGet a crate"
  1546. send "&e&o/%{cmd}% give <player> <crate/all> [number] &d→ &fGive a key to open a crate to a player"
  1547. send "&e&o/%{cmd}% remove <all/crate> [number] [player] &d→ &fRemove a key from a player"
  1548. send "&e&o/%{cmd}% clear <all/crate> [player] &d→ &fClear the keys from a player"
  1549. send "&e&o/%{cmd}% keys <all/crate> [player] &d→ &fGet the amount of keys from a player"
  1550. send "&2----------[ &a%{cmd}% &2]----------"
  1551.  
  1552. else if arg-1 is "get":
  1553. if arg-2 is "all":
  1554. if arg-3 is set:
  1555. if (arg-3 parsed as a number) is set:
  1556. set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
  1557. set {_num} to arg-3 parsed as a number
  1558. loop {_num} times:
  1559. loop {_list::*}:
  1560. add 1 to {keys.%player%.%loop-value-2%}
  1561.  
  1562. send "{@lobby} &2You have recieved all the &a%arg-3% &2times!"
  1563.  
  1564. else:
  1565. send "{@lobby} &c%arg-3% &4is not a number!"
  1566. else:
  1567. set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
  1568. loop {_list::*}:
  1569. add 1 to {keys.%player%.%loop-value%}
  1570.  
  1571. send "{@lobby} &2You have recieved all keys!"
  1572.  
  1573. else if arg-2 is set:
  1574. set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
  1575. if contains({_list::*}, "%arg-2 to lower case%"):
  1576. if arg-3 is set:
  1577. if (arg-3 parsed as a number) is set:
  1578. add (arg-3 parsed as a number) to {keys.%player%.%arg-2 to lower case%}
  1579. send "{@lobby} &2You have recieved &a%arg-2 to lower case% &2key &a%arg-3% &2times!"
  1580. else:
  1581. send "{@lobby} &c%arg-3% &4is not a number!"
  1582. else:
  1583. add 1 to {keys.%player%.%arg-2 to lower case%}
  1584.  
  1585. send "{@lobby} &2You have recieved a &a%arg-2 to lower case% &2key!"
  1586. else:
  1587. send "{@lobby} &4The crate &c%arg-2 to lower case% &4doesn't exist."
  1588. else:
  1589. send "{@lobby} &4You must give up a &ccrate&4!"
  1590.  
  1591. else if arg-1 is "give":
  1592. if arg-2 is set:
  1593. if (arg-2 parsed as a player) is set:
  1594. if arg-3 is set:
  1595. if arg-3 is "all":
  1596. if arg-4 is set:
  1597. if (arg-4 parsed as a number) is set:
  1598. set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
  1599. set {_num} to arg-4 parsed as a number
  1600. loop {_num} times:
  1601. loop {_list::*}:
  1602. add 1 to {keys.%arg-2 parsed as a player%.%loop-value-2%}
  1603.  
  1604. send "{@lobby} &2Succesfully given &a%name of arg-2 parsed as a player% &2all the keys &a%arg-4% &2times!"
  1605. send "{@lobby} &2You have recieved all the keys &a%arg-4% &2times!" to arg-2 parsed as a player
  1606.  
  1607. else:
  1608. send "{@lobby} &c%arg-3% &4is not a number!"
  1609. else:
  1610. set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
  1611. loop {_list::*}:
  1612. add 1 to {keys.%arg-2 parsed as a player%.%loop-value%}
  1613.  
  1614. send "{@lobby} &2Succesfully given &a%name of arg-2 parsed as a player% &2all the keys!"
  1615. send "{@lobby} &2You have recieved all the keys!" to arg-2 parsed as a player
  1616. else:
  1617. set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
  1618. if contains({_list::*}, "%arg-3 to lower case%"):
  1619. if arg-4 is set:
  1620. if (arg-4 parsed as a number) is set:
  1621.  
  1622. add (arg-4 parsed as a number) to {keys.%arg-2%.%arg-3 to lower case%}
  1623.  
  1624. send "{@lobby} &2Succesfully given &a%name of arg-2 parsed as a player% &2the &a%arg-3 to lower case% &2key &a%arg-4% &2times!"
  1625. send "{@lobby} &2You have recieved the &a%arg-3 to lower case% &2key &a%arg-4% &2times!" to arg-2 parsed as a player
  1626.  
  1627. else:
  1628. send "{@lobby} &c%arg-3% &4is not a number!"
  1629. else:
  1630. add 1 to {keys.%arg-2 parsed as a player%.%arg-3 to lower case%}
  1631.  
  1632. send "{@lobby} &2Succesfully given &a%name of arg-2 parsed as a player% &2the &a%arg-3 to lower case% &2key!"
  1633. send "{@lobby} &2You have recieved the &a%arg-3 to lower case% &2key!" to arg-2 parsed as a player
  1634. else:
  1635. send "{@lobby} &4The crate &c%arg-3 to lower case% &4doesn't exist!"
  1636. else:
  1637. send "{@lobby} &4You must give up a &ccrate&4!"
  1638. else:
  1639. send "{@lobby} &4The player &c%arg-2% &4is not online!"
  1640. else:
  1641. send "{@lobby} &4You must give up a &cplayer&4!"
  1642.  
  1643.  
  1644.  
  1645. else if arg-1 is "remove":
  1646. if arg-2 is set:
  1647. if arg-2 is "all":
  1648. if arg-3 is set:
  1649. if (arg-3 parsed as a number) is set:
  1650. if arg-4 is set:
  1651. if (arg-4 parsed as a player) is set:
  1652. set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
  1653. set {_num} to arg-3 parsed as a number
  1654. loop {_list::*}:
  1655. if {keys.%arg-4 parsed as a player%.%loop-value%}-{_num} >= 0:
  1656. remove {_num} from {keys.%name of arg-4 parsed as a player%.%loop-value%}
  1657. else:
  1658. set {keys.%arg-4 parsed as a player%.%loop-value%} to 0
  1659.  
  1660. send "{@lobby} &2Succesfully removed &a%arg-3% &2from all the keys of &a%name of arg-4 parsed as a player%&2!"
  1661. send "{@lobby} &2Removed &a%arg-3% &2from your keys!" to arg-4 parsed as a player
  1662.  
  1663. else:
  1664. send "{@lobby} &4The player &c%arg-4% &4is not online!"
  1665. else:
  1666. set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
  1667. loop {_list::*}:
  1668. if {keys.%player%.%loop-value%}-(arg-3 parsed as a number) >= 0:
  1669. remove (arg-3 parsed as a number) from {keys.%player%.%loop-value%}
  1670. else:
  1671. set {keys.%player%.%loop-value%} to 0
  1672.  
  1673. send "{@lobby} &2Succesfully removed &a%arg-3% &2from all the keys!"
  1674.  
  1675. else:
  1676. send "{@lobby} &c%arg-3% &4is not a number!"
  1677. else:
  1678. set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
  1679. loop {_list::*}:
  1680. if {keys.%player%.%loop-value%}-1 >= 0:
  1681. remove 1 from {keys.%player%.%loop-value%}
  1682.  
  1683. send "{@lobby} &2Succesfully removed &a1 &2from all the keys"
  1684. else:
  1685. set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
  1686. if contains({_list::*}, "%arg-2 to lower case%"):
  1687. if arg-3 is set:
  1688. if (arg-3 parsed as a number) is set:
  1689. if arg-4 is set:
  1690. if (arg-4 parsed as a player) is set:
  1691. if {keys.%arg-4 parsed as a player%.%arg-2 to lower case%}-(arg-3 parsed as a number) >= 0:
  1692. remove (arg-3 parsed as a number) from {keys.%name of arg-4 parsed as a player%.%arg-2 to lower case%}
  1693. else:
  1694. set {keys.%arg-4 parsed as a player%.%arg-2 to lower case%} to 0
  1695.  
  1696. send "{@lobby} &2Succesfully removed &a%arg-3% %arg-2 to lower case% &2keys from &a%name of arg-4 parsed as a player%&2!"
  1697. send "{@lobby} &a%arg-3% %arg-2 to lower case% &2keys have been removed!" to arg-4 parsed as a player
  1698.  
  1699. else:
  1700. send "{@lobby} &4The player &c%arg-4% &4is not online!"
  1701. else:
  1702.  
  1703. if {keys.%player%.%arg-2 to lower case%}-(arg-3 parsed as a number) >= 0:
  1704. remove (arg-3 parsed as a number) from {keys.%player%.%arg-2 to lower case%}
  1705. send "{@lobby} &2Succesfully removed &a%arg-3% %arg-2 to lower case% &2keys!"
  1706.  
  1707. else:
  1708. send "{@lobby} &c%arg-3% &4is not a number!"
  1709.  
  1710. else:
  1711. if {keys.%player%.%arg-2 to lower case%}-1 >= 0:
  1712. remove 1 from {keys.%player%.%arg-2 to lower case%}
  1713. send "{@lobby} &2Succesfully removed &a1 %arg-2 to lower case% &2keys!"
  1714. else:
  1715. send "{@lobby} &4The crate &c%arg-2 to lower case% &4doesn't exist."
  1716. else:
  1717. send "{@lobby} &4You must give up a &ccrate&4!"
  1718.  
  1719. else if arg-1 is "clear":
  1720. if arg-2 is set:
  1721. if arg-2 is "all":
  1722. if arg-3 is set:
  1723. if (arg-3 parsed as a player) is set:
  1724. set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
  1725. loop {_list::*}:
  1726. set {keys.%arg-3 parsed as a player%.%loop-value%} to 0
  1727.  
  1728. send "{@lobby} &2Succesfully cleared &aall keys &2of &a%name of arg-3 parsed as a player%&2!"
  1729. send "{@lobby} &aAll &2your &akeys &2have been cleared!" to arg-3 parsed as a player
  1730. else:
  1731. send "{@lobby} &4The player &c%arg-3% &4is not online!"
  1732. else:
  1733. set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
  1734. loop {_list::*}:
  1735. set {keys.%player%.%loop-value%} to 0
  1736.  
  1737. send "{@lobby} &2You have cleared &aall &2your &akeys&2!"
  1738. else:
  1739. set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
  1740. if contains({_list::*}, "%arg-2 to lower case%"):
  1741. if arg-3 is set:
  1742. if (arg-3 parsed as a player) is set:
  1743. set {keys.%arg-3 parsed as a player%.%arg-2 to lower case%} to 0
  1744. send "{@lobby} &2You have cleared the &a%arg-2 to lower case% keys &2from &a%name of arg-3 parsed as a player%&2!"
  1745. send "{@lobby} &2Your &a%arg-2 to lower case% keys &2have been cleared!" to arg-3 parsed as a player
  1746.  
  1747. else:
  1748. send "{@lobby} &4The player &c%arg-3% &4is not online!"
  1749.  
  1750. else:
  1751. set {keys.%player%.%arg-2 to lower case%} to 0
  1752. send "{@lobby} &2Succesfully cleared the &a%arg-2 to lower case% keys&2!"
  1753.  
  1754. else:
  1755. send "{@lobby} &4The crate &c%arg-2 to lower case% &4doesn't exist!"
  1756. else:
  1757. send "{@lobby} &4You must give up a &ccrate&4!"
  1758.  
  1759. else if arg-1 is "keys":
  1760. if arg-2 is set:
  1761. if arg-2 is "all":
  1762. if arg-3 is set:
  1763. if (arg-3 parsed as a player) is set:
  1764. set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
  1765. loop {_list::*}:
  1766. if {keys.%arg-3 parsed as a player%.%loop-value%} is not set:
  1767. set {keys.%arg-3 parsed as a player%.%loop-value%} to 0
  1768.  
  1769. if {_keys} is not set:
  1770. set {_keys} to "&2%loop-value%: &a%{keys.%name of arg-3 parsed as a player%.%loop-value%}%"
  1771. else:
  1772. set {_keys} to "%{_keys}%%nl%&2%loop-value%: &a%{keys.%name of arg-3 parsed as a player%.%loop-value%}%"
  1773.  
  1774. send "{@lobby} &2This is the list of keys from &a%name of arg-3 parsed as a player%&2:%nl%%{_keys}%"
  1775.  
  1776. else:
  1777. send "{@lobby} &4The player &c%arg-3% &4is not online!"
  1778. else:
  1779. set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
  1780. loop {_list::*}:
  1781. if {keys.%player%.%loop-value%} is not set:
  1782. set {keys.%player%.%loop-value%} to 0
  1783. if {_keys} is not set:
  1784. set {_keys} to "&2%loop-value%: &a%{keys.%player%.%loop-value%}%"
  1785. else:
  1786. set {_keys} to "%{_keys}%%nl%&2%loop-value%: &a%{keys.%player%.%loop-value%}%"
  1787.  
  1788. send "{@lobby} &2This is your list of keys&2:%nl%%{_keys}%"
  1789. else:
  1790. set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
  1791. if contains({_list::*}, "%arg-2 to lower case%"):
  1792. if arg-3 is set:
  1793. if (arg-3 parsed as a player) is set:
  1794. if {keys.%arg-3 parsed as a player%.%arg-2 to lower case%} is not set:
  1795. set {keys.%arg-3 parsed as a player%.%arg-2 to lower case%} to 0
  1796.  
  1797. send "{@lobby} &a%name of arg-3 parsed as a player% &2has &a%{keys.%arg-3%.%arg-2 to lower case%}% %arg-2 to lower case% &2keys."
  1798.  
  1799. else:
  1800. send "{@lobby} &4The player &c%arg-3% &4is not online!"
  1801. else:
  1802. if {keys.%player%.%arg-2 to lower case%} is not set:
  1803. set {keys.%player%.%arg-2 to lower case%} to 0
  1804.  
  1805. send "{@lobby} &2You have &a%{keys.%player%.%arg-2 to lower case%}% %arg-2 to lower case% &2keys."
  1806. else:
  1807. send "{@lobby} &4The crate &c%arg-2 to lower case% &4doesn't exist!"
  1808. else:
  1809. send "{@lobby} &4You need to give up a &ccrate&4!"
  1810. else:
  1811. send "{@lobby} &4Do &c/%{cmd}% help &4for more info!"
  1812. else:
  1813. send "{@lobby} &4Do &c/%{cmd}% help &4for more info!"
  1814.  
  1815.  
  1816. command /cosmetics [<text>] [<text>] [<text>]:
  1817. aliases: /cos
  1818. trigger:
  1819. if player has permission "cosmetics.*":
  1820. if arg-1 is not set:
  1821. send "{@lobby} &4Do &c/%{cmd}% help &4for more info!"
  1822.  
  1823. else if arg-1 is "help":
  1824. send "&2----------[ &a%{cmd}% &2]----------"
  1825. send "&e&o/%{cmd}% help &d→ &fGet the help page"
  1826. send "&e&o/%{cmd}% gui [player] &d→ &fGet the cosmetics (of a player)"
  1827. send "&e&o/%{cmd}% setup <type> &d→ &fCreate a cosmetic"
  1828. send "&e&o/%{cmd}% edit [type] &d→ &fEdit a cosmetic"
  1829. #send "&e&o/%{cmd}% delete [type] [name] &d→ &fDelete a cosmetic"
  1830. send "&e&o/%{cmd}% path &d→ &fCreate your own cosmetics"
  1831. send "&2----------[ &a%{cmd}% &2]----------"
  1832.  
  1833. #else if arg-1 is "gui":
  1834. # if arg-2 is set:
  1835. # if arg-2 parsed as a player is set:
  1836. #
  1837.  
  1838. # else:
  1839. # send "{@lobby} &4The player &c%arg-2% &4has never logged in."
  1840.  
  1841. # else:
  1842.  
  1843. else if arg-1 is "setup":
  1844. if arg-2 is set:
  1845. editCos(player, "%arg-2%")
  1846. #open chest with 1 rows named "&8Cosmetics %arg-2%" to player
  1847. #format gui slot 2 of player with nether star named "&fCreate" to close
  1848. #format gui slot 4 of player with redstone torch on named "&fEdit" to close
  1849. #format gui slot 6 of player with blaze powder named "&fDelete" to close
  1850.  
  1851. else:
  1852. editCos(player, "")
  1853. #open chest with 1 rows named "&8Edit Cosmetics" to player
  1854. #format gui slot 2 of player with nether star named "&fCreate" to close
  1855. #format gui slot 4 of player with redstone torch on named "&fEdit" to close
  1856. #format gui slot 6 of player with blaze powder named "&fDelete" to close
  1857.  
  1858. else if arg-1 is "path":
  1859. send "{@lobby} The path to edit your cosmetics is %nl%&a{@cosConfig} &2and to create cosmetics %nl%&a{@path}/Cosmetics/"
  1860.  
  1861. else:
  1862. send "{@lobby} &4Do &c/%{cmd}% help &4for more info!"
Add Comment
Please, Sign In to add comment