Zeldaboy111

Skript #280 ]|[ Cosmetics bugfixing (1)

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