Zeldaboy111

Skript #284 ]|[ Cosmetics (3)

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