Advertisement
Zeldaboy111

Skript #281 ]|[ Cosmetics bugfixing (2)

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