Zeldaboy111

Skript #279 ]|[ Cosmetics opruimen (1)

Jan 12th, 2020
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 95.17 KB | None | 0 0
  1. #Read 'license.txt' before using this Skript please
  2.  
  3. options:
  4. path: plugins/Lobby/cosmetics
  5. config: plugins/Lobby/cosmetics/config.yml
  6.  
  7.  
  8. #-----------------------------------{ Functions }-----------------------------------
  9. function contains(list: objects, check: object) :: boolean:
  10. loop {_list::*}:
  11. if loop-value is {_check}:
  12. return true
  13.  
  14. return false
  15.  
  16.  
  17. function getVariables():
  18. if yml value "Cosmetics.Animations.Random.DefaultAnimation" of file "{@config}" is set:
  19. if {cos.animationList::*} contains yml value "Cosmetics.Animations.Random.DefaultAnimation" of file "{@config}":
  20. set {cos.defaultAnimation} to yml value "Cosmetics.Animations.Random.DefaultAnimation" of file "{@config}"
  21.  
  22. if yml value "Cosmetics.Hologram.Color" of file "{@config}" is set:
  23. if (yml value "Cosmetics.Hologram.Color" of file "{@config}" parsed as a boolean) is set:
  24. set {cos.holograms.enabled} to yml value "Cosmetics.Hologram.Color" of file "{@config}" parsed as a boolean
  25.  
  26. if yml value "Cosmetics.Animations.Random.Enabled" of file "{@config}" is set:
  27. if (yml value "Cosmetics.Animations.Random.Enabled" of file "{@config}" is parsed as a boolean):
  28. set {cos.randomAnimation} to yml value "Cosmetics.Animations.Random.Enabled" of file "{@config}" parsed as an boolean
  29.  
  30. if {cos.randomAnimation} is not set:
  31. set {cos.randomAnimation} to false
  32.  
  33. if {cos.holograms.enabled} is not set:
  34. set {cos.holograms.enabled} to true
  35.  
  36. if {cos.holograms.enabled} is true:
  37. if yml value "Cosmetics.Hologram.Color" of file "{@config}" is set:
  38. set {cos.holograms.color} to yml value "Cosmetics.Hologram.Color" of file "{@config}"
  39.  
  40. if {cos.holograms.color} is not set:
  41. set {cos.holograms.color} to "&a&l"
  42.  
  43. if {cos.defaultAnimation} is not set:
  44. set {cos.defaultAnimation} to "Window"
  45.  
  46.  
  47. if {cos.holograms.enabled} is true:
  48. set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}":
  49. set {_world} to world of {lobby.location}
  50. loop {cos.crates.%loop-value%.location::*}:
  51. set {holo-crate-%{_world}%.%loop-value-2%} to a new hologram at block above loop-value-2
  52. add text "%{cos.holograms.color}%%loop-value-1%"
  53.  
  54.  
  55. function startup():
  56. clear {cos.pieces::*}
  57. clear {cos.defaultTrue::*}
  58. clear {cos.animationList::*}
  59. add "helmet", "chestplate", "leggings" and "boots" to {cos.pieces::*}
  60. add "Animations.Window", "Animations.Random.Enabled", "Particles.Enabled", "Heads.Enabled", "Suits.Enabled", "Gadgets.Enabled" and "Holograms.Enabled" to {cos.defaultTrue::*}
  61. add "Window" to {cos.animationList::*}
  62.  
  63. if file {@config} doesn't exist:
  64. create file "{@config}"
  65.  
  66. loop {cos.defaultTrue::*}:
  67. set yml value "Cosmetics.%loop-value%" of file "{@config}" to true
  68.  
  69. set yml value "Cosmetics.Animations.Random.DefaultAnimation" of file "{@config}" to "Window"
  70.  
  71. else:
  72. loop {cos.defaultTrue::*}:
  73. if yml value "Cosmetics.%loop-value%" of file "{@config}" is not set:
  74. set yml value "Cosmetics.%loop-value%" of file "{@config}" to true
  75.  
  76. if yml value "Cosmetics.Animationd.Random.DefaultAnimation" of file "{@config}" is not set:
  77. set yml value "Cosmetics.Animations.Random.DefaultAnimation" of file "{@config}" to "Window"
  78.  
  79. getVariables()
  80.  
  81. function deleteVariables(p: Player):
  82. loop {cos.pieces::*}:
  83. delete {cos.edit.%{_p}%.%loop-value%}
  84. delete {cos.edit.%{_p}%.%loop-value%.name}
  85. delete {cos.edit.%{_p}%.%loop-value%.lore::*}
  86. delete {cos.edit.%{_p}%.%loop-value%.ench::*}
  87.  
  88. delete {cosmetics.edit.%{_p}%.helmet.type}
  89. delete {cosmetics.edit.%{_p}%.helmet.player}
  90. delete {cosmetics.edit.%{_p}%.helmet.type}
  91. delete {cosmetics.edit.%{_p}%.helmet.skull}
  92.  
  93. delete {cosmetics.edit.%{_p}%.type}
  94. delete {cosmetics.edit.%{_p}%.current}
  95. delete {cosmetics.edit.%{_p}%.crate}
  96. delete {cosmetics.edit.%{_p}%.pieceText}
  97.  
  98. #-----------------------------------{ Functions / Cosmetics }-----------------------------------
  99. function randomReward(crate: String) :: Item:
  100. set {_rewardList::*} to yml list "Item.List" of file "{@path}/%{_crate}%.yml"
  101. set {_rewardsNames::*} to yml list "Item.ConfigName" of file "{@path}/%{_crate}%.yml"
  102.  
  103. #set {_count} to 1
  104. loop {_rewardList::*}:
  105. if yml value "Item.Chance.%{_rewardsNames::%{_count}%}%" of file "{@path}/%{_crate}%.yml" is set:
  106. set {_chance} to yml value "Item.Chance.%{_rewardsNames::%loop-index%}%" of file "{@path}/%{_crate}%.yml" parsed as a string
  107.  
  108. if ({_chance} parsed as a number) is set:
  109. loop ({_chance} parsed as a number) times:
  110. add "%loop-value-1% [{$^^$}] %{_rewardsNames::%loop-index%}%" to {_rewards::*}
  111.  
  112. else:
  113. send "%nl%%{lobby.logo.Lobby}% &c%{_chance}% &4is not a number!%nl%" to console
  114.  
  115. #add 1 to {_count}
  116.  
  117. set {_length} to size of {_rewards::*}
  118. set {_prizeNumber} to a random integer between 0 and {_length}
  119. set {_splitPrize::*} to {_rewards::%{_prizeNumber}%} split at " [{$^^$}] "
  120.  
  121. set {_prize} to {_splitPrize::1}
  122. set {_prizeCName} to {_splitPrize::2}
  123.  
  124. if ({_prize} parsed as an item) is not set:
  125. send "%{lobby.logo.Lobby}% &c%{_prize}% &4is not an item! Stopping opening the crate!" to console
  126.  
  127. else:
  128. set {_prize} to {_prize} parsed as an item
  129.  
  130. if yml value "Item.Name.%{_prizeCName}%" of file "{@path}/%{_crate}%.yml" is set:
  131. set {_prizeName} to yml value "Item.Name.%{_prizeCName}%" of file "{@path}/%{_crate}%.yml"
  132. set {_prizeName} to "%colored {_prizeName}%"
  133. set name of {_prize} to "&f%{_prizeName}%"
  134.  
  135. if yml value "Item.Amount.%{_prizeCName}%" of file "{@path}/%{_crate}%.yml" is set:
  136. set {_prizeAmount} to yml value "Item.Amount.%{_prizeCName}%" of file "{@path}/%{_crate}%.yml"
  137. set {_prizeAmount} to ({_prizeAmount} parsed as a number)
  138. if {_prizeAmount} is set:
  139. set {_prize} to ("%{_prizeAmount}% %{_prize}%" parsed as an item)
  140.  
  141. else:
  142. send "%{lobby.logo.Lobby}% &c%{_prizeAmount}% &4is not a number!" to console
  143. set {_prize} to ("1 %{_prize}%" parsed as an item)
  144.  
  145. if yml value "Item.Lore.%{_prizeCName}%" of file "{@path}/%{_crate}%.yml" is set:
  146. set {_loreList::*} to yml list "Item.Lore.%{_prizeCName}%" of file "{@path}/%{_crate}%.yml"
  147. loop {_loreList::*}:
  148. if {_lore} is not set:
  149. set {_lore} to "%loop-value%"
  150. else:
  151. set {_lore} to "%{_lore}%||%loop-value%"
  152.  
  153. set lore of {_prize} to {_lore}
  154.  
  155.  
  156. if yml value "Item.Enchants.%{_prizeCName}%" of file "{@path}/%{_crate}%.yml" is set:
  157. set {_enchantList::*} to yml list "Item.Enchants.%{_prizeCName}%" of file "{@path}/%{_crate}%.yml"
  158. loop {_enchantList::*}:
  159. set {_ench} to "%loop-value%"
  160. set {_split::*} to {_ench} split at ""
  161.  
  162. if contains({_split::*}, ":") is true:
  163. set {_eSplit::*} to {_ench} split at ":"
  164. set {_ench1} to {_eSplit::1}
  165. set {_ench2} to {_eSplit::2}
  166.  
  167. if ({_ench1} parsed as an enchantment type) is set:
  168. if ({_ench2} parsed as a number) is set:
  169. enchant {_prize} with "%{_ench1}% %{_ench2}%" parsed as an enchantment type
  170. set name of {_prize} to "&b%{_prizeName}%"
  171. else:
  172. send "%nl%%{lobby.logo.Lobby}% &c%{_s2}% &4is not a number!%nl%" to console
  173. else:
  174. send "%nl%%{lobby.logo.Lobby}% &c%{_s1}% &4is not an enchantment type!%nl%" to console
  175.  
  176. else:
  177. if (loop-value parsed as an enchantment type) is set:
  178. enchant {_prize} with "%loop-value% 1" parsed as an enchantment type
  179.  
  180. else:
  181. send "%{lobby.logo.Lobby}% &c%loop-value% &4is not an enchantment type!" to console
  182.  
  183. return {_prize}
  184.  
  185. function animation_window(p: Player, count: Integer, count2: Integer) :: boolean:
  186. loop 9 times:
  187. if {crates.reopening.%{_p}%} is true:
  188. delete {crates.reopening.%{_p}%}
  189. clear {crate.%{_p}%.inv::*}
  190. clear {crate.%{_p}%.name}
  191.  
  192. if {crates.closed.%{_p}%} is true:
  193. if {_count} = {_count2}-18:
  194. set {crate.%{_p}%.inv::%{_count}%} to "light green glass"
  195. set {crate.%{_p}%.inv::%{_count2}%} to "light green glass"
  196. else:
  197. set {crate.%{_p}%.inv::%{_count}%} to "gray glass"
  198. set {crate.%{_p}%.inv::%{_count2}%} to "gray glass"
  199.  
  200. else:
  201. if {_count} = {_count2}-18:
  202. format slot {_count} of {_p} with light green stained glass pane to do nothing
  203. format slot {_count2} of {_p} with light green stained glass pane to do nothing
  204.  
  205. else:
  206. format slot {_count} of {_p} with gray stained glass pane to do nothing
  207. format slot {_count2} of {_p} with gray stained glass pane to do nothing
  208.  
  209. add 1 to {_count}
  210. remove 1 from {_count2}
  211. wait 5 ticks
  212.  
  213. set {animation.%{_p}%} to false
  214.  
  215. function runAnimation(p: Player, animation: Integer, count: Integer, count2: Integer, forced: Boolean):
  216. if {_animation} is 1:
  217. if {_forced} is false:
  218. if {@window1} is true:
  219. animation_window({_p}, {_count}, {_count2})
  220. set {animation.%{_p}%} to true
  221. else:
  222. animation_window({_p}, {_count}, {_count2})
  223. set {animation.%{_p}%} to true
  224.  
  225.  
  226. function openCrate(p: Player, crate: String):
  227. if {keys.%{_p}%.%{_crate}%} > 0:
  228. open chest with 3 rows named "&2%{_crate}%" to {_p}
  229.  
  230. set {crates.opening.%{_p}%} to true
  231.  
  232. #Value to wait for animation
  233. set {animation.%{_p}%} to false
  234. set {_count} to 0
  235. set {_count2} to 26
  236.  
  237.  
  238. #Animations
  239. set {_random} to randomReward({_crate})
  240.  
  241. if {cos.randomAnimation} is true:
  242. set {_animationNumber} to a random integer between 0 and 1
  243. else:
  244. set {_animation} to yml value "Lobby.Crates.Animations.Random.DisabledAnimation" of file "{@config}"
  245.  
  246. if {_animation} is "Window1":
  247. set {_animationNumber} to 1
  248.  
  249. else:
  250. send "%{lobby.logo.Lobby}% &4The animation &c%{_animation}% &4doesn't exist! Running Window1 as animation!" to console
  251. set {_animationNumber} to 1
  252.  
  253.  
  254. runAnimation({_p}, {_animationNumber}, {_count}, {_count2}, false)
  255.  
  256. if {animation.%{_p}%} is false:
  257. runAnimation({_p}, 1, {_count}, {_count2}, true)
  258.  
  259. while {animation.%{_p}%} is true:
  260. wait 1 tick
  261.  
  262.  
  263. delete {animation.%{_p}%}
  264.  
  265. format slot 13 of {_p} with {_random} to be unstealable
  266. play sound "ENTITY_PLAYER_LEVELUP" with volume 10 and pitch 5 at {_p} for all players
  267.  
  268. delete {crates.closed.%{_p}%}
  269. remove {_p} from {crates.openinglist::*}
  270. delete {crate.%{_p}%.inv::*}
  271. delete {crate.%{_p}%.name}
  272. delete {crates.opening.%{_p}%}
  273. remove 1 from {keys.%{_p}%.%{_crate}%}
  274. set {_name} to name of {_random}
  275.  
  276. launch ball coloured aqua and blue at {_p}'s location timed 0.9
  277. give {_p} {_random}
  278. send "%{lobby.logo.Lobby}% %{lobby.arcatedColor.Lobby}%You've won %{lobby.arcatedColor.Lobby}%%{_name}%%{lobby.chatColor.Lobby}%!" to {_p}
  279.  
  280. else:
  281. send "%{lobby.logo.Lobby}% %{lobby.arcatedColor.Lobby}%You don't have anough keys to do this!" to {_p}
  282. play sound "ENTITY.ITEM.BREAK" with volume 10 and pitch 1 at {_p} for {_p}
  283.  
  284. #-----------------------------------{ Functions / SetupCosmetic }-----------------------------------
  285. function setHeadType(p: Player, nbt: String, name: String):
  286. play sound "BLOCK_NOTE_PLING" with volume 10 and pitch 1 at {_p} for {_p}
  287. set {cosmetics.edit.%{_p}%} to "go_back"
  288. close {_p}'s inventory
  289. delete {cosmetics.edit.%{_p}%}
  290. set {cosmetics.edit.%{_p}%.helmet.player} to "%{_nbt}%"
  291. set {cosmetics.edit.%{_p}%.helmet.name} to "%{_name}%"
  292. editPiece({_p}, "helmet", "Helmet", {cosmetics.edit.%{_p}%.type})
  293.  
  294. function editCosFormat(p: Player, , piece: String, pieceText: String) :: item:
  295. set {_item} to ("barrier" parsed as an item)
  296.  
  297. if {cosmetics.edit.%{_p}%.%{_piece}%} is set:
  298.  
  299. if ("%{cosmetics.edit.%{_p}%.%{_piece}%}%" parsed as an item type) is set:
  300. set {_item} to ("%{cosmetics.edit.%{_p}%.%{_piece}%}%" parsed as an item)
  301.  
  302. else if {_piece} is "helmet":
  303. set {_headType} to "%{cosmetics.edit.%{_p}%.%{_piece}%}%"
  304. if contains(({_headType} split at " "), "head"):
  305. set {_item} to head
  306.  
  307. if {cosmetics.edit.%{_p}%.%{_piece}%.name} is set:
  308. set name of {_item} to "%{cosmetics.edit.%{_p}%.%{_piece}%.name}%"
  309.  
  310. else:
  311. set name of {_item} to "&2%{_pieceText}%"
  312.  
  313. if {cosmetics.edit.%{_p}%.%{_piece}%.lore} is set:
  314. set lore of {_item} to {cosmetics.edit.%{_p}%.%{_piece}%.lore}
  315.  
  316. else:
  317. set name of {_item} to "&4%{_pieceText}%"
  318.  
  319. return {_item}
  320.  
  321. function runEditPiece(p: Player, type: String, closeType: String, piece: String, pieceText: String):
  322. set {cosmetics.edit.%{_p}%} to "%{_closeType}%"
  323. close {_p}'s inventory
  324. delete {cosmetics.edit.%{_p}%}
  325. set {cosmetics.edit.%{_p}%.helmet.type} to "%{_type}%"
  326. editPiece({_p}, "%{_piece}%", "%{_pieceText}%", {cosmetics.edit.%{_p}%.type})
  327.  
  328.  
  329. function setSkullType(p: Player):
  330. wait 2 tick
  331. open chest with 3 rows named "&8Choose Type" to {_p}
  332.  
  333. if {cosmetics.edit.%{_p}%.helmet.type} is "Player":
  334. set {_player} to skull of ("MHF_Steve" parsed as an offline player) named "&2Player"
  335. set {_mob} to skull of ("MHF_CaveSpider" parsed as an offline player) named "&4Mob"
  336.  
  337. else if {cosmetics.edit.%{_p}%.helmet.type} is "Mob":
  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 "&2Mob"
  340.  
  341. else:
  342. set {_player} to skull of ("MHF_Steve" parsed as an offline player) named "&4Player"
  343. set {_mob} to skull of ("MHF_CaveSpider" parsed as an offline player) named "&4Mob"
  344.  
  345.  
  346. format slot 12 of {_p} with {_player} to execute [function runEditPiece({_p}, "go_back", "Player", "helmet", "Helmet")]
  347.  
  348. format slot 14 of {_p} with {_mob} to execute [function runEditPiece({_p}, "go_back", "Mob", "helmet", "Helmet")]
  349.  
  350.  
  351. format slot 18 of {_p} with arrow named "&c<< Go Back" to execute [function runEditPiece({_p}, "go_back", {cosmetics.edit.%{_p}%.helmet.type}, "helmet", "Helmet")]:
  352. #set {cosmetics.edit.%{_p}%} to "go_back"
  353. #close {_p}'s inventory
  354. #delete {cosmetics.edit.%{_p}%}
  355. #editPiece({_p}, "helmet", "Helmet", {cosmetics.edit.%{_p}%.type})
  356.  
  357.  
  358. function setSkullOwnerMob(p: Player, page: Integer):
  359. wait 1 tick
  360. open chest with 3 rows named "&8Edit SkullOwner" to {_p}
  361.  
  362. if {_page} is 1:
  363. format gui slot 26 of {_p} with an arrow named "&cNext Page >>" to run:
  364. set {cosmetics.edit.%{_p}%} to "go_back"
  365. close {_p}'s inventory
  366. delete {cosmetics.edit.%{_p}%}
  367. setSkullOwnerMob({_p}, 2)
  368.  
  369. 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")
  370. 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")
  371. 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")
  372. 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")
  373. 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")
  374. 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")
  375. 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")
  376. 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")
  377. 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")
  378.  
  379. 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")
  380. 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")
  381. 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")
  382. 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")
  383. 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")
  384. 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")
  385. 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")
  386. 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")
  387. 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")
  388.  
  389.  
  390. else if {_page} is 2:
  391. format gui slot 18 of {_p} with an arrow named "&c<< Page Back" to run:
  392. set {cosmetics.edit.%{_p}%} to "go_back"
  393. close {_p}'s inventory
  394. delete {cosmetics.edit.%{_p}%}
  395. setSkullOwnerMob({_p}, 1)
  396.  
  397. 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")
  398. 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")
  399. 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")
  400. 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")
  401. 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")
  402. 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")
  403. 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")
  404. 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")
  405. 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")
  406.  
  407. 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")
  408. 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")
  409. 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")
  410. 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")
  411. 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")
  412. 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")
  413. 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")
  414. 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")
  415. 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")
  416.  
  417.  
  418. format gui slot 26 of {_p} with an arrow named "&cNext Page >>" to run:
  419. set {cosmetics.edit.%{_p}%} to "go_back"
  420. close {_p}'s inventory
  421. delete {cosmetics.edit.%{_p}%}
  422. setSkullOwnerMob({_p}, 3)
  423.  
  424. else if {_page} is 3:
  425. format gui slot 18 of {_p} with an arrow named "&c<< Page Back" to run:
  426. set {cosmetics.edit.%{_p}%} to "go_back"
  427. close {_p}'s inventory
  428. delete {cosmetics.edit.%{_p}%}
  429. setSkullOwnerMob({_p}, 2)
  430.  
  431. 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")
  432. 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")
  433. 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")
  434. 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")
  435. 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")
  436. 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")
  437. 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")
  438.  
  439.  
  440. format gui slot 22 of {_p} with a barrier named "&4Go Back" to run:
  441. set {cosmetics.edit.%{_p}%} to "go_back"
  442. close {_p}'s inventory
  443. delete {cosmetics.edit.%{_p}%}
  444. editPiece({_p}, "helmet", "Helmet", {cosmetics.edit.%{_p}%.type})
  445.  
  446.  
  447.  
  448.  
  449.  
  450.  
  451. function editCos(p: Player, type: String):
  452. wait 2 tick
  453. set {cosmetics.edit.%{_p}%.type} to {_type}
  454. open chest with 1 rows named "&8Choose Category" to {_p}
  455.  
  456. set {_count} to 0
  457. if {@particles} is true:
  458. format gui slot {_count} of {_p} with redstone named "&cParticle" to do nothing
  459. add 1 to {_count}
  460.  
  461. if {@heads} is true:
  462. format gui slot {_count} of {_p} with skull of {_p} named "&2Heads" to do nothing
  463. add 1 to {_count}
  464.  
  465. if {@suits} is true:
  466. format gui slot {_count} of {_p} with golden helmet named "&5Suits" to close then run function editSuit({_p}, {_type})
  467. add 1 to {_count}
  468.  
  469. if {@gadgets} is true:
  470. format gui slot {_count} of {_p} with fire charge named "&bGadgets" to do nothing
  471. add 1 to {_count}
  472.  
  473. if {_count} is 0:
  474. format gui slot 0 of {_p} with barrier named "&4None Enabled" to close
  475.  
  476. function editSuit(p: Player, type: String):
  477. #=========== Variables ===========
  478. set {cosmetics.edit.%{_p}%.type} to {_type}
  479.  
  480. if {cosmetics.edit.%{_p}%.crate} is not set:
  481. set {cosmetics.edit.%{_p}%.crate} to ""
  482.  
  483. if {cosmetics.edit.%{_p}%.helmet} is not set:
  484. set {_helmet} to editCosFormat({_p}, "helmet", "Helmet")
  485.  
  486. else:
  487. set {_helmet} to {cosmetics.edit.%{_p}%.helmet}
  488.  
  489. if {cosmetics.edit.%{_p}%.chestplate} is not set:
  490. set {_chestplate} to editCosFormat({_p}, "chestplate", "Chestplate")
  491.  
  492. else:
  493. set {_chestplate} to {cosmetics.edit.%{_p}%.chestplate}
  494.  
  495. if {cosmetics.edit.%{_p}%.leggings} is not set:
  496. set {_leggings} to editCosFormat({_p}, "leggings", "Leggings")
  497.  
  498. else:
  499. set {_leggings} to {cosmetics.edit.%{_p}%.leggings}
  500.  
  501. if {cosmetics.edit.%{_p}%.boots} is not set:
  502. set {_boots} to editCosFormat({_p}, "boots", "Boots")
  503.  
  504. else:
  505. set {_boots} to {cosmetics.edit.%{_p}%.boots}
  506.  
  507.  
  508. set {_save} to true
  509. if {cosmetics.edit.%{_p}%.type} or {cosmetics.edit.%{_p}%.crate} is "":
  510. set {_save} to false
  511.  
  512. else if {_helmet} and {_chestplate} and {_leggings} and {_boots} is barrier:
  513. set {_save} to false
  514.  
  515. #=========== GUI ===========
  516. #Item doesn't show the proper name
  517.  
  518. open chest with 6 rows named "&8Edit" to {_p}
  519.  
  520. if {cosmetics.edit.%{_p}%.type} is "":
  521. format gui slot 22 of {_p} with a paper named "&7Type: &c<none>" to run:
  522. set {cosmetics.edit.%{_p}%} to "setType"
  523. close {_p}'s inventory
  524. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Type the new type of your set in the chat" to {_p}
  525.  
  526. else:
  527. format gui slot 22 of {_p} with a paper named "&7Type: &e%{cosmetics.edit.%{_p}%.type}%" to run:
  528. close {_p}'s inventory
  529. set {cosmetics.edit.%{_p}%} to "setType"
  530. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Type the new type of your set in the chat" to {_p}
  531.  
  532. if {cosmetics.edit.%{_p}%.crate} is "":
  533. format gui slot 31 of {_p} with a chest named "&7Crate: &c<none>" to run:
  534. set {cosmetics.edit.%{_p}%} to "setCrate"
  535. close {_p}'s inventory
  536. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Type the new crate of your set in the chat" to {_p}
  537. else:
  538. format gui slot 31 of {_p} with a chest named "&7Crate: &e%{cosmetics.edit.%{_p}%.crate}%" to run:
  539. set {cosmetics.edit.%{_p}%} to "setCrate"
  540. close {_p}'s inventory
  541. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Type the new crate of your set in the chat" to {_p}
  542.  
  543.  
  544.  
  545. format gui slot 10 of {_p} with {_helmet} to run:
  546. set {cosmetics.edit.%{_p}%} to "helmet"
  547. close {_p}'s inventory
  548. delete {cosmetics.edit.%{_p}%}
  549. editPiece({_p}, "helmet", "Helmet", {cosmetics.edit.%{_p}%.type})
  550.  
  551. format gui slot 19 of {_p} with {_chestplate} to run:
  552. set {cosmetics.edit.%{_p}%} to "chestplate"
  553. close {_p}'s inventory
  554. delete {cosmetics.edit.%{_p}%}
  555. editPiece({_p}, "chestplate", "Chestplate", {cosmetics.edit.%{_p}%.type})
  556.  
  557. format gui slot 28 of {_p} with {_leggings} to run:
  558. set {cosmetics.edit.%{_p}%} to "leggings"
  559. close {_p}'s inventory
  560. delete {cosmetics.edit.%{_p}%}
  561. editPiece({_p}, "leggings", "Leggings", {cosmetics.edit.%{_p}%.type})
  562.  
  563.  
  564. format gui slot 37 of {_p} with {_boots} to run:
  565. set {cosmetics.edit.%{_p}%} to "boots"
  566. close {_p}'s inventory
  567. delete {cosmetics.edit.%{_p}%}
  568. editPiece({_p}, "boots", "Boots", {cosmetics.edit.%{_p}%.type})
  569.  
  570. if {_save}:
  571. format gui slot 53 of {_p} with green wool named "&2Save" to run:
  572. close {_p}'s inventory
  573. #Save function
  574.  
  575. else:
  576. format gui slot 53 of {_p} with red wool named "&4Save not possible" to do nothing
  577.  
  578.  
  579.  
  580. function editPiece(p: Player, piece: String, pieceText: String, type: String):
  581. wait 2 tick
  582.  
  583. #=========== Variables ===========
  584. set {cosmetics.edit.%{_p}%.current} to "%{_piece}%"
  585. set {cosmetics.edit.%{_p}%.pieceText} to "%{_pieceText}%"
  586. set {_displayItem} to editCosFormat({_p}, "%{_piece}%", "%{_pieceText}%")
  587.  
  588. if {cosmetics.edit.%{_p}%.%{_piece}%} is not set:
  589. set {_item} to an item frame named "&7Item: &c<none>"
  590.  
  591. else if {cosmetics.edit.%{_p}%.%{_piece}%} is "":
  592. set {_item} to an item frame named "&7Item: &c<none>"
  593.  
  594. else if {cosmetics.edit.%{_p}%.%{_piece}%} is barrier:
  595. set {_item} to an item frame named "&7Item: &c<none>"
  596.  
  597. else:
  598. set {_item} to an item frame named "&7Item: &2%{cosmetics.edit.%{_p}%.%{_piece}%}%"
  599.  
  600. if {cosmetics.edit.%{_p}%.%{_piece}%.name} is not set:
  601. set {cosmetics.edit.%{_p}%.%{_piece}%.displayName} to ""
  602.  
  603. if {cosmetics.edit.%{_p}%.%{_piece}%.name} is "":
  604. set {cosmetics.edit.%{_p}%.%{_piece}%.displayName} to ""
  605.  
  606. if {cosmetics.edit.%{_p}%.%{_piece}%.displayName} is "":
  607. if {_displayItem} is barrier:
  608. set {_itemName} to "&4%{_pieceText}%"
  609.  
  610. else:
  611. set {_itemName} to "&2%{_pieceText}%"
  612.  
  613. else:
  614. set {_itemName} to {cosmetics.edit.%{_p}%.%{_piece}%.name}
  615.  
  616. if {cosmetics.edit.%{_p}%.%{_piece}%.name} is not set:
  617. set {_itemName2} to "&c<none>"
  618.  
  619. if {cosmetics.edit.%{_p}%.%{_piece}%.name} is "":
  620. set {_itemName2} to "&c<none>"
  621.  
  622. else:
  623. set {_itemName2} to {cosmetics.edit.%{_p}%.%{_piece}%.name}
  624.  
  625. set {cosmetics.edit.%{_p}%.%{_piece}%} to {_displayItem}
  626.  
  627. replace all "&" in {_itemName} with "§"
  628. replace all "&" in {_itemName2} with "§"
  629.  
  630. set {_nameItem} to a paper named "&7Name: &e%{_itemName2}%"
  631. set name of {_displayItem} to {_itemName2}
  632.  
  633. #=========== GUI ===========
  634. open chest with 3 rows named "&8Edit %{_pieceText}%" to {_p}
  635.  
  636. #Display from your created item
  637.  
  638. #item, name, enchantment and lore (lore || -> new line (also in message!!!))
  639.  
  640. if {_piece} is "helmet":
  641. set {_string} to "%{cosmetics.edit.%{_p}%.helmet}%"
  642. set {_split::*} to {_string} split at " "
  643.  
  644. if contains({_split::*}, "head"):
  645. if {cosmetics.edit.%{_p}%.helmet.type} is set:
  646. set {_changeType} to a redstone torch on named "&7Skull Type: &e%{cosmetics.edit.%{_p}%.helmet.type}%"
  647.  
  648. else:
  649. set {_changeType} to a redstone torch on named "&7Skull Type: &c<none>"
  650.  
  651. if {cosmetics.edit.%{_p}%.helmet.player} is set:
  652. if {cosmetics.edit.%{_p}%.helmet.type} is "Mob":
  653. set {cosmetics.edit.%{_p}%.helmet.skull} to skull of "%{_p}%" parsed as an offline player with nbt "%{cosmetics.edit.%{_p}%.helmet.player}%" named "&7Skull Owner: &e%{cosmetics.edit.%{_p}%.helmet.name}%"
  654. set {_displayItem} to skull of "%{_p}%" parsed as an offline player with nbt "%{cosmetics.edit.%{_p}%.helmet.player}%" named "&f%{cosmetics.edit.%{_p}%.helmet.name}%"
  655. set {cosmetics.edit.%{_p}%.helmet} to {_displayItem}
  656.  
  657. else if {cosmetics.edit.%{_p}%.helmet.type} is "Player":
  658. set {cosmetics.edit.%{_p}%.helmet.skull} to skull of "%{cosmetics.edit.%{_p}%.helmet.player}%" parsed as an offline player named "&7Skull Owner: &e%{cosmetics.edit.%{_p}%.helmet.player}%"
  659. set {_displayItem} to skull of "%{_p}%" parsed as an offline player with nbt "%{cosmetics.edit.%{_p}%.helmet.player}%" named "&f%{cosmetics.edit.%{_p}%.helmet.name}%"
  660. set {cosmetics.edit.%{_p}%.helmet} to {_displayItem}
  661.  
  662. else:
  663. set {cosmetics.edit.%{_p}%.helmet.skull} to skull of ("MHF_Steve" parsed as an offline player) named "&7Skull Owner: &c<none>"
  664.  
  665. format gui slot 1 of {_p} with {_changeType} to run:
  666. set {cosmetics.edit.%{_p}%} to "go_back"
  667. close {_p}'s inventory
  668. delete {cosmetics.edit.%{_p}%}
  669. setSkullType({_p})
  670.  
  671. format gui slot 19 of {_p} with {cosmetics.edit.%{_p}%.helmet.skull} to run:
  672. if {cosmetics.edit.%{_p}%.helmet.type} is "Player":
  673. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Type the name of the player of your skull in the chat" to {_p}
  674. set {cosmetics.edit.%{_p}%} to "setSkullOwner"
  675. close {_p}'s inventory
  676.  
  677. else if {cosmetics.edit.%{_p}%.helmet.type} is "Mob":
  678. set {cosmetics.edit.%{_p}%} to "go_back"
  679. close {_p}'s inventory
  680. delete {cosmetics.edit.%{_p}%}
  681. setSkullOwnerMob({_p}, 1)
  682.  
  683. if {cosmetics.edit.%{_p}%.helmet.type} is not "Mob" and "Player":
  684.  
  685.  
  686. format gui slot 18 of {_p} with arrow named "&c<< Go Back" to run:
  687. set {cosmetics.edit.%{_p}%} to "go_back"
  688. close {_p}'s inventory
  689. delete {cosmetics.edit.%{_p}%}
  690. editSuit({_p}, {_type})
  691.  
  692.  
  693. format gui slot 12 of {_p} with {_item} to run:
  694. set {cosmetics.edit.%{_p}%} to "set%{_pieceText}%Item"
  695. close {_p}'s inventory
  696. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Type the %{lobby.arcatedColor.Lobby}%%{_piece}% %{lobby.chatColor.Lobby}%type in the chat" to {_p}
  697.  
  698. format gui slot 13 of {_p} with {_nameItem} to run:
  699. set {cosmetics.edit.%{_p}%} to "set%{_pieceText}%Name"
  700. close {_p}'s inventory
  701. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Type the %{lobby.arcatedColor.Lobby}%%{_piece}% %{lobby.chatColor.Lobby}%name in the chat" to {_p}
  702.  
  703.  
  704. format gui slot 10 of {_p} with {_displayItem} to do nothing
  705.  
  706.  
  707.  
  708. #-----------------------------------{ Events }-----------------------------------
  709. on enable:
  710. if file "{@config}" doesn't exist:
  711. create file "{@config}"
  712.  
  713. set yml value "Lobby.Crates.Animations.Window1" of file "Files/Lobby/config.yml" to true
  714. set yml value "Lobby.Crates.Animations.Random.Enabled" of file "Files/Lobby/config.yml" to true
  715. set yml value "Lobby.Crates.Animations.Random.DisabledAnimation" of file "Files/Lobby/config.yml" to "Window1"
  716. set yml value "Lobby.Crates.Particles.Enabled" of file "Files/Lobby/config.yml" to true
  717. set yml value "Lobby.Crates.Heads.Enabled" of file "Files/Lobby/config.yml" to true
  718. set yml value "Lobby.Crates.Suits.Enabled" of file "Files/Lobby/config.yml" to true
  719. set yml value "Lobby.Crates.Gadgets.Enabled" of file "Files/Lobby/config.yml" to true
  720.  
  721. else:
  722. if yml value "Lobby.Crates.Animations.Window1" of file "Files/Lobby/config.yml" is not set:
  723. set yml value "Lobby.Crates.Animations.Window1" of file "Files/Lobby/config.yml" to true
  724. if yml value "Lobby.Crates.Animations.Random.Enabled" of file "Files/Lobby/config.yml" is not set:
  725. set yml value "Lobby.Crates.Animations.Random.Enabled" of file "Files/Lobby/config.yml" to true
  726. if yml value "Lobby.Crates.Animations.Random.DisabledAnimation" of file "Files/Lobby/config.yml" is not set:
  727. set yml value "Lobby.Crates.Animations.Random.DisabledAnimation" of file "Files/Lobby/config.yml" to "Window1"
  728.  
  729. if yml value "Lobby.Crates.Particles.Enabled" of file "Files/Lobby/config.yml" is not set:
  730. set yml value "Lobby.Crates.Particles.Enabled" of file "Files/Lobby/config.yml" to true
  731. if yml value "Lobby.Crates.Heads.Enabled" of file "Files/Lobby/config.yml" is not set:
  732. set yml value "Lobby.Crates.Heads.Enabled" of file "Files/Lobby/config.yml" to true
  733. if yml value "Lobby.Crates.Suits.Enabled" of file "Files/Lobby/config.yml" is not set:
  734. set yml value "Lobby.Crates.Suits.Enabled" of file "Files/Lobby/config.yml" to true
  735. if yml value "Lobby.Crates.Gadgets.Enabled" of file "Files/Lobby/config.yml" is not set:
  736. set yml value "Lobby.Crates.Gadgets.Enabled" of file "Files/Lobby/config.yml" to true
  737.  
  738. set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
  739.  
  740. loop {_list::*}:
  741. set {_world} to world of {lobby.location}
  742. loop {lobbycr.%loop-value%.location::*}:
  743. set {holo-crate-%{_world}%-%loop-value-2%} to a new hologram at block above loop-value-2
  744. add text "&a&l%loop-value-1%" to hologram {holo-crate-%{_world}%-%loop-value-2%}
  745.  
  746. on disable:
  747. set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
  748. set {_world} to world of {lobby.location}
  749.  
  750. loop {_list::*}:
  751. delete yml list "Locations" of file "{@path}/%loop-value%.yml"
  752. loop {lobbycr.%loop-value%.location::*}:
  753. add "%loop-value-2%" to yml list "Locations" of file "{@path}/%loop-value-1%.yml"
  754. unregister hologram {holo-crate-%{_world}%-%loop-value-2%}
  755.  
  756. loop {crates.openinglist::*}:
  757. clear {crates.opening.%loop-value%}
  758. clear {crates.%loop-value%.inv::*}
  759. clear {crates.%loop-value%.name}
  760. clear {crate.closed.%loop-value%}
  761.  
  762. clear {crates.openinglist::*}
  763.  
  764.  
  765. on quit:
  766. if {crates.opening.%player%} is set:
  767. clear {crates.opening.%player%}
  768. clear {crates.%player%.inv::*}
  769. clear {crates.%player%.name}
  770. clear {crates.closed.%player%}
  771. remove player from {crates.openinglist::*}
  772.  
  773. deleteVariables(player)
  774.  
  775. on command:
  776. if command doesn't ends with "pl":
  777. if command doesn't ends with "plugins":
  778. set {cmd} to "%command to lower case%"
  779.  
  780.  
  781. on place of chest:
  782. set {_world} to world of event-block
  783. if {_world} is world of {lobby.location}:
  784. set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
  785. if contains({_list::*}, "%uncolored name of player's tool%"):
  786.  
  787. add location of block at event-block to {lobbycr.%uncolored name of player's tool%.location::*}
  788. add world of event-block to {lobbycr.%uncolored name of player's tool%.world::*}
  789.  
  790. set {holo-crate-%world of event-block%-%location of event-block%} to new hologram at location 1 meters above event-block
  791. add text "&a&l%uncolored name of player's tool%" to hologram {holo-crate-%world of event-block%-%location of event-block%}
  792. add "%location of block at event-block%" to yml list "Locations" of file "{@path}/%uncolored name of player's tool%.yml"
  793.  
  794. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Succesfully created a %{lobby.arcatedColor.Lobby}%%uncolored name of player's tool% %{lobby.chatColor.Lobby}%Crate!"
  795.  
  796. on break of chest:
  797. set {_world} to world of event-block
  798. if {_world} is world of {lobby.location}:
  799. set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
  800. loop {_list::*}:
  801. loop {lobbycr.%loop-value-1%.location::*}:
  802. if loop-value-2 is location of event-block:
  803. remove location of block at event-block from {lobbycr.%loop-value-1%.location::*}
  804. remove world of event-block from {lobbycr.%loop-value-1%.world::*}
  805.  
  806. unregister hologram {holo-crate-%world of event-block%-%location of event-block%}
  807. delete {holo-crate-%world of event-block%-%location of event-block%}
  808. remove "%location of event-block%" from yml list "Locations" of file "{@path}/%loop-value-1%.yml"
  809.  
  810. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Succesfully removed a %{lobby.arcatedColor.Lobby}%%loop-value-1% %{lobby.chatColor.Lobby}%Crate!"
  811.  
  812. on rightclick on a chest:
  813. set {_world} to world of clicked block
  814. if {_world} is "%world of {lobby.location}%":
  815.  
  816. set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
  817. loop {_list::*}:
  818.  
  819. loop {lobbycr.%loop-value-1%.location::*}:
  820. if "%loop-value-2%" is "%location of clicked block%":
  821. cancel event
  822. if "%uncolored {crate.%player%.name}%" = loop-value-1:
  823. if {crates.opening.%player%} is true:
  824. open chest with 3 rows named "&2%{crate.%player%.name}%" to player
  825.  
  826. set {crates.reopening.%player%} to true
  827. set {_count} to 0
  828. loop 27 times:
  829. if {crate.%player%.inv::%{_count}%} is set:
  830. set {_value} to "%{crate.%player%.inv::%{_count}%}%"
  831. set {_color::*} to {_value} split at " "
  832.  
  833. if contains({_color::*}, "glass") is true:
  834. if contains({_color::*}, "light") is true:
  835. format gui slot {_count} of player with ("light %{_color::2}% stained glass pane" parsed as an item) to do nothing
  836.  
  837. else if contains({_color::*}, "dark") is true:
  838. format gui slot {_count} of player with ("dark %{_color::2}% stained glass pane" parsed as an item) to do nothing
  839.  
  840. else:
  841. format gui slot {_count} of player with ("%{_color::1}% stained glass pane" parsed as an item) to do nothing
  842.  
  843. else:
  844. format gui slot {_count} of player with ({crate.%player%.inv::%{_count}%} parsed as an item) to do nothing
  845.  
  846.  
  847. add 1 to {_count}
  848.  
  849. delete {crates.closed.%player%}
  850. delete {crates.openinglist::*}
  851. delete {crate.%player%.inv::*}
  852. delete {crate.%player%.name}
  853.  
  854.  
  855. else:
  856. open chest with 3 rows named "&2%loop-value-1%" to player
  857. 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%")
  858. stop loop
  859. else:
  860. open chest with 3 rows named "&2%loop-value-1%" to player
  861. 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%")
  862. stop loop
  863.  
  864. on inventory close:
  865. if {crates.opening.%player%} is true:
  866. set {crates.closed.%player%} to true
  867. add player to {crates.openinglist::*}
  868. clear {crate.%player%.inv::*}
  869. set {crate.%player%.name} to name of player's current inventory
  870. set {_count} to 0
  871.  
  872.  
  873. loop 27 times:
  874. set {crate.%player%.inv::%{_count}%} to slot {_count} of player's current inventory
  875. add 1 to {_count}
  876.  
  877. else if {crates.opening.%player%} is set:
  878. delete {crates.opening.%player%}
  879.  
  880. 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":
  881. if {cosmetics.edit.%player%} is not set:
  882. deleteVariables(player)
  883.  
  884.  
  885.  
  886. on chat:
  887. if {cosmetics.edit.%player%} is set:
  888. cancel event
  889.  
  890. if {cosmetics.edit.%player%} is "set%{cosmetics.edit.%player%.pieceText}%Item":
  891. if "%message%" is "cancel":
  892. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Cancelled setting the %{lobby.arcatedColor.Lobby}%%{cosmetics.edit.%player%.pieceText} to lower case%%{lobby.chatColor.Lobby}%."
  893. editPiece(player, {cosmetics.edit.%player%.current}, {cosmetics.edit.%player%.pieceText}, {cosmetics.edit.%player%.type})
  894. delete {cosmetics.edit.%player%}
  895.  
  896. else if "%message%" parsed as an item type is not set:
  897. send "%{lobby.logo.Lobby}% %{lobby.arcatedColor.Lobby}%%message% %{lobby.chatColor.Lobby}%is not a a %{lobby.arcatedColor.Lobby}%%{cosmetics.edit.%player%.pieceText} to lower case%%{lobby.chatColor.Lobby}%!"
  898.  
  899. else:
  900. if {cosmetics.edit.%player%.type} is not set:
  901. set {cosmetics.edit.%player%.type} to ""
  902.  
  903. set {_var} to "%message%"
  904. replace all " " in {_var} with "_"
  905.  
  906. if {_var} contains "_":
  907. set {_message::*} to {_var} split at "_"
  908.  
  909. if ({cosmetics.edit.%player%.pieceText} to lower case) is "helmet":
  910. set {_piece} to ("%{cosmetics.edit.%player%.pieceText}%" to lower case)
  911.  
  912. if contains({_message::*}, "helmet"):
  913. set {cosmetics.edit.%player%.%{_piece}%} to "%message to lower case%"
  914.  
  915. else if "%message%" = "head":
  916. set {cosmetics.edit.%player%.%{_piece}%} to "head"
  917.  
  918. else if contains({_message::*}, "head"):
  919. set {cosmetics.edit.%player%.%{_piece}%} to "head"
  920.  
  921. else:
  922. send "%{lobby.logo.Lobby}% %{lobby.arcatedColor.Lobby}%%message% %{lobby.chatColor.Lobby}%is not a helmet!"
  923. stop
  924.  
  925. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Succesfully set helmet to %{lobby.arcatedColor.Lobby}%%message%%{lobby.chatColor.Lobby}%!"
  926.  
  927. editPiece(player, {cosmetics.edit.%player%.current}, {cosmetics.edit.%player%.pieceText}, {cosmetics.edit.%player%.type})
  928. delete {cosmetics.edit.%player%}
  929.  
  930. else if ({cosmetics.edit.%player%.pieceText} to lower case) is "chestplate":
  931. set {_piece} to ("%{cosmetics.edit.%player%.pieceText}%" to lower case)
  932.  
  933. if contains({_message::*}, "chestplate") or contains({_message::*}, "tunic"):
  934. set {cosmetics.edit.%player%.%{_piece}%} to "%message to lower case%"
  935.  
  936.  
  937. else:
  938. send "%{lobby.logo.Lobby}% %{lobby.arcatedColor.Lobby}%%message% %{lobby.chatColor.Lobby}%is not a chestplate!"
  939. stop
  940.  
  941. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Succesfully set chestplate to %{lobby.arcatedColor.Lobby}%%message%%{lobby.chatColor.Lobby}%!"
  942.  
  943. editPiece(player, {cosmetics.edit.%player%.current}, {cosmetics.edit.%player%.pieceText}, {cosmetics.edit.%player%.type})
  944. delete {cosmetics.edit.%player%}
  945.  
  946.  
  947. else if ({cosmetics.edit.%player%.pieceText} to lower case) is "leggings":
  948. set {_piece} to ("%{cosmetics.edit.%player%.pieceText}%" to lower case)
  949.  
  950. if contains({_message::*}, "leggings"):
  951. set {cosmetics.edit.%player%.%{_piece}%} to "%message to lower case%"
  952.  
  953. else:
  954. send "%{lobby.logo.Lobby}% %{lobby.arcatedColor.Lobby}%%message% %{lobby.chatColor.Lobby}%are no leggings!"
  955. stop
  956.  
  957. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Succesfully set leggings to %{lobby.arcatedColor.Lobby}%%message%%{lobby.chatColor.Lobby}%!"
  958.  
  959. editPiece(player, {cosmetics.edit.%player%.current}, {cosmetics.edit.%player%.pieceText}, {cosmetics.edit.%player%.type})
  960. delete {cosmetics.edit.%player%}
  961.  
  962. else if ({cosmetics.edit.%player%.pieceText} to lower case) is "boots":
  963. set {_piece} to ("%{cosmetics.edit.%player%.pieceText}%" to lower case)
  964.  
  965. if contains({_message::*}, "boots"):
  966. set {cosmetics.edit.%player%.%{_piece}%} to "%message to lower case%"
  967.  
  968. else:
  969. send "%{lobby.logo.Lobby}% %{lobby.arcatedColor.Lobby}%%message% %{lobby.chatColor.Lobby}%are no boots!"
  970. stop
  971.  
  972. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Succesfully set boots to %{lobby.arcatedColor.Lobby}%%message%%{lobby.chatColor.Lobby}%!"
  973.  
  974. editPiece(player, {cosmetics.edit.%player%.current}, {cosmetics.edit.%player%.pieceText}, {cosmetics.edit.%player%.type})
  975. delete {cosmetics.edit.%player%}
  976.  
  977.  
  978. else:
  979. send "%{lobby.logo.Lobby}% %{lobby.arcatedColor.Lobby}%%message% %{lobby.chatColor.Lobby}%is not a %{lobby.arcatedColor.Lobby}%%{cosmetics.edit.%player%.pieceText} to lower case%%{lobby.chatColor.Lobby}%!"
  980.  
  981. else if {cosmetics.edit.%player%} is "setType":
  982. if "%message%" is "cancel":
  983. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Cancelled setting the type."
  984. editPiece(player, {cosmetics.edit.%player%.current}, {cosmetics.edit.%player%.pieceText}, {cosmetics.edit.%player%.type})
  985. delete {cosmetics.edit.%player%}
  986.  
  987. set {cosmetics.edit.%player%.type} to "%message%"
  988. delete {cosmetics.edit.%player%}
  989.  
  990. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Succesfully set type to %{lobby.arcatedColor.Lobby}%%message%%{lobby.chatColor.Lobby}%!"
  991. editSuit(player, {cosmetics.edit.%player%.type})
  992.  
  993.  
  994. else if {cosmetics.edit.%player%} is "setCrate":
  995. if "%message%" is "cancel":
  996. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Cancelled setting the crate."
  997. editPiece(player, {cosmetics.edit.%player%.current}, {cosmetics.edit.%player%.pieceText}, {cosmetics.edit.%player%.type})
  998. delete {cosmetics.edit.%player%}
  999.  
  1000. else:
  1001. set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
  1002. if contains({_list::*}, "%message to lower case%"):
  1003. set {cosmetics.edit.%player%.crate} to "%message to lower case%"
  1004. editSuit(player, {cosmetics.edit.%player%.type})
  1005. delete {cosmetics.edit.%player%}
  1006. else:
  1007. send "%{lobby.logo.Lobby}% %{lobby.arcatedColor.Lobby}%%message% %{lobby.chatColor.Lobby}%is not a valid crate!"
  1008.  
  1009. else if {cosmetics.edit.%player%} is "setSkullOwner":
  1010. if "%message%" is "cancel":
  1011. send "%{lobby.logo.Lobby}% Cancelled setting the skull owner."
  1012. editPiece(player, {cosmetics.edit.%player%.current}, {cosmetics.edit.%player%.pieceText}, {cosmetics.edit.%player%.type})
  1013. delete {cosmetics.edit.%player%}
  1014.  
  1015. else:
  1016. set {cosmetics.edit.%player%.helmet.player} to "%message%"
  1017. set {cosmetics.edit.%player%.helmet.name} to "%message%"
  1018. delete {cosmetics.edit.%player%}
  1019.  
  1020. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Succesfully set the skull owner to %{lobby.arcatedColor.Lobby}%%message%%{lobby.chatColor.Lobby}%!"
  1021. editPiece(player, {cosmetics.edit.%player%.current}, {cosmetics.edit.%player%.pieceText}, {cosmetics.edit.%player%.type})
  1022.  
  1023. #{cosmetics.edit.%{_p}%.current}
  1024. #{cosmetics.edit.%{_p}%.pieceText}
  1025. else if {cosmetics.edit.%player%} is "set%{cosmetics.edit.%player%.pieceText}%Name":
  1026. if "%message%" is "cancel":
  1027. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Cancelled setting the %{lobby.arcatedColor.Lobby}%%{cosmetics.edit.%player%.current}% %{lobby.chatColor.Lobby}%name."
  1028. editPiece(player, {cosmetics.edit.%player%.current}, {cosmetics.edit.%player%.pieceText}, {cosmetics.edit.%player%.type})
  1029. delete {cosmetics.edit.%player%}
  1030.  
  1031. else:
  1032. set {cosmetics.edit.%player%.%{cosmetics.edit.%player%.current}%.displayName} to "%message%"
  1033. set {cosmetics.edit.%player%.%{cosmetics.edit.%player%.current}%.name} to "%message%"
  1034.  
  1035. delete {cosmetics.edit.%player%}
  1036.  
  1037. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Succesfully set the %{lobby.arcatedColor.Lobby}%%{cosmetics.edit.%player%.current}% %{lobby.chatColor.Lobby}%name to %{lobby.arcatedColor.Lobby}%%message%%{lobby.chatColor.Lobby}%!"
  1038. editPiece(player, {cosmetics.edit.%player%.current}, {cosmetics.edit.%player%.pieceText}, {cosmetics.edit.%player%.type})
  1039.  
  1040.  
  1041.  
  1042. #-----------------------------------{ Commands / cosmetics.* }-----------------------------------
  1043.  
  1044. command /lobbycrate [<text>] [<text>]:
  1045. aliases: /lobbycr, /lcrate
  1046. trigger:
  1047. if player is in world of {lobby.location}:
  1048. if player has permission "votecrate.*":
  1049. if arg-1 is set:
  1050. if arg-1 is "help":
  1051. send "%{lobby.chatColor.Lobby}%----------[ %{lobby.arcatedColor.Lobby}%%{cmd}% %{lobby.chatColor.Lobby}%]----------"
  1052. send "&e&o/%{cmd}% help &d→ &fGet the help page"
  1053. send "&e&o/%{cmd}% list &d→ &fGet a list with all crates"
  1054. send "&e&o/%{cmd}% create <crate> &d→ &fCreate a create"
  1055. send "&e&o/%{cmd}% delete/remove <crate> &d→ &fDelete a crate"
  1056. send "&e&o/%{cmd}% path <crate> &d→ &fGet the edit path of a crate"
  1057. send "&e&o/%{cmd}% get <crate> &d→ &fGet a crate"
  1058.  
  1059. send "%{lobby.chatColor.Lobby}%----------[ %{lobby.arcatedColor.Lobby}%%{cmd}% %{lobby.chatColor.Lobby}%]----------"
  1060.  
  1061. else if arg-1 is "list":
  1062. set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
  1063. if {_list::*} is not empty:
  1064. loop {_list::*}:
  1065. if {_list} is set:
  1066. set {_list} to "%{_list}%%{lobby.chatColor.Lobby}%, %{lobby.arcatedColor.Lobby}%%loop-value%"
  1067. else:
  1068. set {_list} to "%{lobby.arcatedColor.Lobby}%%loop-value%"
  1069.  
  1070. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%There are the following crates:%nl%%{lobby.arcatedColor.Lobby}%%{_list}%"
  1071.  
  1072. else:
  1073. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%There are no crates made yet."
  1074.  
  1075.  
  1076. else if arg-1 is "create":
  1077. if arg-2 is set:
  1078. set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
  1079. set {_arg2} to "%arg-2 to lower case%"
  1080. if contains({_list::*}, {_arg2}):
  1081. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%The crate %{lobby.arcatedColor.Lobby}%%{_arg2}% %{lobby.chatColor.Lobby}%already exists!"
  1082.  
  1083.  
  1084. else:
  1085.  
  1086. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Making the crate %{lobby.arcatedColor.Lobby}%%{_arg2}%%{lobby.chatColor.Lobby}%..."
  1087. add {_arg2} to yml list "Lobby.Crates.List" of file "{@config}"
  1088. create file "{@path}/%{_arg2}%.yml"
  1089. add "diamond_sword" to yml list "Item.List" of file "{@path}/%{_arg2}%.yml"
  1090. add "diamond_sword-1" to yml list "Item.ConfigName" of file "{@path}/%{_arg2}%.yml"
  1091.  
  1092. set yml value "Item.Chance.diamond_sword-1" of file "{@path}/%{_arg2}%.yml" to "100"
  1093. set yml value "Item.Name.diamond_sword-1" of file "{@path}/%{_arg2}%.yml" to "%{lobby.arcatedColor.Lobby}%Diamond Sword"
  1094. set yml value "Item.Amount.diamond_sword-1" of file "{@path}/%{_arg2}%.yml" to 1
  1095.  
  1096. add "This is a lore" to yml list "Item.Lore.diamond_sword-1" of file "{@path}/%{_arg2}%.yml"
  1097.  
  1098. add "sharpness:1" to yml list "Item.Enchants.diamond_sword-1" of file "{@path}/%{_arg2}%.yml"
  1099.  
  1100. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Succesfully made the crate %{lobby.arcatedColor.Lobby}%%{_arg2}%%{lobby.chatColor.Lobby}%!"
  1101.  
  1102.  
  1103. else:
  1104. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%You need to give up a %{lobby.arcatedColor.Lobby}%name %{lobby.chatColor.Lobby}%for the crate!"
  1105.  
  1106. else if arg-1 is "delete" or "remove":
  1107. if arg-2 is set:
  1108. set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
  1109. set {_arg2} to "%arg-2 to lower case%"
  1110. if contains({_list::*}, {_arg2}):
  1111. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Deleting the crate %{lobby.arcatedColor.Lobby}%%{_arg2}%%{lobby.chatColor.Lobby}%..."
  1112.  
  1113. remove "%{_arg2}%" from yml list "Lobby.Crates.List" of file "{@config}"
  1114. delete file "{@path}/%{_arg2}%.yml"
  1115.  
  1116. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Succesfully deleted the crate %{lobby.arcatedColor.Lobby}%%{_arg2}%%{lobby.chatColor.Lobby}%!"
  1117.  
  1118. else:
  1119. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%The crate %{lobby.arcatedColor.Lobby}%%{_arg2}% %{lobby.chatColor.Lobby}%doesn't exist!"
  1120.  
  1121. else:
  1122. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%You need to give up a %{lobby.arcatedColor.Lobby}%name %{lobby.chatColor.Lobby}%of the crate you want to delete!"
  1123.  
  1124. else if arg-1 is "path":
  1125. if arg-2 is set:
  1126. set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
  1127. set {_arg2} to "%arg-2 to lower case%"
  1128.  
  1129. if contains({_list::*}, {_arg2}):
  1130. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Location of %{_arg2}%: %{lobby.arcatedColor.Lobby}%{@path}/%{_arg2}%%{lobby.chatColor.Lobby}%."
  1131.  
  1132.  
  1133. else:
  1134. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%The crate %{lobby.arcatedColor.Lobby}%%{_arg2}% %{lobby.chatColor.Lobby}%doesn't exists!"
  1135. else:
  1136. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%You need to give up a %{lobby.arcatedColor.Lobby}%name %{lobby.chatColor.Lobby}%of the crate you want to get the path of!"
  1137.  
  1138. else if arg-1 is "get":
  1139. if arg 2 is set:
  1140. set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
  1141. set {_arg2} to "%arg-2 to lower case%"
  1142. if contains({_list::*}, {_arg2}):
  1143. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Here you have the %{lobby.arcatedColor.Lobby}%%{_arg2}% %{lobby.chatColor.Lobby}%crate!%nl%%{lobby.chatColor.Lobby}%Place it to create a chest."
  1144. give player 1 chest named "&e%{_arg2}%" with lore "&7Place to create a crate!"
  1145. else:
  1146. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%The crate %{lobby.arcatedColor.Lobby}%%{_arg2}% %{lobby.chatColor.Lobby}%doesn't exist!"
  1147. else:
  1148. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%You must give up a crate type!"
  1149.  
  1150. else:
  1151. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Do %{lobby.arcatedColor.Lobby}%/%{cmd}% help %{lobby.chatColor.Lobby}%for more info."
  1152. else:
  1153. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Do %{lobby.arcatedColor.Lobby}%/%{cmd}% help %{lobby.chatColor.Lobby}%for more info."
  1154.  
  1155.  
  1156. command /key [<text>] [<text>] [<text>] [<text>]:
  1157. trigger:
  1158. if player has permission "key.*":
  1159. if arg-1 is set:
  1160. if arg-1 is "help":
  1161. send "%{lobby.chatColor.Lobby}%----------[ %{lobby.arcatedColor.Lobby}%%{cmd}% %{lobby.chatColor.Lobby}%]----------"
  1162. send "&e&o/%{cmd}% help &d→ &fGet the help page"
  1163. send "&e&o/%{cmd}% get <crate/all> [number] &d→ &fGet a crate"
  1164. send "&e&o/%{cmd}% give <player> <crate/all> [number] &d→ &fGive a key to open a crate to a player"
  1165. send "&e&o/%{cmd}% remove <all/crate> [number] [player] &d→ &fRemove a key from a player"
  1166. send "&e&o/%{cmd}% clear <all/crate> [player] &d→ &fClear the keys from a player"
  1167. send "&e&o/%{cmd}% keys <all/crate> [player] &d→ &fGet the amount of keys from a player"
  1168. send "%{lobby.chatColor.Lobby}%----------[ %{lobby.arcatedColor.Lobby}%%{cmd}% %{lobby.chatColor.Lobby}%]----------"
  1169.  
  1170. else if arg-1 is "get":
  1171. if arg-2 is "all":
  1172. if arg-3 is set:
  1173. if (arg-3 parsed as a number) is set:
  1174. set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
  1175. set {_num} to arg-3 parsed as a number
  1176. loop {_num} times:
  1177. loop {_list::*}:
  1178. add 1 to {keys.%player%.%loop-value-2%}
  1179.  
  1180. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%You have recieved all the %{lobby.arcatedColor.Lobby}%%arg-3% %{lobby.chatColor.Lobby}%times!"
  1181.  
  1182. else:
  1183. send "%{lobby.logo.Lobby}% %{lobby.arcatedColor.Lobby}%%arg-3% %{lobby.chatColor.Lobby}%is not a number!"
  1184. else:
  1185. set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
  1186. loop {_list::*}:
  1187. add 1 to {keys.%player%.%loop-value%}
  1188.  
  1189. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%You have recieved all keys!"
  1190.  
  1191. else if arg-2 is set:
  1192. set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
  1193. if contains({_list::*}, "%arg-2 to lower case%"):
  1194. if arg-3 is set:
  1195. if (arg-3 parsed as a number) is set:
  1196. add (arg-3 parsed as a number) to {keys.%player%.%arg-2 to lower case%}
  1197. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%You have recieved %{lobby.arcatedColor.Lobby}%%arg-2 to lower case% %{lobby.chatColor.Lobby}%key %{lobby.arcatedColor.Lobby}%%arg-3% %{lobby.chatColor.Lobby}%times!"
  1198. else:
  1199. send "%{lobby.logo.Lobby}% %{lobby.arcatedColor.Lobby}%%arg-3% %{lobby.chatColor.Lobby}%is not a number!"
  1200. else:
  1201. add 1 to {keys.%player%.%arg-2 to lower case%}
  1202.  
  1203. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%You have recieved a %{lobby.arcatedColor.Lobby}%%arg-2 to lower case% %{lobby.chatColor.Lobby}%key!"
  1204. else:
  1205. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%The crate %{lobby.arcatedColor.Lobby}%%arg-2 to lower case% %{lobby.chatColor.Lobby}%doesn't exist."
  1206. else:
  1207. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%You must give up a %{lobby.arcatedColor.Lobby}%crate%{lobby.chatColor.Lobby}%!"
  1208.  
  1209. else if arg-1 is "give":
  1210. if arg-2 is set:
  1211. if (arg-2 parsed as a player) is set:
  1212. if arg-3 is set:
  1213. if arg-3 is "all":
  1214. if arg-4 is set:
  1215. if (arg-4 parsed as a number) is set:
  1216. set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
  1217. set {_num} to arg-4 parsed as a number
  1218. loop {_num} times:
  1219. loop {_list::*}:
  1220. add 1 to {keys.%arg-2 parsed as a player%.%loop-value-2%}
  1221.  
  1222. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Succesfully given %{lobby.arcatedColor.Lobby}%%name of arg-2 parsed as a player% %{lobby.chatColor.Lobby}%all the keys %{lobby.arcatedColor.Lobby}%%arg-4% %{lobby.chatColor.Lobby}%times!"
  1223. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%You have recieved all the keys %{lobby.arcatedColor.Lobby}%%arg-4% %{lobby.chatColor.Lobby}%times!" to arg-2 parsed as a player
  1224.  
  1225. else:
  1226. send "%{lobby.logo.Lobby}% %{lobby.arcatedColor.Lobby}%%arg-3% %{lobby.chatColor.Lobby}%is not a number!"
  1227. else:
  1228. set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
  1229. loop {_list::*}:
  1230. add 1 to {keys.%arg-2 parsed as a player%.%loop-value%}
  1231.  
  1232. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Succesfully given %{lobby.arcatedColor.Lobby}%%name of arg-2 parsed as a player% %{lobby.chatColor.Lobby}%all the keys!"
  1233. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%You have recieved all the keys!" to arg-2 parsed as a player
  1234. else:
  1235. set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
  1236. if contains({_list::*}, "%arg-3 to lower case%"):
  1237. if arg-4 is set:
  1238. if (arg-4 parsed as a number) is set:
  1239.  
  1240. add (arg-4 parsed as a number) to {keys.%arg-2%.%arg-3 to lower case%}
  1241.  
  1242. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Succesfully given %{lobby.arcatedColor.Lobby}%%name of arg-2 parsed as a player% %{lobby.chatColor.Lobby}%the %{lobby.arcatedColor.Lobby}%%arg-3 to lower case% %{lobby.chatColor.Lobby}%key %{lobby.arcatedColor.Lobby}%%arg-4% %{lobby.chatColor.Lobby}%times!"
  1243. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%You have recieved the %{lobby.arcatedColor.Lobby}%%arg-3 to lower case% %{lobby.chatColor.Lobby}%key %{lobby.arcatedColor.Lobby}%%arg-4% %{lobby.chatColor.Lobby}%times!" to arg-2 parsed as a player
  1244.  
  1245. else:
  1246. send "%{lobby.logo.Lobby}% %{lobby.arcatedColor.Lobby}%%arg-3% %{lobby.chatColor.Lobby}%is not a number!"
  1247. else:
  1248. add 1 to {keys.%arg-2 parsed as a player%.%arg-3 to lower case%}
  1249.  
  1250. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Succesfully given %{lobby.arcatedColor.Lobby}%%name of arg-2 parsed as a player% %{lobby.chatColor.Lobby}%the %{lobby.arcatedColor.Lobby}%%arg-3 to lower case% %{lobby.chatColor.Lobby}%key!"
  1251. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%You have recieved the %{lobby.arcatedColor.Lobby}%%arg-3 to lower case% %{lobby.chatColor.Lobby}%key!" to arg-2 parsed as a player
  1252. else:
  1253. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%The crate %{lobby.arcatedColor.Lobby}%%arg-3 to lower case% %{lobby.chatColor.Lobby}%doesn't exist!"
  1254. else:
  1255. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%You must give up a %{lobby.arcatedColor.Lobby}%crate%{lobby.chatColor.Lobby}%!"
  1256. else:
  1257. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%The player %{lobby.arcatedColor.Lobby}%%arg-2% %{lobby.chatColor.Lobby}%is not online!"
  1258. else:
  1259. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%You must give up a %{lobby.arcatedColor.Lobby}%player%{lobby.chatColor.Lobby}%!"
  1260.  
  1261.  
  1262.  
  1263. else if arg-1 is "remove":
  1264. if arg-2 is set:
  1265. if arg-2 is "all":
  1266. if arg-3 is set:
  1267. if (arg-3 parsed as a number) is set:
  1268. if arg-4 is set:
  1269. if (arg-4 parsed as a player) is set:
  1270. set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
  1271. set {_num} to arg-3 parsed as a number
  1272. loop {_list::*}:
  1273. if {keys.%arg-4 parsed as a player%.%loop-value%}-{_num} >= 0:
  1274. remove {_num} from {keys.%name of arg-4 parsed as a player%.%loop-value%}
  1275. else:
  1276. set {keys.%arg-4 parsed as a player%.%loop-value%} to 0
  1277.  
  1278. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Succesfully removed %{lobby.arcatedColor.Lobby}%%arg-3% %{lobby.chatColor.Lobby}%from all the keys of %{lobby.arcatedColor.Lobby}%%name of arg-4 parsed as a player%%{lobby.chatColor.Lobby}%!"
  1279. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Removed %{lobby.arcatedColor.Lobby}%%arg-3% %{lobby.chatColor.Lobby}%from your keys!" to arg-4 parsed as a player
  1280.  
  1281. else:
  1282. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%The player %{lobby.arcatedColor.Lobby}%%arg-4% %{lobby.chatColor.Lobby}%is not online!"
  1283. else:
  1284. set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
  1285. loop {_list::*}:
  1286. if {keys.%player%.%loop-value%}-(arg-3 parsed as a number) >= 0:
  1287. remove (arg-3 parsed as a number) from {keys.%player%.%loop-value%}
  1288. else:
  1289. set {keys.%player%.%loop-value%} to 0
  1290.  
  1291. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Succesfully removed %{lobby.arcatedColor.Lobby}%%arg-3% %{lobby.chatColor.Lobby}%from all the keys!"
  1292.  
  1293. else:
  1294. send "%{lobby.logo.Lobby}% %{lobby.arcatedColor.Lobby}%%arg-3% %{lobby.chatColor.Lobby}%is not a number!"
  1295. else:
  1296. set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
  1297. loop {_list::*}:
  1298. if {keys.%player%.%loop-value%}-1 >= 0:
  1299. remove 1 from {keys.%player%.%loop-value%}
  1300.  
  1301. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Succesfully removed %{lobby.arcatedColor.Lobby}%1 %{lobby.chatColor.Lobby}%from all the keys"
  1302. else:
  1303. set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
  1304. if contains({_list::*}, "%arg-2 to lower case%"):
  1305. if arg-3 is set:
  1306. if (arg-3 parsed as a number) is set:
  1307. if arg-4 is set:
  1308. if (arg-4 parsed as a player) is set:
  1309. if {keys.%arg-4 parsed as a player%.%arg-2 to lower case%}-(arg-3 parsed as a number) >= 0:
  1310. remove (arg-3 parsed as a number) from {keys.%name of arg-4 parsed as a player%.%arg-2 to lower case%}
  1311. else:
  1312. set {keys.%arg-4 parsed as a player%.%arg-2 to lower case%} to 0
  1313.  
  1314. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Succesfully removed %{lobby.arcatedColor.Lobby}%%arg-3% %arg-2 to lower case% %{lobby.chatColor.Lobby}%keys from %{lobby.arcatedColor.Lobby}%%name of arg-4 parsed as a player%%{lobby.chatColor.Lobby}%!"
  1315. send "%{lobby.logo.Lobby}% %{lobby.arcatedColor.Lobby}%%arg-3% %arg-2 to lower case% %{lobby.chatColor.Lobby}%keys have been removed!" to arg-4 parsed as a player
  1316.  
  1317. else:
  1318. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%The player %{lobby.arcatedColor.Lobby}%%arg-4% %{lobby.chatColor.Lobby}%is not online!"
  1319. else:
  1320.  
  1321. if {keys.%player%.%arg-2 to lower case%}-(arg-3 parsed as a number) >= 0:
  1322. remove (arg-3 parsed as a number) from {keys.%player%.%arg-2 to lower case%}
  1323. send "%{lobby.logo.Lobby}% &2Succesfully removed &a%arg-3% %arg-2 to lower case% &2keys!"
  1324.  
  1325. else:
  1326. send "%{lobby.logo.Lobby}% %{lobby.arcatedColor.Lobby}%%arg-3% %{lobby.chatColor.Lobby}%is not a number!"
  1327.  
  1328. else:
  1329. if {keys.%player%.%arg-2 to lower case%}-1 >= 0:
  1330. remove 1 from {keys.%player%.%arg-2 to lower case%}
  1331. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Succesfully removed %{lobby.arcatedColor.Lobby}%1 %arg-2 to lower case% %{lobby.chatColor.Lobby}%keys!"
  1332. else:
  1333. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%The crate %{lobby.arcatedColor.Lobby}%%arg-2 to lower case% %{lobby.chatColor.Lobby}%doesn't exist."
  1334. else:
  1335. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%You must give up a %{lobby.arcatedColor.Lobby}%crate%{lobby.chatColor.Lobby}%!"
  1336.  
  1337. else if arg-1 is "clear":
  1338. if arg-2 is set:
  1339. if arg-2 is "all":
  1340. if arg-3 is set:
  1341. if (arg-3 parsed as a player) is set:
  1342. set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
  1343. loop {_list::*}:
  1344. set {keys.%arg-3 parsed as a player%.%loop-value%} to 0
  1345.  
  1346. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Succesfully cleared %{lobby.arcatedColor.Lobby}%all keys %{lobby.chatColor.Lobby}%of %{lobby.arcatedColor.Lobby}%%name of arg-3 parsed as a player%%{lobby.chatColor.Lobby}%!"
  1347. send "%{lobby.logo.Lobby}% %{lobby.arcatedColor.Lobby}%All %{lobby.chatColor.Lobby}%your %{lobby.arcatedColor.Lobby}%keys %{lobby.chatColor.Lobby}%have been cleared!" to arg-3 parsed as a player
  1348. else:
  1349. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%The player %{lobby.arcatedColor.Lobby}%%arg-3% %{lobby.chatColor.Lobby}%is not online!"
  1350. else:
  1351. set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
  1352. loop {_list::*}:
  1353. set {keys.%player%.%loop-value%} to 0
  1354.  
  1355. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%You have cleared %{lobby.arcatedColor.Lobby}%all %{lobby.chatColor.Lobby}%your %{lobby.arcatedColor.Lobby}%keys%{lobby.chatColor.Lobby}%!"
  1356. else:
  1357. set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
  1358. if contains({_list::*}, "%arg-2 to lower case%"):
  1359. if arg-3 is set:
  1360. if (arg-3 parsed as a player) is set:
  1361. set {keys.%arg-3 parsed as a player%.%arg-2 to lower case%} to 0
  1362. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%You have cleared the %{lobby.arcatedColor.Lobby}%%arg-2 to lower case% keys %{lobby.chatColor.Lobby}%from %{lobby.arcatedColor.Lobby}%%name of arg-3 parsed as a player%%{lobby.chatColor.Lobby}%!"
  1363. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Your %{lobby.arcatedColor.Lobby}%%arg-2 to lower case% keys %{lobby.chatColor.Lobby}%have been cleared!" to arg-3 parsed as a player
  1364.  
  1365. else:
  1366. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%The player %{lobby.arcatedColor.Lobby}%%arg-3% %{lobby.chatColor.Lobby}%is not online!"
  1367.  
  1368. else:
  1369. set {keys.%player%.%arg-2 to lower case%} to 0
  1370. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Succesfully cleared the %{lobby.arcatedColor.Lobby}%%arg-2 to lower case% keys%{lobby.chatColor.Lobby}%!"
  1371.  
  1372. else:
  1373. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%The crate %{lobby.arcatedColor.Lobby}%%arg-2 to lower case% %{lobby.chatColor.Lobby}%doesn't exist!"
  1374. else:
  1375. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%You must give up a %{lobby.arcatedColor.Lobby}%crate%{lobby.chatColor.Lobby}%!"
  1376.  
  1377. else if arg-1 is "keys":
  1378. if arg-2 is set:
  1379. if arg-2 is "all":
  1380. if arg-3 is set:
  1381. if (arg-3 parsed as a player) is set:
  1382. set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
  1383. loop {_list::*}:
  1384. if {keys.%arg-3 parsed as a player%.%loop-value%} is not set:
  1385. set {keys.%arg-3 parsed as a player%.%loop-value%} to 0
  1386.  
  1387. if {_keys} is not set:
  1388. set {_keys} to "%{lobby.chatColor.Lobby}%%loop-value%: %{lobby.arcatedColor.Lobby}%%{keys.%name of arg-3 parsed as a player%.%loop-value%}%"
  1389. else:
  1390. set {_keys} to "%{_keys}%%nl%%{lobby.chatColor.Lobby}%%loop-value%: %{lobby.arcatedColor.Lobby}%%{keys.%name of arg-3 parsed as a player%.%loop-value%}%"
  1391.  
  1392. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%This is the list of keys from %{lobby.arcatedColor.Lobby}%%name of arg-3 parsed as a player%%{lobby.chatColor.Lobby}%:%nl%%{_keys}%"
  1393.  
  1394. else:
  1395. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%The player %{lobby.arcatedColor.Lobby}%%arg-3% %{lobby.chatColor.Lobby}%is not online!"
  1396. else:
  1397. set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
  1398. loop {_list::*}:
  1399. if {keys.%player%.%loop-value%} is not set:
  1400. set {keys.%player%.%loop-value%} to 0
  1401. if {_keys} is not set:
  1402. set {_keys} to "%{lobby.chatColor.Lobby}%%loop-value%: %{lobby.arcatedColor.Lobby}%%{keys.%player%.%loop-value%}%"
  1403. else:
  1404. set {_keys} to "%{_keys}%%nl%%{lobby.chatColor.Lobby}%%loop-value%: %{lobby.arcatedColor.Lobby}%%{keys.%player%.%loop-value%}%"
  1405.  
  1406. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%This is your list of keys%{lobby.chatColor.Lobby}%:%nl%%{_keys}%"
  1407. else:
  1408. set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
  1409. if contains({_list::*}, "%arg-2 to lower case%"):
  1410. if arg-3 is set:
  1411. if (arg-3 parsed as a player) is set:
  1412. if {keys.%arg-3 parsed as a player%.%arg-2 to lower case%} is not set:
  1413. set {keys.%arg-3 parsed as a player%.%arg-2 to lower case%} to 0
  1414.  
  1415. send "%{lobby.logo.Lobby}% %{lobby.arcatedColor.Lobby}%%name of arg-3 parsed as a player% %{lobby.chatColor.Lobby}%has %{lobby.arcatedColor.Lobby}%%{keys.%arg-3%.%arg-2 to lower case%}% %arg-2 to lower case% %{lobby.chatColor.Lobby}%keys."
  1416.  
  1417. else:
  1418. send "%{lobby.logo.Lobby}% &4The player &c%arg-3% &4is not online!"
  1419. else:
  1420. if {keys.%player%.%arg-2 to lower case%} is not set:
  1421. set {keys.%player%.%arg-2 to lower case%} to 0
  1422.  
  1423. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%You have %{lobby.arcatedColor.Lobby}%%{keys.%player%.%arg-2 to lower case%}% %arg-2 to lower case% %{lobby.chatColor.Lobby}%keys."
  1424. else:
  1425. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%The crate %{lobby.arcatedColor.Lobby}%%arg-2 to lower case% %{lobby.chatColor.Lobby}%doesn't exist!"
  1426. else:
  1427. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%You need to give up a %{lobby.arcatedColor.Lobby}%crate%{lobby.chatColor.Lobby}%!"
  1428. else:
  1429. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Do %{lobby.arcatedColor.Lobby}%/%{cmd}% help %{lobby.chatColor.Lobby}%for more info!"
  1430. else:
  1431. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Do %{lobby.arcatedColor.Lobby}%/%{cmd}% help %{lobby.chatColor.Lobby}%for more info!"
  1432.  
  1433.  
  1434. command /cosmetics [<text>] [<text>] [<text>]:
  1435. aliases: /cos
  1436. trigger:
  1437. if player has permission "cosmetics.*":
  1438. if arg-1 is not set:
  1439. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Do %{lobby.arcatedColor.Lobby}%/%{cmd}% help %{lobby.chatColor.Lobby}%for more info!"
  1440.  
  1441. else if arg-1 is "help":
  1442. send "%{lobby.chatColor.Lobby}%----------[ %{lobby.arcatedColor.Lobby}%%{cmd}% %{lobby.chatColor.Lobby}%]----------"
  1443. send "&e&o/%{cmd}% help &d→ &fGet the help page"
  1444. send "&e&o/%{cmd}% gui [player] &d→ &fGet the cosmetics (of a player)"
  1445. send "&e&o/%{cmd}% setup <type> &d→ &fCreate a cosmetic"
  1446. send "&e&o/%{cmd}% edit [type] &d→ &fEdit a cosmetic"
  1447. #send "&e&o/%{cmd}% delete [type] [name] &d→ &fDelete a cosmetic"
  1448. send "&e&o/%{cmd}% path &d→ &fCreate your own cosmetics"
  1449. send "%{lobby.chatColor.Lobby}%----------[ %{lobby.arcatedColor.Lobby}%%{cmd}% %{lobby.chatColor.Lobby}%]----------"
  1450.  
  1451. #else if arg-1 is "gui":
  1452. # if arg-2 is set:
  1453. # if arg-2 parsed as a player is set:
  1454. #
  1455.  
  1456. # else:
  1457. # send "%{lobby.logo.Lobby}% &4The player &c%arg-2% &4has never logged in."
  1458.  
  1459. # else:
  1460.  
  1461. else if arg-1 is "setup":
  1462. if arg-2 is set:
  1463. editCos(player, "%arg-2%")
  1464. #open chest with 1 rows named "&8Cosmetics %arg-2%" to player
  1465. format gui slot 2 of player with nether star named "&fCreate" to close
  1466. format gui slot 4 of player with redstone torch on named "&fEdit" to close
  1467. format gui slot 6 of player with blaze powder named "&fDelete" to close
  1468.  
  1469. else:
  1470. editCos(player, "")
  1471. #open chest with 1 rows named "&8Edit Cosmetics" to player
  1472. format gui slot 2 of player with nether star named "&fCreate" to close
  1473. format gui slot 4 of player with redstone torch on named "&fEdit" to close
  1474. format gui slot 6 of player with blaze powder named "&fDelete" to close
  1475.  
  1476. else if arg-1 is "path":
  1477. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%The path to edit your cosmetics is %{lobby.arcatedColor.Lobby}%{@cosConfig} %{lobby.chatColor.Lobby}%and to create cosmetics %{lobby.arcatedColor.Lobby}%{@path}/Cosmetics/"
  1478.  
  1479. else:
  1480. send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Do %{lobby.arcatedColor.Lobby}%/%{cmd}% help %{lobby.chatColor.Lobby}%for more info!"
Add Comment
Please, Sign In to add comment