Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Read 'license.txt' before using this Skript please
- options:
- path: plugins/Lobby/cosmetics
- config: plugins/Lobby/cosmetics/config.yml
- expression %itemtype% dyed %int% %int% %int%:
- return type: item
- get:
- set {_item} to expr-1
- dye {_item} (expr-2, expr-3, expr-4)
- return {_item}
- #-----------------------------------{ Functions }-----------------------------------
- function contains(list: objects, check: object) :: boolean:
- loop {_list::*}:
- if loop-value is {_check}:
- return true
- return false
- function firstUpperCase(s: texts) :: String:
- loop {_s::*}:
- set {_first} to first character of loop-value
- set {_last} to last (length of loop-value - 1) characters of loop-value
- return "%{_first} in upper case%%{_last} in lower case%"
- function getVariables():
- loop yml list "Lobby.Crates.List" of file "{@config}":
- add loop-value to {_crateList::*}
- set {lobbycr.%loop-value%.location::*} to yml list "Locations" of file "{@path}/%loop-value-1%.yml"
- if yml value "Cosmetics.Animations.Random.DefaultAnimation" of file "{@config}" is set:
- if {cos.animationList::*} contains yml value "Cosmetics.Animations.Random.DefaultAnimation" of file "{@config}":
- set {cos.defaultAnimation} to yml value "Cosmetics.Animations.Random.DefaultAnimation" of file "{@config}"
- if yml value "Cosmetics.Holograms.Enabled" of file "{@config}" is set:
- set {_value} to yml value "Cosmetics.Holograms.Enabled" of file "{@config}"
- if {_value} parsed as a boolean is set:
- set {cos.holograms.enabled} to {_value} parsed as a boolean
- if yml value "Cosmetics.Animations.Random.Enabled" of file "{@config}" is set:
- set {_value} to yml value "Cosmetics.Animations.Random.Enabled" of file "{@config}"
- if {_value} parsed as a boolean is set:
- set {cos.randomAnimation} to {_value} parsed as a boolean
- #"Particles.Enabled", "Heads.Enabled", "Suits.Enabled", "Gadgets.Enabled"
- add "Particles", "Heads", "Suits" and "Gadgets" to {_list::*}
- loop {_list::*}:
- if yml value "Cosmetics.%loop-value%.Enabled" of file "{@config}" is set:
- set {_value} to yml value "Cosmetics.%loop-value%.Enabled" of file "{@config}"
- if {_value} parsed as a boolean is set:
- set {cos.%loop-value in lower case%.enabled} to {_value} parsed as a boolean
- if {cos.%loop-value in lower case%.enabled} is not set:
- set {cos.%loop-value in lower case%.enabled} to true
- loop {cos.animationList::*}:
- if yml value "Cosmetics.Animations.Info.%loop-value%.Enabled" of file "{@config}" is set:
- set {_value} to yml value "Cosmetics.Animations.Info.%loop-value%.Enabled" of file "{@config}"
- if {_value} parsed as a boolean is set:
- set {cos.animations.%loop-value%} to {_value} parsed as a boolean
- if {cos.animations.%loop-value%} is not set:
- set {cos.animations.%loop-value%} to true
- if {cos.randomAnimation} is not set:
- set {cos.randomAnimation} to false
- if {cos.holograms.enabled} is not set:
- set {cos.holograms.enabled} to true
- if {cos.holograms.enabled} is true:
- set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
- loop {_list::*}:
- if yml value "Cosmetics.Hologram.Color" of file "{@path}/%loop-value%.yml" is set:
- set {cos.holograms.color.%loop-value%} to yml value "Cosmetics.Hologram.Color" of file "{@path}/%loop-value%.yml"
- if {cos.holograms.color.%loop-value%} is not set:
- set {cos.holograms.color.%loop-value%} to "&a&l"
- if {cos.defaultAnimation} is not set:
- set {cos.defaultAnimation} to "Window"
- if {cos.holograms.enabled} is true:
- set {_world} to {lobby.world}
- loop {_crateList::*}:
- loop {lobbycr.%loop-value%.location::*}:
- set {_split::*} to loop-value-2 split at " "
- replace all "," in {_split::*} with ""
- 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)
- set {holo-crate-%{_world}%-%loop-value-2%} to new hologram at location 1 meters above {_loc}
- add text "%{cos.holograms.color.%loop-value-1%}%%loop-value-1%" to hologram {holo-crate-%{_world}%-%loop-value-2%}
- function startup():
- clear {cos.pieces::*}
- clear {cos.defaultTrue::*}
- clear {cos.animationList::*}
- add "helmet", "chestplate", "leggings" and "boots" to {cos.pieces::*}
- add "Animations.Window", "Animations.Random.Enabled", "Particles.Enabled", "Heads.Enabled", "Suits.Enabled", "Gadgets.Enabled" and "Holograms.Enabled" to {cos.defaultTrue::*}
- add "Window" to {cos.animationList::*}
- if file "{@config}" doesn't exist:
- create file "{@config}"
- loop {cos.defaultTrue::*}:
- set yml value "Cosmetics.%loop-value%" of file "{@config}" to true
- set yml value "Cosmetics.Animations.Random.DefaultAnimation" of file "{@config}" to "Window"
- loop {cos.animationList::*}:
- set yml value "Cosmetics.Animations.Info.%loop-value%.Enabled" of file "{@config}" to true
- else:
- loop {cos.defaultTrue::*}:
- if yml value "Cosmetics.%loop-value%" of file "{@config}" is not set:
- set yml value "Cosmetics.%loop-value%" of file "{@config}" to true
- if yml value "Cosmetics.Animations.Random.DefaultAnimation" of file "{@config}" is not set:
- set yml value "Cosmetics.Animations.Random.DefaultAnimation" of file "{@config}" to "Window"
- loop {cos.animationList::*}:
- if yml value "Cosmetics.Animations.Info.%loop-value%.Enabled" of file "{@config}" is not set:
- set yml value "Cosmetics.Animations.Info.%loop-value%.Enabled" of file "{@config}" to true
- else:
- set {_value} to yml value "Cosmetics.Animations.Info.%loop-value%.Enabled" of file "{@config}"
- if {_value} parsed as a boolean is not set:
- set yml value "Cosmetics.Animations.Info.%loop-value%.Enabled" of file "{@config}" to true
- getVariables()
- function deleteVariables(p: Player):
- loop {cos.pieces::*}:
- delete {cosmetics.edit.%{_p}%.%loop-value%}
- delete {cosmetics.edit.%{_p}%.%loop-value%.name}
- delete {cosmetics.edit.%{_p}%.%loop-value%.lore::*}
- delete {cosmetics.edit.%{_p}%.%loop-value%.ench::*}
- delete {cosmetics.edit.%{_p}%.%loop-value%.red}
- delete {cosmetics.edit.%{_p}%.%loop-value%.green}
- delete {cosmetics.edit.%{_p}%.%loop-value%.blue}
- #{cosmetics.edit.%{_p}%.%{_piece}%.name}
- delete {cosmetics.edit.%{_p}%.helmet.type}
- delete {cosmetics.edit.%{_p}%.helmet.player}
- delete {cosmetics.edit.%{_p}%.helmet.type}
- delete {cosmetics.edit.%{_p}%.helmet.skull}
- delete {cosmetics.edit.%{_p}%.type}
- delete {cosmetics.edit.%{_p}%.current}
- delete {cosmetics.edit.%{_p}%.crate}
- delete {cosmetics.edit.%{_p}%.pieceText}
- #-----------------------------------{ Functions / Cosmetics }-----------------------------------
- function randomReward(crate: String) :: Item:
- set {_rewardList::*} to yml list "Item.List" of file "{@path}/%{_crate}%.yml"
- set {_rewardsNames::*} to yml list "Item.ConfigName" of file "{@path}/%{_crate}%.yml"
- set {_count} to 1
- loop {_rewardList::*}:
- if yml value "Item.Chance.%{_rewardsNames::%{_count}%}%" of file "{@path}/%{_crate}%.yml" is set:
- set {_chance} to yml value "Item.Chance.%{_rewardsNames::%{_count}%}%" of file "{@path}/%{_crate}%.yml"
- if ({_chance} parsed as a number) is set:
- loop ({_chance} parsed as a number) times:
- add "%loop-value-1% [{$^^$}] %{_rewardsNames::%loop-index%}%" to {_rewards::*}
- else:
- send "%nl%%{lobby.logo.Lobby}% &c%{_chance}% &4is not a number!%nl%" to console
- add 1 to {_count}
- set {_length} to size of {_rewards::*}
- set {_prizeNumber} to a random integer between 0 and {_length}
- set {_splitPrize::*} to {_rewards::%{_prizeNumber}%} split at " [{$^^$}] "
- set {_prize} to {_splitPrize::1}
- set {_prizeCName} to {_splitPrize::2}
- if ({_prize} parsed as an item) is not set:
- send "%{lobby.logo.Lobby}% &c%{_prize}% &4is not an item! Stopping opening the crate!" to console
- else:
- set {_prize} to {_prize} parsed as an item
- if yml value "Item.Name.%{_prizeCName}%" of file "{@path}/%{_crate}%.yml" is set:
- set {_prizeName} to yml value "Item.Name.%{_prizeCName}%" of file "{@path}/%{_crate}%.yml"
- set {_prizeName} to colored {_prizeName}
- set name of {_prize} to "&f%{_prizeName}%"
- if yml value "Item.Amount.%{_prizeCName}%" of file "{@path}/%{_crate}%.yml" is set:
- set {_prizeAmount} to yml value "Item.Amount.%{_prizeCName}%" of file "{@path}/%{_crate}%.yml"
- set {_prizeAmount} to ({_prizeAmount} parsed as a number)
- if {_prizeAmount} is set:
- set {_prize} to ("%{_prizeAmount}% %{_prize}%" parsed as an item)
- else:
- send "%{lobby.logo.Lobby}% &c%{_prizeAmount}% &4is not a number!" to console
- set {_prize} to ("1 %{_prize}%" parsed as an item)
- if yml value "Item.Lore.%{_prizeCName}%" of file "{@path}/%{_crate}%.yml" is set:
- set {_loreList::*} to yml list "Item.Lore.%{_prizeCName}%" of file "{@path}/%{_crate}%.yml"
- loop {_loreList::*}:
- if {_lore} is not set:
- set {_lore} to "%loop-value%"
- else:
- set {_lore} to "%{_lore}%||%loop-value%"
- set lore of {_prize} to {_lore}
- if yml value "Item.Enchants.%{_prizeCName}%" of file "{@path}/%{_crate}%.yml" is set:
- set {_enchantList::*} to yml list "Item.Enchants.%{_prizeCName}%" of file "{@path}/%{_crate}%.yml"
- loop {_enchantList::*}:
- set {_ench} to "%loop-value%"
- set {_split::*} to {_ench} split at ""
- if contains({_split::*}, ":") is true:
- set {_eSplit::*} to {_ench} split at ":"
- set {_ench1} to {_eSplit::1}
- set {_ench2} to {_eSplit::2}
- if ({_ench1} parsed as an enchantment type) is set:
- if ({_ench2} parsed as a number) is set:
- enchant {_prize} with "%{_ench1}% %{_ench2}%" parsed as an enchantment type
- set name of {_prize} to "&b%{_prizeName}%"
- else:
- send "%nl%%{lobby.logo.Lobby}% &c%{_s2}% &4is not a number!%nl%" to console
- else:
- send "%nl%%{lobby.logo.Lobby}% &c%{_s1}% &4is not an enchantment type!%nl%" to console
- else:
- if (loop-value parsed as an enchantment type) is set:
- enchant {_prize} with "%loop-value% 1" parsed as an enchantment type
- else:
- send "%{lobby.logo.Lobby}% &c%loop-value% &4is not an enchantment type!" to console
- return {_prize}
- function animation_window(p: Player, count: Integer, count2: Integer) :: boolean:
- loop 9 times:
- if {crates.reopening.%{_p}%} is true:
- delete {crates.reopening.%{_p}%}
- #clear {crate.%{_p}%.inv::*}
- delete {crate.%{_p}%.name}
- set {crates.opening.%{_p}%} to true
- wait 2 ticks
- if {crates.closed.%{_p}%} is true:
- if {_count} = {_count2}-18:
- set {crate.%{_p}%.inv::%{_count}%} to "light green glass"
- set {crate.%{_p}%.inv::%{_count2}%} to "light green glass"
- else:
- set {crate.%{_p}%.inv::%{_count}%} to "gray glass"
- set {crate.%{_p}%.inv::%{_count2}%} to "gray glass"
- else:
- if {_count} = {_count2}-18:
- format slot {_count} of {_p} with light green stained glass pane to be unstealable
- format slot {_count2} of {_p} with light green stained glass pane to be unstealable
- else:
- format slot {_count} of {_p} with gray stained glass pane to be unstealable
- format slot {_count2} of {_p} with gray stained glass pane to be unstealable
- add 1 to {_count}
- remove 1 from {_count2}
- wait 5 ticks
- set {animation.%{_p}%} to false
- function runAnimation(p: Player, animation: Integer, count: Integer, count2: Integer, forced: Boolean):
- if {_animation} is 1:
- if {_forced} is false:
- if {cos.animations.Window} is true:
- animation_window({_p}, {_count}, {_count2})
- set {animation.%{_p}%} to true
- else:
- animation_window({_p}, {_count}, {_count2})
- set {animation.%{_p}%} to true
- function openCrate(p: Player, crate: String):
- #send "Run" to {_p}
- if {keys.%{_p}%.%{_crate}%} > 0:
- wait 2 ticks
- open chest with 3 rows named "&2%{_crate}%" to {_p}
- wait 2 ticks
- set {crates.opening.%{_p}%} to true
- delete {crates.reopening.%{_p}%}
- delete {crates.closed.%{_p}%}
- #Value to wait for animation
- set {animation.%{_p}%} to false
- set {_count} to 0
- set {_count2} to 26
- #Animations
- set {_random} to randomReward({_crate})
- if {cos.randomAnimation} is true:
- set {_animationNumber} to a random integer between 0 and 1
- else:
- set {_animation} to yml value "Cosmetics.Animations.Random.DefaultAnimation" of file "{@config}"
- if {_animation} is "Window":
- set {_animationNumber} to 1
- else:
- send "%{lobby.logo.Lobby}% &4The animation &c%{_animation}% &4doesn't exist! Running Window as animation!" to console
- set {_animationNumber} to 1
- runAnimation({_p}, {_animationNumber}, {_count}, {_count2}, false)
- if {animation.%{_p}%} is false:
- runAnimation({_p}, 1, {_count}, {_count2}, true)
- #delete {animation.%{_p}%}
- while {animation.%{_p}%} is true:
- wait 1 tick
- #delete {animation.%{_p}%}
- delete {animation.%{_p}%}
- if {crate.%{_p}%.name} is not set:
- format slot 13 of {_p} with {_random} to be unstealable
- play sound "ENTITY_PLAYER_LEVELUP" with volume 10 and pitch 5 at {_p} for all players
- delete {crates.closed.%{_p}%}
- remove {_p} from {crates.openinglist::*}
- delete {crate.%{_p}%.inv::*}
- delete {crate.%{_p}%.name}
- delete {crates.opening.%{_p}%}
- remove 1 from {keys.%{_p}%.%{_crate}%}
- set {_name} to name of {_random}
- launch ball coloured aqua and blue at {_p}'s location timed 0.9
- give {_p} {_random}
- send "%{lobby.logo.Lobby}% %{lobby.arcatedColor.Lobby}%You've won %{lobby.arcatedColor.Lobby}%%{_name}%%{lobby.chatColor.Lobby}%!" to {_p}
- else:
- send "%{lobby.logo.Lobby}% %{lobby.arcatedColor.Lobby}%You don't have anough keys to do this!" to {_p}
- play sound "ENTITY.ITEM.BREAK" with volume 10 and pitch 1 at {_p} for {_p}
- #-----------------------------------{ Functions / SetupCosmetic }-----------------------------------
- function setHeadType(p: Player, nbt: String, name: String):
- play sound "BLOCK_NOTE_PLING" with volume 10 and pitch 1 at {_p} for {_p}
- set {cosmetics.edit.%{_p}%} to "go_back"
- close {_p}'s inventory
- delete {cosmetics.edit.%{_p}%}
- set {cosmetics.edit.%{_p}%.helmet.player} to "%{_nbt}%"
- set {cosmetics.edit.%{_p}%.helmet.name} to "%{_name}%"
- editPiece({_p}, "helmet", "Helmet", {cosmetics.edit.%{_p}%.type})
- function editCosFormat(p: Player, piece: String, pieceText: String) :: item:
- set {_item} to ("barrier" parsed as an item)
- set name of {_item} to "&4%{_pieceText}%"
- if {cosmetics.edit.%{_p}%.%{_piece}%} is set:
- if ("%{cosmetics.edit.%{_p}%.%{_piece}%}%" parsed as an item type) is set:
- set {_item} to ("%{cosmetics.edit.%{_p}%.%{_piece}%}%" parsed as an item)
- else if {_piece} is "helmet":
- set {_headType} to "%{cosmetics.edit.%{_p}%.%{_piece}%}%"
- if contains(({_headType} split at " "), "head"):
- set {_item} to "head"
- if {cosmetics.edit.%{_p}%.%{_piece}%.name} is set:
- if {cosmetics.edit.%{_p}%.%{_piece}%.name} is not "<none>":
- set name of {_item} to "&f%{cosmetics.edit.%{_p}%.%{_piece}%.name}%"
- else:
- set name of {_item} to "&2%{_pieceText}%"
- if {cosmetics.edit.%{_p}%.%{_piece}%.lore} is set:
- set lore of {_item} to {cosmetics.edit.%{_p}%.%{_piece}%.lore}
- return {_item}
- function saveSuit(p: Player, helmet: Item, chestplate: Item, leggings: Item, boots: Item):
- set {_type} to {cosmetics.edit.%{_p}%.type}
- set {cos.suits.%{_type}%} to true
- set {cos.suits.%{_type}%.crate} to {cosmetics.edit.%{_p}%.crate}
- #Add to crate!!!!
- if {_helmet} is not a barrier:
- set {cos.suits.%{_type}%.helmet} to {_helmet}
- if {_chestplate} is not a barrier:
- set {cos.suits.%{_type}%.chestplate} to {_chestplate}
- if {_leggings} is not a barrier:
- set {cos.suits.%{_type}%.leggings} to {_leggings}
- if {_boots} is not a barrier:
- set {cos.suits.%{_type}%.boots} to {_boots}
- send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Succesfully created the suit type %{lobby.arcatedColor.Lobby}%%{_type}%%{lobby.chatColor.lobby}%!" to {_p}
- function deleteSuit(p: Player):
- set {_type} to {cosmetics.edit.%{_p}%.type}
- delete {cos.suits.%{_type}%.crate}
- delete {cos.suits.%{_type}%}
- delete {cos.suits.%{_type}%.helmet}
- delete {cos.suits.%{_type}%.chestplate}
- delete {cos.suits.%{_type}%.leggings}
- delete {cos.suits.%{_type}%.boots}
- send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Succesfully deleted the suit type %{lobby.arcatedColor.Lobby}%%{_type}%%{lobby.chatColor.lobby}%!" to {_p}
- function runEditPiece(p: Player, type: String, closeType: String, piece: String, pieceText: String):
- set {cosmetics.edit.%{_p}%} to "%{_closeType}%"
- close {_p}'s inventory
- delete {cosmetics.edit.%{_p}%}
- set {cosmetics.edit.%{_p}%.helmet.type} to "%{_type}%"
- editPiece({_p}, "%{_piece}%", "%{_pieceText}%", {cosmetics.edit.%{_p}%.type})
- function setSkullType(p: Player):
- wait 2 tick
- open chest with 3 rows named "&8Choose Type" to {_p}
- if {cosmetics.edit.%{_p}%.helmet.type} is "Player":
- set {_player} to skull of ("MHF_Steve" parsed as an offline player) named "&2Player"
- set {_mob} to skull of ("MHF_CaveSpider" parsed as an offline player) named "&4Mob"
- else if {cosmetics.edit.%{_p}%.helmet.type} is "Mob":
- set {_player} to skull of ("MHF_Steve" parsed as an offline player) named "&4Player"
- set {_mob} to skull of ("MHF_CaveSpider" parsed as an offline player) named "&2Mob"
- else:
- set {_player} to skull of ("MHF_Steve" parsed as an offline player) named "&4Player"
- set {_mob} to skull of ("MHF_CaveSpider" parsed as an offline player) named "&4Mob"
- format slot 12 of {_p} with {_player} to run [runEditPiece({_p}, "go_back", "Player", "helmet", "Helmet")]
- format slot 14 of {_p} with {_mob} to run [runEditPiece({_p}, "go_back", "Mob", "helmet", "Helmet")]
- format slot 18 of {_p} with arrow named "&c<< Go Back" to run [runEditPiece({_p}, "go_back", {cosmetics.edit.%{_p}%.helmet.type}, "helmet", "Helmet")]
- function setSkullOwnerMob(p: Player, page: Integer):
- wait 1 tick
- open chest with 3 rows named "&8Edit SkullOwner" to {_p}
- if {_page} is 1:
- format slot 26 of {_p} with an arrow named "&cNext Page >>" to run [setSkullOwnerMob({_p}, 2)]
- 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")]
- 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")]
- 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")]
- 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")]
- 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")]
- 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")]
- 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")]
- 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")]
- 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")]
- 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")]
- 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")]
- 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")]
- 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")]
- 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")]
- 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")]
- 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")]
- 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")]
- 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")]
- else if {_page} is 2:
- format slot 18 of {_p} with an arrow named "&c<< Page Back" to run [setSkullOwnerMob({_p}, 1)]
- 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")]
- 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")]
- 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")]
- 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")]
- 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")]
- 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")]
- 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")]
- 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")]
- 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")]
- 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")]
- 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")]
- 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")]
- 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")]
- 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")]
- 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")]
- 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")]
- 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")]
- 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")]
- format slot 26 of {_p} with an arrow named "&cNext Page >>" to run [setSkullOwnerMob({_p}, 3)]
- else if {_page} is 3:
- format slot 18 of {_p} with an arrow named "&c<< Page Back" to run [setSkullOwnerMob({_p}, 2)]
- 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")]
- 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")]
- 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")]
- 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")]
- 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")]
- 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")]
- 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")]
- format slot 22 of {_p} with a barrier named "&4Go Back" to run [runEditPiece({_p}, "go_back", {cosmetics.edit.%{_p}%.helmet.type}, "helmet", "Helmet")]
- function editCos(p: Player, type: String):
- wait 2 ticks
- set {cosmetics.edit.%{_p}%.type} to {_type}
- if {cos.suits.%{_type}%} is true:
- editSuit({_p}, {cosmetics.edit.%{_p}%.type})
- else:
- open chest with 1 rows named "&8Choose Category" to {_p}
- wait 2 ticks
- set {_count} to 0
- if {cos.particles.enabled} is true:
- set slot {_count} of {_p}'s current inventory to redstone named "&cParticles"
- if {cos.heads.enabled} is true:
- set slot {_count} of {_p}'s current inventory to skull of {_p} named "&2Heads"
- add 1 to {_count}
- if {cos.suits.enabled} is true:
- set slot {_count} of {_p}'s current inventory to golden helmet named "&5Suits"
- add 1 to {_count}
- if {cos.gadgets.enabled} is true:
- set slot {_count} of {_p}'s current inventory to fire charge named "&bGadgets"
- add 1 to {_count}
- if {_count} is 0:
- set slot 0 of {_p}'s current inventory to barrier named "&4None Enabled"
- function editSuit(p: Player, type: String):
- #=========== Variables ===========
- set {cosmetics.edit.%{_p}%.type} to {_type}
- if {cosmetics.edit.%{_p}%.crate} is not set:
- set {cosmetics.edit.%{_p}%.crate} to ""
- if {cos.suits.%{_type}%} is true:
- set {cosmetics.edit.%{_p}%.crate} to {cos.suits.%{_type}%.crate}
- set {_close} to true
- loop {cos.pieces::*}:
- if {cos.suits.%{_type}%} is true:
- if {cos.suits.%{_type}%.%loop-value%} is not barrier:
- set {_%loop-value%} to {cos.suits.%{_type}%.%loop-value%}
- set {cosmetics.edit.%{_p}%.%loop-value%} to {_%loop-value%}
- else:
- set {_%loop-value%} to editCosFormat({_p}, loop-value, firstUpperCase(loop-value))
- else:
- set {_%loop-value%} to editCosFormat({_p}, loop-value, firstUpperCase(loop-value))
- set {_save} to true
- if {cosmetics.edit.%{_p}%.type} or {cosmetics.edit.%{_p}%.crate} is "":
- set {_save} to false
- else if {_helmet} and {_chestplate} and {_leggings} and {_boots} is barrier:
- set {_save} to false
- #=========== GUI ===========
- #Item doesn't show the proper name
- set {cancelled.%{_p}%} to true
- wait 2 ticks
- open chest with 6 rows named "&8Edit Suit" to {_p}
- wait 2 ticks
- if {cosmetics.edit.%{_p}%.type} is "":
- format slot 22 of {_p} with a paper named "&7Type: &c<none>" to run [set {cosmetics.edit.%{_p}%} to "setType"]->[close {_p}'s inventory]->[send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Type the new type of your set in the chat" to {_p}]
- else:
- format slot 22 of {_p} with a paper named "&7Type: &e%{cosmetics.edit.%{_p}%.type}%" to run [set {cosmetics.edit.%{_p}%} to "setType"]->[close {_p}'s inventory]->[send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Type the new type of your set in the chat" to {_p}]
- if {cosmetics.edit.%{_p}%.crate} is "":
- format slot 31 of {_p} with a chest named "&7Crate: &c<none>" to run [set {cosmetics.edit.%{_p}%} to "setCrate"]->[close {_p}'s inventory]->[send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Type the new crate of your set in the chat" to {_p}]
- else:
- format slot 31 of {_p} with a chest named "&7Crate: &e%{cosmetics.edit.%{_p}%.crate}%" to run [set {cosmetics.edit.%{_p}%} to "setCrate"]->[close {_p}'s inventory]->[send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Type the new crate of your set in the chat" to {_p}]
- format slot 10 of {_p} with {_helmet} without any NBT to run [set {cosmetics.edit.%{_p}%} to "helmet"]->[close {_p}'s inventory]->[delete {cosmetics.edit.%{_p}%}]->[editPiece({_p}, "helmet", "Helmet", "%{cosmetics.edit.%{_p}%.type}%")]
- format slot 19 of {_p} with {_chestplate} without any NBT to run [set {cosmetics.edit.%{_p}%} to "chestplate"]->[close {_p}'s inventory]->[delete {cosmetics.edit.%{_p}%}]->[editPiece({_p}, "chestplate", "Chestplate", "%{cosmetics.edit.%{_p}%.type}%")]
- format slot 28 of {_p} with {_leggings} without any NBT to run [set {cosmetics.edit.%{_p}%} to "leggings"]->[close {_p}'s inventory]->[delete {cosmetics.edit.%{_p}%}]->[editPiece({_p}, "leggings", "Leggings", "%{cosmetics.edit.%{_p}%.type}%")]
- format slot 37 of {_p} with {_leggings} without any NBT to run [set {cosmetics.edit.%{_p}%} to "boots"]->[close {_p}'s inventory]->[delete {cosmetics.edit.%{_p}%}]->[editPiece({_p}, "boots", "Boots", "%{cosmetics.edit.%{_p}%.type}%")]
- if {_close} is true:
- format slot 44 of {_p} with blaze rod named "&2Delete" with lore "||&7Click to delete the suit.||||&4&lWARNING||&cWhen you click this, your||&csuit will be deleted instantly!" to run [set {cosmetics.edit.%{_p}%} to "boots"]->[close {_p}'s inventory]->[delete {cosmetics.edit.%{_p}%}]->[deleteSuit({_p})]
- if {_save}:
- if {cos.suits.%{_type}%} is true:
- format slot 53 of {_p} with green wool named "&2Overwrite" to run [set {cancelled.%{_p}%} to true]->[close {_p}'s inventory]->[saveSuit({_p}, {_helmet}, {_chestplate}, {_leggings}, {_boots})]
- else:
- format slot 53 of {_p} with green wool named "&2Save" to run [set {cancelled.%{_p}%} to true]->[close {_p}'s inventory]->[saveSuit({_p}, {_helmet}, {_chestplate}, {_leggings}, {_boots})]
- else:
- format slot 53 of {_p} with red wool named "&4Save not possible" to be unstealable
- #while name of {_p}'s current inventory is "&8Edit Suit":
- #editSuit({_p}, "")
- # wait 1 second
- function runSetSkull(p: Player, skull: String):
- if {_skull} is "Player":
- send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Type the name of the player of your skull in the chat" to {_p}
- set {cosmetics.edit.%{_p}%} to "setSkullOwner"
- close {_p}'s inventory
- else if {_skull} is "Mob":
- set {cosmetics.edit.%{_p}%} to "go_back"
- close {_p}'s inventory
- delete {cosmetics.edit.%{_p}%}
- setSkullOwnerMob({_p}, 1)
- function editPiece(p: Player, piece: String, pieceText: String, type: String):
- #=========== Variables ===========
- send "%{_p}%" to console
- set {cosmetics.edit.%{_p}%.current} to "%{_piece}%"
- set {cosmetics.edit.%{_p}%.pieceText} to "%{_pieceText}%"
- set {_displayItem} to editCosFormat({_p}, "%{_piece}%", "%{_pieceText}%")
- if {cosmetics.edit.%{_p}%.%{_piece}%} is not set:
- set {_item} to an item frame named "&7Item: &c<none>"
- else if {cosmetics.edit.%{_p}%.%{_piece}%} is "":
- set {_item} to an item frame named "&7Item: &c<none>"
- else if {cosmetics.edit.%{_p}%.%{_piece}%} is barrier:
- set {_item} to an item frame named "&7Item: &c<none>"
- else:
- set {_item} to an item frame named "&7Item: &2%{cosmetics.edit.%{_p}%.%{_piece}%}%"
- if {cosmetics.edit.%{_p}%.%{_piece}%.name} is not set:
- set {cosmetics.edit.%{_p}%.%{_piece}%.displayName} to ""
- if {cosmetics.edit.%{_p}%.%{_piece}%.name} is "":
- set {cosmetics.edit.%{_p}%.%{_piece}%.displayName} to ""
- if {_displayItem} is not barrier:
- if {cosmetics.edit.%{_p}%.%{_piece}%.name} is not set:
- set {_itemName} to "&c<none>"
- if {cosmetics.edit.%{_p}%.%{_piece}%.name} is "":
- set {_itemName} to "&c<none>"
- if {_displayItem} is leather cap or leather tunic or leather leggings or leather boots:
- set {_leather} to true
- else:
- set {_itemName} to {cosmetics.edit.%{_p}%.%{_piece}%.name}
- set {cosmetics.edit.%{_p}%.%{_piece}%} to {_displayItem}
- replace all "&" in {_itemName} with "§"
- set {_nameItem} to a paper named "&7Name: &e%{_itemName}%"
- #=========== GUI ===========
- wait 2 ticks
- open chest with 3 rows named "&8Edit %{_pieceText}%" to {_p}
- wait 2 ticks
- #item, name, enchantment and lore (lore || -> new line (also in message!!!))
- if {_piece} is "helmet":
- set {_string} to "%{cosmetics.edit.%{_p}%.helmet}%"
- set {_split::*} to {_string} split at " "
- if contains({_split::*}, "head"):
- if {cosmetics.edit.%{_p}%.helmet.type} is set:
- set {_changeType} to a redstone repeater named "&7Skull Type: &e%{cosmetics.edit.%{_p}%.helmet.type}%"
- else:
- set {_changeType} to a redstone repeater named "&7Skull Type: &c<none>"
- if {cosmetics.edit.%{_p}%.helmet.player} is set:
- if {cosmetics.edit.%{_p}%.helmet.type} is "Mob":
- set {cosmetics.edit.%{_p}%.helmet.skull} to skull of "%{_p}%" parsed as an offline player with nbt "%{cosmetics.edit.%{_p}%.helmet.player}%" named "&7Skull Owner: &e%{cosmetics.edit.%{_p}%.helmet.name}%"
- set {_displayItem} to skull of "%{_p}%" parsed as an offline player with nbt "%{cosmetics.edit.%{_p}%.helmet.player}%" named "&f%{cosmetics.edit.%{_p}%.helmet.name}%"
- set {cosmetics.edit.%{_p}%.helmet} to {_displayItem}
- else if {cosmetics.edit.%{_p}%.helmet.type} is "Player":
- set {cosmetics.edit.%{_p}%.helmet.skull} to skull of "%{cosmetics.edit.%{_p}%.helmet.player}%" parsed as an offline player named "&7Skull Owner: &e%{cosmetics.edit.%{_p}%.helmet.player}%"
- set {_displayItem} to skull of "%{_p}%" parsed as an offline player with nbt "%{cosmetics.edit.%{_p}%.helmet.player}%" named "&f%{cosmetics.edit.%{_p}%.helmet.name}%"
- set {cosmetics.edit.%{_p}%.helmet} to {_displayItem}
- else:
- set {cosmetics.edit.%{_p}%.helmet.skull} to skull of ("MHF_Steve" parsed as an offline player) named "&7Skull Owner: &c<none>"
- format slot 1 of {_p} with {_changeType} to run [set {cosmetics.edit.%{_p}%} to "go_back"]->[close {_p}'s inventory]->[delete {cosmetics.edit.%{_p}%}]->[setSkullType({_p})]
- format slot 19 of {_p} with {cosmetics.edit.%{_p}%.helmet.skull} to run [runSetSkull({_p}, {cosmetics.edit.%{_p}%.helmet.type})]
- if {_leather} is true:
- if {cosmetics.edit.%{_p}%.%{_piece}%.red} is not set:
- set {cosmetics.edit.%{_p}%.%{_piece}%.red} to 0
- if {cosmetics.edit.%{_p}%.%{_piece}%.green} is not set:
- set {cosmetics.edit.%{_p}%.%{_piece}%.green} to 0
- if {cosmetics.edit.%{_p}%.%{_piece}%.blue} is not set:
- set {cosmetics.edit.%{_p}%.%{_piece}%.blue} to 0
- #give {_p} leather helmet dyed 265, 265, 265
- #set {_i} to leather helmet dyed 10, 10, 10
- #send "%{_i}%" to {_p}
- format slot 7 of {_p} with leather chestplate dyed 10 10 10 named "&cRED" to be unstealable
- format slot 8 of {_p} with rose red named "&7Dye &8(&4&lRED&8)" with lore "&8Current &4%{cosmetics.edit.%{_p}%.%{_piece}%.red}%||||&7Set the red tone of this||&7piece!" without any NBT to run [set {cosmetics.edit.%{_p}%} to "dye_red"]->[close {_p}'s inventory]->[send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Type the %{lobby.arcatedColor.Lobby}% red tone %{lobby.chatColor.Lobby}%in the chat" to {_p}]
- format slot 17 of {_p} with cactus green named "&7Dye &8(&2&lGREEN&8)" with lore "&8Current &2%{cosmetics.edit.%{_p}%.%{_piece}%.green}%||||&7Set the green tone of this||&7piece!" without any NBT to run [set {cosmetics.edit.%{_p}%} to "dye_green"]->[close {_p}'s inventory]->[send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Type the %{lobby.arcatedColor.Lobby}% green tone %{lobby.chatColor.Lobby}%in the chat" to {_p}]
- dye {_displayItem} blue
- format slot 26 of {_p} with lapis lazuli named "&7Dye &8(&9&lBLUE&8)" with lore "&8Current &9%{cosmetics.edit.%{_p}%.%{_piece}%.blue}%||||&7Set the blue tone of this||&7piece!" without any NBT to run [set {cosmetics.edit.%{_p}%} to "dye_blue"]->[close {_p}'s inventory]->[send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Type the %{lobby.arcatedColor.Lobby}% blue tone %{lobby.chatColor.Lobby}%in the chat" to {_p}]
- dye {_displayItem} (0, 0, 0)
- if {cosmetics.edit.%{_p}%.%{_piece}%.red} or {cosmetics.edit.%{_p}%.%{_piece}%.red} or {cosmetics.edit.%{_p}%.%{_piece}%.red} is not 0:
- if {_piece} is leather cap or leather tunic or leather leggings or leather boots:
- dye {cosmetics.edit.%{_p}%.%{_piece}%} ({cosmetics.edit.%{_p}%.%{_piece}%.red}, {cosmetics.edit.%{_p}%.%{_piece}%.green}, {cosmetics.edit.%{_p}%.%{_piece}%.blue})
- dye {_displayItem} ({cosmetics.edit.%{_p}%.%{_piece}%.red}, {cosmetics.edit.%{_p}%.%{_piece}%.green}, {cosmetics.edit.%{_p}%.%{_piece}%.blue})
- format slot 18 of {_p} with arrow named "&c<< Go Back" to run [set {cosmetics.edit.%{_p}%} to "go_back"]->[close {_p}'s inventory]->[delete {cosmetics.edit.%{_p}%}]->[editSuit({_p}, {_type})]
- format slot 12 of {_p} with {_item} to run [set {cosmetics.edit.%{_p}%} to "set%{_pieceText}%Item"]->[close {_p}'s inventory]->[send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Type the %{lobby.arcatedColor.Lobby}%%{_piece}% type %{lobby.chatColor.Lobby}%in the chat" to {_p}]
- format slot 13 of {_p} with {_nameItem} to run [set {cosmetics.edit.%{_p}%} to "set%{_pieceText}%Name"]->[close {_p}'s inventory]->[send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Type the %{lobby.arcatedColor.Lobby}%%{_piece}% name %{lobby.chatColor.Lobby}%in the chat" to {_p}]
- format slot 10 of {_p} with {_displayItem} to be unstealable
- #-----------------------------------{ Events }-----------------------------------
- on enable:
- startup()
- on disable:
- set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
- set {_world} to world of {lobby.location}
- loop {_list::*}:
- #clear {lobbycr.%loop-value-1%.location::*}
- #{lobbycr.%uncolored name of player's tool%.location::*}
- delete yml value "Locations" of file "{@path}/%loop-value-1%.yml"
- #set yml value "Locations" of file "{@path}/%loop-value-1%.yml" to "%{lobbycr.%loop-value%.location::*}%"
- loop {lobbycr.%loop-value-1%.location::*}:
- unregister hologram {holo-crate-%{_world}%-%loop-value-2%}
- add "%loop-value-2%" to yml list "Locations" of file "{@path}/%loop-value-1%.yml"
- #remove loop-value-2 from {lobbycr.%loop-value-1%.location::*}
- #if yml file "{@path}/%loop-value-1%.yml" exists:
- # if yml path "Locations" of file "{@path}/%loop-value-1%.yml" doesn't exist:
- # set yml value "Locations" of file "{@path}/%loop-value-1%.yml" to "%loop-value-2%"
- # else:
- clear {lobbycr.%loop-value-1%.location::*}
- loop {crates.openinglist::*}:
- clear {crates.opening.%loop-value%}
- clear {crates.%loop-value%.inv::*}
- clear {crates.%loop-value%.name}
- clear {crate.closed.%loop-value%}
- clear {crates.openinglist::*}
- on quit:
- if {crates.opening.%player%} is set:
- clear {crates.opening.%player%}
- clear {crates.%player%.inv::*}
- clear {crates.%player%.name}
- clear {crates.closed.%player%}
- remove player from {crates.openinglist::*}
- deleteVariables(player)
- on command:
- if command doesn't end with "pl":
- if command doesn't end with "plugins":
- set {cmd} to command in lower case
- on place of chest:
- set {_world} to world of event-block
- if {_world} is world of {lobby.location}:
- set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
- if contains({_list::*}, uncolored name of player's tool):
- add location of block at event-block to {lobbycr.%uncolored name of player's tool%.location::*}
- add world of event-block to {lobbycr.%uncolored name of player's tool%.world::*}
- set {holo-crate-%world of event-block%-%location of event-block%} to new hologram at location 1 meters above event-block
- #send "%{cos.holograms.color.%uncolored name of player's tool%}%"
- 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%}
- #add "%location of block at event-block%" to yml list "Locations" of file "{@path}/%uncolored name of player's tool%.yml"
- send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Succesfully created a %{lobby.arcatedColor.Lobby}%%uncolored name of player's tool% %{lobby.chatColor.Lobby}%Crate!"
- on break of chest:
- set {_world} to world of event-block
- if {_world} is world of {lobby.location}:
- if {holo-crate-%world of event-block%-%location of event-block%} is set:
- set {_content} to "%{holo-crate-%world of event-block%-%location of event-block%}%"
- set {_contents::*} to {_content} split at "[text="
- set {_name::*} to {_contents::2} split at "]],"
- if {_name::1} is set:
- unregister hologram {holo-crate-%world of event-block%-%location of event-block%}
- delete {holo-crate-%world of event-block%-%location of event-block%}
- remove "%location of event-block%" from yml list "Locations" of file "{@path}/%uncolored {_name::1}%.yml"
- set {_name} to uncolored {_name::1}
- #remove location of block at event-block from {lobbycr.%{_name}%.location::*}
- send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Succesfully removed a %{lobby.arcatedColor.Lobby}%%uncolored {_name::1}% %{lobby.chatColor.Lobby}%Crate!"
- on rightclick on a chest:
- set {_world} to world of clicked block
- if {_world} is {lobby.world}:
- set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
- loop {_list::*}:
- loop {lobbycr.%loop-value-1%.location::*}:
- if "%loop-value-2%" is "%location of clicked block%":
- cancel event
- if uncolored {crate.%player%.name} = loop-value-1:
- if {crates.opening.%player%} is true:
- open chest with 3 rows named "&2%{crate.%player%.name}%" to player
- wait 2 ticks
- set {crates.reopening.%player%} to true
- set {_count} to 0
- loop 27 times:
- if {crate.%player%.inv::%{_count}%} is set:
- set {_value} to "%{crate.%player%.inv::%{_count}%}%"
- set {_color::*} to {_value} split at " "
- if contains({_color::*}, "glass") is true:
- if contains({_color::*}, "light") is true:
- format slot {_count} of player with ("light %{_color::2}% stained glass pane" parsed as an item) to be unstealable
- else if contains({_color::*}, "dark") is true:
- format slot {_count} of player with ("dark %{_color::2}% stained glass pane" parsed as an item) to be unstealable
- else:
- format slot {_count} of player with ("%{_color::1}% stained glass pane" parsed as an item) to be unstealable
- else:
- format slot {_count} of player with ({crate.%player%.inv::%{_count}%} parsed as an item) to be unstealable
- add 1 to {_count}
- delete {crates.closed.%player%}
- remove player from {crates.openinglist::*}
- delete {crate.%player%.name}
- #stop loop
- stop
- else:
- open chest with 3 rows named "&2%loop-value-1%" to player
- wait 2 tick
- 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%")]
- stop loop
- else:
- open chest with 3 rows named "&2%loop-value-1%" to player
- wait 2 ticks
- 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%")]
- stop loop
- on inventory close:
- if {cancelled.%player%}:
- #send "Cancel"
- delete {cancelled.%player%}
- #stop
- else if {crates.opening.%player%} is true:
- set {crates.closed.%player%} to true
- add player to {crates.openinglist::*}
- set {crate.%player%.name} to name of player's current inventory
- set {_count} to 0
- loop 27 times:
- if {crate.%player%.inv::%{_count}%} is not set:
- set {crate.%player%.inv::%{_count}%} to slot {_count} of player's current inventory
- else if {crate.%player%.inv::%{_count}%} is air:
- set {crate.%player%.inv::%{_count}%} to slot {_count} of player's current inventory
- add 1 to {_count}
- else if {crates.opening.%player%} is set:
- delete {crates.opening.%player%}
- else if name of current inventory of player is "&8Edit" or "&8Edit Helmet" or "&8Edit Chestplate" or "&8Edit Leggings" or "&8Edit Boots" or "&8Choose Category" or "&8Choose Type" or "&8Edit SkullOwner":
- if {cosmetics.edit.%player%} is not set:
- deleteVariables(player)
- on inventory click:
- if name of clicked inventory is "&8Choose Category":
- if clicked slot is 1:
- close player's inventory
- editSuit(player, {cosmetics.edit.%{_p}%.type})
- else:
- cancel event
- #else if inventory type is chest:
- # uncancel event
- on chat:
- if {cosmetics.edit.%player%} is set:
- cancel event
- set {cosmetics.chatrun.%player%} to true
- if {cosmetics.edit.%player%} is "set%{cosmetics.edit.%player%.pieceText}%Item":
- if message is "cancel":
- send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Cancelled setting the %{lobby.arcatedColor.Lobby}%%{cosmetics.edit.%player%.pieceText} in lower case%%{lobby.chatColor.Lobby}%."
- editPiece(player, {cosmetics.edit.%player%.current}, {cosmetics.edit.%player%.pieceText}, {cosmetics.edit.%player%.type})
- delete {cosmetics.edit.%player%}
- else if message parsed as an item type is not set:
- 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}%!"
- else:
- if {cosmetics.edit.%player%.type} is not set:
- set {cosmetics.edit.%player%.type} to ""
- set {_var} to message
- replace all " " in {_var} with "_"
- if {_var} contains "_":
- set {_message::*} to {_var} split at "_"
- if ({cosmetics.edit.%player%.pieceText} in lower case) is "helmet":
- set {_piece} to ("%{cosmetics.edit.%player%.pieceText}%" in lower case)
- if contains({_message::*}, "helmet"):
- set {cosmetics.edit.%player%.%{_piece}%} to message in lower case
- else if message = "head":
- set {cosmetics.edit.%player%.%{_piece}%} to "head"
- else if contains({_message::*}, "head"):
- set {cosmetics.edit.%player%.%{_piece}%} to "head"
- else:
- send "%{lobby.logo.Lobby}% %{lobby.arcatedColor.Lobby}%%message% %{lobby.chatColor.Lobby}%is not a helmet!"
- stop
- send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Succesfully set helmet to %{lobby.arcatedColor.Lobby}%%message%%{lobby.chatColor.Lobby}%!"
- editPiece(player, {cosmetics.edit.%player%.current}, {cosmetics.edit.%player%.pieceText}, {cosmetics.edit.%player%.type})
- delete {cosmetics.edit.%player%}
- else if ({cosmetics.edit.%player%.pieceText} in lower case) is "chestplate":
- set {_piece} to ("%{cosmetics.edit.%player%.pieceText}%" in lower case)
- if contains({_message::*}, "chestplate") or contains({_message::*}, "tunic"):
- set {cosmetics.edit.%player%.%{_piece}%} to message in lower case
- else:
- send "%{lobby.logo.Lobby}% %{lobby.arcatedColor.Lobby}%%message% %{lobby.chatColor.Lobby}%is not a chestplate!"
- stop
- send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Succesfully set chestplate to %{lobby.arcatedColor.Lobby}%%message%%{lobby.chatColor.Lobby}%!"
- editPiece(player, {cosmetics.edit.%player%.current}, {cosmetics.edit.%player%.pieceText}, {cosmetics.edit.%player%.type})
- delete {cosmetics.edit.%player%}
- else if ({cosmetics.edit.%player%.pieceText} in lower case) is "leggings":
- set {_piece} to ("%{cosmetics.edit.%player%.pieceText}%" in lower case)
- if contains({_message::*}, "leggings"):
- set {cosmetics.edit.%player%.%{_piece}%} to message in lower case
- else:
- send "%{lobby.logo.Lobby}% %{lobby.arcatedColor.Lobby}%%message% %{lobby.chatColor.Lobby}%are no leggings!"
- stop
- send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Succesfully set leggings to %{lobby.arcatedColor.Lobby}%%message%%{lobby.chatColor.Lobby}%!"
- editPiece(player, {cosmetics.edit.%player%.current}, {cosmetics.edit.%player%.pieceText}, {cosmetics.edit.%player%.type})
- delete {cosmetics.edit.%player%}
- else if ({cosmetics.edit.%player%.pieceText} in lower case) is "boots":
- set {_piece} to ("%{cosmetics.edit.%player%.pieceText}%" in lower case)
- if contains({_message::*}, "boots"):
- set {cosmetics.edit.%player%.%{_piece}%} to message in lower case
- else:
- send "%{lobby.logo.Lobby}% %{lobby.arcatedColor.Lobby}%%message% %{lobby.chatColor.Lobby}%are no boots!"
- stop
- send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Succesfully set boots to %{lobby.arcatedColor.Lobby}%%message%%{lobby.chatColor.Lobby}%!"
- editPiece(player, {cosmetics.edit.%player%.current}, {cosmetics.edit.%player%.pieceText}, {cosmetics.edit.%player%.type})
- delete {cosmetics.edit.%player%}
- else:
- 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}%!"
- else if {cosmetics.edit.%player%} is "setType":
- if message is "cancel":
- send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Cancelled setting the type."
- editPiece(player, {cosmetics.edit.%player%.current}, {cosmetics.edit.%player%.pieceText}, {cosmetics.edit.%player%.type})
- delete {cosmetics.edit.%player%}
- else if {cos.suits.%message%} exists:
- send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%The type %{lobby.arcatedColor.Lobby}%%message% %{lobby.chatColor.Lobby}%is already in use!"
- else:
- set {cosmetics.edit.%player%.type} to message
- delete {cosmetics.edit.%player%}
- send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Succesfully set type to %{lobby.arcatedColor.Lobby}%%message%%{lobby.chatColor.Lobby}%!"
- editSuit(player, {cosmetics.edit.%player%.type})
- else if {cosmetics.edit.%player%} is "setCrate":
- if message is "cancel":
- send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Cancelled setting the crate."
- editPiece(player, {cosmetics.edit.%player%.current}, {cosmetics.edit.%player%.pieceText}, {cosmetics.edit.%player%.type})
- delete {cosmetics.edit.%player%}
- else:
- set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
- if contains({_list::*}, message in lower case):
- set {cosmetics.edit.%player%.crate} to message in lower case
- editSuit(player, {cosmetics.edit.%player%.type})
- delete {cosmetics.edit.%player%}
- else:
- send "%{lobby.logo.Lobby}% %{lobby.arcatedColor.Lobby}%%message% %{lobby.chatColor.Lobby}%is not a valid crate!"
- else if {cosmetics.edit.%player%} is "setSkullOwner":
- if message is "cancel":
- send "%{lobby.logo.Lobby}% Cancelled setting the skull owner."
- editPiece(player, {cosmetics.edit.%player%.current}, {cosmetics.edit.%player%.pieceText}, {cosmetics.edit.%player%.type})
- delete {cosmetics.edit.%player%}
- else:
- set {cosmetics.edit.%player%.helmet.player} to message
- set {cosmetics.edit.%player%.helmet.name} to message
- delete {cosmetics.edit.%player%}
- send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Succesfully set the skull owner to %{lobby.arcatedColor.Lobby}%%message%%{lobby.chatColor.Lobby}%!"
- editPiece(player, {cosmetics.edit.%player%.current}, {cosmetics.edit.%player%.pieceText}, {cosmetics.edit.%player%.type})
- #{cosmetics.edit.%{_p}%.current}
- #{cosmetics.edit.%{_p}%.pieceText}
- else if {cosmetics.edit.%player%} is "set%{cosmetics.edit.%player%.pieceText}%Name":
- if message is "cancel":
- send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Cancelled setting the %{lobby.arcatedColor.Lobby}%%{cosmetics.edit.%player%.current}% %{lobby.chatColor.Lobby}%name."
- editPiece(player, {cosmetics.edit.%player%.current}, {cosmetics.edit.%player%.pieceText}, {cosmetics.edit.%player%.type})
- delete {cosmetics.edit.%player%}
- else:
- set {cosmetics.edit.%player%.%{cosmetics.edit.%player%.current}%.displayName} to message
- set {cosmetics.edit.%player%.%{cosmetics.edit.%player%.current}%.name} to message
- delete {cosmetics.edit.%player%}
- 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}%!"
- editPiece(player, {cosmetics.edit.%player%.current}, {cosmetics.edit.%player%.pieceText}, {cosmetics.edit.%player%.type})
- else if {cosmetics.edit.%player%} is "dye_red":
- if message is "cancel":
- send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Cancelled setting %{lobby.arcatedColor.Lobby}%%{cosmetics.edit.%player%.current}%'s red tone%{lobby.chatColor.Lobby}%."
- editPiece(player, {cosmetics.edit.%player%.current}, {cosmetics.edit.%player%.pieceText}, {cosmetics.edit.%player%.type})
- delete {cosmetics.edit.%player%}
- else:
- if message parsed as an integer is set:
- set {cosmetics.edit.%player%.%{cosmetics.edit.%player%.current}%.red} to message parsed as an integer
- delete {cosmetics.edit.%player%}
- editPiece(player, {cosmetics.edit.%player%.current}, {cosmetics.edit.%player%.pieceText}, {cosmetics.edit.%player%.type})
- else:
- send "%{lobby.logo.Lobby}% %{lobby.arcatedColor.Lobby}%%message% %{lobby.chatColor.Lobby}%is not a number!"
- #-----------------------------------{ Commands / cosmetics.* }-----------------------------------
- command /dye:
- trigger:
- #set {_i} to leather helmet
- #set {_i} to leather helmet dyed red
- #add "{display:{color:11546150}}" to nbt of {_i}
- #set {_i} to leather chestplate dyed red
- set {_i} to leather helmet
- dye {_i} (10, 10, 255)
- give player {_i}
- wait 1 tick
- dye player's tool (255, 255, 255)
- #give player red leather cap
- command /lobbycrate [<text>] [<text>]:
- aliases: /lobbycr, /lcrate
- trigger:
- if player is in world of {lobby.location}:
- if player has permission "votecrate.*":
- if arg-1 is set:
- if arg-1 is "help":
- send "%{lobby.chatColor.Lobby}%----------[ %{lobby.arcatedColor.Lobby}%%{cmd}% %{lobby.chatColor.Lobby}%]----------"
- send "&e&o/%{cmd}% help &d→ &fGet the help page"
- send "&e&o/%{cmd}% list &d→ &fGet a list with all crates"
- send "&e&o/%{cmd}% create <crate> &d→ &fCreate a create"
- send "&e&o/%{cmd}% delete/remove <crate> &d→ &fDelete a crate"
- send "&e&o/%{cmd}% path <crate> &d→ &fGet the edit path of a crate"
- send "&e&o/%{cmd}% get <crate> &d→ &fGet a crate"
- send "%{lobby.chatColor.Lobby}%----------[ %{lobby.arcatedColor.Lobby}%%{cmd}% %{lobby.chatColor.Lobby}%]----------"
- else if arg-1 is "list":
- set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
- if {_list::*} is not empty:
- loop {_list::*}:
- if {_list} is set:
- set {_list} to "%{_list}%%{lobby.chatColor.Lobby}%, %{lobby.arcatedColor.Lobby}%%loop-value%"
- else:
- set {_list} to "%{lobby.arcatedColor.Lobby}%%loop-value%"
- send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%There are the following crates:%nl%%{lobby.arcatedColor.Lobby}%%{_list}%"
- else:
- send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%There are no crates made yet."
- else if arg-1 is "create":
- if arg-2 is set:
- set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
- set {_arg2} to arg-2 in lower case
- if contains({_list::*}, {_arg2}):
- send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%The crate %{lobby.arcatedColor.Lobby}%%{_arg2}% %{lobby.chatColor.Lobby}%already exists!"
- else:
- send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Making the crate %{lobby.arcatedColor.Lobby}%%{_arg2}%%{lobby.chatColor.Lobby}%..."
- add {_arg2} to yml list "Lobby.Crates.List" of file "{@config}"
- create file "{@path}/%{_arg2}%.yml"
- add "diamond_sword" to yml list "Item.List" of file "{@path}/%{_arg2}%.yml"
- add "diamond_sword-1" to yml list "Item.ConfigName" of file "{@path}/%{_arg2}%.yml"
- set yml value "Item.Chance.diamond_sword-1" of file "{@path}/%{_arg2}%.yml" to "100"
- set yml value "Item.Name.diamond_sword-1" of file "{@path}/%{_arg2}%.yml" to "%{lobby.arcatedColor.Lobby}%Diamond Sword"
- set yml value "Item.Amount.diamond_sword-1" of file "{@path}/%{_arg2}%.yml" to 1
- add "This is a lore" to yml list "Item.Lore.diamond_sword-1" of file "{@path}/%{_arg2}%.yml"
- add "sharpness:1" to yml list "Item.Enchants.diamond_sword-1" of file "{@path}/%{_arg2}%.yml"
- send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Succesfully made the crate %{lobby.arcatedColor.Lobby}%%{_arg2}%%{lobby.chatColor.Lobby}%!"
- else:
- send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%You need to give up a %{lobby.arcatedColor.Lobby}%name %{lobby.chatColor.Lobby}%for the crate!"
- else if arg-1 is "delete" or "remove":
- if arg-2 is set:
- set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
- set {_arg2} to arg-2 in lower case
- if contains({_list::*}, {_arg2}):
- send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Deleting the crate %{lobby.arcatedColor.Lobby}%%{_arg2}%%{lobby.chatColor.Lobby}%..."
- remove "%{_arg2}%" from yml list "Lobby.Crates.List" of file "{@config}"
- delete file "{@path}/%{_arg2}%.yml"
- send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Succesfully deleted the crate %{lobby.arcatedColor.Lobby}%%{_arg2}%%{lobby.chatColor.Lobby}%!"
- else:
- send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%The crate %{lobby.arcatedColor.Lobby}%%{_arg2}% %{lobby.chatColor.Lobby}%doesn't exist!"
- else:
- 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!"
- else if arg-1 is "path":
- if arg-2 is set:
- set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
- set {_arg2} to arg-2 in lower case
- if contains({_list::*}, {_arg2}):
- send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Location of %{_arg2}%: %{lobby.arcatedColor.Lobby}%{@path}/%{_arg2}%%{lobby.chatColor.Lobby}%."
- else:
- send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%The crate %{lobby.arcatedColor.Lobby}%%{_arg2}% %{lobby.chatColor.Lobby}%doesn't exists!"
- else:
- 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!"
- else if arg-1 is "get":
- if arg 2 is set:
- set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
- set {_arg2} to arg-2 in lower case
- if contains({_list::*}, {_arg2}):
- 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."
- give player 1 chest named "&e%{_arg2}%" with lore "&7Place to create a crate!"
- else:
- send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%The crate %{lobby.arcatedColor.Lobby}%%{_arg2}% %{lobby.chatColor.Lobby}%doesn't exist!"
- else:
- send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%You must give up a crate type!"
- else:
- send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Do %{lobby.arcatedColor.Lobby}%/%{cmd}% help %{lobby.chatColor.Lobby}%for more info."
- else:
- send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Do %{lobby.arcatedColor.Lobby}%/%{cmd}% help %{lobby.chatColor.Lobby}%for more info."
- command /key [<text>] [<text>] [<text>] [<text>]:
- trigger:
- if player has permission "key.*":
- if arg-1 is set:
- if arg-1 is "help":
- send "%{lobby.chatColor.Lobby}%----------[ %{lobby.arcatedColor.Lobby}%%{cmd}% %{lobby.chatColor.Lobby}%]----------"
- send "&e&o/%{cmd}% help &d→ &fGet the help page"
- send "&e&o/%{cmd}% get <crate/all> [number] &d→ &fGet a crate"
- send "&e&o/%{cmd}% give <player> <crate/all> [number] &d→ &fGive a key to open a crate to a player"
- send "&e&o/%{cmd}% remove <all/crate> [number] [player] &d→ &fRemove a key from a player"
- send "&e&o/%{cmd}% clear <all/crate> [player] &d→ &fClear the keys from a player"
- send "&e&o/%{cmd}% keys <all/crate> [player] &d→ &fGet the amount of keys from a player"
- send "%{lobby.chatColor.Lobby}%----------[ %{lobby.arcatedColor.Lobby}%%{cmd}% %{lobby.chatColor.Lobby}%]----------"
- else if arg-1 is "get":
- if arg-2 is "all":
- if arg-3 is set:
- if (arg-3 parsed as a number) is set:
- set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
- set {_num} to arg-3 parsed as a number
- loop {_num} times:
- loop {_list::*}:
- add 1 to {keys.%player%.%loop-value-2%}
- send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%You have recieved all the %{lobby.arcatedColor.Lobby}%%arg-3% %{lobby.chatColor.Lobby}%times!"
- else:
- send "%{lobby.logo.Lobby}% %{lobby.arcatedColor.Lobby}%%arg-3% %{lobby.chatColor.Lobby}%is not a number!"
- else:
- set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
- loop {_list::*}:
- add 1 to {keys.%player%.%loop-value%}
- send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%You have recieved all keys!"
- else if arg-2 is set:
- set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
- if contains({_list::*}, arg-2 in lower case):
- if arg-3 is set:
- if (arg-3 parsed as a number) is set:
- add (arg-3 parsed as a number) to {keys.%player%.%arg-2 in lower case%}
- 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!"
- else:
- send "%{lobby.logo.Lobby}% %{lobby.arcatedColor.Lobby}%%arg-3% %{lobby.chatColor.Lobby}%is not a number!"
- else:
- add 1 to {keys.%player%.%arg-2 in lower case%}
- send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%You have recieved a %{lobby.arcatedColor.Lobby}%%arg-2 in lower case% %{lobby.chatColor.Lobby}%key!"
- else:
- send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%The crate %{lobby.arcatedColor.Lobby}%%arg-2 in lower case% %{lobby.chatColor.Lobby}%doesn't exist."
- else:
- send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%You must give up a %{lobby.arcatedColor.Lobby}%crate%{lobby.chatColor.Lobby}%!"
- else if arg-1 is "give":
- if arg-2 is set:
- if (arg-2 parsed as a player) is set:
- if arg-3 is set:
- if arg-3 is "all":
- if arg-4 is set:
- if (arg-4 parsed as a number) is set:
- set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
- set {_num} to arg-4 parsed as a number
- loop {_num} times:
- loop {_list::*}:
- add 1 to {keys.%arg-2 parsed as a player%.%loop-value-2%}
- 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!"
- 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
- else:
- send "%{lobby.logo.Lobby}% %{lobby.arcatedColor.Lobby}%%arg-3% %{lobby.chatColor.Lobby}%is not a number!"
- else:
- set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
- loop {_list::*}:
- add 1 to {keys.%arg-2 parsed as a player%.%loop-value%}
- 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!"
- send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%You have recieved all the keys!" to arg-2 parsed as a player
- else:
- set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
- if contains({_list::*}, arg-3 in lower case):
- if arg-4 is set:
- if (arg-4 parsed as a number) is set:
- add (arg-4 parsed as a number) to {keys.%arg-2%.%arg-3 in lower case%}
- 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!"
- 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
- else:
- send "%{lobby.logo.Lobby}% %{lobby.arcatedColor.Lobby}%%arg-3% %{lobby.chatColor.Lobby}%is not a number!"
- else:
- add 1 to {keys.%arg-2 parsed as a player%.%arg-3 in lower case%}
- 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!"
- 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
- else:
- send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%The crate %{lobby.arcatedColor.Lobby}%%arg-3 in lower case% %{lobby.chatColor.Lobby}%doesn't exist!"
- else:
- send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%You must give up a %{lobby.arcatedColor.Lobby}%crate%{lobby.chatColor.Lobby}%!"
- else:
- send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%The player %{lobby.arcatedColor.Lobby}%%arg-2% %{lobby.chatColor.Lobby}%is not online!"
- else:
- send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%You must give up a %{lobby.arcatedColor.Lobby}%player%{lobby.chatColor.Lobby}%!"
- else if arg-1 is "remove":
- if arg-2 is set:
- if arg-2 is "all":
- if arg-3 is set:
- if (arg-3 parsed as a number) is set:
- if arg-4 is set:
- if (arg-4 parsed as a player) is set:
- set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
- set {_num} to arg-3 parsed as a number
- loop {_list::*}:
- if {keys.%arg-4 parsed as a player%.%loop-value%}-{_num} >= 0:
- remove {_num} from {keys.%name of arg-4 parsed as a player%.%loop-value%}
- else:
- set {keys.%arg-4 parsed as a player%.%loop-value%} to 0
- 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}%!"
- 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
- else:
- send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%The player %{lobby.arcatedColor.Lobby}%%arg-4% %{lobby.chatColor.Lobby}%is not online!"
- else:
- set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
- loop {_list::*}:
- if {keys.%player%.%loop-value%}-(arg-3 parsed as a number) >= 0:
- remove (arg-3 parsed as a number) from {keys.%player%.%loop-value%}
- else:
- set {keys.%player%.%loop-value%} to 0
- send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Succesfully removed %{lobby.arcatedColor.Lobby}%%arg-3% %{lobby.chatColor.Lobby}%from all the keys!"
- else:
- send "%{lobby.logo.Lobby}% %{lobby.arcatedColor.Lobby}%%arg-3% %{lobby.chatColor.Lobby}%is not a number!"
- else:
- set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
- loop {_list::*}:
- if {keys.%player%.%loop-value%}-1 >= 0:
- remove 1 from {keys.%player%.%loop-value%}
- send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Succesfully removed %{lobby.arcatedColor.Lobby}%1 %{lobby.chatColor.Lobby}%from all the keys"
- else:
- set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
- if contains({_list::*}, arg-2 in lower case):
- if arg-3 is set:
- if (arg-3 parsed as a number) is set:
- if arg-4 is set:
- if (arg-4 parsed as a player) is set:
- if {keys.%arg-4 parsed as a player%.%arg-2 in lower case%}-(arg-3 parsed as a number) >= 0:
- remove (arg-3 parsed as a number) from {keys.%name of arg-4 parsed as a player%.%arg-2 in lower case%}
- else:
- set {keys.%arg-4 parsed as a player%.%arg-2 in lower case%} to 0
- 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}%!"
- 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
- else:
- send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%The player %{lobby.arcatedColor.Lobby}%%arg-4% %{lobby.chatColor.Lobby}%is not online!"
- else:
- if {keys.%player%.%arg-2 in lower case%}-(arg-3 parsed as a number) >= 0:
- remove (arg-3 parsed as a number) from {keys.%player%.%arg-2 in lower case%}
- send "%{lobby.logo.Lobby}% &2Succesfully removed &a%arg-3% %arg-2 in lower case% &2keys!"
- else:
- send "%{lobby.logo.Lobby}% %{lobby.arcatedColor.Lobby}%%arg-3% %{lobby.chatColor.Lobby}%is not a number!"
- else:
- if {keys.%player%.%arg-2 in lower case%}-1 >= 0:
- remove 1 from {keys.%player%.%arg-2 in lower case%}
- send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Succesfully removed %{lobby.arcatedColor.Lobby}%1 %arg-2 in lower case% %{lobby.chatColor.Lobby}%keys!"
- else:
- send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%The crate %{lobby.arcatedColor.Lobby}%%arg-2 in lower case% %{lobby.chatColor.Lobby}%doesn't exist."
- else:
- send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%You must give up a %{lobby.arcatedColor.Lobby}%crate%{lobby.chatColor.Lobby}%!"
- else if arg-1 is "clear":
- if arg-2 is set:
- if arg-2 is "all":
- if arg-3 is set:
- if (arg-3 parsed as a player) is set:
- set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
- loop {_list::*}:
- set {keys.%arg-3 parsed as a player%.%loop-value%} to 0
- 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}%!"
- 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
- else:
- send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%The player %{lobby.arcatedColor.Lobby}%%arg-3% %{lobby.chatColor.Lobby}%is not online!"
- else:
- set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
- loop {_list::*}:
- set {keys.%player%.%loop-value%} to 0
- 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}%!"
- else:
- set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
- if contains({_list::*}, arg-2 in lower case):
- if arg-3 is set:
- if (arg-3 parsed as a player) is set:
- set {keys.%arg-3 parsed as a player%.%arg-2 in lower case%} to 0
- 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}%!"
- 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
- else:
- send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%The player %{lobby.arcatedColor.Lobby}%%arg-3% %{lobby.chatColor.Lobby}%is not online!"
- else:
- set {keys.%player%.%arg-2 in lower case%} to 0
- send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Succesfully cleared the %{lobby.arcatedColor.Lobby}%%arg-2 in lower case% keys%{lobby.chatColor.Lobby}%!"
- else:
- send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%The crate %{lobby.arcatedColor.Lobby}%%arg-2 in lower case% %{lobby.chatColor.Lobby}%doesn't exist!"
- else:
- send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%You must give up a %{lobby.arcatedColor.Lobby}%crate%{lobby.chatColor.Lobby}%!"
- else if arg-1 is "keys":
- if arg-2 is set:
- if arg-2 is "all":
- if arg-3 is set:
- if (arg-3 parsed as a player) is set:
- set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
- loop {_list::*}:
- if {keys.%arg-3 parsed as a player%.%loop-value%} is not set:
- set {keys.%arg-3 parsed as a player%.%loop-value%} to 0
- if {_keys} is not set:
- set {_keys} to "%{lobby.chatColor.Lobby}%%loop-value%: %{lobby.arcatedColor.Lobby}%%{keys.%name of arg-3 parsed as a player%.%loop-value%}%"
- else:
- set {_keys} to "%{_keys}%%nl%%{lobby.chatColor.Lobby}%%loop-value%: %{lobby.arcatedColor.Lobby}%%{keys.%name of arg-3 parsed as a player%.%loop-value%}%"
- 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}%"
- else:
- send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%The player %{lobby.arcatedColor.Lobby}%%arg-3% %{lobby.chatColor.Lobby}%is not online!"
- else:
- set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
- loop {_list::*}:
- if {keys.%player%.%loop-value%} is not set:
- set {keys.%player%.%loop-value%} to 0
- if {_keys} is not set:
- set {_keys} to "%{lobby.chatColor.Lobby}%%loop-value%: %{lobby.arcatedColor.Lobby}%%{keys.%player%.%loop-value%}%"
- else:
- set {_keys} to "%{_keys}%%nl%%{lobby.chatColor.Lobby}%%loop-value%: %{lobby.arcatedColor.Lobby}%%{keys.%player%.%loop-value%}%"
- send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%This is your list of keys%{lobby.chatColor.Lobby}%:%nl%%{_keys}%"
- else:
- set {_list::*} to yml list "Lobby.Crates.List" of file "{@config}"
- if contains({_list::*}, arg-2 in lower case):
- if arg-3 is set:
- if (arg-3 parsed as a player) is set:
- if {keys.%arg-3 parsed as a player%.%arg-2 in lower case%} is not set:
- set {keys.%arg-3 parsed as a player%.%arg-2 in lower case%} to 0
- 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."
- else:
- send "%{lobby.logo.Lobby}% &4The player &c%arg-3% &4is not online!"
- else:
- if {keys.%player%.%arg-2 in lower case%} is not set:
- set {keys.%player%.%arg-2 in lower case%} to 0
- 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."
- else:
- send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%The crate %{lobby.arcatedColor.Lobby}%%arg-2 in lower case% %{lobby.chatColor.Lobby}%doesn't exist!"
- else:
- send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%You need to give up a %{lobby.arcatedColor.Lobby}%crate%{lobby.chatColor.Lobby}%!"
- else:
- send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Do %{lobby.arcatedColor.Lobby}%/%{cmd}% help %{lobby.chatColor.Lobby}%for more info!"
- else:
- send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Do %{lobby.arcatedColor.Lobby}%/%{cmd}% help %{lobby.chatColor.Lobby}%for more info!"
- command /cosmetics [<text>] [<text>] [<text>]:
- aliases: /cos
- trigger:
- if player has permission "cosmetics.*":
- if arg-1 is not set:
- send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Do %{lobby.arcatedColor.Lobby}%/%{cmd}% help %{lobby.chatColor.Lobby}%for more info!"
- else if arg-1 is "help":
- send "%{lobby.chatColor.Lobby}%----------[ %{lobby.arcatedColor.Lobby}%%{cmd}% %{lobby.chatColor.Lobby}%]----------"
- send "&e&o/%{cmd}% help &d→ &fGet the help page"
- send "&e&o/%{cmd}% gui [player] &d→ &fGet the cosmetics (of a player)"
- send "&e&o/%{cmd}% setup/edit [<type>] &d→ &fCreate or edit a cosmetic"
- #send "&e&o/%{cmd}% delete [type] [name] &d→ &fDelete a cosmetic"
- send "&e&o/%{cmd}% path &d→ &fCreate your own cosmetics"
- send "%{lobby.chatColor.Lobby}%----------[ %{lobby.arcatedColor.Lobby}%%{cmd}% %{lobby.chatColor.Lobby}%]----------"
- #else if arg-1 is "gui":
- # if arg-2 is set:
- # if arg-2 parsed as a player is set:
- #
- # else:
- # send "%{lobby.logo.Lobby}% &4The player &c%arg-2% &4has never logged in."
- # else:
- else if arg-1 is "setup" or "edit":
- if arg-2 is set:
- deleteVariables(player)
- editCos(player, arg-2)
- else:
- deleteVariables(player)
- editCos(player, "")
- else if arg-1 is "path":
- 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}"
- else:
- send "%{lobby.logo.Lobby}% %{lobby.chatColor.Lobby}%Do %{lobby.arcatedColor.Lobby}%/%{cmd}% help %{lobby.chatColor.Lobby}%for more info!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement