Zeldaboy111

Skript #288 ]|[ Cosmetics (7)

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