Zeldaboy111

Skript #286 ]|[ Cosmetics (5)

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