Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on load:
- set {kits::*} to "Normal", "Knight", "Armourer", "Archer", "Witch", "Blaze", "Enderman", "Terrorist", "Shark", "Thor", "Acrobat", "Spider", "Vampire", "Scout", "Squid", "Minotaur", "Iceman", "Necromancer", "Fighter", "Golem", "Wither", "Ninja", "Sniper" and "Murderer"
- set difficulty of all worlds to hard
- if {kitpvp.spawn} is not set:
- set {kitpvp.spawn} to location at 0, 64, 0 in world "world"
- on skript start:
- kill all projectiles
- on join:
- set join message to "&7%display name of player% &ahas joined the server"
- set max health of player to 20
- heal player
- set {mcid::%UUID of player%} to name of player
- teleportSpawn(player)
- if {kitpvp.kills::%UUID of player%} is set:
- {kitpvp.coins::%UUID of player%} is not set
- set {kitpvp.coins::%UUID of player%} to {kitpvp.kills::%UUID of player%}*100
- send "&6+ %{kitpvp.kills::%UUID of player%}*100% Coins (Beta Play)" to player
- if {kitpvp.kills::%UUID of player%} is not set:
- set {kitpvp.kills::%UUID of player%} to 0
- if {kitpvp.assists::%UUID of player%} is not set:
- set {kitpvp.assists::%UUID of player%} to 0
- if {kitpvp.deaths::%UUID of player%} is not set:
- set {kitpvp.deaths::%UUID of player%} to 0
- if {kitpvp.deaths::%UUID of player%} is not set:
- set {kitpvp.deaths::%UUID of player%} to 0
- if {kitpvp.bestkillstreak::%UUID of player%} is not set:
- set {kitpvp.bestkillstreak::%UUID of player%} to 0
- if {kitpvp.level::%UUID of player%} is not set:
- set {kitpvp.level::%UUID of player%} to 1
- if {kitpvp.exp::%UUID of player%} is not set:
- set {kitpvp.exp::%UUID of player%} to 0
- if {kitpvp.coins::%UUID of player%} is not set:
- set {kitpvp.coins::%UUID of player%} to 0
- if {kitpvp.kits.%UUID of player%::*} is not set:
- set {kitpvp.kits.%UUID of player%::*} to "normal", "knight" and "armourer"
- if {kitpvp.lastselectedkit.%UUID of player%} is not set:
- set {kitpvp.lastselectedkit.%UUID of player%} to "normal"
- updateSideBar("ffa", player)
- wait 1 tick
- loop all players:
- revealPlayer(player, loop-player)
- revealPlayer(loop-player, player)
- function revealPlayer(p1: player, p2: player):
- hide {_p1} from {_p2}
- wait 1 tick
- reveal {_p1} to {_p2}
- on xp spawn:
- cancel event
- function giveReward(p: player, num: integer, reason: string):
- set {_uuid} to UUID of {_p}
- add {_num} to {kitpvp.exp::%{_uuid}%}
- set {_coin} to round({_num}*10*(1+(({kitpvp.level::%{_uuid}%}-1)*0.05)))
- add {_coin} to {kitpvp.coins::%{_uuid}%}
- if {_reason} is not "":
- send "&a+%{_num}% EXP (%{_reason}%)" to {_p}
- send "&6+%{_coin}% Coins (%{_reason}%)" to {_p}
- while {kitpvp.exp::%{_uuid}%} >= round(round(1.01^(5*{kitpvp.level::%{_uuid}%})*100)/100)*100:
- remove round(round(1.01^(5*{kitpvp.level::%{_uuid}%})*100)/100)*100 from {kitpvp.exp::%{_uuid}%}
- add 1 to {kitpvp.level::%{_uuid}%}
- play sound "ENTITY_PLAYER_LEVELUP" to {_p} with volume 1 and pitch 5
- send "&b-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-%nl%%nl%" to {_p}
- send " &dL&eE&dV&eE&dL&e &dU&eP&d!&e!&d!%nl%" to {_p}
- if {kitpvp.level::%{_uuid}%} is 10:
- send " &6&k||&a You are now &fIron Prestige&a! &6&k||" to {_p}
- else if {kitpvp.level::%{_uuid}%} is 25:
- send " &6&k||&a You are now &6Gold Prestige&a! &6&k||" to {_p}
- else if {kitpvp.level::%{_uuid}%} is 45:
- send " &6&k||&a You are now &bDiamond Prestige&a! &6&k||" to {_p}
- else if {kitpvp.level::%{_uuid}%} is 70:
- send " &6&k||&a You are now &aEmerald Prestige&a! &6&k||" to {_p}
- else if {kitpvp.level::%{_uuid}%} is 100:
- send " &6&k||&a You are now &5Obsidian Prestige&a! &6&k||" to {_p}
- else:
- send " &6&k||&a You are now LEVEL %{kitpvp.level::%{_uuid}%}%! &6&k||" to {_p}
- send "%nl%%nl%&b-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-" to {_p}
- set level of {_p} to {kitpvp.level::%{_uuid}%}
- set level progress of {_p} to {kitpvp.exp::%{_uuid}%}/(round(round(1.01^(5*{kitpvp.level::%{_uuid}%})*100)/100)*100)
- function getLevelString(l: number, chatmode: boolean) :: string:
- "%{_l}%" parsed as integer is set
- if {_l} is between 1 and 9:
- if {_chatmode} is true:
- return "&7[%{_l}%✫]&r"
- else if {_chatmode} is false:
- return "&7%{_l}%✫&r"
- else if {_l} is between 10 and 24:
- if {_chatmode} is true:
- return "&f[%{_l}%✫]&r"
- else if {_chatmode} is false:
- return "&f%{_l}%✫&r"
- else if {_l} is between 25 and 44:
- if {_chatmode} is true:
- return "&6[%{_l}%✫]&r"
- else if {_chatmode} is false:
- return "&6%{_l}%✫&r"
- else if {_l} is between 45 and 69:
- if {_chatmode} is true:
- return "&b[%{_l}%✫]&r"
- else if {_chatmode} is false:
- return "&b%{_l}%✫&r"
- else if {_l} is between 70 and 99:
- if {_chatmode} is true:
- return "&a[%{_l}%✫]&r"
- else if {_chatmode} is false:
- return "&a%{_l}%✫&r"
- else if {_l} >= 100:
- if {_chatmode} is true:
- return "&5[%{_l}%✫]&r"
- else if {_chatmode} is false:
- return "&5%{_l}%✫&r"
- on chat:
- {kitpvp.playingstate.%player%} is not "playing_teambattle"
- set chat format to "%getLevelString({kitpvp.level::%UUID of player%}, true)% &7%display name of player%&f: [message]"
- every tick:
- loop {invulnerabletime::*}:
- loop-value >= 1
- remove 1 from {invulnerabletime::%loop-index%}
- {invulnerabletime::%loop-index%} is 0
- delete {invulnerabletime::%loop-index%}
- on damage of player:
- attacker is a player
- {invulnerabletime::%UUID of victim%} >= 1
- cancel event
- on damage:
- victim is attacker
- cancel event
- on craft:
- player's gamemode is survival or adventure
- cancel event
- function displayHealth(p: player, e: living entity):
- set {_health} to tag "Health" of nbt of {_e}
- set {_health} to ceil({_health})
- set {_healthtext} to ""
- while {_health} >= 2:
- set {_healthtext} to "%{_healthtext}%&4❤"
- remove 2 from {_health}
- if {_health} is 1:
- set {_healthtext} to "%{_healthtext}%&c❤"
- set {_health} to tag "Health" of nbt of {_e}
- set {_currentdamage} to max health of {_e}-ceil(round({_health})/2)
- if {_currentdamage} > 0:
- loop {_currentdamage} times:
- set {_healthtext} to "%{_healthtext}%&7❤"
- set {_absorption} to tag "AbsorptionAmount" of nbt of {_e}
- set {_absorption} to ceil({_absorption})
- while {_absorption} >= 2:
- set {_healthtext} to "%{_healthtext}%&6❤"
- remove 2 from {_absorption}
- if {_absorption} is 1:
- set {_healthtext} to "%{_healthtext}%&e❤"
- set {_absorption} to tag "AbsorptionAmount" of nbt of {_e}
- if "%all active potion effects of {_e}%" contain "POISON":
- replace "&4" in {_healthtext} with "&2"
- replace "&c" in {_healthtext} with "&a"
- if "%all active potion effects of {_e}%" contain "WITHER":
- replace "&4" in {_healthtext} with "&0"
- replace "&c" in {_healthtext} with "&8"
- set {_name} to check [{_e} is a player] ? display name of {_e} : "%{_e}%"
- send action bar from "&7%{_name}% %{_healthtext}% &c%{_health}+{_absorption}%" to {_p}
- function removePrefix(str1: string, str2: string) :: string:
- first length of {_str2} characters of {_str1} is {_str2}
- return last length of {_str1} - length of {_str2} characters of {_str1}
- function removeSuffix(str1: string, str2: string) :: string:
- last length of {_str2} characters of {_str1} is {_str2}
- return first length of {_str1} - length of {_str2} characters of {_str1}
- function removeColorCode(str: string) :: string:
- set {_splits::*} to split {_str} by "§"
- loop {_splits::*}:
- loop-index parsed as integer > 1
- set {_splits::%loop-index%} to last length of loop-value - 1 characters of loop-value
- return join {_splits::*}
- on damage of player:
- wait 1 tick
- set damage delay of victim to 20 tick
- function teleportSpawn(p: player):
- if offhand tool of {_p} is shield:
- set offhand tool of {_p} to air
- set absorption hearts of {_p} to 0
- milk {_p}
- clear {_p}'s inventory
- set selected hotbar slot of {_p} to 0
- set {_uuid} to UUID of {_p}
- set level of {_p} to {kitpvp.level::%{_uuid}%}
- set level progress of {_p} to {kitpvp.exp::%{_uuid}%}/(round(round(1.01^(5*{kitpvp.level::%{_uuid}%})*100)/100)*100)
- set {kitpvp.fightingstate.%{_p}%} to "NOT FIGHTING"
- set {kitpvp.playingstate.%{_p}%} to "not_playing"
- set {kitpvp.killstreak.%{_p}%} to 0
- delete {kitpvp.refillcooldown.%{_p}%}
- delete {fightingstatetime.%{_p}%}
- delete {kitpvp.spawntimer.%{_p}%}
- delete {lastattacker.%{_p}%}
- delete {killjudgetime.%{_p}%}
- delete {kitpvp.timers.%{_p}%::*}
- delete {attackedplayers.%{_p}%::*}
- delete {assistjudgetime.%{_p}%::*}
- delete {enderpearlcooldown.%{_p}%}
- add "{Attributes:[{Name:""generic.knockbackResistance"",Base:0.0d},{Name:""generic.movementSpeed"",Base:0.1d}]}" to nbt of {_p}
- set {_p}'s walk speed to 0.2
- updateSideBar("ffa", {_p})
- teleport {_p} to {kitpvp.spawn}
- set damage delay of {_p} to 1 second
- wait 1 tick
- set slot 0 of {_p}'s inventory to chest named "&aKit Select" with lore "&d&oUndroppable"
- set slot 1 of {_p}'s inventory to iron sword with nbt "{display:{Name:""&aKit Shop"",Lore:[""&d&oUndroppable""]},HideFlags:6,Unbreakable:1b}"
- set slot 2 of {_p}'s inventory to diamond sword with nbt "{display:{Name:""&aDuels"",Lore:[""&d&oUndroppable""]},HideFlags:6,Unbreakable:1b}"
- loop all entities:
- getOwnerTag("%tag ""Tags"" of nbt of loop-entity%") is {_p}
- kill loop-entity
- add "{Attributes:[{Name:""generic.maxHealth"",Base:40.0d}]}" to nbt of {_p}
- if {_p} is alive:
- heal {_p}
- on quit:
- loop all entities:
- getOwnerTag("%tag ""Tags"" of nbt of loop-entity%") is player
- kill loop-entity
- function updateSideBar(mode: string, p: player):
- {_mode} is "ffa" or "duel" or "teambattle"
- set {_uuid} to UUID of {_p}
- if {_mode} is "ffa":
- set {kitpvp.sidebar.%{_p}%} to "ffa"
- wipe {_p} sidebar
- set name of sidebar of {_p} to "&a-=-=-=-&b&lKitPvP&a-=-=-=-"
- if {kitpvp.deaths::%{_uuid}%} is 0:
- set {_kd} to {kitpvp.kills::%{_uuid}%}
- else:
- set {_kd} to {kitpvp.kills::%{_uuid}%}/{kitpvp.deaths::%{_uuid}%}
- set score "&f" in sidebar of {_p} to 15
- set score "&aLevel: &e%getLevelString({kitpvp.level::%{_uuid}%}, false)%" in sidebar of {_p} to 14
- set score "&aExperience: &e%{kitpvp.exp::%{_uuid}%}%&7/&e%round(round(1.01^(5*{kitpvp.level::%{_uuid}%})*100)/100)*100%" in sidebar of {_p} to 13
- set score "&c" in sidebar of {_p} to 12
- set score "&3Kills: &e%{kitpvp.kills::%{_uuid}%}%" in sidebar of {_p} to 11
- set score "&3Deaths: &e%{kitpvp.deaths::%{_uuid}%}%" in sidebar of {_p} to 10
- set score "&3Assists: &e%{kitpvp.assists::%{_uuid}%}%" in sidebar of {_p} to 9
- set score "&3K/D Rate: &e%{_kd}%" in sidebar of {_p} to 8
- set score "&3Best Kill Streak: &e%{kitpvp.bestkillstreak::%{_uuid}%}%" in sidebar of {_p} to 7
- set score "&6" in sidebar of {_p} to 6
- set score "&6Coins: &e%{kitpvp.coins::%{_uuid}%}%" in sidebar of {_p} to 5
- set score "&4" in sidebar of {_p} to 4
- set score "&cKill Streak: &e%{kitpvp.killstreak.%{_p}%}%" in sidebar of {_p} to 3
- set score "&cFighting State: &e%{kitpvp.fightingstate.%{_p}%}%" in sidebar of {_p} to 2
- set score "&1 " in sidebar of {_p} to 1
- if {_mode} is "duel":
- set {kitpvp.sidebar.%{_p}%} to "duel"
- wipe {_p} sidebar
- set name of sidebar of {_p} to "&a-=-=-=-&b&lDuel&a-=-=-=-"
- set score "&9" in sidebar of {_p} to 9
- set score "&7Match Time:" in sidebar of {_p} to 8
- set score " &6%getTimerFromTicks({kitpvp.duel.matchtime::%{kitpvp.duel.usingarena::%{_p}%}%})%" in sidebar of {_p} to 7
- set score "&6" in sidebar of {_p} to 5
- set score "&7You:" in sidebar of {_p} to 5
- set score " &6%{_p}%" in sidebar of {_p} to 4
- set score "&7Opponent:" in sidebar of {_p} to 3
- set score " &6%{kitpvp.duel.opponent::%{_p}%}%" in sidebar of {_p} to 2
- set score "&1" in sidebar of {_p} to 1
- function getOwnerTag(tagnbt: string) :: player:
- replace "[""" and """]" in {_tagnbt} with ""
- set {_tags::*} to split {_tagnbt} by ""","""
- loop {_tags::*}:
- first 6 characters of loop-value is "owner:"
- set {_ownernamelength} to length of loop-value-6
- set {_owner} to last {_ownernamelength} characters of loop-value parsed as player
- {_owner} is set
- return {_owner}
- stop loop
- on packet event play_server_world_particles:
- "Particle" penum 0 of event-packet is "DAMAGE_INDICATOR" or "SWEEP_ATTACK"
- cancel event
- on packet event play_server_named_sound_effect:
- if "SoundEffects" pinfo 0 of event-packet is ENTITY_PLAYER_ATTACK_CRIT or ENTITY_PLAYER_ATTACK_KNOCKBACK or ENTITY_PLAYER_ATTACK_NODAMAGE or ENTITY_PLAYER_ATTACK_STRONG or ENTITY_PLAYER_ATTACK_SWEEP or ENTITY_PLAYER_ATTACK_WEAK:
- cancel event
- else if "SoundEffects" pinfo 0 of event-packet is ENTITY_PLAYER_HURT or ENTITY_PLAYER_HURT_DROWN or ENTITY_PLAYER_HURT_ON_FIRE:
- {kitpvp.playingstate.%player%} is "playing_ffa"
- set "SoundEffects" pinfo 0 of event-packet to ENTITY_BLAZE_HURT
- on damage:
- damage was caused by sweep attack
- cancel event
- function displayKitInfo(p: player, kit: string):
- {kits::*} contain removeColorCode({_kit})
- open chest with 6 row named "&aKitの詳細: %{_kit}%" to {_p}
- wait 1 tick
- loop 54 times:
- set {_slot} to loop-number - 1
- set slot {_slot} of {_p}'s current inventory to dark gray glass pane named "&r"
- if removeColorCode({_kit}) is "normal":
- set slot 10 of {_p}'s current inventory to iron sword with nbt "{display:{Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
- set slot 11 of {_p}'s current inventory to fishing rod with nbt "{display:{Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
- set slot 12 of {_p}'s current inventory to bow with nbt "{display:{Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
- set slot 13 of {_p}'s current inventory to arrow
- set slot 14 of {_p}'s current inventory to redstone named "&6Booster" with lore "&d&oUndroppable"
- set slot 23 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e右クリックで使用" and "&e移動速度上昇Ⅱ、再生能力、耐性を15秒間付与する"
- set slot 28 of {_p}'s current inventory to chainmail helmet with nbt "{display:{Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
- set slot 29 of {_p}'s current inventory to iron chestplate with nbt "{display:{Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
- set slot 30 of {_p}'s current inventory to iron leggings with nbt "{display:{Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
- set slot 31 of {_p}'s current inventory to iron boots with nbt "{display:{Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
- else if removeColorCode({_kit}) is "knight":
- set slot 10 of {_p}'s current inventory to gold sword with nbt "{display:{Name:""&6Knight's Sword"",Lore:[""&d&oUndroppable""]},ench:[{id:16s,lvl:4s}],Unbreakable:1b}"
- set slot 11 of {_p}'s current inventory to glowstone dust with nbt "{display:{Name:""&cAttack Booster"",Lore:[""&d&oUndroppable""]}}"
- set slot 20 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e右クリックで使用" and "&e攻撃力上を15秒間付与する"
- set slot 28 of {_p}'s current inventory to gold helmet with nbt "{display:{Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
- set slot 29 of {_p}'s current inventory to gold chestplate with nbt "{display:{Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
- set slot 30 of {_p}'s current inventory to chainmail leggings with nbt "{display:{Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
- set slot 31 of {_p}'s current inventory to chainmail boots with nbt "{display:{Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
- else if removeColorCode({_kit}) is "armourer":
- set slot 10 of {_p}'s current inventory to stone sword with nbt "{display:{Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
- set slot 11 of {_p}'s current inventory to iron ingot with nbt "{display:{Name:""&9Defence Booster"",Lore:[""&d&oUndroppable""]}}"
- set slot 20 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e右クリック使用" and "&e移動速度低下Ⅱ、耐性Ⅳを10秒間付与する"
- set slot 28 of {_p}'s current inventory to iron helmet with nbt "{display:{Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
- set slot 29 of {_p}'s current inventory to diamond chestplate with nbt "{display:{Lore:[""&d&oUndroppable""]},ench:[{id:0s,lvl:2s}],AttributeModifiers:[{UUIDMost:494260,UUIDLeast:101400,Amount:1,Slot:""chest"",AttributeName:""generic.knockbackResistance"",Operation:0,Name:""generic.knockbackResistance""}]}"
- set slot 30 of {_p}'s current inventory to iron leggings with nbt "{display:{Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
- set slot 31 of {_p}'s current inventory to diamond boots with nbt "{display:{Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
- else if removeColorCode({_kit}) is "archer":
- set slot 10 of {_p}'s current inventory to wooden sword with nbt "{display:{Lore:[""&d&oUndroppable""]},ench:[{id:19s,lvl:1s}],Unbreakable:1b}"
- set slot 11 of {_p}'s current inventory to bow with nbt "{display:{Name:""&aArcher's Bow"",Lore:[""&d&oUndroppable""]},ench:[{id:48s,lvl:3s},{id:51s,lvl:1s}],Unbreakable:1b}"
- set slot 12 of {_p}'s current inventory to 10 purple dyes with nbt "{display:{Name:""&5Arrow Effector"",Lore:[""&d&oUndroppable"",""&7Mode: Normal""]},ench:[{id:0s,lvl:0s}],HideFlags:1}"
- set slot 13 of {_p}'s current inventory to arrow with lore "&d&oUndroppable"
- set slot 21 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&aArcher's Bow&eで発射した矢に特殊効果を付与する", "&e右クリックでモードを切り替え", "&7Normal&eモードの時だけ射撃ダメージ増加の効果が矢に付与される", "&7Normal&eモード以外の場合は1つ発射時に消費する", "&e少しずつ復活し最大まで10個所持できる", "", "&7Normal&eモード: 通常", "&cFlame&eモード: 矢に炎が付く", "&bMultiple&eモード: 矢を同時に3本発射する" and "&6MachineGun&eモード: 矢を連続で5本発射する"
- set slot 28 of {_p}'s current inventory to leather helmet with nbt "{display:{Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
- set slot 29 of {_p}'s current inventory to chainmail chestplate with nbt "{display:{Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
- set slot 30 of {_p}'s current inventory to leather leggings with nbt "{display:{Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
- set slot 31 of {_p}'s current inventory to leather boots with nbt "{display:{Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
- else if removeColorCode({_kit}) is "witch":
- set slot 10 of {_p}'s current inventory to stone sword with nbt "{display:{Name:""&2Debuff Sword"",Lore:[""&d&oUndroppable""]},ench:[{id:16s,lvl:1s}],HideFlags:1,Unbreakable:1b}"
- set slot 11 of {_p}'s current inventory to chest named "&5Potion Box" with lore "&d&oUndroppable"
- set slot 19 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e攻撃時に一定の確率で移動速度低下、弱体化、盲目、毒のうちどれか1つを敵に付与する"
- set slot 20 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e右クリックで使用" and "&eランダムなポーションがいくつか入ったインベントリが開く"
- set slot 28 of {_p}'s current inventory to leather helmet with nbt "{display:{Lore:[""&d&oUndroppable""]},ench:[{id:0s,lvl:1s}],Unbreakable:1b}"
- set slot 29 of {_p}'s current inventory to leather chestplate with nbt "{display:{Lore:[""&d&oUndroppable""]},ench:[{id:0s,lvl:1s}],Unbreakable:1b}"
- set slot 30 of {_p}'s current inventory to leather leggings with nbt "{display:{Lore:[""&d&oUndroppable""]},ench:[{id:0s,lvl:1s}],Unbreakable:1b}"
- set slot 31 of {_p}'s current inventory to leather boots with nbt "{display:{Lore:[""&d&oUndroppable""]},ench:[{id:0s,lvl:1s}],Unbreakable:1b}"
- else if removeColorCode({_kit}) is "blaze":
- set slot 10 of {_p}'s current inventory to iron sword with nbt "{display:{Name:""&cBlaze Sword"",Lore:[""&d&oUndroppable""]},ench:[{id:20s,lvl:3s}],Unbreakable:1b}"
- set slot 11 of {_p}'s current inventory to flint and steel with nbt "{display:{Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
- set slot 12 of {_p}'s current inventory to blaze rod with nbt "{display:{Name:""&cBlaze Wand"",Lore:[""&d&oUndroppable"",""&7Charged Fireballs: 3""]},ench:[{id:20s,lvl:1s}],HideFlags:1}"
- set slot 13 of {_p}'s current inventory to potion with nbt "{display:{Name:""&rPotion of Fire Resistance (Infinity)"",Lore:[""&d&oUndroppable""]},CustomPotionEffects:[{Id:12b,Amplifier:0b,Ambient:1b,Duration:2147483647,ShowParticles:1b}],HideFlags:32,CustomPotionColor:14981690}"
- set slot 21 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e右クリックで使用", "&eファイアボールを3つ発射できる" and "&e残りのファイアボールの数によって威力が変わる"
- set slot 28 of {_p}'s current inventory to leather helmet with nbt "{display:{Lore:[""&d&oUndroppable""],color:16729600},Unbreakable:1b}"
- set slot 29 of {_p}'s current inventory to gold chestplate with nbt "{display:{Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
- set slot 30 of {_p}'s current inventory to chainmail leggings with nbt "{display:{Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
- set slot 31 of {_p}'s current inventory to leather boots with nbt "{display:{Lore:[""&d&oUndroppable""],color:16729600},Unbreakable:1b}"
- else if removeColorCode({_kit}) is "enderman":
- set slot 10 of {_p}'s current inventory to iron sword with nbt "{display:{Name:""&5Ender Sword"",Lore:[""&d&oUndroppable""]},ench:[{id:0s,lvl:0s}],HideFlags:1,Unbreakable:1b}"
- set slot 11 of {_p}'s current inventory to ender pearl with nbt "{display:{Name:""&5Infinity Ender Pearl"",Lore:[""&d&oUndroppable""]},ench:[{id:0s,lvl:0s}],HideFlags:1}"
- set slot 12 of {_p}'s current inventory to eye of ender with nbt "{display:{Name:""&5Eye of Fear"",Lore:[""&d&oUndroppable""]},ench:[{id:0s,lvl:0s}],HideFlags:1}"
- set slot 19 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e攻撃時に一定の確率で盲目を敵に付与する"
- set slot 21 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e右クリックで使用" and "&eレーザーを発射し、当たった敵に移動速度低下Ⅲ、弱体化Ⅱを付与する"
- set slot 28 of {_p}'s current inventory to leather helmet with nbt "{display:{Lore:[""&d&oUndroppable""],color:11141375},ench:[{id:0s,lvl:1s}],Unbreakable:1b}"
- set slot 29 of {_p}'s current inventory to leather chestplate with nbt "{display:{Lore:[""&d&oUndroppable""],color:11141375},ench:[{id:0s,lvl:1s}],Unbreakable:1b}"
- set slot 30 of {_p}'s current inventory to leather leggings with nbt "{display:{Lore:[""&d&oUndroppable""],color:11141375},ench:[{id:0s,lvl:1s}],Unbreakable:1b}"
- set slot 31 of {_p}'s current inventory to leather boots with nbt "{display:{Lore:[""&d&oUndroppable""],color:11141375},ench:[{id:0s,lvl:1s}],Unbreakable:1b}"
- else if removeColorCode({_kit}) is "terrorist":
- set slot 10 of {_p}'s current inventory to iron sword with nbt "{display:{Name:""&4Knife"",Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
- set slot 11 of {_p}'s current inventory to player head with nbt "{display:{Name:""&4Grenade"",Lore:[""&d&oUndroppable""]},SkullOwner:{Id:""34793014-7003-4317-86fa-8fac22247a90"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvN2U1NWM1YWJjZTdhNzkyNjRhNDg5MmQ2ODgwNmVhYWZlMzcwYTBlNGRkMjZmNTYxOTFmN2MxODhmMDFlZDcyNiJ9fX0=""}]}}}"
- set slot 12 of {_p}'s current inventory to splash potion with nbt "{display:{Name:""&4Fire Bomb"",Lore:[""&d&oUndroppable""]},CustomPotionColor:16777181,HideFlags:32}"
- set slot 13 of {_p}'s current inventory to player head with nbt "{display:{Name:""&4Remote Control Bomb"",Lore:[""&d&oUndroppable""]},SkullOwner:{Id:""8b8fcca0-6880-4108-a46a-5a21320e0d7c"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvOGRhMzMyYWJkZTMzM2ExNWE2YzZmY2ZlY2E4M2YwMTU5ZWE5NGI2OGU4ZjI3NGJhZmMwNDg5MmI2ZGJmYyJ9fX0=""}]}}}"
- set slot 20 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e右クリックで使用" and "&e投げてから10秒後に爆発する"
- set slot 21 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e右クリックで使用" and "&e着弾地点で爆発しの周囲に引火する"
- set slot 22 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e右クリックした場所に設置", "&e設置してから5秒後なら好きなタイミング爆発させられる" and "&e1分経つと自動で爆発する"
- set slot 28 of {_p}'s current inventory to leather helmet with nbt "{display:{Lore:[""&d&oUndroppable""],color:11141120},Unbreakable:1b}"
- set slot 29 of {_p}'s current inventory to leather chestplate with nbt "{display:{Lore:[""&d&oUndroppable""],color:11141120},Unbreakable:1b}"
- set slot 30 of {_p}'s current inventory to leather leggings with nbt "{display:{Lore:[""&d&oUndroppable""],color:11141120},Unbreakable:1b}"
- set slot 31 of {_p}'s current inventory to leather boots with nbt "{display:{Lore:[""&d&oUndroppable""],color:11141120},Unbreakable:1b}"
- else if removeColorCode({_kit}) is "shark":
- set slot 10 of {_p}'s current inventory to iron sword with nbt "{display:{Name:""&9Shark Sword"",Lore:[""&d&oUndroppable""]},ench:[{id:0s,lvl:0s}],HideFlags:1,Unbreakable:1b}"
- set slot 11 of {_p}'s current inventory to cyan dye with nbt "{display:{Name:""&9Power of Ocean"",Lore:[""&d&oUndroppable""]},ench:[{id:0s,lvl:0s}],HideFlags:1}"
- set slot 19 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e攻撃時に一定の確率でダメージが増加し自分に再生能力を付与する", "&eまた水に浸かっていると確立が上昇する", "" and "&e水に浸かっている際与えるダメージが常に増加する"
- set slot 20 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e右クリックで使用" and "&e周囲に一定時間水を張る"
- set slot 28 of {_p}'s current inventory to leather helmet with nbt "{display:{Lore:[""&d&oUndroppable""],color:16711680},ench:[{id:0s,lvl:1s}],Unbreakable:1b}"
- set slot 29 of {_p}'s current inventory to leather chestplate with nbt "{display:{Lore:[""&d&oUndroppable""],color:20735},ench:[{id:0s,lvl:1s}],Unbreakable:1b}"
- set slot 30 of {_p}'s current inventory to leather leggings with nbt "{display:{Lore:[""&d&oUndroppable""],color:20735},ench:[{id:0s,lvl:1s}],Unbreakable:1b}"
- set slot 31 of {_p}'s current inventory to leather boots with nbt "{display:{Name:""&9Shark Boots"",Lore:[""&d&oUndroppable""],color:20735},ench:[{id:8s,lvl:3s},{id:10s,lvl:1s}],Unbreakable:1b,HideFlags:32}"
- set slot 40 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&eダメージを受けた際一定の確率で受けた分の50%%のダメージを敵にも与える", "&e水に浸かっていないと受けるダメージが1.2倍になる" and "&e水に使っている間移動速度上昇Ⅱ、水中呼吸が付与される"
- else if removeColorCode({_kit}) is "thor":
- set slot 10 of {_p}'s current inventory to gold axe with nbt "{display:{Name:""&eLightning Axe"",Lore:[""&d&oUndroppable""]},ench:[{id:16s,lvl:3s}],Unbreakable:1b}"
- set slot 11 of {_p}'s current inventory to tipped arrow with nbt "{display:{Name:""&eLightning Spear"",Lore:[""&d&oUndroppable""]},ench:[{id:0s,lvl:0s}],HideFlags:33,CustomPotionColor:16777073}"
- set slot 19 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e攻撃時に一定の確率でダメージが増加し敵を麻痺させる"
- set slot 20 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e右クリックで使用" and "&e電気を帯びた槍を投げ着弾地点で雷と爆発を起こし周囲にいる敵を麻痺させる"
- set slot 28 of {_p}'s current inventory to leather helmet with nbt "{display:{Lore:[""&d&oUndroppable""],color:16777010},Unbreakable:1b}"
- set slot 29 of {_p}'s current inventory to gold chestplate with nbt "{display:{Lore:[""&d&oUndroppable""]},ench:[{id:0s,lvl:1s}],Unbreakable:1b}"
- set slot 30 of {_p}'s current inventory to leather leggings with nbt "{display:{Lore:[""&d&oUndroppable""],color:16777010},Unbreakable:1b}"
- set slot 31 of {_p}'s current inventory to leather boots with nbt "{display:{Lore:[""&d&oUndroppable""],color:16777010},Unbreakable:1b}"
- else if removeColorCode({_kit}) is "acrobat":
- set slot 10 of {_p}'s current inventory to iron sword with nbt "{display:{Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
- set slot 11 of {_p}'s current inventory to iron sword with nbt "{display:{Name:""&bThrowing Knife"",Lore:[""&d&oUndroppable""]},AttributeModifiers:[{AttributeName:""generic.attackDamage"",Name:""generic.attackDamage"",Amount:3,Operation:0,UUIDLeast:39570,UUIDMost:417241,Slot:""mainhand""}],Unbreakable:1b}"
- set slot 12 of {_p}'s current inventory to feather with nbt "{display:{Name:""&bAcrobat"",Lore:[""&d&oUndroppable""]}}"
- set slot 20 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e右クリックで使用" and "&e前方にナイフを投げる"
- set slot 21 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e手に持ってスペース2連打で使用" and "&e前方に大きくジャンプする"
- set slot 28 of {_p}'s current inventory to leather helmet with nbt "{display:{Lore:[""&d&oUndroppable""],color:12320767},ench:[{id:5s,lvl:1s}]}"
- set slot 29 of {_p}'s current inventory to leather chestplate with nbt "{display:{Lore:[""&d&oUndroppable""],color:12320767},ench:[{id:3s,lvl:2s}]}"
- set slot 30 of {_p}'s current inventory to leather leggings with nbt "{display:{Lore:[""&d&oUndroppable""],color:12320767},ench:[{id:1s,lvl:4s}]}"
- set slot 31 of {_p}'s current inventory to leather boots with nbt "{display:{Name:""&bAcrobat Boots"",Lore:[""&d&oUndroppable""],color:12320767},ench:[{id:10s,lvl:1s}],Unbreakable:1b}"
- set slot 40 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e落下ダメージを無効にする" and "&e常に移動速度上昇、跳躍力上昇Ⅴを付与する"
- else if removeColorCode({_kit}) is "spider":
- set slot 10 of {_p}'s current inventory to iron sword with nbt "{display:{Name:""&4Spider Sword"",Lore:[""&d&oUndroppable""]},ench:[{id:0s,lvl:0s}],HideFlags:1,Unbreakable:1b}"
- set slot 11 of {_p}'s current inventory to 16 cobwebs
- set slot 19 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e攻撃時に一定の確率で敵に毒Ⅱを付与し周囲に蜘蛛の巣を発生させる"
- set slot 20 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e右クリックで使用", "&e蜘蛛の巣を投げる", "&e自分が設置した蜘蛛の巣は一瞬で破壊できる" and "&e蜘蛛の巣は少しずつ復活し最大で16個所持できる"
- set slot 28 of {_p}'s current inventory to leather helmet with nbt "{display:{Lore:[""&d&oUndroppable""],color:16711680},ench:[{id:0s,lvl:1s}],Unbreakable:1b}"
- set slot 29 of {_p}'s current inventory to leather chestplate with nbt "{display:{Lore:[""&d&oUndroppable""],color:2039583},ench:[{id:0s,lvl:1s}],Unbreakable:1b}"
- set slot 30 of {_p}'s current inventory to leather leggings with nbt "{display:{Lore:[""&d&oUndroppable""],color:2039583},ench:[{id:0s,lvl:1s}],Unbreakable:1b}"
- set slot 31 of {_p}'s current inventory to leather boots with nbt "{display:{Name:""&4Spider Boots"",Lore:[""&d&oUndroppable""],color:2039583},ench:[{id:10,lvl:1s}],Unbreakable:1b}"
- set slot 40 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e落下ダメージを無効にする" and "&e3秒間壁に張り付くことができる"
- else if removeColorCode({_kit}) is "vampire":
- set slot 10 of {_p}'s current inventory to iron sword with nbt "{display:{Name:""&4Vampire Sword"",Lore:[""&d&oUndroppable""]},ench:[{id:0s,lvl:0s}],HideFlags:1,Unbreakable:1b}"
- set slot 11 of {_p}'s current inventory to fermented spider eye with nbt "{display:{Name:""&4Health Drain"",Lore:[""&d&oUndroppable""]},ench:[{id:0s,lvl:0s}],HideFlags:1}"
- set slot 19 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e攻撃時に一定の確率で吸血する"
- set slot 20 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e敵を攻撃することで発動" and "&e数秒間敵の体力を吸収し続け移動速度を低下させる"
- set slot 28 of {_p}'s current inventory to leather helmet with nbt "{display:{Lore:[""&d&oUndroppable""],color:0},ench:[{id:0s,lvl:1s}],Unbreakable:1b}"
- set slot 29 of {_p}'s current inventory to leather chestplate with nbt "{display:{Lore:[""&d&oUndroppable""],color:0},ench:[{id:0s,lvl:1s}],Unbreakable:1b}"
- set slot 30 of {_p}'s current inventory to leather leggings with nbt "{display:{Lore:[""&d&oUndroppable""],color:0},ench:[{id:0s,lvl:1s}],Unbreakable:1b}"
- set slot 31 of {_p}'s current inventory to leather boots with nbt "{display:{Lore:[""&d&oUndroppable""],color:0},ench:[{id:0s,lvl:1s}],Unbreakable:1b}"
- else if removeColorCode({_kit}) is "scout":
- set slot 10 of {_p}'s current inventory to iron sword with nbt "{display:{Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
- set slot 11 of {_p}'s current inventory to fishing rod with nbt "{display:{Name:""&6Grapple"",Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
- set slot 12 of {_p}'s current inventory to potion with nbt "{display:{Name:""&rPotion of Speed III (Infinity)"",Lore:[""&d&oUndroppable""]},CustomPotionEffects:[{Id:1b,Amplifier:2b,Ambient:1b,Duration:2147483647,ShowParticles:1b}],HideFlags:32,CustomPotionColor:8171462}"
- set slot 20 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e右クリックで使用", "&eフックの刺さった方向に移動する" and "&e手に持っている間落下ダメージを無効にする"
- set slot 28 of {_p}'s current inventory to leather helmet with nbt "{display:{Lore:[""&d&oUndroppable""],color:43520},Unbreakable:1b}"
- set slot 29 of {_p}'s current inventory to iron chestplate with nbt "{display:{Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
- set slot 30 of {_p}'s current inventory to chainmail leggings with nbt "{display:{Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
- set slot 31 of {_p}'s current inventory to leather boots with nbt "{display:{Lore:[""&d&oUndroppable""],color:43520},Unbreakable:1b}"
- else if removeColorCode({_kit}) is "sniper":
- set slot 10 of {_p}'s current inventory to stick of Knockback 2 with lore "&d&oUndroppable"
- set slot 11 of {_p}'s current inventory to bow with nbt "{display:{Name:""&3Sniper Bow"",Lore:[""&d&oUndroppable"",""&7- Tier 0 -""]},ench:[{id:49s,lvl:2s},{id:51s,lvl:1s}],Unbreakable:1b}"
- set slot 12 of {_p}'s current inventory to arrow with lore "&d&oUndroppable"
- set slot 20 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e発射した矢は落下せず直進し続ける", "&e敵を倒すたびにTierが最大で5まで上昇し矢の威力とスピードが上がっていく" and "&e敵との距離が遠いほど威力が高くなる"
- set slot 28 of {_p}'s current inventory to leather helmet with nbt "{display:{Lore:[""&d&oUndroppable""],color:43690},Unbreakable:1b}"
- set slot 29 of {_p}'s current inventory to leather chestplate with nbt "{display:{Lore:[""&d&oUndroppable""],color:43690},Unbreakable:1b}"
- set slot 30 of {_p}'s current inventory to leather leggings with nbt "{display:{Lore:[""&d&oUndroppable""],color:43690},Unbreakable:1b}"
- set slot 31 of {_p}'s current inventory to leather boots with nbt "{display:{Lore:[""&d&oUndroppable""],color:43690},Unbreakable:1b}"
- else if removeColorCode({_kit}) is "murderer":
- set slot 10 of {_p}'s current inventory to iron sword with nbt "{display:{Name:""&4Murderer Sword"",Lore:[""&d&oUndroppable""]},ench:[{id:16s,lvl:2s}],Unbreakable:1b}"
- set slot 11 of {_p}'s current inventory to magma cream with nbt "{display:{Name:""&4Madness Charger"",Lore:[""&d&oUndroppable""]},ench:[{id:0s,lvl:0s}],HideFlags:1}"
- set slot 19 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e敵を倒すたびに剣のエンチャントのレベルが最大Ⅶまで増加する"
- set slot 20 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e右クリックで使用" and "&eゲージが出現し消えるまでの間に攻撃した分だけ", "&eゲージ消失後に攻撃力が一時的に上昇する"
- set slot 28 of {_p}'s current inventory to leather helmet with nbt "{display:{Lore:[""&d&oUndroppable""],color:6553600},Unbreakable:1b}"
- set slot 29 of {_p}'s current inventory to leather chestplate with nbt "{display:{Lore:[""&d&oUndroppable""],color:6553600},Unbreakable:1b}"
- set slot 30 of {_p}'s current inventory to leather leggings with nbt "{display:{Lore:[""&d&oUndroppable""],color:6553600},Unbreakable:1b}"
- set slot 31 of {_p}'s current inventory to leather boots with nbt "{display:{Lore:[""&d&oUndroppable""],color:6553600},Unbreakable:1b}"
- else if removeColorCode({_kit}) is "squid":
- set slot 10 of {_p}'s current inventory to iron sword with nbt "{display:{Name:""&9Squid Sword"",Lore:[""&d&oUndroppable""]},ench:[{id:0s,lvl:0s}],HideFlags:1,Unbreakable:1b}"
- set slot 11 of {_p}'s current inventory to ink sac with nbt "{display:{Name:""&8Squid Ink"",Lore:[""&d&oUndroppable""]},ench:[{id:0s,lvl:0s}],HideFlags:1}"
- set slot 19 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e攻撃時に一定の確率で盲目、移動速度低下Ⅱを付与する"
- set slot 20 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e右クリックで使用" and "&e周囲の敵に盲目、移動速度低下Ⅲを付与する"
- set slot 28 of {_p}'s current inventory to leather helmet with nbt "{ench:[{lvl:1s,id:0s}],Unbreakable:1b,display:{Lore:[""&d&oUndroppable""],color:2901335}}"
- set slot 29 of {_p}'s current inventory to leather chestplate with nbt "{ench:[{lvl:1s,id:0s}],Unbreakable:1b,display:{Lore:[""&d&oUndroppable""],color:2901335}}"
- set slot 30 of {_p}'s current inventory to leather leggings with nbt "{ench:[{lvl:1s,id:0s}],Unbreakable:1b,display:{Lore:[""&d&oUndroppable""],color:2901335}}"
- set slot 31 of {_p}'s current inventory to leather boots with nbt "{ench:[{lvl:1s,id:0s}],Unbreakable:1b,display:{Lore:[""&d&oUndroppable""],color:2901335}}"
- else if removeColorCode({_kit}) is "minotaur":
- set slot 10 of {_p}'s current inventory to iron axe with nbt "{display:{Name:""&5Minotaur's Axe"",Lore:[""&d&oUndroppable""]},ench:[{id:16s,lvl:0s}],HideFlags:1,Unbreakable:1b}"
- set slot 11 of {_p}'s current inventory to gunpowder with nbt "{display:{Name:""&5Rush"",Lore:[""&d&oUndroppable""]}}"
- set slot 19 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e攻撃時に一定の確率でダメージが上昇し敵を上に大きく吹っ飛ばす"
- set slot 20 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e右クリックで使用" and "&e向いている方向に突進する"
- set slot 28 of {_p}'s current inventory to leather helmet with nbt "{display:{Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
- set slot 29 of {_p}'s current inventory to iron chestplate with nbt "{display:{Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
- set slot 30 of {_p}'s current inventory to leather leggings with nbt "{display:{Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
- set slot 31 of {_p}'s current inventory to leather boots with nbt "{display:{Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
- else if removeColorCode({_kit}) is "iceman":
- set slot 10 of {_p}'s current inventory to iron sword with nbt "{display:{Name:""&bIce Sword"",Lore:[""&d&oUndroppable""]},ench:[{id:0s,lvl:0s}],HideFlags:1,Unbreakable:1b}"
- set slot 11 of {_p}'s current inventory to prismarine shard with nbt "{display:{Name:""&bFrost Breath"",Lore:[""&d&oUndroppable""]},ench:[{id:0s,lvl:0s}],HideFlags:1}"
- set slot 19 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e攻撃時に一定の確率で敵を凍えさせる"
- set slot 20 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e右クリックで使用" and "&e氷の吐息を吐いて当たった敵にダメージを与え凍えさせる"
- set slot 28 of {_p}'s current inventory to leather helmet with nbt "{ench:[{lvl:1s,id:0s}],Unbreakable:1b,display:{Lore:[""&d&oUndroppable""],color:6619135}}"
- set slot 29 of {_p}'s current inventory to leather chestplate with nbt "{ench:[{lvl:1s,id:0s}],Unbreakable:1b,display:{Lore:[""&d&oUndroppable""],color:6619135}}"
- set slot 30 of {_p}'s current inventory to leather leggings with nbt "{ench:[{lvl:1s,id:0s}],Unbreakable:1b,display:{Lore:[""&d&oUndroppable""],color:6619135}}"
- set slot 31 of {_p}'s current inventory to leather boots with nbt "{ench:[{lvl:1s,id:0s}],Unbreakable:1b,display:{Lore:[""&d&oUndroppable""],color:6619135}}"
- else if removeColorCode({_kit}) is "necromancer":
- set slot 10 of {_p}'s current inventory to stone sword with nbt "{display:{Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
- set slot 11 of {_p}'s current inventory to stick with nbt "{display:{Name:""&5Necromancer's Wand"",Lore:[""&d&oUndroppable""]},ench:[{id:0s,lvl:0s}],HideFlags:1}"
- set slot 12 of {_p}'s current inventory to flint with nbt "{display:{Name:""&5Fang Attack"",Lore:[""&d&oUndroppable""]},ench:[{id:0s,lvl:0s}],HideFlags:1}"
- set slot 20 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e右クリックで使用" and "&eゾンビかスケルトンを1体召喚する"
- set slot 21 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e右クリックで使用" and "&e前方に牙を複数発生させる"
- set slot 28 of {_p}'s current inventory to leather helmet with nbt "{ench:[{lvl:1s,id:0s}],Unbreakable:1b,display:{Lore:[""&d&oUndroppable""],color:6553700}}"
- set slot 29 of {_p}'s current inventory to leather chestplate with nbt "{ench:[{lvl:1s,id:0s}],Unbreakable:1b,display:{Lore:[""&d&oUndroppable""],color:6553700}}"
- set slot 30 of {_p}'s current inventory to leather leggings with nbt "{ench:[{lvl:1s,id:0s}],Unbreakable:1b,display:{Lore:[""&d&oUndroppable""],color:6553700}}"
- set slot 31 of {_p}'s current inventory to leather boots with nbt "{ench:[{lvl:1s,id:0s}],Unbreakable:1b,display:{Lore:[""&d&oUndroppable""],color:6553700}}"
- else if removeColorCode({_kit}) is "fighter":
- set slot 10 of {_p}'s current inventory to potion with nbt "{display:{Name:""&rPotion of Strength II (Infinity)"",Lore:[""&d&oUndroppable""]},CustomPotionEffects:[{Id:5b,Amplifier:1b,Ambient:1b,Duration:2147483647,ShowParticles:1b}],HideFlags:32,CustomPotionColor:9643043}"
- set slot 11 of {_p}'s current inventory to popped chorus fruit named "&cUppercut" with lore "&d&oUndroppable"
- set slot 12 of {_p}'s current inventory to fire charge named "&cPunch Rush" with lore "&d&oUndroppable"
- set slot 20 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e敵を攻撃することで発動" and "&e敵を上方向に大きく吹っ飛ばしダメージを与える"
- set slot 21 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e右クリックで使用" and "&e前方に連続で攻撃する"
- set slot 28 of {_p}'s current inventory to leather helmet with nbt "{Unbreakable:1b,display:{Lore:[""&d&oUndroppable""],color:16721920}}"
- set slot 29 of {_p}'s current inventory to leather chestplate with nbt "{Unbreakable:1b,display:{Lore:[""&d&oUndroppable""],color:16721920}}"
- set slot 30 of {_p}'s current inventory to leather leggings with nbt "{Unbreakable:1b,display:{Lore:[""&d&oUndroppable""],color:16721920}}"
- set slot 31 of {_p}'s current inventory to leather boots with nbt "{Unbreakable:1b,display:{Lore:[""&d&oUndroppable""],color:16721920}}"
- else if removeColorCode({_kit}) is "golem":
- set slot 10 of {_p}'s current inventory to iron sword with nbt "{display:{Name:""&bGolem Sword"",Lore:[""&d&oUndroppable""]},ench:[{id:0s,lvl:0s}],HideFlags:1,Unbreakable:1b}"
- set slot 11 of {_p}'s current inventory to firework star with nbt "{display:{Name:""&bShock Wave"",Lore:[""&d&oUndroppable""]},HideFlags:32}"
- set slot 19 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e攻撃時に一定の確率でダメージが上昇し敵を上に吹き飛ばす"
- set slot 20 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e地面の上に立っているときに右クリックで使用" and "&e前方に衝撃波を発生させる"
- set slot 28 of {_p}'s current inventory to leather helmet with nbt "{Unbreakable:1b,display:{Lore:[""&d&oUndroppable""],color:13158600}}"
- set slot 29 of {_p}'s current inventory to iron chestplate with nbt "{display:{Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
- set slot 30 of {_p}'s current inventory to leather leggings with nbt "{Unbreakable:1b,display:{Lore:[""&d&oUndroppable""],color:13158600}}"
- set slot 31 of {_p}'s current inventory to leather boots with nbt "{Unbreakable:1b,display:{Lore:[""&d&oUndroppable""],color:13158600}}"
- else if removeColorCode({_kit}) is "wither":
- set slot 10 of {_p}'s current inventory to stone sword with nbt "{display:{Name:""&8Wither Sword"",Lore:[""&d&oUndroppable""]},ench:[{id:16s,lvl:1s}],Unbreakable:1b,HideFlags:1}"
- set slot 11 of {_p}'s current inventory to stick with nbt "{display:{Name:""&8Wither Wand"",Lore:[""&d&oUndroppable""]},ench:[{id:0s,lvl:0s}],HideFlags:1}"
- set slot 19 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e攻撃時に一定の確率で敵にウィザーⅡを付与し体力を少し回復する"
- set slot 20 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e右クリックで使用", "&eウィザースカルを発射し着弾地点で爆発する" and "&e敵に直撃すると体力を回復する"
- set slot 28 of {_p}'s current inventory to leather helmet with nbt "{ench:[{lvl:1s,id:0s}],Unbreakable:1b,display:{Lore:[""&d&oUndroppable""],color:3276850}}"
- set slot 29 of {_p}'s current inventory to leather chestplate with nbt "{ench:[{lvl:1s,id:0s}],Unbreakable:1b,display:{Lore:[""&d&oUndroppable""],color:3289650}}"
- set slot 30 of {_p}'s current inventory to leather leggings with nbt "{ench:[{lvl:1s,id:0s}],Unbreakable:1b,display:{Lore:[""&d&oUndroppable""],color:3289650}}"
- set slot 31 of {_p}'s current inventory to leather boots with nbt "{ench:[{lvl:1s,id:0s}],Unbreakable:1b,display:{Lore:[""&d&oUndroppable""],color:3289650}}"
- else if removeColorCode({_kit}) is "ninja":
- set slot 10 of {_p}'s current inventory to iron sword with nbt "{display:{Name:""&8Ninja Sword"",Lore:[""&d&oUndroppable""]},ench:[{id:0s,lvl:0s}],HideFlags:1,Unbreakable:1b}"
- set slot 11 of {_p}'s current inventory to prismarine crystal with nbt "{display:{Name:""&8Shuriken"",Lore:[""&d&oUndroppable""]}}"
- set slot 12 of {_p}'s current inventory to firework star with nbt "{display:{Name:""&8Smoke Bomb"",Lore:[""&d&oUndroppable""]},Explosion:{Type:0b,Colors:[I;0]},HideFlags:32}"
- set slot 20 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e右クリックで投げる", "&e連続で投げることが可能" and "&e消費しても少しずつ復活し最大で16個所持できる"
- set slot 21 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e右クリックで使用", "&e周囲の敵に盲目、移動速度低下を付与し自分は一定時間透明になる" and "&e透明になっている間は他人から防具が見えない"
- set slot 28 of {_p}'s current inventory to leather helmet with nbt "{ench:[{lvl:1s,id:0s}],Unbreakable:1b,display:{Lore:[""&d&oUndroppable""],color:0}}"
- set slot 29 of {_p}'s current inventory to leather chestplate with nbt "{ench:[{lvl:1s,id:0s}],Unbreakable:1b,display:{Lore:[""&d&oUndroppable""],color:0}}"
- set slot 30 of {_p}'s current inventory to chainmail leggings with nbt "{Unbreakable:1b,display:{Lore:[""&d&oUndroppable""]}}"
- set slot 31 of {_p}'s current inventory to leather boots with nbt "{ench:[{lvl:1s,id:0s},{lvl:1s,id:10s}],Unbreakable:1b,display:{Lore:[""&d&oUndroppable""],color:0,Name:""&8Ninja Shoes""}}"
- set slot 40 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e常に移動速度上昇を付与する"
- on inventory click:
- first 10 characters of inventory name of player's current inventory is "&aKitの詳細: "
- inventory type of player's current inventory is "CHEST"
- "%player's current inventory%" is "inventory of <none>"
- click type is not middle mouse button
- cancel event
- on rightclick with chest:
- name of player's tool is "&aKit Select"
- cancel event
- open chest with 3 row named "&aKit Select" to player
- wait 1 tick
- set slot 0 of player's current inventory to iron sword with nbt "{display:{Name:""&7Normal"",Lore:[""&c未開放"",""&eShift+クリックで詳細を表示""]},HideFlags:2}"
- set slot 1 of player's current inventory to gold sword with nbt "{display:{Name:""&6Knight"",Lore:[""&c未開放"",""&eShift+クリックで詳細を表示""]},ench:[{id:0s,lvl:0s}],HideFlags:3}"
- set slot 2 of player's current inventory to diamond chestplate with nbt "{display:{Name:""&8Armourer"",Lore:[""&c未開放"",""&eShift+クリックで詳細を表示""]},HideFlags:2}"
- set slot 3 of player's current inventory to bow named "&aArcher" with lore "&c未開放" and "&eShift+クリックで詳細を表示"
- set slot 4 of player's current inventory to splash potion with nbt "{display:{Name:""&2Witch"",Lore:[""&c未開放"",""&eShift+クリックで詳細を表示""]},ench:[{id:0s,lvl:0s}],HideFlags:33,CustomPotionColor:4393481}"
- set slot 5 of player's current inventory to blaze rod named "&cBlaze" with lore "&c未開放" and "&eShift+クリックで詳細を表示"
- set slot 6 of player's current inventory to ender pearl named "&5Enderman" with lore "&c未開放" and "&eShift+クリックで詳細を表示"
- set slot 7 of player's current inventory to tnt named "&4Terrorist" with lore "&c未開放" and "&eShift+クリックで詳細を表示"
- set slot 8 of player's current inventory to player head with nbt "{display:{Name:""&9Shark"",Lore:[""&c未開放"",""&eShift+クリックで詳細を表示""]},SkullOwner:{Id:""f0838a5b-2bce-4c3e-9a26-1eb8ffba7d4c"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMzkwMTE2ZGE1MTRhNzNkZGQ5Mjk1NDkxODUyYWRjNTg4MDA3ZjJhY2Q3ZGUyNjk3ODhhMjEyOGQ4ZTRhNzY0YiJ9fX0=""}]}}}"
- set slot 9 of player's current inventory to cobweb named "&4Spider" with lore "&c未開放" and "&eShift+クリックで詳細を表示"
- set slot 10 of player's current inventory to fishing rod named "&6Scout" with lore "&c未開放" and "&eShift+クリックで詳細を表示"
- set slot 11 of player's current inventory to feather named "&bAcrobat" with lore "&c未開放" and "&eShift+クリックで詳細を表示"
- set slot 12 of player's current inventory to player head with nbt "{display:{Name:""&8Ninja"",Lore:[""&c未開放"",""&eShift+クリックで詳細を表示""]},SkullOwner:{Id:dab38ac3-ea91-488c-b085-370411a94e60,Properties:{textures:[{Value:""eyJ0aW1lc3RhbXAiOjE1Mzk2ODc2OTQxOTUsInByb2ZpbGVJZCI6IjdkYTJhYjNhOTNjYTQ4ZWU4MzA0OGFmYzNiODBlNjhlIiwicHJvZmlsZU5hbWUiOiJHb2xkYXBmZWwiLCJzaWduYXR1cmVSZXF1aXJlZCI6dHJ1ZSwidGV4dHVyZXMiOnsiU0tJTiI6eyJ1cmwiOiJodHRwOi8vdGV4dHVyZXMubWluZWNyYWZ0Lm5ldC90ZXh0dXJlLzg4Y2U1ODhjNDcyOGU5ZjA0MDNmNDdlNzQ1MDJkMWIwMGNkMzYxYThkZTY0MjdiYjA1MDQyZDQ1ODBmZWM4OTkifX19"",Signature:""dLTyGe+Nr5mf52Mj1yygDmNT2k51G2Wb3E/oI7YLcqtkNDoTnwf3/qdrxSNw5SUyrFgVk3w8snoUlvYaZxP2KF9vny+zjy2jy9AjYoBfdKKVWrtrOm1LUMT2BUUQ8Dq4Op5aJQhbBkZk/V3vvJhg41iXjR8ssJcSmm0yQVq6d5zpWKFFB6h8PC4EvMkftddRt1h01SBNMIkBZysNKtT8B3winBU44UjtaORv5cQaP9IZPz1t0TL8Q7kMUOVjFuX+jzDiRhOOqgblZ85eHmBG9YxD5ptDG00v0tVUkUK0rIZZr2uugaYQ05SbOETYwLRe5olbGytQviNllF68072nviyM/QemOFsQWGfMTD/YdZKf6tLBeXihvk8X3k80NgMkrHZ55jzNNEERdFc9VRaIgKx2CvKSY2xLyjZl0WpfhSHloZOChuCVpmWieAns3YlahtI3GPtpP4rKuvtuMtpu/3YCFF5UXuXI14dnL4/LtUrYOuuMT5UFVVtOBLFYQjfcDYkDUdSSW3rqHr5KVtNPdG1oLR39IZy4Vo5Tu7N8LmQqaD7NFGoXbEHeNheZju6alVqdIl1nw+ch52wjC3CEaI5rqpyaXa2F96UTG5bO3d3P52o8oVt0LhZPOyoInltHjBPg6NIAjRMj0E09Qq5tLUIrXYVrqfkP4pBbaat1Y9M=""}]}}}"
- set slot 13 of player's current inventory to player head with nbt "{display:{Name:""&9Squid"",Lore:[""&c未開放"",""&eShift+クリックで詳細を表示""]},SkullOwner:{Id:""f95d9504-ea2b-4b89-b2d0-d400654a7010"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMDE0MzNiZTI0MjM2NmFmMTI2ZGE0MzRiODczNWRmMWViNWIzY2IyY2VkZTM5MTQ1OTc0ZTljNDgzNjA3YmFjIn19fQ==""}]}}}"
- set slot 14 of player's current inventory to ice named "&bIceman" with lore "&c未開放" and "&eShift+クリックで詳細を表示"
- set slot 15 of player's current inventory to player head with nbt "{display:{Name:""&bGolem"",Lore:[""&c未開放"",""&eShift+クリックで詳細を表示""]},SkullOwner:{Id:""7cb6e9a5-994f-40d5-9bfc-4ba5d796d21e"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvODkwOTFkNzllYTBmNTllZjdlZjk0ZDdiYmE2ZTVmMTdmMmY3ZDQ1NzJjNDRmOTBmNzZjNDgxOWE3MTQifX19""}]}}}"
- set slot 16 of player's current inventory to player head with nbt "{display:{Name:""&4Vampire"",Lore:[""&c未開放"",""&eShift+クリックで詳細を表示""]},SkullOwner:{Id:""a8701efe-e48e-4ebf-a844-bc9c79b3d051"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvOGQ0NDc1NmUwYjRlY2U4ZDc0NjI5NmEzZDVlMjk3ZTE0MTVmNGJhMTc2NDdmZmUyMjgzODUzODNkMTYxYTkifX19""}]}}}"
- set slot 17 of player's current inventory to player head with nbt "{display:{Name:""&8Wither"",Lore:[""&c未開放"",""&eShift+クリックで詳細を表示""]},SkullOwner:{Id:""119c371b-ea16-47c9-ad7f-23b3d894520a"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvY2RmNzRlMzIzZWQ0MTQzNjk2NWY1YzU3ZGRmMjgxNWQ1MzMyZmU5OTllNjhmYmI5ZDZjZjVjOGJkNDEzOWYifX19""}]}}}"
- set slot 18 of player's current inventory to gold axe with nbt "{display:{Name:""&eThor"",Lore:[""&c未開放"",""&eShift+クリックで詳細を表示""]},ench:[{id:0s,lvl:0s}],HideFlags:3}"
- set slot 19 of player's current inventory to iron axe with nbt "{display:{Name:""&5Minotaur"",Lore:[""&c未開放"",""&eShift+クリックで詳細を表示""]},HideFlags:2}"
- set slot 20 of player's current inventory to player head with nbt "{display:{Name:""&5Necromancer"",Lore:[""&c未開放"",""&eShift+クリックで詳細を表示""]},SkullOwner:{Id:""c659cdd4-e436-4977-a6a7-d5518ebecfbb"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMWFlMzg1NWY5NTJjZDRhMDNjMTQ4YTk0NmUzZjgxMmE1OTU1YWQzNWNiY2I1MjYyN2VhNGFjZDQ3ZDMwODEifX19""}]}}}"
- set slot 21 of player's current inventory to player head with nbt "{display:{Name:""&cFighter"",Lore:[""&c未開放"",""&eShift+クリックで詳細を表示""]},SkullOwner:{Id:""e5a214ba-bc4b-457f-a76d-50eac99952f2"",Properties:{textures:[{Value:""eyJ0aW1lc3RhbXAiOjE1NTQ4MDU5MjIzMjUsInByb2ZpbGVJZCI6IjVkMjRiYTBiMjg4YzQyOTM4YmExMGVjOTkwNjRkMjU5IiwicHJvZmlsZU5hbWUiOiIxbnYzbnQxdjN0NGwzbnQiLCJzaWduYXR1cmVSZXF1aXJlZCI6dHJ1ZSwidGV4dHVyZXMiOnsiU0tJTiI6eyJ1cmwiOiJodHRwOi8vdGV4dHVyZXMubWluZWNyYWZ0Lm5ldC90ZXh0dXJlL2NhNGFjYTljZjUzYjY0NWQzYjFjYzM2YjkxZGM4YWI4ZDdkNjkzZTY3MDdjY2FmOWJlZjM1ODI3OTA1Nzk4MWQifX19""}]}}}"
- set slot 22 of player's current inventory to bow with nbt "{display:{Name:""&3Sniper"",Lore:[""&c未開放"",""&eShift+クリックで詳細を表示""]},ench:[{id:0s,lvl:0s}],HideFlags:1}"
- set slot 23 of player's current inventory to iron sword with nbt "{display:{Name:""&4Murderer"",Lore:[""&c未開放"",""&eShift+クリックで詳細を表示""]},ench:[{id:0s,lvl:0s}],HideFlags:3}"
- loop 24 times:
- set {_slot} to loop-number - 1
- {kitpvp.kits.%UUID of player%::*} contain removeColorCode(name of slot {_slot} of player's current inventory)
- set line 1 of lore of slot {_slot} of player's current inventory to "&a開放済"
- {kitpvp.playingstate.%player%} is "waiting_duel" or "waiting_teambattle"
- removeColorCode(name of slot {_slot} of player's current inventory) is {kitpvp.lastselectedkit.%UUID of player%}
- set line 3 of lore of slot {_slot} of player's current inventory to line 2 of lore of slot {_slot} of player's current inventory
- set line 2 of lore of slot {_slot} of player's current inventory to "&a選択済"
- on rightclick with iron sword:
- name of player's tool is "&aKit Shop"
- cancel event
- open chest with 3 row named "&aKit Shop" to player
- wait 1 tick
- set slot 0 of player's current inventory to iron sword with nbt "{display:{Name:""&7Normal"",Lore:[""&6価格: &e0 Coins"",""&eShift+クリックで詳細を表示""]},HideFlags:2}"
- set slot 1 of player's current inventory to gold sword with nbt "{display:{Name:""&6Knight"",Lore:[""&6価格: &e0 Coins"",""&eShift+クリックで詳細を表示""]},ench:[{id:0s,lvl:0s}],HideFlags:3}"
- set slot 2 of player's current inventory to diamond chestplate with nbt "{display:{Name:""&8Armourer"",Lore:[""&6価格: &e0 Coins"",""&eShift+クリックで詳細を表示""]},HideFlags:2}"
- set slot 3 of player's current inventory to bow named "&aArcher" with lore "&6価格: &e500 Coins" and "&eShift+クリックで詳細を表示"
- set slot 4 of player's current inventory to splash potion with nbt "{display:{Name:""&2Witch"",Lore:[""&6価格: &e500 Coins"",""&eShift+クリックで詳細を表示""]},ench:[{id:0s,lvl:0s}],HideFlags:33,CustomPotionColor:4393481}"
- set slot 5 of player's current inventory to blaze rod named "&cBlaze" with lore "&6価格: &e600 Coins" and "&eShift+クリックで詳細を表示"
- set slot 6 of player's current inventory to ender pearl named "&5Enderman" with lore "&6価格: &e700 Coins" and "&eShift+クリックで詳細を表示"
- set slot 7 of player's current inventory to tnt named "&4Terrorist" with lore "&6価格: &e700 Coins" and "&eShift+クリックで詳細を表示"
- set slot 8 of player's current inventory to player head with nbt "{display:{Name:""&9Shark"",Lore:[""&6価格: &e800 Coins"",""&eShift+クリックで詳細を表示""]},SkullOwner:{Id:""f0838a5b-2bce-4c3e-9a26-1eb8ffba7d4c"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMzkwMTE2ZGE1MTRhNzNkZGQ5Mjk1NDkxODUyYWRjNTg4MDA3ZjJhY2Q3ZGUyNjk3ODhhMjEyOGQ4ZTRhNzY0YiJ9fX0=""}]}}}"
- set slot 9 of player's current inventory to cobweb named "&4Spider" with lore "&6価格: &e800 Coins" and "&eShift+クリックで詳細を表示"
- set slot 10 of player's current inventory to fishing rod named "&6Scout" with lore "&6価格: &e1000 Coins" and "&eShift+クリックで詳細を表示"
- set slot 11 of player's current inventory to feather named "&bAcrobat" with lore "&6価格: &e1200 Coins" and "&eShift+クリックで詳細を表示"
- set slot 12 of player's current inventory to player head with nbt "{display:{Name:""&8Ninja"",Lore:[""&6価格: &e1600 Coins"",""&eShift+クリックで詳細を表示""]},SkullOwner:{Id:dab38ac3-ea91-488c-b085-370411a94e60,Properties:{textures:[{Value:""eyJ0aW1lc3RhbXAiOjE1Mzk2ODc2OTQxOTUsInByb2ZpbGVJZCI6IjdkYTJhYjNhOTNjYTQ4ZWU4MzA0OGFmYzNiODBlNjhlIiwicHJvZmlsZU5hbWUiOiJHb2xkYXBmZWwiLCJzaWduYXR1cmVSZXF1aXJlZCI6dHJ1ZSwidGV4dHVyZXMiOnsiU0tJTiI6eyJ1cmwiOiJodHRwOi8vdGV4dHVyZXMubWluZWNyYWZ0Lm5ldC90ZXh0dXJlLzg4Y2U1ODhjNDcyOGU5ZjA0MDNmNDdlNzQ1MDJkMWIwMGNkMzYxYThkZTY0MjdiYjA1MDQyZDQ1ODBmZWM4OTkifX19"",Signature:""dLTyGe+Nr5mf52Mj1yygDmNT2k51G2Wb3E/oI7YLcqtkNDoTnwf3/qdrxSNw5SUyrFgVk3w8snoUlvYaZxP2KF9vny+zjy2jy9AjYoBfdKKVWrtrOm1LUMT2BUUQ8Dq4Op5aJQhbBkZk/V3vvJhg41iXjR8ssJcSmm0yQVq6d5zpWKFFB6h8PC4EvMkftddRt1h01SBNMIkBZysNKtT8B3winBU44UjtaORv5cQaP9IZPz1t0TL8Q7kMUOVjFuX+jzDiRhOOqgblZ85eHmBG9YxD5ptDG00v0tVUkUK0rIZZr2uugaYQ05SbOETYwLRe5olbGytQviNllF68072nviyM/QemOFsQWGfMTD/YdZKf6tLBeXihvk8X3k80NgMkrHZ55jzNNEERdFc9VRaIgKx2CvKSY2xLyjZl0WpfhSHloZOChuCVpmWieAns3YlahtI3GPtpP4rKuvtuMtpu/3YCFF5UXuXI14dnL4/LtUrYOuuMT5UFVVtOBLFYQjfcDYkDUdSSW3rqHr5KVtNPdG1oLR39IZy4Vo5Tu7N8LmQqaD7NFGoXbEHeNheZju6alVqdIl1nw+ch52wjC3CEaI5rqpyaXa2F96UTG5bO3d3P52o8oVt0LhZPOyoInltHjBPg6NIAjRMj0E09Qq5tLUIrXYVrqfkP4pBbaat1Y9M=""}]}}}"
- set slot 13 of player's current inventory to player head with nbt "{display:{Name:""&9Squid"",Lore:[""&6価格: &e2000 Coins"",""&eShift+クリックで詳細を表示""]},SkullOwner:{Id:""f95d9504-ea2b-4b89-b2d0-d400654a7010"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMDE0MzNiZTI0MjM2NmFmMTI2ZGE0MzRiODczNWRmMWViNWIzY2IyY2VkZTM5MTQ1OTc0ZTljNDgzNjA3YmFjIn19fQ==""}]}}}"
- set slot 14 of player's current inventory to ice named "&bIceman" with lore "&6価格: &e2500 Coins" and "&eShift+クリックで詳細を表示"
- set slot 15 of player's current inventory to player head with nbt "{display:{Name:""&bGolem"",Lore:[""&6価格: &e4000 Coins"",""&eShift+クリックで詳細を表示""]},SkullOwner:{Id:""7cb6e9a5-994f-40d5-9bfc-4ba5d796d21e"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvODkwOTFkNzllYTBmNTllZjdlZjk0ZDdiYmE2ZTVmMTdmMmY3ZDQ1NzJjNDRmOTBmNzZjNDgxOWE3MTQifX19""}]}}}"
- set slot 16 of player's current inventory to player head with nbt "{display:{Name:""&4Vampire"",Lore:[""&6価格: &e4000 Coins"",""&eShift+クリックで詳細を表示""]},SkullOwner:{Id:""a8701efe-e48e-4ebf-a844-bc9c79b3d051"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvOGQ0NDc1NmUwYjRlY2U4ZDc0NjI5NmEzZDVlMjk3ZTE0MTVmNGJhMTc2NDdmZmUyMjgzODUzODNkMTYxYTkifX19""}]}}}"
- set slot 17 of player's current inventory to player head with nbt "{display:{Name:""&8Wither"",Lore:[""&6価格: &e4000 Coins"",""&eShift+クリックで詳細を表示""]},SkullOwner:{Id:""119c371b-ea16-47c9-ad7f-23b3d894520a"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvY2RmNzRlMzIzZWQ0MTQzNjk2NWY1YzU3ZGRmMjgxNWQ1MzMyZmU5OTllNjhmYmI5ZDZjZjVjOGJkNDEzOWYifX19""}]}}}"
- set slot 18 of player's current inventory to gold axe with nbt "{display:{Name:""&eThor"",Lore:[""&6価格: &e5000 Coins"",""&eShift+クリックで詳細を表示""]},ench:[{id:0s,lvl:0s}],HideFlags:3}"
- set slot 19 of player's current inventory to iron axe with nbt "{display:{Name:""&5Minotaur"",Lore:[""&6価格: &e5000 Coins"",""&eShift+クリックで詳細を表示""]},HideFlags:2}"
- set slot 20 of player's current inventory to player head with nbt "{display:{Name:""&5Necromancer"",Lore:[""&6価格: &e8000 Coins"",""&eShift+クリックで詳細を表示""]},SkullOwner:{Id:""c659cdd4-e436-4977-a6a7-d5518ebecfbb"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMWFlMzg1NWY5NTJjZDRhMDNjMTQ4YTk0NmUzZjgxMmE1OTU1YWQzNWNiY2I1MjYyN2VhNGFjZDQ3ZDMwODEifX19""}]}}}"
- set slot 21 of player's current inventory to player head with nbt "{display:{Name:""&cFighter"",Lore:[""&6価格: &e8000 Coins"",""&eShift+クリックで詳細を表示""]},SkullOwner:{Id:""e5a214ba-bc4b-457f-a76d-50eac99952f2"",Properties:{textures:[{Value:""eyJ0aW1lc3RhbXAiOjE1NTQ4MDU5MjIzMjUsInByb2ZpbGVJZCI6IjVkMjRiYTBiMjg4YzQyOTM4YmExMGVjOTkwNjRkMjU5IiwicHJvZmlsZU5hbWUiOiIxbnYzbnQxdjN0NGwzbnQiLCJzaWduYXR1cmVSZXF1aXJlZCI6dHJ1ZSwidGV4dHVyZXMiOnsiU0tJTiI6eyJ1cmwiOiJodHRwOi8vdGV4dHVyZXMubWluZWNyYWZ0Lm5ldC90ZXh0dXJlL2NhNGFjYTljZjUzYjY0NWQzYjFjYzM2YjkxZGM4YWI4ZDdkNjkzZTY3MDdjY2FmOWJlZjM1ODI3OTA1Nzk4MWQifX19""}]}}}"
- set slot 22 of player's current inventory to bow with nbt "{display:{Name:""&3Sniper"",Lore:[""&6価格: &e10000 Coins"",""&eShift+クリックで詳細を表示""]},ench:[{id:0s,lvl:0s}],HideFlags:1}"
- set slot 23 of player's current inventory to iron sword with nbt "{display:{Name:""&4Murderer"",Lore:[""&6価格: &e10000 Coins"",""&eShift+クリックで詳細を表示""]},ench:[{id:0s,lvl:0s}],HideFlags:3}"
- loop 24 times:
- set {_slot} to loop-number - 1
- {kitpvp.kits.%UUID of player%::*} contain removeColorCode(name of slot {_slot} of player's current inventory)
- set line 1 of lore of slot {_slot} of player's current inventory to "&a開放済"
- on inventory click:
- inventory type of player's current inventory is "CHEST"
- inventory name of player's current inventory is "&aKit Select"
- "%player's current inventory%" is "inventory of <none>"
- cancel event
- inventory type of clicked inventory is "CHEST"
- inventory name of clicked inventory is "&aKit Select"
- "%clicked inventory%" is "inventory of <none>"
- {kits::*} contain removeColorCode(name of clicked item)
- if "%click type%" contain "mouse button with shift":
- displayKitInfo(player, name of clicked item)
- else:
- if line 1 of lore of clicked item is "&c未開放":
- play sound "ENTITY_ENDERMEN_TELEPORT" to player with volume 1 and pitch 0
- send "&cそのキットは使用できません!%nl%&cKit Shopからキットを購入してください"
- else if line 1 of lore of clicked item is "&a開放済":
- if {kitpvp.playingstate.%player%} is "not_playing":
- close player's inventory
- set {_loc} to random element out of {kitpvp.teleports::*}
- teleport player to {_loc}
- play sound "BLOCK_NOTE_PLING" to player with volume 1 and pitch 5
- send "&aキットを%name of clicked item%&aに設定しました"
- set {kitpvp.lastselectedkit.%UUID of player%} to removeColorCode(name of clicked item) in lower case
- set {invulnerabletime::%UUID of player%} to 100
- loop 41 times:
- set {_slot} to loop-number - 1
- set slot {_slot} of player's inventory to {kititems.%removeColorCode(name of clicked item)%::%{_slot}%}
- set {kitpvp.playingstate.%player%} to "playing_ffa"
- else if {kitpvp.playingstate.%player%} is "waiting_duel" or "waiting_teambattle":
- close player's inventory
- play sound "BLOCK_NOTE_PLING" to player with volume 1 and pitch 5
- send "&aキットを%name of clicked item%&aに設定しました"
- set {kitpvp.lastselectedkit.%UUID of player%} to removeColorCode(name of clicked item) in lower case
- on inventory click:
- inventory type of player's current inventory is "CHEST"
- inventory name of player's current inventory is "&aKit Shop"
- "%player's current inventory%" is "inventory of <none>"
- cancel event
- inventory type of clicked inventory is "CHEST"
- inventory name of clicked inventory is "&aKit Shop"
- "%clicked inventory%" is "inventory of <none>"
- if "%click type%" contain "mouse button with shift":
- displayKitInfo(player, name of clicked item)
- else:
- if line 1 of lore of clicked item is "&a開放済":
- send "&cそのキットは既に開放しています"
- play sound "ENTITY_ENDERMEN_TELEPORT" to player with volume 1 and pitch 0
- else:
- set {_price} to removeSuffix(removePrefix(line 1 of lore of clicked item, "&6価格: &e"), " Coins") parsed as number
- if {kitpvp.coins::%UUID of player%} >= {_price}:
- add removeColorCode(name of clicked item) to {kitpvp.kits.%UUID of player%::*}
- play sound "BLOCK_NOTE_PLING" to player with volume 1 and pitch 5
- send "&aキット%name of clicked item%&aを開放しました"
- remove {_price} from {kitpvp.coins::%UUID of player%}
- updateSideBar("ffa", player)
- close player's inventory
- else:
- play sound "ENTITY_ENDERMEN_TELEPORT" to player with volume 1 and pitch 0
- send "&cコインが足りません!"
- command /teleportpoint [<text>] [<text>]:
- permission: kitpvp.admin
- permission message: &cYou do not have permission to use this command.
- trigger:
- if arg-1 is not set:
- send "&cUsage: /teleportpoint <add|remove> <ID> OR /teleportpoint list"
- else if arg-1 is not "add" or "remove" or "list":
- send "&cUsage: /teleportpoint <add|remove> <ID> OR /teleportpoint list"
- else if arg-1 is "add" or "remove":
- if arg-2 is not set:
- send "&cUsage: /teleportpoint <add|remove> <ID> OR /teleportpoint list"
- else if arg-1 is "add":
- if arg-2 contain " ":
- send "&cIDに空白は使用できません!"
- else if {kitpvp.teleports::%arg-2%} is set:
- send "&cテレポート地点%arg-2 in lower case%は既に存在しています!"
- else:
- set {kitpvp.teleports::%arg-2%} to location of block at player
- set yaw of {kitpvp.teleports::%arg-2%} to 0
- set pitch of {kitpvp.teleports::%arg-2%} to 0
- send "&a新しいテレポート地点&e%arg-2 in lower case%&aを追加しました"
- else if arg-1 is "remove":
- if arg-2 contain " ":
- send "&cIDに空白は使用できません!"
- else if {kitpvp.teleports::%arg-2%} is not set:
- send "&cテレポート地点%arg-2 in lower case%は存在していません!"
- else:
- delete {kitpvp.teleports::%arg-2%}
- send "&aテレポート地点&e%arg-2 in lower case%&aを消去しました"
- else if arg-1 is "list":
- if {kitpvp.teleports::*} is not set:
- send "&cテレポート地点はひとつも設定されていません!"
- else if {kitpvp.teleports::*} is set:
- loop {kitpvp.teleports::*}:
- send "&a%loop-index%: &ex: %x-coordinate of loop-value%, y: %y-coordinate of loop-value%, z: %z-coordinate of loop-value%, world: %loop-value's world%"
- on damage of player:
- if {kitpvp.playingstate.%victim%} is "not_playing" or "waiting_duel" or "waiting_teambattle":
- cancel event
- else if {kitpvp.playingstate.%victim%} is not {kitpvp.playingstate.%attacker%}:
- attacker is a player
- attacker's gamemode is survival or adventure
- cancel event
- on rightclick with mushroom stew:
- player's gamemode is survival or adventure
- play sound "ENTITY_GENERIC_EAT" to player with volume 1 and pitch 5
- add 2.5 to player's health
- set player's tool to bowl
- on hunger meter change:
- set player's food to 10
- add "{foodSaturationLevel:2147483647f}" to nbt of player
- on sign change:
- line 1 of event-block is "[refill]"
- line 2 of event-block is ""
- line 3 of event-block is ""
- line 4 of event-block is ""
- set line 1 of event-block to "&7[&6Soup Refill&7]"
- on rightclick:
- event is not cancelled
- id of clicked block is 63 or 68
- if {kitpvp.refillcooldown.%player%} is not set:
- line 1 of clicked block is "&7[&6Soup Refill&7]"
- line 2 of clicked block is ""
- line 3 of clicked block is ""
- line 4 of clicked block is ""
- open chest with 6 row named "&6Soup Refill" to player
- loop 54 times:
- set {_slot} to loop-number - 1
- set slot {_slot} of player's current inventory to mushroom stew
- set {kitpvp.refillcooldown.%player%} to 300
- else if {kitpvp.refillcooldown.%player%} is set:
- send "&aCooldown: &c%ceil({kitpvp.refillcooldown.%player%}/20)% seconds" to player
- every tick:
- loop all players:
- {kitpvp.refillcooldown.%loop-player%} is set
- remove 1 from {kitpvp.refillcooldown.%loop-player%}
- {kitpvp.refillcooldown.%loop-player%} <= 0
- delete {kitpvp.refillcooldown.%loop-player%}
- on drop:
- player's gamemode is survival or adventure
- line 1 of lore of event-item is "&d&oUndroppable"
- cancel event
- on inventory click:
- "%click type%" contain "drop key"
- line 1 of lore of clicked item is "&d&oUndroppable"
- cancel event
- on inventory click:
- if "%click type%" contain "mouse button with shift":
- player's current inventory is not inventory of player
- "%player's current inventory%" is not "%player's inventory%"
- line 1 of lore of clicked item is "&d&oUndroppable"
- cancel event
- if click type is right mouse button or left mouse button:
- clicked inventory is not player's inventory
- line 1 of lore of clicked cursor is "&d&oUndroppable"
- cancel event
- if click type is number key:
- clicked inventory is not player's inventory
- line 1 of lore of slot click type number of player's inventory is "&d&oUndroppable"
- cancel event
- every 5 second:
- set {kitpvp.tabheader} to "&b-=-=-=-&6&lKitPvP&b-=-=-=-"
- wait 3 tick
- set {kitpvp.tabheader} to "&b-=-=-=-&e&lK&6&litPvP&b-=-=-=-"
- wait 3 tick
- set {kitpvp.tabheader} to "&b-=-=-=-&e&lKi&6<PvP&b-=-=-=-"
- wait 3 tick
- set {kitpvp.tabheader} to "&b-=-=-=-&e&lKit&6&lPvP&b-=-=-=-"
- wait 3 tick
- set {kitpvp.tabheader} to "&b-=-=-=-&6&lK&e&litP&6&lvP&b-=-=-=-"
- wait 3 tick
- set {kitpvp.tabheader} to "&b-=-=-=-&6&lKi&e<Pv&6&lP&b-=-=-=-"
- wait 3 tick
- set {kitpvp.tabheader} to "&b-=-=-=-&6&lKit&e&lPvP&b-=-=-=-"
- wait 3 tick
- set {kitpvp.tabheader} to "&b-=-=-=-&6&lKitP&e&lvP&b-=-=-=-"
- wait 3 tick
- set {kitpvp.tabheader} to "&b-=-=-=-&6&lKitPv&e&lP&b-=-=-=-"
- wait 3 tick
- set {kitpvp.tabheader} to "&b-=-=-=-&6&lKitPvP&b-=-=-=-"
- every tick:
- loop all players:
- set tab header to "%{kitpvp.tabheader}%%nl%" and footer to "%nl%&aPing: &7%loop-player's ping%ms%nl%&aPlayers: &7%number of all players%&8/&715" for loop-player
- {kitpvp.playingstate.%loop-player%} is not "playing_teambattle"
- set playerlist name of loop-player to "%getLevelString({kitpvp.level::%UUID of loop-player%}, true)% &7%display name of loop-player%"
- command /setspawn:
- permission: kitpvp.admin
- permission message: &cYou do not have permission to use this command.
- trigger:
- set {kitpvp.spawn} to location of player
- send "&aスポーン地点を設定しました"
- command /spawn:
- trigger:
- if {kitpvp.playingstate.%player%} is not "not_playing" or "playing_ffa":
- send "&c現在このコマンドは使用できません"
- else if {kitpvp.fightingstate.%player%} is "FIGHTING":
- send "&c戦闘中にこのコマンドは使用できません"
- send "&cFighting Stateが&eNOT FIGHTING&cになったことを確かめてから使用してください"
- else if {kitpvp.fightingstate.%player%} is "NOT FIGHTING":
- send "&a15秒後にスポーン地点にテレポートします"
- send "&a動かず待機していてください"
- set {kitpvp.spawntimer.%player%} to 300
- every tick:
- loop all players:
- {kitpvp.spawntimer.%loop-player%} >= 1
- remove 1 from {kitpvp.spawntimer.%loop-player%}
- {kitpvp.spawntimer.%loop-player%} is 0
- teleportSpawn(loop-player)
- heal loop-player
- send "&aスポーン地点にテレポートしました" to loop-player
- on any movement:
- {kitpvp.spawntimer.%player%} >= 1
- set {_locstring} to "%location of player%"
- wait 1 tick
- "%location of player%" is not {_locstring}
- send "&a動いたためスポーン地点へのテレポートをキャンセルしました"
- delete {kitpvp.spawntimer.%player%}
- on damage:
- if victim is a player:
- set {_health} to health of victim
- wait 1 tick
- {_health} > health of victim
- {kitpvp.spawntimer.%victim%} >= 1
- send "&aダメージを受けたためスポーン地点へのテレポートをキャンセルしました" to victim
- delete {kitpvp.spawntimer.%victim%}
- if attacker is a player:
- set {_health} to health of victim
- wait 1 tick
- {_health} > health of victim
- {kitpvp.spawntimer.%attacker%} >= 1
- send "&a攻撃を行ったためスポーン地点へのテレポートをキャンセルしました" to attacker
- delete {kitpvp.spawntimer.%attacker%}
- every tick:
- loop all players:
- {fightingstatetime.%loop-player%} >= 1
- remove 1 from {fightingstatetime.%loop-player%}
- {fightingstatetime.%loop-player%} is 0
- delete {fightingstatetime.%loop-player%}
- set {kitpvp.fightingstate.%loop-player%} to "NOT FIGHTING"
- updateSideBar("ffa", loop-player)
- command /editstatus [<text>] [<player>] [<text>] [<integer>]:
- permission: kitpvp.admin
- permission message: &cYou do not have permission to use this command.
- aliases: /es
- trigger:
- if arg-1 is not "add" or "remove" or "set":
- send "&cUsage: /editstats <add|remove|set> <player> <level|exp|kills|deaths|assists|bestkillstreak|coins> <count>"
- stop
- if arg-1 is not set:
- send "&cUsage: /editstats <add|remove|set> <player> <level|exp|kills|deaths|assists|bestkillstreak|coins> <count>"
- stop
- if arg-3 is not "level" or "exp" or "kills" or "deaths" or "assists" or "bestkillstreak" or "coins":
- send "&cUsage: /editstats <add|remove|set> <player> <level|exp|kills|deaths|assists|bestkillstreak|coins> <count>"
- stop
- if arg-1 is "add":
- if arg-3 is "level":
- add arg-4 to {kitpvp.level::%UUID of arg-2%}
- send "&e%arg-2%&aのレベルを&e%arg-4%&a増やしました"
- {kitpvp.sidebar.%arg-2%} is "ffa"
- giveReward(arg-2, 0, "")
- updateSideBar("ffa", arg-2)
- if arg-3 is "exp":
- giveReward(arg-2, arg-4, "")
- send "&e%arg-2%&aの経験値を&e%arg-4%&a増やしました"
- {kitpvp.sidebar.%arg-2%} is "ffa"
- updateSideBar("ffa", arg-2)
- if arg-3 is "kills":
- add arg-4 to {kitpvp.kills::%UUID of arg-2%}
- send "&e%arg-2%&aのキル数を&e%arg-4%&a増やしました"
- {kitpvp.sidebar.%arg-2%} is "ffa"
- updateSideBar("ffa", arg-2)
- if arg-3 is "deaths":
- add arg-4 to {kitpvp.deaths::%UUID of arg-2%}
- send "&e%arg-2%&aのデス数を&e%arg-4%&a増やしました"
- {kitpvp.sidebar.%arg-2%} is "ffa"
- updateSideBar("ffa", arg-2)
- if arg-3 is "assists":
- add arg-4 to {kitpvp.assists::%UUID of arg-2%}
- send "&e%arg-2%&aのアシスト数を&e%arg-4%&a増やしました"
- {kitpvp.sidebar.%arg-2%} is "ffa"
- updateSideBar("ffa", arg-2)
- if arg-3 is "bestkillstreak":
- add arg-4 to {kitpvp.bestkillstreak::%UUID of arg-2%}
- send "&e%arg-2%&aの最高連続キル数を&e%arg-4%&a増やしました"
- {kitpvp.sidebar.%arg-2%} is "ffa"
- updateSideBar("ffa", arg-2)
- if arg-3 is "coins":
- add arg-4 to {kitpvp.coins::%UUID of arg-2%}
- send "&e%arg-2%&aのコインを&e%arg-4%&a増やしました"
- {kitpvp.sidebar.%arg-2%} is "ffa"
- updateSideBar("ffa", arg-2)
- if arg-1 is "remove":
- if arg-3 is "level":
- remove arg-4 from {kitpvp.level::%UUID of arg-2%}
- send "&e%arg-2%&aのレベルを&e%arg-4%&a減らしました"
- {kitpvp.sidebar.%arg-2%} is "ffa"
- giveReward(arg-2, 0, "")
- updateSideBar("ffa", arg-2)
- if arg-3 is "exp":
- giveReward(arg-2, arg-4*-1, "")
- send "&e%arg-2%&aの経験値を&e%arg-4%&a減らしました"
- {kitpvp.sidebar.%arg-2%} is "ffa"
- updateSideBar("ffa", arg-2)
- if arg-3 is "kills":
- remove arg-4 from {kitpvp.kills::%UUID of arg-2%}
- send "&e%arg-2%&aのキル数を&e%arg-4%&a減らしました"
- {kitpvp.sidebar.%arg-2%} is "ffa"
- updateSideBar("ffa", arg-2)
- if arg-3 is "deaths":
- remove arg-4 from {kitpvp.deaths::%UUID of arg-2%}
- send "&e%arg-2%&aのデス数を&e%arg-4%&a減らしました"
- {kitpvp.sidebar.%arg-2%} is "ffa"
- updateSideBar("ffa", arg-2)
- if arg-3 is "assists":
- remove arg-4 from {kitpvp.assists::%UUID of arg-2%}
- send "&e%arg-2%&aのアシスト数を&e%arg-4%&a減らしました"
- {kitpvp.sidebar.%arg-2%} is "ffa"
- updateSideBar("ffa", arg-2)
- if arg-3 is "bestkillstreak":
- remove arg-4 from {kitpvp.bestkillstreak::%UUID of arg-2%}
- send "&e%arg-2%&aの最高連続キル数を&e%arg-4%&a減らしました"
- {kitpvp.sidebar.%arg-2%} is "ffa"
- updateSideBar("ffa", arg-2)
- if arg-3 is "coins":
- remove arg-4 from {kitpvp.coins::%UUID of arg-2%}
- send "&e%arg-2%&aのコインを&e%arg-4%&a減らしました"
- {kitpvp.sidebar.%arg-2%} is "ffa"
- updateSideBar("ffa", arg-2)
- if arg-1 is "set":
- if arg-3 is "level":
- set {kitpvp.level::%UUID of arg-2%} to arg-4
- send "&e%arg-2%&aのレベルを&e%arg-4%&aに設定しました"
- {kitpvp.sidebar.%arg-2%} is "ffa"
- giveReward(arg-2, 0, "")
- updateSideBar("ffa", arg-2)
- if arg-3 is "exp":
- set {kitpvp.exp::%UUID of arg-2%} to arg-4
- send "&e%arg-2%&aの経験値を&e%arg-4%&aに設定しました"
- {kitpvp.sidebar.%arg-2%} is "ffa"
- giveReward(arg-2, 0, "")
- updateSideBar("ffa", arg-2)
- if arg-3 is "kills":
- set {kitpvp.kills::%UUID of arg-2%} to arg-4
- send "&e%arg-2%&aのキル数を&e%arg-4%&aに設定しました"
- {kitpvp.sidebar.%arg-2%} is "ffa"
- updateSideBar("ffa", arg-2)
- if arg-3 is "deaths":
- set {kitpvp.deaths::%UUID of arg-2%} to arg-4
- send "&e%arg-2%&aのデス数を&e%arg-4%&aに設定しました"
- {kitpvp.sidebar.%arg-2%} is "ffa"
- updateSideBar("ffa", arg-2)
- if arg-3 is "assists":
- set {kitpvp.assists::%UUID of arg-2%} to arg-4
- send "&e%arg-2%&aのアシスト数を&e%arg-4%&aに設定しました"
- {kitpvp.sidebar.%arg-2%} is "ffa"
- updateSideBar("ffa", arg-2)
- if arg-3 is "bestkillstreak":
- set {kitpvp.bestkillstreak::%UUID of arg-2%} to arg-4
- send "&e%arg-2%&aの最高連続キル数を&e%arg-4%&aに設定しました"
- {kitpvp.sidebar.%arg-2%} is "ffa"
- updateSideBar("ffa", arg-2)
- if arg-3 is "coins":
- set {kitpvp.coins::%UUID of arg-2%} to arg-4
- send "&e%arg-2%&aのコインを&e%arg-4%&aに設定しました"
- {kitpvp.sidebar.%arg-2%} is "ffa"
- updateSideBar("ffa", arg-2)
- every tick:
- loop all players:
- set {_health} to tag "Health" of nbt of loop-player-1
- add tag "AbsorptionAmount" of nbt of loop-player-1 to {_health}
- set {_health} to ceil({_health})
- loop all players:
- set tab score of loop-player-1 to 0 for loop-player-2
- set {_scoreboard} to scoreboard of loop-player-2
- set {_objective} to scoreboard objective "tabHold" from scoreboard {_scoreboard}
- set scoreboard score of scoreboard objective {_objective} score of "%loop-player-1%" to {kitpvp.kills::%UUID of loop-player-1%}
- if {kitpvp.playingstate.%loop-player-2%} is "not_playing" or "waiting_duel" or "waiting_teambattle":
- set score "&6✫" below loop-player-1 to {kitpvp.level::%UUID of loop-player-1%} for loop-player-2
- else if {kitpvp.playingstate.%loop-player-2%} is "playing_ffa" or "playing_duel" or "playing_teambattle":
- set score "&c❤" below loop-player-1 to {_health} for loop-player-2
- on damage of player:
- event is not cancelled
- {kitpvp.playingstate.%victim%} is "playing_ffa" or "playing_teambattle"
- if attacker is a player:
- if {kitpvp.playingstate.%victim%} is "playing_ffa":
- if {kitpvp.fightingstate.%victim%} is "NOT FIGHTING":
- set {kitpvp.fightingstate.%victim%} to "FIGHTING"
- set {fightingstatetime.%victim%} to 200
- updateSideBar("ffa", victim)
- else if {kitpvp.fightingstate.%victim%} is "FIGHTING":
- set {fightingstatetime.%victim%} to 200
- if {kitpvp.fightingstate.%attacker%} is "NOT FIGHTING":
- set {kitpvp.fightingstate.%attacker%} to "FIGHTING"
- set {fightingstatetime.%attacker%} to 200
- updateSideBar("ffa", attacker)
- else if {kitpvp.fightingstate.%attacker%} is "FIGHTING":
- set {fightingstatetime.%attacker%} to 200
- wait 1 tick
- health of victim > 0
- set {lastattacker.%victim%} to "%attacker%" parsed as player
- set {killjudgetime.%victim%} to 200
- set {attackedplayers.%victim%::%attacker%} to final damage
- set {assistjudgetime.%victim%::%attacker%} to 600
- else if attacker is TNT:
- set {_attacker} to getOwnerTag("%tag ""Tags"" of nbt of attacker%")
- {_attacker} is set
- if victim is {_attacker}:
- cancel event
- stop
- set {kitpvp.fightingstate.%victim%} to "FIGHTING"
- set {fightingstatetime.%victim%} to 200
- updateSideBar("ffa", victim)
- set {kitpvp.fightingstate.%{_attacker}%} to "FIGHTING"
- set {fightingstatetime.%{_attacker}%} to 200
- updateSideBar("ffa", {_attacker})
- set {_health} to health of victim
- wait 1 tick
- {_health} > health of victim
- if {kitpvp.spawntimer.%{_attacker}%} >= 1:
- send "&a攻撃を行ったためスポーン地点へのテレポートをキャンセルしました" to {_attacker}
- delete {kitpvp.spawntimer.%{_attacker}%}
- if health of victim > 0:
- set {lastattacker.%victim%} to {_attacker}
- set {killjudgetime.%victim%} to 200
- set {attackedplayers.%victim%::%{_attacker}%} to final damage
- set {assistjudgetime.%victim%::%{_attacker}%} to 600
- else if attacker is a living entity:
- set {_attacker} to getOwnerTag("%tag ""Tags"" of nbt of attacker%")
- {_attacker} is set
- if victim is {_attacker}:
- cancel event
- stop
- wait 1 tick
- health of victim > 0
- set {lastattacker.%victim%} to {_attacker}
- set {killjudgetime.%victim%} to 200
- set {attackedplayers.%victim%::%{_attacker}%} to final damage
- set {assistjudgetime.%victim%::%{_attacker}%} to 600
- on target:
- set {_owner} to getOwnerTag("%tag ""Tags"" of nbt of event-entity%")
- target of event-entity is {_owner}
- cancel event
- every tick:
- loop all entities:
- loop-entity is not a player
- loop-entity is a living entity
- loop-entity is not armor stand
- set {_owner} to getOwnerTag("%tag ""Tags"" of nbt of loop-entity%")
- {_owner} is set
- distance between loop-entity and {_owner} > 6
- target of loop-entity is not set
- make loop-entity pathfind to {_owner} with speed 1.5
- every tick:
- loop all players:
- if {killjudgetime.%loop-player%} >= 1:
- remove 1 from {killjudgetime.%loop-player%}
- {killjudgetime.%loop-player%} is 0
- delete {lastattacker.%loop-player%}
- delete {killjudgetime.%loop-player%}
- loop {assistjudgetime.%loop-player%::*}:
- {assistjudgetime.%loop-player%::%loop-index%} >= 1
- remove 1 from {assistjudgetime.%loop-player%::%loop-index%}
- {assistjudgetime.%loop-player%::%loop-index%} is 0
- delete {assistjudgetime.%loop-player%::%loop-index%}
- delete {attackedplayers.%loop-player%::%loop-index%}
- on quit:
- set quit message to "&7%display name of player% &ahas left the server"
- {kitpvp.playingstate.%player%} is "playing_ffa"
- {kitpvp.fightingstate.%player%} is "FIGHTING"
- if {lastattacker.%player%} is set:
- set {_uuid} to UUID of {lastattacker.%player%}
- add 1 to {kitpvp.kills::%{_uuid}%}
- add 1 to {kitpvp.killstreak.%{lastattacker.%player%}%}
- giveReward({lastattacker.%player%}, 10, "Kill")
- loop {attackedplayers.%player%::*}:
- loop-index parsed as player is set
- loop-index parsed as player is not {lastattacker.%player%}
- giveReward(loop-index parsed as player, ceil(loop-value/1.5), "Assist")
- updateSideBar(loop-index parsed as player)
- add 1 to {kitpvp.assists::%UUID of loop-index parsed as player%}
- showKillEffect({lastattacker.%player%}, player)
- play sound "ENTITY_EXPERIENCE_ORB_PICKUP" to {lastattacker.%player%} with volume 1 and pitch 5
- updateSideBar("ffa", {lastattacker.%player%})
- add 4 to absorption hearts of {lastattacker.%player%}
- broadcast "&c%display name of player%&b[&6%{kitpvp.killstreak.%player%}%&b] &eは &c%display name of {lastattacker.%player%}%&b[&6%{kitpvp.killstreak.%{lastattacker.%player%}%}%&b] &eに倒された"
- if {kitpvp.killstreak.%{lastattacker.%player%}%} is 5 or 15:
- broadcast "&e%display name of {lastattacker.%player%}%&aが&e%{kitpvp.killstreak.%{lastattacker.%player%}%}%&a連続キルを達成しました!"
- giveReward({lastattacker.%player%}, {kitpvp.killstreak.%{lastattacker.%player%}%}, "Kill Streak Bonus")
- if last 1 characters of "%{kitpvp.killstreak.%{lastattacker.%player%}%}%" is "0":
- broadcast "&e%display name of {lastattacker.%player%}%&aが&e%{kitpvp.killstreak.%{lastattacker.%player%}%}%&a連続キルを達成しました!"
- giveReward({lastattacker.%player%}, {kitpvp.killstreak.%{lastattacker.%player%}%}, "Kill Streak Bonus")
- if {kitpvp.killstreak.%player%} >= 3:
- broadcast "&e%display name of {lastattacker.%player%}%&aが&e%display name of player%&aの&e%{kitpvp.killstreak.%player%}%&a連続キルを阻止しました!"
- giveReward({lastattacker.%player%}, {kitpvp.killstreak.%player%}, "Stop Kill Streak Bonus")
- else if {lastattacker.%player%} is not set:
- broadcast "&c%display name of player%&b[&6%{kitpvp.killstreak.%player%}%&b] &eは死んだ"
- on death of player:
- {kitpvp.playingstate.%victim%} is "playing_ffa"
- if victim is attacker:
- stop
- add 1 to {kitpvp.deaths::%UUID of victim%}
- loop all projectiles:
- shooter of loop-entity is victim
- kill loop-entity
- updateSideBar("ffa", victim)
- if attacker is set:
- if attacker is a player:
- showKillEffect(attacker, victim)
- play sound "ENTITY_EXPERIENCE_ORB_PICKUP" to attacker with volume 1 and pitch 5
- add 1 to {kitpvp.kills::%UUID of attacker%}
- add 1 to {kitpvp.killstreak.%attacker%}
- giveReward(attacker, 10, "Kill")
- loop {attackedplayers.%victim%::*}:
- loop-index parsed as player is set
- loop-index parsed as player is not attacker
- giveReward(loop-index parsed as player, ceil(loop-value/1.5), "Assist")
- updateSideBar(loop-index parsed as player)
- add 1 to {kitpvp.assists::%UUID of loop-index parsed as player%}
- if {kitpvp.killstreak.%attacker%} > {kitpvp.bestkillstreak::%UUID of attacker%}:
- set {kitpvp.bestkillstreak::%UUID of attacker%} to {kitpvp.killstreak.%attacker%}
- updateSideBar("ffa", attacker)
- add 4 to absorption hearts of attacker
- if projectile is an arrow:
- if name of attacker's tool is set:
- set death message to "&c%display name of victim%&b[&6%{kitpvp.killstreak.%victim%}%&b] &eは &c%display name of attacker%&b[&6%{kitpvp.killstreak.%attacker%}%&b] &eの &7%name of attacker's tool% &eで射抜かれた"
- else:
- set death message to "&c%display name of victim%&b[&6%{kitpvp.killstreak.%victim%}%&b] &eは &c%display name of attacker%&b[&6%{kitpvp.killstreak.%attacker%}%&b] &eに射抜かれた"
- else:
- if name of attacker's tool is set:
- set death message to "&c%display name of victim%&b[&6%{kitpvp.killstreak.%victim%}%&b] &eは &c%display name of attacker%&b[&6%{kitpvp.killstreak.%attacker%}%&b] &eの &7%name of attacker's tool% &eで倒された"
- else:
- set death message to "&c%display name of victim%&b[&6%{kitpvp.killstreak.%victim%}%&b] &eは &c%display name of attacker%&b[&6%{kitpvp.killstreak.%attacker%}%&b] &eに倒された"
- if {kitpvp.killstreak.%attacker%} is 5 or 15:
- broadcast "&e%display name of attacker%&aが&e%{kitpvp.killstreak.%attacker%}%&a連続キルを達成しました!"
- giveReward(attacker, {kitpvp.killstreak.%attacker%}, "Kill Streak Bonus")
- if last 1 characters of "%{kitpvp.killstreak.%attacker%}%" is "0":
- broadcast "&e%display name of attacker%&aが&e%{kitpvp.killstreak.%attacker%}%&a連続キルを達成しました!"
- giveReward(attacker, {kitpvp.killstreak.%attacker%}, "Kill Streak Bonus")
- if {kitpvp.killstreak.%victim%} >= 3:
- broadcast "&e%display name of attacker%&aが&e%display name of victim%&aの&e%{kitpvp.killstreak.%victim%}%&a連続キルを阻止しました!"
- giveReward(attacker, {kitpvp.killstreak.%victim%}, "Stop Kill Streak Bonus")
- else if attacker is not a player:
- if attacker is TNT:
- set {_attacker} to getOwnerTag("%tag ""Tags"" of nbt of attacker%")
- if {_attacker} is set:
- showKillEffect({_attacker}, victim)
- play sound "ENTITY_EXPERIENCE_ORB_PICKUP" to {_attacker} with volume 1 and pitch 5
- set {_uuid} to UUID of {_attacker}
- add 1 to {kitpvp.kills::%{_uuid}%}
- add 1 to {kitpvp.killstreak.%{_attacker}%}
- giveReward({_attacker}, 10, "Kill")
- loop {attackedplayers.%victim%::*}:
- loop-index parsed as player is set
- loop-index parsed as player is not {_attacker}
- giveReward(loop-index parsed as player, ceil(loop-value/1.5), "Assist")
- updateSideBar(loop-index parsed as player)
- add 1 to {kitpvp.assists::%UUID of loop-index parsed as player%}
- if {kitpvp.killstreak.%{_attacker}%} > {kitpvp.bestkillstreak::%{_uuid}%}:
- set {kitpvp.bestkillstreak::%{_uuid}%} to {kitpvp.killstreak.%{_attacker}%}
- updateSideBar("ffa", {_attacker})
- add 4 to absorption hearts of {_attacker}
- set death message to "&c%display name of victim%&b[&6%{kitpvp.killstreak.%victim%}%&b] &eは &c%display name of {_attacker}%&b[&6%{kitpvp.killstreak.%{_attacker}%}%&b] &eに爆破された"
- if {kitpvp.killstreak.%{_attacker}%} is 5 or 15:
- broadcast "&e%display name of {_attacker}%&aが&e%{kitpvp.killstreak.%{_attacker}%}%&a連続キルを達成しました!"
- giveReward(attacker, {kitpvp.killstreak.%{_attacker}%}, "Kill Streak Bonus")
- if last 1 characters of "%{kitpvp.killstreak.%{_attacker}%}%" is "0":
- broadcast "&e%display name of {_attacker}%&aが&e%{kitpvp.killstreak.%{_attacker}%}%&a連続キルを達成しました!"
- giveReward(attacker, {kitpvp.killstreak.%{_attacker}%}, "Kill Streak Bonus")
- if {kitpvp.killstreak.%victim%} >= 3:
- broadcast "&e%display name of {_attacker}%&aが&e%display name of victim%&aの&e%{kitpvp.killstreak.%victim%}%&a連続キルを阻止しました!"
- giveReward(attacker, {kitpvp.killstreak.%victim%}, "Stop Kill Streak Bonus")
- else if {_attacker} is not set:
- set death message to "&c%display name of victim% &eは死んだ"
- else if attacker is not TNT:
- if attacker is a living entity:
- set {_attacker} to getOwnerTag("%tag ""Tags"" of nbt of attacker%")
- if {_attacker} is set:
- showKillEffect({_attacker}, victim)
- play sound "ENTITY_EXPERIENCE_ORB_PICKUP" to {_attacker} with volume 1 and pitch 5
- set {_uuid} to UUID of {_attacker}
- add 1 to {kitpvp.kills::%{_uuid}%}
- add 1 to {kitpvp.killstreak.%{_attacker}%}
- giveReward({_attacker}, 10, "Kill")
- loop {attackedplayers.%victim%::*}:
- loop-index parsed as player is set
- loop-index parsed as player is not {_attacker}
- giveReward(loop-index parsed as player, ceil(loop-value/1.5), "Assist")
- updateSideBar(loop-index parsed as player)
- add 1 to {kitpvp.assists::%UUID of loop-index parsed as player%}
- if {kitpvp.killstreak.%{_attacker}%} > {kitpvp.bestkillstreak::%{_uuid}%}:
- set {kitpvp.bestkillstreak::%{_uuid}%} to {kitpvp.killstreak.%{_attacker}%}
- updateSideBar("ffa", {_attacker})
- add 4 to absorption hearts of {_attacker}
- if name of attacker is set:
- set death message to "&c%display name of victim%&b[&6%{kitpvp.killstreak.%victim%}%&b] &eは &c%display name of {_attacker}%&b[&6%{kitpvp.killstreak.%{_attacker}%}%&b] &eの &c%name of attacker% &eに殺害された"
- else if name of attacker is not set:
- set death message to "&c%display name of victim%&b[&6%{kitpvp.killstreak.%victim%}%&b] &eは &c%display name of {_attacker}%&b[&6%{kitpvp.killstreak.%{_attacker}%}%&b] &eの &c%attacker% &eに殺害された"
- if {kitpvp.killstreak.%{_attacker}%} is 5 or 15:
- broadcast "&e%display name of {_attacker}%&aが&e%{kitpvp.killstreak.%{_attacker}%}%&a連続キルを達成しました!"
- giveReward(attacker, {kitpvp.killstreak.%{_attacker}%}, "Kill Streak Bonus")
- if last 1 characters of "%{kitpvp.killstreak.%{_attacker}%}%" is "0":
- broadcast "&e%display name of {_attacker}%&aが&e%{kitpvp.killstreak.%{_attacker}%}%&a連続キルを達成しました!"
- giveReward(attacker, {kitpvp.killstreak.%{_attacker}%}, "Kill Streak Bonus")
- if {kitpvp.killstreak.%victim%} >= 3:
- broadcast "&e%display name of {_attacker}%&aが&e%display name of victim%&aの&e%{kitpvp.killstreak.%victim%}%&a連続キルを阻止しました!"
- giveReward(attacker, {kitpvp.killstreak.%victim%}, "Stop Kill Streak Bonus")
- else if {_attacker} is not set:
- if name of attacker is set:
- set death message to "&c%display name of victim%&b[&6%{kitpvp.killstreak.%victim%}%&b] &eは &c%name of attacker% &eに殺害された"
- else if name of attacker is not set:
- set death message to "&c%display name of victim%&b[&6%{kitpvp.killstreak.%victim%}%&b] &eは &c%attacker% &eに殺害された"
- else:
- set death message to "&c%display name of victim%&b[&6%{kitpvp.killstreak.%victim%}%&b] &eは死んだ"
- else if attacker is not set:
- if {lastattacker.%victim%} is set:
- set {_uuid} to UUID of {lastattacker.%victim%}
- add 1 to {kitpvp.kills::%{_uuid}%}
- add 1 to {kitpvp.killstreak.%{lastattacker.%victim%}%}
- giveReward({lastattacker.%victim%}, 10, "Kill")
- loop {attackedplayers.%victim%::*}:
- loop-index parsed as player is set
- loop-index parsed as player is not {lastattacker.%victim%}
- giveReward(loop-index parsed as player, ceil(loop-value/1.5), "Assist")
- updateSideBar(loop-index parsed as player)
- add 1 to {kitpvp.assists::%UUID of loop-index parsed as player%}
- showKillEffect({lastattacker.%victim%}, victim)
- play sound "ENTITY_EXPERIENCE_ORB_PICKUP" to {lastattacker.%victim%} with volume 1 and pitch 5
- updateSideBar("ffa", {lastattacker.%victim%})
- add 4 to absorption hearts of {lastattacker.%victim%}
- set death message to "&c%display name of victim%&b[&6%{kitpvp.killstreak.%victim%}%&b] &eは &c%display name of {lastattacker.%victim%}%&b[&6%{kitpvp.killstreak.%{lastattacker.%victim%}%}%&b] &eに倒された"
- if {kitpvp.killstreak.%{lastattacker.%victim%}%} is 5 or 15:
- broadcast "&e%display name of {lastattacker.%victim%}%&aが&e%{kitpvp.killstreak.%{lastattacker.%victim%}%}%&a連続キルを達成しました!"
- giveReward({lastattacker.%victim%}, {kitpvp.killstreak.%{lastattacker.%victim%}%}, "Kill Streak Bonus")
- if last 1 characters of "%{kitpvp.killstreak.%{lastattacker.%victim%}%}%" is "0":
- broadcast "&e%display name of {lastattacker.%victim%}%&aが&e%{kitpvp.killstreak.%{lastattacker.%victim%}%}%&a連続キルを達成しました!"
- giveReward({lastattacker.%victim%}, {kitpvp.killstreak.%{lastattacker.%victim%}%}, "Kill Streak Bonus")
- if {kitpvp.killstreak.%victim%} >= 3:
- broadcast "&e%display name of {lastattacker.%victim%}%&aが&e%display name of victim%&aの&e%{kitpvp.killstreak.%victim%}%&a連続キルを阻止しました!"
- giveReward({lastattacker.%victim%}, {kitpvp.killstreak.%victim%}, "Stop Kill Streak Bonus")
- else if {lastattacker.%victim%} is not set:
- set death message to "&c%display name of victim%&b[&6%{kitpvp.killstreak.%victim%}%&b] &eは死んだ"
- wait 19 tick
- force victim to respawn
- teleportSpawn(victim)
- on respawn:
- teleportSpawn(player)
- command /setkititems [<text>]:
- permission: kitpvp.admin
- permission message: &cYou do not have permission to use this command.
- trigger:
- if arg is not set:
- send "&cUsage: /setkititems <kit>"
- else if arg is set:
- if {kits::*} contain arg:
- loop 41 times:
- set {_slot} to loop-number - 1
- set {kititems.%arg%::%{_slot}%} to slot {_slot} of player's inventory
- send "&aキット%arg%のアイテムを設定しました"
- else:
- send "&cキット%arg%は存在しません"
- on projectile hit:
- projectile is an arrow
- tag "pickup" of nbt of projectile is 0 or 2
- kill projectile
- function getRanker(rankingtype: string, rank: integer) :: string:
- {_rankingtype} is "level" or "kills" or "deaths" or "kd" or "bestkillstreak"
- set {_high} to -1
- if {_rankingtype} is "kd":
- loop {kitpvp.kills::*}:
- if {kitpvp.deaths::%loop-index%} is 0:
- set {_kd::%loop-index%} to {kitpvp.kills::%loop-index%}
- else:
- set {_kd::%loop-index%} to {kitpvp.kills::%loop-index%}/{kitpvp.deaths::%loop-index%}
- loop {_rank} times:
- loop {_kd::*}:
- loop-value-2 > {_high}
- set {_returnvalue} to {mcid::%loop-index%}
- set {_high} to loop-value-2
- set {_highvalue} to loop-index
- set {_high} to -1
- delete {_kd::%{_highvalue}%}
- return {_returnvalue}
- else if {_rankingtype} is "level":
- loop {kitpvp.level::*}:
- set {_level::%loop-index%} to loop-value+{kitpvp.exp::%loop-index%}/(round(round(1.01^(5*loop-value)*100)/100)*100)
- loop {_rank} times:
- loop {_level::*}:
- loop-value-2 > {_high}
- set {_returnvalue} to {mcid::%loop-index%}
- set {_high} to loop-value-2
- set {_highvalue} to loop-index
- set {_high} to -1
- delete {_level::%{_highvalue}%}
- return {_returnvalue}
- else:
- loop {kitpvp.%{_rankingtype}%::*}:
- set {_%{_rankingtype}%::%loop-index%} to loop-value
- loop {_rank} times:
- loop {_%{_rankingtype}%::*}:
- loop-value-2 > {_high}
- set {_returnvalue} to {mcid::%loop-index%}
- set {_high} to loop-value-2
- set {_highvalue} to loop-index
- set {_high} to -1
- delete {_%{_rankingtype}%::%{_highvalue}%}
- return {_returnvalue}
- function getKD(uuid: string) :: number:
- if {kitpvp.deaths::%{_uuid}%} is 0:
- set {_kd} to {kitpvp.kills::%{_uuid}%}
- else:
- set {_kd} to {kitpvp.kills::%{_uuid}%}/{kitpvp.deaths::%{_uuid}%}
- return {_kd}
- function getUUIDFromMCID(mcid: string) :: string:
- loop {mcid::*}:
- loop-value is {_mcid}
- return loop-index
- stop loop
- every second:
- loop all armor stands:
- set {_tags::*} to getTagValues(loop-entity)
- if {_tags::*} contain "levelrankerhead1":
- set {_ranker} to getRanker("level", 1)
- name of loop-entity's helmet is not "%{_ranker}%"
- execute console command "execute %UUID of loop-entity% ~ ~ ~ replaceitem entity @s slot.armor.head skull 1 3 {display:{Name:""%{_ranker}%""},SkullOwner:%{_ranker}%}"
- if {_tags::*} contain "levelrankerhead2":
- set {_ranker} to getRanker("level", 2)
- name of loop-entity's helmet is not "%{_ranker}%"
- execute console command "execute %UUID of loop-entity% ~ ~ ~ replaceitem entity @s slot.armor.head skull 1 3 {display:{Name:""%{_ranker}%""},SkullOwner:%{_ranker}%}"
- if {_tags::*} contain "levelrankerhead3":
- set {_ranker} to getRanker("level", 3)
- name of loop-entity's helmet is not "%{_ranker}%"
- execute console command "execute %UUID of loop-entity% ~ ~ ~ replaceitem entity @s slot.armor.head skull 1 3 {display:{Name:""%{_ranker}%""},SkullOwner:%{_ranker}%}"
- if {_tags::*} contain "killsrankerhead1":
- set {_ranker} to getRanker("kills", 1)
- name of loop-entity's helmet is not "%{_ranker}%"
- execute console command "execute %UUID of loop-entity% ~ ~ ~ replaceitem entity @s slot.armor.head skull 1 3 {display:{Name:""%{_ranker}%""},SkullOwner:%{_ranker}%}"
- if {_tags::*} contain "killsrankerhead2":
- set {_ranker} to getRanker("kills", 2)
- name of loop-entity's helmet is not "%{_ranker}%"
- execute console command "execute %UUID of loop-entity% ~ ~ ~ replaceitem entity @s slot.armor.head skull 1 3 {display:{Name:""%{_ranker}%""},SkullOwner:%{_ranker}%}"
- if {_tags::*} contain "killsrankerhead3":
- set {_ranker} to getRanker("kills", 3)
- name of loop-entity's helmet is not "%{_ranker}%"
- execute console command "execute %UUID of loop-entity% ~ ~ ~ replaceitem entity @s slot.armor.head skull 1 3 {display:{Name:""%{_ranker}%""},SkullOwner:%{_ranker}%}"
- if {_tags::*} contain "kdrankerhead1":
- set {_ranker} to getRanker("kd", 1)
- name of loop-entity's helmet is not "%{_ranker}%"
- execute console command "execute %UUID of loop-entity% ~ ~ ~ replaceitem entity @s slot.armor.head skull 1 3 {display:{Name:""%{_ranker}%""},SkullOwner:%{_ranker}%}"
- if {_tags::*} contain "kdrankerhead2":
- set {_ranker} to getRanker("kd", 2)
- name of loop-entity's helmet is not "%{_ranker}%"
- execute console command "execute %UUID of loop-entity% ~ ~ ~ replaceitem entity @s slot.armor.head skull 1 3 {display:{Name:""%{_ranker}%""},SkullOwner:%{_ranker}%}"
- if {_tags::*} contain "kdrankerhead3":
- set {_ranker} to getRanker("kd", 3)
- name of loop-entity's helmet is not "%{_ranker}%"
- execute console command "execute %UUID of loop-entity% ~ ~ ~ replaceitem entity @s slot.armor.head skull 1 3 {display:{Name:""%{_ranker}%""},SkullOwner:%{_ranker}%}"
- if {_tags::*} contain "bestkillstreakrankerhead1":
- set {_ranker} to getRanker("bestkillstreak", 1)
- name of loop-entity's helmet is not "%{_ranker}%"
- execute console command "execute %UUID of loop-entity% ~ ~ ~ replaceitem entity @s slot.armor.head skull 1 3 {display:{Name:""%{_ranker}%""},SkullOwner:%{_ranker}%}"
- if {_tags::*} contain "bestkillstreakrankerhead2":
- set {_ranker} to getRanker("bestkillstreak", 2)
- name of loop-entity's helmet is not "%{_ranker}%"
- execute console command "execute %UUID of loop-entity% ~ ~ ~ replaceitem entity @s slot.armor.head skull 1 3 {display:{Name:""%{_ranker}%""},SkullOwner:%{_ranker}%}"
- if {_tags::*} contain "bestkillstreakrankerhead3":
- set {_ranker} to getRanker("bestkillstreak", 3)
- name of loop-entity's helmet is not "%{_ranker}%"
- execute console command "execute %UUID of loop-entity% ~ ~ ~ replaceitem entity @s slot.armor.head skull 1 3 {display:{Name:""%{_ranker}%""},SkullOwner:%{_ranker}%}"
- if {_tags::*} contain "levelrankername1":
- set {_ranker} to getRanker("level", 1)
- set {_uuid} to getUUIDFromMCID(getRanker("level", 1))
- add "{CustomName:""&6&l1. &7%{_ranker}% - &e%{kitpvp.level::%{_uuid}%}%"",CustomNameVisible:1b}" to nbt of loop-entity
- if {_tags::*} contain "levelrankername2":
- set {_ranker} to getRanker("level", 2)
- set {_uuid} to getUUIDFromMCID(getRanker("level", 2))
- add "{CustomName:""&f&l2. &7%{_ranker}% - &e%{kitpvp.level::%{_uuid}%}%"",CustomNameVisible:1b}" to nbt of loop-entity
- if {_tags::*} contain "levelrankername3":
- set {_ranker} to getRanker("level", 3)
- set {_uuid} to getUUIDFromMCID(getRanker("level", 3))
- add "{CustomName:""&c&l3. &7%{_ranker}% - &e%{kitpvp.level::%{_uuid}%}%"",CustomNameVisible:1b}" to nbt of loop-entity
- if {_tags::*} contain "killsrankername1":
- set {_ranker} to getRanker("kills", 1)
- set {_uuid} to getUUIDFromMCID(getRanker("kills", 1))
- add "{CustomName:""&6&l1. &7%{_ranker}% - &e%{kitpvp.kills::%{_uuid}%}%"",CustomNameVisible:1b}" to nbt of loop-entity
- if {_tags::*} contain "killsrankername2":
- set {_ranker} to getRanker("kills", 2)
- set {_uuid} to getUUIDFromMCID(getRanker("kills", 2))
- add "{CustomName:""&f&l2. &7%{_ranker}% - &e%{kitpvp.kills::%{_uuid}%}%"",CustomNameVisible:1b}" to nbt of loop-entity
- if {_tags::*} contain "killsrankername3":
- set {_ranker} to getRanker("kills", 3)
- set {_uuid} to getUUIDFromMCID(getRanker("kills", 3))
- add "{CustomName:""&c&l3. &7%{_ranker}% - &e%{kitpvp.kills::%{_uuid}%}%"",CustomNameVisible:1b}" to nbt of loop-entity
- if {_tags::*} contain "kdrankername1":
- set {_ranker} to getRanker("kd", 1)
- set {_uuid} to getUUIDFromMCID(getRanker("kd", 1))
- add "{CustomName:""&6&l1. &7%{_ranker}% - &e%getKD({_uuid})%"",CustomNameVisible:1b}" to nbt of loop-entity
- if {_tags::*} contain "kdrankername2":
- set {_ranker} to getRanker("kd", 2)
- set {_uuid} to getUUIDFromMCID(getRanker("kd", 2))
- add "{CustomName:""&f&l2. &7%{_ranker}% - &e%getKD({_uuid})%"",CustomNameVisible:1b}" to nbt of loop-entity
- if {_tags::*} contain "kdrankername3":
- set {_ranker} to getRanker("kd", 3)
- set {_uuid} to getUUIDFromMCID(getRanker("kd", 3))
- add "{CustomName:""&c&l3. &7%{_ranker}% - &e%getKD({_uuid})%"",CustomNameVisible:1b}" to nbt of loop-entity
- if {_tags::*} contain "bestkillstreakrankername1":
- set {_ranker} to getRanker("bestkillstreak", 1)
- set {_uuid} to getUUIDFromMCID(getRanker("bestkillstreak", 1))
- add "{CustomName:""&6&l1. &7%{_ranker}% - &e%{kitpvp.bestkillstreak::%{_uuid}%}%"",CustomNameVisible:1b}" to nbt of loop-entity
- if {_tags::*} contain "bestkillstreakrankername2":
- set {_ranker} to getRanker("bestkillstreak", 2)
- set {_uuid} to getUUIDFromMCID(getRanker("bestkillstreak", 2))
- add "{CustomName:""&f&l2. &7%{_ranker}% - &e%{kitpvp.bestkillstreak::%{_uuid}%}%"",CustomNameVisible:1b}" to nbt of loop-entity
- if {_tags::*} contain "bestkillstreakrankername3":
- set {_ranker} to getRanker("bestkillstreak", 3)
- set {_uuid} to getUUIDFromMCID(getRanker("bestkillstreak", 3))
- add "{CustomName:""&c&l3. &7%{_ranker}% - &e%{kitpvp.bestkillstreak::%{_uuid}%}%"",CustomNameVisible:1b}" to nbt of loop-entity
- delete {_ranker}
- delete {_uuid}
- on damage of player:
- if attacker is a player:
- event is not cancelled
- wait 1 tick
- displayHealth(attacker, victim)
- else if attacker is TNT:
- set {_attacker} to getOwnerTag("%tag ""Tags"" of nbt of attacker%")
- {_attacker} is set
- event is not cancelled
- wait 1 tick
- displayHealth({_attacker}, victim)
- on damage:
- damage was caused by entity explosion
- attacker is tnt
- set damage to damage*0.5
- on break:
- player's gamemode is not creative
- if {kitpvp.playingstate.%player%} is "playing_duel":
- if {kitpvp.duel.duelmode::%{kitpvp.duel.usingarena::%player%}%} is not "builduhc":
- cancel event
- else if {kitpvp.duel.duelmode::%{kitpvp.duel.usingarena::%player%}%} is "builduhc":
- id of event-block is not 8 or 9 or 10 or 11
- {kitpvp.duel.playerplacedblocks.%{kitpvp.duel.usingarena::%player%}%::*} do not contain location of event-block
- cancel event
- else:
- cancel event
- on place:
- player's gamemode is not creative
- if {kitpvp.playingstate.%player%} is "playing_duel":
- {kitpvp.duel.duelmode::%{kitpvp.duel.usingarena::%player%}%} is not "builduhc"
- cancel event
- else:
- event-block is not fire
- cancel event
- on rightclick with hoe:
- player's gamemode is not creative
- id of clicked block is 2 or 3
- cancel event
- on rightclick with fire charge:
- player's gamemode is not creative
- cancel event
- command /setkit <text>:
- permission: kitpvp.admin
- permission message: &cYou do not have permission to use this command.
- trigger:
- {kits::*} contain arg
- loop 41 times:
- set {_slot} to loop-number - 1
- set slot {_slot} of player's inventory to {kititems.%arg%::%{_slot}%}
- on fishing:
- fishing state is CAUGHT_ENTITY
- cancel event
- kill fishing hook
Advertisement
Add Comment
Please, Sign In to add comment