Zeldaboy111

Skript #274 ]|[ Cosmetics (8)

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