akon1248

KitPvP-1

Apr 4th, 2019
508
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 108.12 KB | None | 0 0
  1. on load:
  2. 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"
  3. set difficulty of all worlds to hard
  4. if {kitpvp.spawn} is not set:
  5. set {kitpvp.spawn} to location at 0, 64, 0 in world "world"
  6. on skript start:
  7. kill all projectiles
  8. on join:
  9. set join message to "&7%display name of player% &ahas joined the server"
  10. set max health of player to 20
  11. heal player
  12. set {mcid::%UUID of player%} to name of player
  13. teleportSpawn(player)
  14. if {kitpvp.kills::%UUID of player%} is set:
  15. {kitpvp.coins::%UUID of player%} is not set
  16. set {kitpvp.coins::%UUID of player%} to {kitpvp.kills::%UUID of player%}*100
  17. send "&6+ %{kitpvp.kills::%UUID of player%}*100% Coins (Beta Play)" to player
  18. if {kitpvp.kills::%UUID of player%} is not set:
  19. set {kitpvp.kills::%UUID of player%} to 0
  20. if {kitpvp.assists::%UUID of player%} is not set:
  21. set {kitpvp.assists::%UUID of player%} to 0
  22. if {kitpvp.deaths::%UUID of player%} is not set:
  23. set {kitpvp.deaths::%UUID of player%} to 0
  24. if {kitpvp.deaths::%UUID of player%} is not set:
  25. set {kitpvp.deaths::%UUID of player%} to 0
  26. if {kitpvp.bestkillstreak::%UUID of player%} is not set:
  27. set {kitpvp.bestkillstreak::%UUID of player%} to 0
  28. if {kitpvp.level::%UUID of player%} is not set:
  29. set {kitpvp.level::%UUID of player%} to 1
  30. if {kitpvp.exp::%UUID of player%} is not set:
  31. set {kitpvp.exp::%UUID of player%} to 0
  32. if {kitpvp.coins::%UUID of player%} is not set:
  33. set {kitpvp.coins::%UUID of player%} to 0
  34. if {kitpvp.kits.%UUID of player%::*} is not set:
  35. set {kitpvp.kits.%UUID of player%::*} to "normal", "knight" and "armourer"
  36. if {kitpvp.lastselectedkit.%UUID of player%} is not set:
  37. set {kitpvp.lastselectedkit.%UUID of player%} to "normal"
  38. updateSideBar("ffa", player)
  39. wait 1 tick
  40. loop all players:
  41. revealPlayer(player, loop-player)
  42. revealPlayer(loop-player, player)
  43. function revealPlayer(p1: player, p2: player):
  44. hide {_p1} from {_p2}
  45. wait 1 tick
  46. reveal {_p1} to {_p2}
  47. on xp spawn:
  48. cancel event
  49. function giveReward(p: player, num: integer, reason: string):
  50. set {_uuid} to UUID of {_p}
  51. add {_num} to {kitpvp.exp::%{_uuid}%}
  52. set {_coin} to round({_num}*10*(1+(({kitpvp.level::%{_uuid}%}-1)*0.05)))
  53. add {_coin} to {kitpvp.coins::%{_uuid}%}
  54. if {_reason} is not "":
  55. send "&a+%{_num}% EXP (%{_reason}%)" to {_p}
  56. send "&6+%{_coin}% Coins (%{_reason}%)" to {_p}
  57. while {kitpvp.exp::%{_uuid}%} >= round(round(1.01^(5*{kitpvp.level::%{_uuid}%})*100)/100)*100:
  58. remove round(round(1.01^(5*{kitpvp.level::%{_uuid}%})*100)/100)*100 from {kitpvp.exp::%{_uuid}%}
  59. add 1 to {kitpvp.level::%{_uuid}%}
  60. play sound "ENTITY_PLAYER_LEVELUP" to {_p} with volume 1 and pitch 5
  61. send "&b-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-%nl%%nl%" to {_p}
  62. send " &dL&eE&dV&eE&dL&e &dU&eP&d!&e!&d!%nl%" to {_p}
  63. if {kitpvp.level::%{_uuid}%} is 10:
  64. send " &6&k||&a You are now &fIron Prestige&a! &6&k||" to {_p}
  65. else if {kitpvp.level::%{_uuid}%} is 25:
  66. send " &6&k||&a You are now &6Gold Prestige&a! &6&k||" to {_p}
  67. else if {kitpvp.level::%{_uuid}%} is 45:
  68. send " &6&k||&a You are now &bDiamond Prestige&a! &6&k||" to {_p}
  69. else if {kitpvp.level::%{_uuid}%} is 70:
  70. send " &6&k||&a You are now &aEmerald Prestige&a! &6&k||" to {_p}
  71. else if {kitpvp.level::%{_uuid}%} is 100:
  72. send " &6&k||&a You are now &5Obsidian Prestige&a! &6&k||" to {_p}
  73. else:
  74. send " &6&k||&a You are now LEVEL %{kitpvp.level::%{_uuid}%}%! &6&k||" to {_p}
  75. send "%nl%%nl%&b-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-" to {_p}
  76. set level of {_p} to {kitpvp.level::%{_uuid}%}
  77. set level progress of {_p} to {kitpvp.exp::%{_uuid}%}/(round(round(1.01^(5*{kitpvp.level::%{_uuid}%})*100)/100)*100)
  78. function getLevelString(l: number, chatmode: boolean) :: string:
  79. "%{_l}%" parsed as integer is set
  80. if {_l} is between 1 and 9:
  81. if {_chatmode} is true:
  82. return "&7[%{_l}%✫]&r"
  83. else if {_chatmode} is false:
  84. return "&7%{_l}%✫&r"
  85. else if {_l} is between 10 and 24:
  86. if {_chatmode} is true:
  87. return "&f[%{_l}%✫]&r"
  88. else if {_chatmode} is false:
  89. return "&f%{_l}%✫&r"
  90. else if {_l} is between 25 and 44:
  91. if {_chatmode} is true:
  92. return "&6[%{_l}%✫]&r"
  93. else if {_chatmode} is false:
  94. return "&6%{_l}%✫&r"
  95. else if {_l} is between 45 and 69:
  96. if {_chatmode} is true:
  97. return "&b[%{_l}%✫]&r"
  98. else if {_chatmode} is false:
  99. return "&b%{_l}%✫&r"
  100. else if {_l} is between 70 and 99:
  101. if {_chatmode} is true:
  102. return "&a[%{_l}%✫]&r"
  103. else if {_chatmode} is false:
  104. return "&a%{_l}%✫&r"
  105. else if {_l} >= 100:
  106. if {_chatmode} is true:
  107. return "&5[%{_l}%✫]&r"
  108. else if {_chatmode} is false:
  109. return "&5%{_l}%✫&r"
  110. on chat:
  111. {kitpvp.playingstate.%player%} is not "playing_teambattle"
  112. set chat format to "%getLevelString({kitpvp.level::%UUID of player%}, true)% &7%display name of player%&f: [message]"
  113. every tick:
  114. loop {invulnerabletime::*}:
  115. loop-value >= 1
  116. remove 1 from {invulnerabletime::%loop-index%}
  117. {invulnerabletime::%loop-index%} is 0
  118. delete {invulnerabletime::%loop-index%}
  119. on damage of player:
  120. attacker is a player
  121. {invulnerabletime::%UUID of victim%} >= 1
  122. cancel event
  123. on damage:
  124. victim is attacker
  125. cancel event
  126. on craft:
  127. player's gamemode is survival or adventure
  128. cancel event
  129. function displayHealth(p: player, e: living entity):
  130. set {_health} to tag "Health" of nbt of {_e}
  131. set {_health} to ceil({_health})
  132. set {_healthtext} to ""
  133. while {_health} >= 2:
  134. set {_healthtext} to "%{_healthtext}%&4❤"
  135. remove 2 from {_health}
  136. if {_health} is 1:
  137. set {_healthtext} to "%{_healthtext}%&c❤"
  138. set {_health} to tag "Health" of nbt of {_e}
  139. set {_currentdamage} to max health of {_e}-ceil(round({_health})/2)
  140. if {_currentdamage} > 0:
  141. loop {_currentdamage} times:
  142. set {_healthtext} to "%{_healthtext}%&7❤"
  143. set {_absorption} to tag "AbsorptionAmount" of nbt of {_e}
  144. set {_absorption} to ceil({_absorption})
  145. while {_absorption} >= 2:
  146. set {_healthtext} to "%{_healthtext}%&6❤"
  147. remove 2 from {_absorption}
  148. if {_absorption} is 1:
  149. set {_healthtext} to "%{_healthtext}%&e❤"
  150. set {_absorption} to tag "AbsorptionAmount" of nbt of {_e}
  151. if "%all active potion effects of {_e}%" contain "POISON":
  152. replace "&4" in {_healthtext} with "&2"
  153. replace "&c" in {_healthtext} with "&a"
  154. if "%all active potion effects of {_e}%" contain "WITHER":
  155. replace "&4" in {_healthtext} with "&0"
  156. replace "&c" in {_healthtext} with "&8"
  157. set {_name} to check [{_e} is a player] ? display name of {_e} : "%{_e}%"
  158. send action bar from "&7%{_name}% %{_healthtext}% &c%{_health}+{_absorption}%" to {_p}
  159. function removePrefix(str1: string, str2: string) :: string:
  160. first length of {_str2} characters of {_str1} is {_str2}
  161. return last length of {_str1} - length of {_str2} characters of {_str1}
  162. function removeSuffix(str1: string, str2: string) :: string:
  163. last length of {_str2} characters of {_str1} is {_str2}
  164. return first length of {_str1} - length of {_str2} characters of {_str1}
  165. function removeColorCode(str: string) :: string:
  166. set {_splits::*} to split {_str} by "§"
  167. loop {_splits::*}:
  168. loop-index parsed as integer > 1
  169. set {_splits::%loop-index%} to last length of loop-value - 1 characters of loop-value
  170. return join {_splits::*}
  171. on damage of player:
  172. wait 1 tick
  173. set damage delay of victim to 20 tick
  174. function teleportSpawn(p: player):
  175. if offhand tool of {_p} is shield:
  176. set offhand tool of {_p} to air
  177. set absorption hearts of {_p} to 0
  178. milk {_p}
  179. clear {_p}'s inventory
  180. set selected hotbar slot of {_p} to 0
  181. set {_uuid} to UUID of {_p}
  182. set level of {_p} to {kitpvp.level::%{_uuid}%}
  183. set level progress of {_p} to {kitpvp.exp::%{_uuid}%}/(round(round(1.01^(5*{kitpvp.level::%{_uuid}%})*100)/100)*100)
  184. set {kitpvp.fightingstate.%{_p}%} to "NOT FIGHTING"
  185. set {kitpvp.playingstate.%{_p}%} to "not_playing"
  186. set {kitpvp.killstreak.%{_p}%} to 0
  187. delete {kitpvp.refillcooldown.%{_p}%}
  188. delete {fightingstatetime.%{_p}%}
  189. delete {kitpvp.spawntimer.%{_p}%}
  190. delete {lastattacker.%{_p}%}
  191. delete {killjudgetime.%{_p}%}
  192. delete {kitpvp.timers.%{_p}%::*}
  193. delete {attackedplayers.%{_p}%::*}
  194. delete {assistjudgetime.%{_p}%::*}
  195. delete {enderpearlcooldown.%{_p}%}
  196. add "{Attributes:[{Name:""generic.knockbackResistance"",Base:0.0d},{Name:""generic.movementSpeed"",Base:0.1d}]}" to nbt of {_p}
  197. set {_p}'s walk speed to 0.2
  198. updateSideBar("ffa", {_p})
  199. teleport {_p} to {kitpvp.spawn}
  200. set damage delay of {_p} to 1 second
  201. wait 1 tick
  202. set slot 0 of {_p}'s inventory to chest named "&aKit Select" with lore "&d&oUndroppable"
  203. set slot 1 of {_p}'s inventory to iron sword with nbt "{display:{Name:""&aKit Shop"",Lore:[""&d&oUndroppable""]},HideFlags:6,Unbreakable:1b}"
  204. set slot 2 of {_p}'s inventory to diamond sword with nbt "{display:{Name:""&aDuels"",Lore:[""&d&oUndroppable""]},HideFlags:6,Unbreakable:1b}"
  205. loop all entities:
  206. getOwnerTag("%tag ""Tags"" of nbt of loop-entity%") is {_p}
  207. kill loop-entity
  208. add "{Attributes:[{Name:""generic.maxHealth"",Base:40.0d}]}" to nbt of {_p}
  209. if {_p} is alive:
  210. heal {_p}
  211. on quit:
  212. loop all entities:
  213. getOwnerTag("%tag ""Tags"" of nbt of loop-entity%") is player
  214. kill loop-entity
  215. function updateSideBar(mode: string, p: player):
  216. {_mode} is "ffa" or "duel" or "teambattle"
  217. set {_uuid} to UUID of {_p}
  218. if {_mode} is "ffa":
  219. set {kitpvp.sidebar.%{_p}%} to "ffa"
  220. wipe {_p} sidebar
  221. set name of sidebar of {_p} to "&a-=-=-=-&b&lKitPvP&a-=-=-=-"
  222. if {kitpvp.deaths::%{_uuid}%} is 0:
  223. set {_kd} to {kitpvp.kills::%{_uuid}%}
  224. else:
  225. set {_kd} to {kitpvp.kills::%{_uuid}%}/{kitpvp.deaths::%{_uuid}%}
  226. set score "&f" in sidebar of {_p} to 15
  227. set score "&aLevel: &e%getLevelString({kitpvp.level::%{_uuid}%}, false)%" in sidebar of {_p} to 14
  228. 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
  229. set score "&c" in sidebar of {_p} to 12
  230. set score "&3Kills: &e%{kitpvp.kills::%{_uuid}%}%" in sidebar of {_p} to 11
  231. set score "&3Deaths: &e%{kitpvp.deaths::%{_uuid}%}%" in sidebar of {_p} to 10
  232. set score "&3Assists: &e%{kitpvp.assists::%{_uuid}%}%" in sidebar of {_p} to 9
  233. set score "&3K/D Rate: &e%{_kd}%" in sidebar of {_p} to 8
  234. set score "&3Best Kill Streak: &e%{kitpvp.bestkillstreak::%{_uuid}%}%" in sidebar of {_p} to 7
  235. set score "&6" in sidebar of {_p} to 6
  236. set score "&6Coins: &e%{kitpvp.coins::%{_uuid}%}%" in sidebar of {_p} to 5
  237. set score "&4" in sidebar of {_p} to 4
  238. set score "&cKill Streak: &e%{kitpvp.killstreak.%{_p}%}%" in sidebar of {_p} to 3
  239. set score "&cFighting State: &e%{kitpvp.fightingstate.%{_p}%}%" in sidebar of {_p} to 2
  240. set score "&1 " in sidebar of {_p} to 1
  241. if {_mode} is "duel":
  242. set {kitpvp.sidebar.%{_p}%} to "duel"
  243. wipe {_p} sidebar
  244. set name of sidebar of {_p} to "&a-=-=-=-&b&lDuel&a-=-=-=-"
  245. set score "&9" in sidebar of {_p} to 9
  246. set score "&7Match Time:" in sidebar of {_p} to 8
  247. set score " &6%getTimerFromTicks({kitpvp.duel.matchtime::%{kitpvp.duel.usingarena::%{_p}%}%})%" in sidebar of {_p} to 7
  248. set score "&6" in sidebar of {_p} to 5
  249. set score "&7You:" in sidebar of {_p} to 5
  250. set score " &6%{_p}%" in sidebar of {_p} to 4
  251. set score "&7Opponent:" in sidebar of {_p} to 3
  252. set score " &6%{kitpvp.duel.opponent::%{_p}%}%" in sidebar of {_p} to 2
  253. set score "&1" in sidebar of {_p} to 1
  254. function getOwnerTag(tagnbt: string) :: player:
  255. replace "[""" and """]" in {_tagnbt} with ""
  256. set {_tags::*} to split {_tagnbt} by ""","""
  257. loop {_tags::*}:
  258. first 6 characters of loop-value is "owner:"
  259. set {_ownernamelength} to length of loop-value-6
  260. set {_owner} to last {_ownernamelength} characters of loop-value parsed as player
  261. {_owner} is set
  262. return {_owner}
  263. stop loop
  264. on packet event play_server_world_particles:
  265. "Particle" penum 0 of event-packet is "DAMAGE_INDICATOR" or "SWEEP_ATTACK"
  266. cancel event
  267. on packet event play_server_named_sound_effect:
  268. 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:
  269. cancel event
  270. else if "SoundEffects" pinfo 0 of event-packet is ENTITY_PLAYER_HURT or ENTITY_PLAYER_HURT_DROWN or ENTITY_PLAYER_HURT_ON_FIRE:
  271. {kitpvp.playingstate.%player%} is "playing_ffa"
  272. set "SoundEffects" pinfo 0 of event-packet to ENTITY_BLAZE_HURT
  273. on damage:
  274. damage was caused by sweep attack
  275. cancel event
  276. function displayKitInfo(p: player, kit: string):
  277. {kits::*} contain removeColorCode({_kit})
  278. open chest with 6 row named "&aKitの詳細: %{_kit}%" to {_p}
  279. wait 1 tick
  280. loop 54 times:
  281. set {_slot} to loop-number - 1
  282. set slot {_slot} of {_p}'s current inventory to dark gray glass pane named "&r"
  283. if removeColorCode({_kit}) is "normal":
  284. set slot 10 of {_p}'s current inventory to iron sword with nbt "{display:{Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
  285. set slot 11 of {_p}'s current inventory to fishing rod with nbt "{display:{Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
  286. set slot 12 of {_p}'s current inventory to bow with nbt "{display:{Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
  287. set slot 13 of {_p}'s current inventory to arrow
  288. set slot 14 of {_p}'s current inventory to redstone named "&6Booster" with lore "&d&oUndroppable"
  289. set slot 23 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e右クリックで使用" and "&e移動速度上昇Ⅱ、再生能力、耐性を15秒間付与する"
  290. set slot 28 of {_p}'s current inventory to chainmail helmet with nbt "{display:{Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
  291. set slot 29 of {_p}'s current inventory to iron chestplate with nbt "{display:{Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
  292. set slot 30 of {_p}'s current inventory to iron leggings with nbt "{display:{Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
  293. set slot 31 of {_p}'s current inventory to iron boots with nbt "{display:{Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
  294. else if removeColorCode({_kit}) is "knight":
  295. 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}"
  296. set slot 11 of {_p}'s current inventory to glowstone dust with nbt "{display:{Name:""&cAttack Booster"",Lore:[""&d&oUndroppable""]}}"
  297. set slot 20 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e右クリックで使用" and "&e攻撃力上を15秒間付与する"
  298. set slot 28 of {_p}'s current inventory to gold helmet with nbt "{display:{Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
  299. set slot 29 of {_p}'s current inventory to gold chestplate with nbt "{display:{Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
  300. set slot 30 of {_p}'s current inventory to chainmail leggings with nbt "{display:{Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
  301. set slot 31 of {_p}'s current inventory to chainmail boots with nbt "{display:{Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
  302. else if removeColorCode({_kit}) is "armourer":
  303. set slot 10 of {_p}'s current inventory to stone sword with nbt "{display:{Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
  304. set slot 11 of {_p}'s current inventory to iron ingot with nbt "{display:{Name:""&9Defence Booster"",Lore:[""&d&oUndroppable""]}}"
  305. set slot 20 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e右クリック使用" and "&e移動速度低下Ⅱ、耐性Ⅳを10秒間付与する"
  306. set slot 28 of {_p}'s current inventory to iron helmet with nbt "{display:{Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
  307. 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""}]}"
  308. set slot 30 of {_p}'s current inventory to iron leggings with nbt "{display:{Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
  309. set slot 31 of {_p}'s current inventory to diamond boots with nbt "{display:{Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
  310. else if removeColorCode({_kit}) is "archer":
  311. set slot 10 of {_p}'s current inventory to wooden sword with nbt "{display:{Lore:[""&d&oUndroppable""]},ench:[{id:19s,lvl:1s}],Unbreakable:1b}"
  312. 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}"
  313. 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}"
  314. set slot 13 of {_p}'s current inventory to arrow with lore "&d&oUndroppable"
  315. 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本発射する"
  316. set slot 28 of {_p}'s current inventory to leather helmet with nbt "{display:{Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
  317. set slot 29 of {_p}'s current inventory to chainmail chestplate with nbt "{display:{Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
  318. set slot 30 of {_p}'s current inventory to leather leggings with nbt "{display:{Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
  319. set slot 31 of {_p}'s current inventory to leather boots with nbt "{display:{Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
  320. else if removeColorCode({_kit}) is "witch":
  321. 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}"
  322. set slot 11 of {_p}'s current inventory to chest named "&5Potion Box" with lore "&d&oUndroppable"
  323. set slot 19 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e攻撃時に一定の確率で移動速度低下、弱体化、盲目、毒のうちどれか1つを敵に付与する"
  324. set slot 20 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e右クリックで使用" and "&eランダムなポーションがいくつか入ったインベントリが開く"
  325. set slot 28 of {_p}'s current inventory to leather helmet with nbt "{display:{Lore:[""&d&oUndroppable""]},ench:[{id:0s,lvl:1s}],Unbreakable:1b}"
  326. set slot 29 of {_p}'s current inventory to leather chestplate with nbt "{display:{Lore:[""&d&oUndroppable""]},ench:[{id:0s,lvl:1s}],Unbreakable:1b}"
  327. set slot 30 of {_p}'s current inventory to leather leggings with nbt "{display:{Lore:[""&d&oUndroppable""]},ench:[{id:0s,lvl:1s}],Unbreakable:1b}"
  328. set slot 31 of {_p}'s current inventory to leather boots with nbt "{display:{Lore:[""&d&oUndroppable""]},ench:[{id:0s,lvl:1s}],Unbreakable:1b}"
  329. else if removeColorCode({_kit}) is "blaze":
  330. 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}"
  331. set slot 11 of {_p}'s current inventory to flint and steel with nbt "{display:{Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
  332. 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}"
  333. 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}"
  334. set slot 21 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e右クリックで使用", "&eファイアボールを3つ発射できる" and "&e残りのファイアボールの数によって威力が変わる"
  335. set slot 28 of {_p}'s current inventory to leather helmet with nbt "{display:{Lore:[""&d&oUndroppable""],color:16729600},Unbreakable:1b}"
  336. set slot 29 of {_p}'s current inventory to gold chestplate with nbt "{display:{Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
  337. set slot 30 of {_p}'s current inventory to chainmail leggings with nbt "{display:{Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
  338. set slot 31 of {_p}'s current inventory to leather boots with nbt "{display:{Lore:[""&d&oUndroppable""],color:16729600},Unbreakable:1b}"
  339. else if removeColorCode({_kit}) is "enderman":
  340. 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}"
  341. 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}"
  342. 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}"
  343. set slot 19 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e攻撃時に一定の確率で盲目を敵に付与する"
  344. set slot 21 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e右クリックで使用" and "&eレーザーを発射し、当たった敵に移動速度低下Ⅲ、弱体化Ⅱを付与する"
  345. 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}"
  346. 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}"
  347. 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}"
  348. 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}"
  349. else if removeColorCode({_kit}) is "terrorist":
  350. set slot 10 of {_p}'s current inventory to iron sword with nbt "{display:{Name:""&4Knife"",Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
  351. 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=""}]}}}"
  352. set slot 12 of {_p}'s current inventory to splash potion with nbt "{display:{Name:""&4Fire Bomb"",Lore:[""&d&oUndroppable""]},CustomPotionColor:16777181,HideFlags:32}"
  353. 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=""}]}}}"
  354. set slot 20 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e右クリックで使用" and "&e投げてから10秒後に爆発する"
  355. set slot 21 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e右クリックで使用" and "&e着弾地点で爆発しの周囲に引火する"
  356. set slot 22 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e右クリックした場所に設置", "&e設置してから5秒後なら好きなタイミング爆発させられる" and "&e1分経つと自動で爆発する"
  357. set slot 28 of {_p}'s current inventory to leather helmet with nbt "{display:{Lore:[""&d&oUndroppable""],color:11141120},Unbreakable:1b}"
  358. set slot 29 of {_p}'s current inventory to leather chestplate with nbt "{display:{Lore:[""&d&oUndroppable""],color:11141120},Unbreakable:1b}"
  359. set slot 30 of {_p}'s current inventory to leather leggings with nbt "{display:{Lore:[""&d&oUndroppable""],color:11141120},Unbreakable:1b}"
  360. set slot 31 of {_p}'s current inventory to leather boots with nbt "{display:{Lore:[""&d&oUndroppable""],color:11141120},Unbreakable:1b}"
  361. else if removeColorCode({_kit}) is "shark":
  362. 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}"
  363. 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}"
  364. set slot 19 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e攻撃時に一定の確率でダメージが増加し自分に再生能力を付与する", "&eまた水に浸かっていると確立が上昇する", "" and "&e水に浸かっている際与えるダメージが常に増加する"
  365. set slot 20 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e右クリックで使用" and "&e周囲に一定時間水を張る"
  366. 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}"
  367. 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}"
  368. 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}"
  369. 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}"
  370. set slot 40 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&eダメージを受けた際一定の確率で受けた分の50%%のダメージを敵にも与える", "&e水に浸かっていないと受けるダメージが1.2倍になる" and "&e水に使っている間移動速度上昇Ⅱ、水中呼吸が付与される"
  371. else if removeColorCode({_kit}) is "thor":
  372. 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}"
  373. 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}"
  374. set slot 19 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e攻撃時に一定の確率でダメージが増加し敵を麻痺させる"
  375. set slot 20 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e右クリックで使用" and "&e電気を帯びた槍を投げ着弾地点で雷と爆発を起こし周囲にいる敵を麻痺させる"
  376. set slot 28 of {_p}'s current inventory to leather helmet with nbt "{display:{Lore:[""&d&oUndroppable""],color:16777010},Unbreakable:1b}"
  377. set slot 29 of {_p}'s current inventory to gold chestplate with nbt "{display:{Lore:[""&d&oUndroppable""]},ench:[{id:0s,lvl:1s}],Unbreakable:1b}"
  378. set slot 30 of {_p}'s current inventory to leather leggings with nbt "{display:{Lore:[""&d&oUndroppable""],color:16777010},Unbreakable:1b}"
  379. set slot 31 of {_p}'s current inventory to leather boots with nbt "{display:{Lore:[""&d&oUndroppable""],color:16777010},Unbreakable:1b}"
  380. else if removeColorCode({_kit}) is "acrobat":
  381. set slot 10 of {_p}'s current inventory to iron sword with nbt "{display:{Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
  382. 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}"
  383. set slot 12 of {_p}'s current inventory to feather with nbt "{display:{Name:""&bAcrobat"",Lore:[""&d&oUndroppable""]}}"
  384. set slot 20 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e右クリックで使用" and "&e前方にナイフを投げる"
  385. set slot 21 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e手に持ってスペース2連打で使用" and "&e前方に大きくジャンプする"
  386. set slot 28 of {_p}'s current inventory to leather helmet with nbt "{display:{Lore:[""&d&oUndroppable""],color:12320767},ench:[{id:5s,lvl:1s}]}"
  387. set slot 29 of {_p}'s current inventory to leather chestplate with nbt "{display:{Lore:[""&d&oUndroppable""],color:12320767},ench:[{id:3s,lvl:2s}]}"
  388. set slot 30 of {_p}'s current inventory to leather leggings with nbt "{display:{Lore:[""&d&oUndroppable""],color:12320767},ench:[{id:1s,lvl:4s}]}"
  389. 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}"
  390. set slot 40 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e落下ダメージを無効にする" and "&e常に移動速度上昇、跳躍力上昇Ⅴを付与する"
  391. else if removeColorCode({_kit}) is "spider":
  392. 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}"
  393. set slot 11 of {_p}'s current inventory to 16 cobwebs
  394. set slot 19 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e攻撃時に一定の確率で敵に毒Ⅱを付与し周囲に蜘蛛の巣を発生させる"
  395. set slot 20 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e右クリックで使用", "&e蜘蛛の巣を投げる", "&e自分が設置した蜘蛛の巣は一瞬で破壊できる" and "&e蜘蛛の巣は少しずつ復活し最大で16個所持できる"
  396. 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}"
  397. 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}"
  398. 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}"
  399. 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}"
  400. set slot 40 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e落下ダメージを無効にする" and "&e3秒間壁に張り付くことができる"
  401. else if removeColorCode({_kit}) is "vampire":
  402. 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}"
  403. 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}"
  404. set slot 19 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e攻撃時に一定の確率で吸血する"
  405. set slot 20 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e敵を攻撃することで発動" and "&e数秒間敵の体力を吸収し続け移動速度を低下させる"
  406. 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}"
  407. 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}"
  408. 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}"
  409. 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}"
  410. else if removeColorCode({_kit}) is "scout":
  411. set slot 10 of {_p}'s current inventory to iron sword with nbt "{display:{Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
  412. set slot 11 of {_p}'s current inventory to fishing rod with nbt "{display:{Name:""&6Grapple"",Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
  413. 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}"
  414. set slot 20 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e右クリックで使用", "&eフックの刺さった方向に移動する" and "&e手に持っている間落下ダメージを無効にする"
  415. set slot 28 of {_p}'s current inventory to leather helmet with nbt "{display:{Lore:[""&d&oUndroppable""],color:43520},Unbreakable:1b}"
  416. set slot 29 of {_p}'s current inventory to iron chestplate with nbt "{display:{Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
  417. set slot 30 of {_p}'s current inventory to chainmail leggings with nbt "{display:{Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
  418. set slot 31 of {_p}'s current inventory to leather boots with nbt "{display:{Lore:[""&d&oUndroppable""],color:43520},Unbreakable:1b}"
  419. else if removeColorCode({_kit}) is "sniper":
  420. set slot 10 of {_p}'s current inventory to stick of Knockback 2 with lore "&d&oUndroppable"
  421. 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}"
  422. set slot 12 of {_p}'s current inventory to arrow with lore "&d&oUndroppable"
  423. set slot 20 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e発射した矢は落下せず直進し続ける", "&e敵を倒すたびにTierが最大で5まで上昇し矢の威力とスピードが上がっていく" and "&e敵との距離が遠いほど威力が高くなる"
  424. set slot 28 of {_p}'s current inventory to leather helmet with nbt "{display:{Lore:[""&d&oUndroppable""],color:43690},Unbreakable:1b}"
  425. set slot 29 of {_p}'s current inventory to leather chestplate with nbt "{display:{Lore:[""&d&oUndroppable""],color:43690},Unbreakable:1b}"
  426. set slot 30 of {_p}'s current inventory to leather leggings with nbt "{display:{Lore:[""&d&oUndroppable""],color:43690},Unbreakable:1b}"
  427. set slot 31 of {_p}'s current inventory to leather boots with nbt "{display:{Lore:[""&d&oUndroppable""],color:43690},Unbreakable:1b}"
  428. else if removeColorCode({_kit}) is "murderer":
  429. 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}"
  430. 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}"
  431. set slot 19 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e敵を倒すたびに剣のエンチャントのレベルが最大Ⅶまで増加する"
  432. set slot 20 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e右クリックで使用" and "&eゲージが出現し消えるまでの間に攻撃した分だけ", "&eゲージ消失後に攻撃力が一時的に上昇する"
  433. set slot 28 of {_p}'s current inventory to leather helmet with nbt "{display:{Lore:[""&d&oUndroppable""],color:6553600},Unbreakable:1b}"
  434. set slot 29 of {_p}'s current inventory to leather chestplate with nbt "{display:{Lore:[""&d&oUndroppable""],color:6553600},Unbreakable:1b}"
  435. set slot 30 of {_p}'s current inventory to leather leggings with nbt "{display:{Lore:[""&d&oUndroppable""],color:6553600},Unbreakable:1b}"
  436. set slot 31 of {_p}'s current inventory to leather boots with nbt "{display:{Lore:[""&d&oUndroppable""],color:6553600},Unbreakable:1b}"
  437. else if removeColorCode({_kit}) is "squid":
  438. 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}"
  439. 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}"
  440. set slot 19 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e攻撃時に一定の確率で盲目、移動速度低下Ⅱを付与する"
  441. set slot 20 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e右クリックで使用" and "&e周囲の敵に盲目、移動速度低下Ⅲを付与する"
  442. 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}}"
  443. 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}}"
  444. 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}}"
  445. 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}}"
  446. else if removeColorCode({_kit}) is "minotaur":
  447. 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}"
  448. set slot 11 of {_p}'s current inventory to gunpowder with nbt "{display:{Name:""&5Rush"",Lore:[""&d&oUndroppable""]}}"
  449. set slot 19 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e攻撃時に一定の確率でダメージが上昇し敵を上に大きく吹っ飛ばす"
  450. set slot 20 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e右クリックで使用" and "&e向いている方向に突進する"
  451. set slot 28 of {_p}'s current inventory to leather helmet with nbt "{display:{Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
  452. set slot 29 of {_p}'s current inventory to iron chestplate with nbt "{display:{Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
  453. set slot 30 of {_p}'s current inventory to leather leggings with nbt "{display:{Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
  454. set slot 31 of {_p}'s current inventory to leather boots with nbt "{display:{Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
  455. else if removeColorCode({_kit}) is "iceman":
  456. 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}"
  457. 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}"
  458. set slot 19 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e攻撃時に一定の確率で敵を凍えさせる"
  459. set slot 20 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e右クリックで使用" and "&e氷の吐息を吐いて当たった敵にダメージを与え凍えさせる"
  460. 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}}"
  461. 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}}"
  462. 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}}"
  463. 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}}"
  464. else if removeColorCode({_kit}) is "necromancer":
  465. set slot 10 of {_p}'s current inventory to stone sword with nbt "{display:{Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
  466. 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}"
  467. 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}"
  468. set slot 20 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e右クリックで使用" and "&eゾンビかスケルトンを1体召喚する"
  469. set slot 21 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e右クリックで使用" and "&e前方に牙を複数発生させる"
  470. 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}}"
  471. 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}}"
  472. 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}}"
  473. 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}}"
  474. else if removeColorCode({_kit}) is "fighter":
  475. 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}"
  476. set slot 11 of {_p}'s current inventory to popped chorus fruit named "&cUppercut" with lore "&d&oUndroppable"
  477. set slot 12 of {_p}'s current inventory to fire charge named "&cPunch Rush" with lore "&d&oUndroppable"
  478. set slot 20 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e敵を攻撃することで発動" and "&e敵を上方向に大きく吹っ飛ばしダメージを与える"
  479. set slot 21 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e右クリックで使用" and "&e前方に連続で攻撃する"
  480. set slot 28 of {_p}'s current inventory to leather helmet with nbt "{Unbreakable:1b,display:{Lore:[""&d&oUndroppable""],color:16721920}}"
  481. set slot 29 of {_p}'s current inventory to leather chestplate with nbt "{Unbreakable:1b,display:{Lore:[""&d&oUndroppable""],color:16721920}}"
  482. set slot 30 of {_p}'s current inventory to leather leggings with nbt "{Unbreakable:1b,display:{Lore:[""&d&oUndroppable""],color:16721920}}"
  483. set slot 31 of {_p}'s current inventory to leather boots with nbt "{Unbreakable:1b,display:{Lore:[""&d&oUndroppable""],color:16721920}}"
  484. else if removeColorCode({_kit}) is "golem":
  485. 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}"
  486. set slot 11 of {_p}'s current inventory to firework star with nbt "{display:{Name:""&bShock Wave"",Lore:[""&d&oUndroppable""]},HideFlags:32}"
  487. set slot 19 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e攻撃時に一定の確率でダメージが上昇し敵を上に吹き飛ばす"
  488. set slot 20 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e地面の上に立っているときに右クリックで使用" and "&e前方に衝撃波を発生させる"
  489. set slot 28 of {_p}'s current inventory to leather helmet with nbt "{Unbreakable:1b,display:{Lore:[""&d&oUndroppable""],color:13158600}}"
  490. set slot 29 of {_p}'s current inventory to iron chestplate with nbt "{display:{Lore:[""&d&oUndroppable""]},Unbreakable:1b}"
  491. set slot 30 of {_p}'s current inventory to leather leggings with nbt "{Unbreakable:1b,display:{Lore:[""&d&oUndroppable""],color:13158600}}"
  492. set slot 31 of {_p}'s current inventory to leather boots with nbt "{Unbreakable:1b,display:{Lore:[""&d&oUndroppable""],color:13158600}}"
  493. else if removeColorCode({_kit}) is "wither":
  494. 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}"
  495. 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}"
  496. set slot 19 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e攻撃時に一定の確率で敵にウィザーⅡを付与し体力を少し回復する"
  497. set slot 20 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e右クリックで使用", "&eウィザースカルを発射し着弾地点で爆発する" and "&e敵に直撃すると体力を回復する"
  498. 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}}"
  499. 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}}"
  500. 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}}"
  501. 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}}"
  502. else if removeColorCode({_kit}) is "ninja":
  503. 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}"
  504. set slot 11 of {_p}'s current inventory to prismarine crystal with nbt "{display:{Name:""&8Shuriken"",Lore:[""&d&oUndroppable""]}}"
  505. 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}"
  506. set slot 20 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e右クリックで投げる", "&e連続で投げることが可能" and "&e消費しても少しずつ復活し最大で16個所持できる"
  507. set slot 21 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e右クリックで使用", "&e周囲の敵に盲目、移動速度低下を付与し自分は一定時間透明になる" and "&e透明になっている間は他人から防具が見えない"
  508. 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}}"
  509. 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}}"
  510. set slot 30 of {_p}'s current inventory to chainmail leggings with nbt "{Unbreakable:1b,display:{Lore:[""&d&oUndroppable""]}}"
  511. 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""}}"
  512. set slot 40 of {_p}'s current inventory to book named "&aアイテム説明" with lore "&e常に移動速度上昇を付与する"
  513. on inventory click:
  514. first 10 characters of inventory name of player's current inventory is "&aKitの詳細: "
  515. inventory type of player's current inventory is "CHEST"
  516. "%player's current inventory%" is "inventory of <none>"
  517. click type is not middle mouse button
  518. cancel event
  519. on rightclick with chest:
  520. name of player's tool is "&aKit Select"
  521. cancel event
  522. open chest with 3 row named "&aKit Select" to player
  523. wait 1 tick
  524. set slot 0 of player's current inventory to iron sword with nbt "{display:{Name:""&7Normal"",Lore:[""&c未開放"",""&eShift+クリックで詳細を表示""]},HideFlags:2}"
  525. 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}"
  526. set slot 2 of player's current inventory to diamond chestplate with nbt "{display:{Name:""&8Armourer"",Lore:[""&c未開放"",""&eShift+クリックで詳細を表示""]},HideFlags:2}"
  527. set slot 3 of player's current inventory to bow named "&aArcher" with lore "&c未開放" and "&eShift+クリックで詳細を表示"
  528. 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}"
  529. set slot 5 of player's current inventory to blaze rod named "&cBlaze" with lore "&c未開放" and "&eShift+クリックで詳細を表示"
  530. set slot 6 of player's current inventory to ender pearl named "&5Enderman" with lore "&c未開放" and "&eShift+クリックで詳細を表示"
  531. set slot 7 of player's current inventory to tnt named "&4Terrorist" with lore "&c未開放" and "&eShift+クリックで詳細を表示"
  532. 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=""}]}}}"
  533. set slot 9 of player's current inventory to cobweb named "&4Spider" with lore "&c未開放" and "&eShift+クリックで詳細を表示"
  534. set slot 10 of player's current inventory to fishing rod named "&6Scout" with lore "&c未開放" and "&eShift+クリックで詳細を表示"
  535. set slot 11 of player's current inventory to feather named "&bAcrobat" with lore "&c未開放" and "&eShift+クリックで詳細を表示"
  536. 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=""}]}}}"
  537. 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==""}]}}}"
  538. set slot 14 of player's current inventory to ice named "&bIceman" with lore "&c未開放" and "&eShift+クリックで詳細を表示"
  539. 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""}]}}}"
  540. 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""}]}}}"
  541. 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""}]}}}"
  542. 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}"
  543. set slot 19 of player's current inventory to iron axe with nbt "{display:{Name:""&5Minotaur"",Lore:[""&c未開放"",""&eShift+クリックで詳細を表示""]},HideFlags:2}"
  544. 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""}]}}}"
  545. 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""}]}}}"
  546. 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}"
  547. 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}"
  548. loop 24 times:
  549. set {_slot} to loop-number - 1
  550. {kitpvp.kits.%UUID of player%::*} contain removeColorCode(name of slot {_slot} of player's current inventory)
  551. set line 1 of lore of slot {_slot} of player's current inventory to "&a開放済"
  552. {kitpvp.playingstate.%player%} is "waiting_duel" or "waiting_teambattle"
  553. removeColorCode(name of slot {_slot} of player's current inventory) is {kitpvp.lastselectedkit.%UUID of player%}
  554. 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
  555. set line 2 of lore of slot {_slot} of player's current inventory to "&a選択済"
  556. on rightclick with iron sword:
  557. name of player's tool is "&aKit Shop"
  558. cancel event
  559. open chest with 3 row named "&aKit Shop" to player
  560. wait 1 tick
  561. set slot 0 of player's current inventory to iron sword with nbt "{display:{Name:""&7Normal"",Lore:[""&6価格: &e0 Coins"",""&eShift+クリックで詳細を表示""]},HideFlags:2}"
  562. 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}"
  563. set slot 2 of player's current inventory to diamond chestplate with nbt "{display:{Name:""&8Armourer"",Lore:[""&6価格: &e0 Coins"",""&eShift+クリックで詳細を表示""]},HideFlags:2}"
  564. set slot 3 of player's current inventory to bow named "&aArcher" with lore "&6価格: &e500 Coins" and "&eShift+クリックで詳細を表示"
  565. 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}"
  566. set slot 5 of player's current inventory to blaze rod named "&cBlaze" with lore "&6価格: &e600 Coins" and "&eShift+クリックで詳細を表示"
  567. set slot 6 of player's current inventory to ender pearl named "&5Enderman" with lore "&6価格: &e700 Coins" and "&eShift+クリックで詳細を表示"
  568. set slot 7 of player's current inventory to tnt named "&4Terrorist" with lore "&6価格: &e700 Coins" and "&eShift+クリックで詳細を表示"
  569. 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=""}]}}}"
  570. set slot 9 of player's current inventory to cobweb named "&4Spider" with lore "&6価格: &e800 Coins" and "&eShift+クリックで詳細を表示"
  571. set slot 10 of player's current inventory to fishing rod named "&6Scout" with lore "&6価格: &e1000 Coins" and "&eShift+クリックで詳細を表示"
  572. set slot 11 of player's current inventory to feather named "&bAcrobat" with lore "&6価格: &e1200 Coins" and "&eShift+クリックで詳細を表示"
  573. 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=""}]}}}"
  574. 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==""}]}}}"
  575. set slot 14 of player's current inventory to ice named "&bIceman" with lore "&6価格: &e2500 Coins" and "&eShift+クリックで詳細を表示"
  576. 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""}]}}}"
  577. 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""}]}}}"
  578. 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""}]}}}"
  579. 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}"
  580. set slot 19 of player's current inventory to iron axe with nbt "{display:{Name:""&5Minotaur"",Lore:[""&6価格: &e5000 Coins"",""&eShift+クリックで詳細を表示""]},HideFlags:2}"
  581. 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""}]}}}"
  582. 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""}]}}}"
  583. 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}"
  584. 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}"
  585. loop 24 times:
  586. set {_slot} to loop-number - 1
  587. {kitpvp.kits.%UUID of player%::*} contain removeColorCode(name of slot {_slot} of player's current inventory)
  588. set line 1 of lore of slot {_slot} of player's current inventory to "&a開放済"
  589. on inventory click:
  590. inventory type of player's current inventory is "CHEST"
  591. inventory name of player's current inventory is "&aKit Select"
  592. "%player's current inventory%" is "inventory of <none>"
  593. cancel event
  594. inventory type of clicked inventory is "CHEST"
  595. inventory name of clicked inventory is "&aKit Select"
  596. "%clicked inventory%" is "inventory of <none>"
  597. {kits::*} contain removeColorCode(name of clicked item)
  598. if "%click type%" contain "mouse button with shift":
  599. displayKitInfo(player, name of clicked item)
  600. else:
  601. if line 1 of lore of clicked item is "&c未開放":
  602. play sound "ENTITY_ENDERMEN_TELEPORT" to player with volume 1 and pitch 0
  603. send "&cそのキットは使用できません!%nl%&cKit Shopからキットを購入してください"
  604. else if line 1 of lore of clicked item is "&a開放済":
  605. if {kitpvp.playingstate.%player%} is "not_playing":
  606. close player's inventory
  607. set {_loc} to random element out of {kitpvp.teleports::*}
  608. teleport player to {_loc}
  609. play sound "BLOCK_NOTE_PLING" to player with volume 1 and pitch 5
  610. send "&aキットを%name of clicked item%&aに設定しました"
  611. set {kitpvp.lastselectedkit.%UUID of player%} to removeColorCode(name of clicked item) in lower case
  612. set {invulnerabletime::%UUID of player%} to 100
  613. loop 41 times:
  614. set {_slot} to loop-number - 1
  615. set slot {_slot} of player's inventory to {kititems.%removeColorCode(name of clicked item)%::%{_slot}%}
  616. set {kitpvp.playingstate.%player%} to "playing_ffa"
  617. else if {kitpvp.playingstate.%player%} is "waiting_duel" or "waiting_teambattle":
  618. close player's inventory
  619. play sound "BLOCK_NOTE_PLING" to player with volume 1 and pitch 5
  620. send "&aキットを%name of clicked item%&aに設定しました"
  621. set {kitpvp.lastselectedkit.%UUID of player%} to removeColorCode(name of clicked item) in lower case
  622. on inventory click:
  623. inventory type of player's current inventory is "CHEST"
  624. inventory name of player's current inventory is "&aKit Shop"
  625. "%player's current inventory%" is "inventory of <none>"
  626. cancel event
  627. inventory type of clicked inventory is "CHEST"
  628. inventory name of clicked inventory is "&aKit Shop"
  629. "%clicked inventory%" is "inventory of <none>"
  630. if "%click type%" contain "mouse button with shift":
  631. displayKitInfo(player, name of clicked item)
  632. else:
  633. if line 1 of lore of clicked item is "&a開放済":
  634. send "&cそのキットは既に開放しています"
  635. play sound "ENTITY_ENDERMEN_TELEPORT" to player with volume 1 and pitch 0
  636. else:
  637. set {_price} to removeSuffix(removePrefix(line 1 of lore of clicked item, "&6価格: &e"), " Coins") parsed as number
  638. if {kitpvp.coins::%UUID of player%} >= {_price}:
  639. add removeColorCode(name of clicked item) to {kitpvp.kits.%UUID of player%::*}
  640. play sound "BLOCK_NOTE_PLING" to player with volume 1 and pitch 5
  641. send "&aキット%name of clicked item%&aを開放しました"
  642. remove {_price} from {kitpvp.coins::%UUID of player%}
  643. updateSideBar("ffa", player)
  644. close player's inventory
  645. else:
  646. play sound "ENTITY_ENDERMEN_TELEPORT" to player with volume 1 and pitch 0
  647. send "&cコインが足りません!"
  648. command /teleportpoint [<text>] [<text>]:
  649. permission: kitpvp.admin
  650. permission message: &cYou do not have permission to use this command.
  651. trigger:
  652. if arg-1 is not set:
  653. send "&cUsage: /teleportpoint <add|remove> <ID> OR /teleportpoint list"
  654. else if arg-1 is not "add" or "remove" or "list":
  655. send "&cUsage: /teleportpoint <add|remove> <ID> OR /teleportpoint list"
  656. else if arg-1 is "add" or "remove":
  657. if arg-2 is not set:
  658. send "&cUsage: /teleportpoint <add|remove> <ID> OR /teleportpoint list"
  659. else if arg-1 is "add":
  660. if arg-2 contain " ":
  661. send "&cIDに空白は使用できません!"
  662. else if {kitpvp.teleports::%arg-2%} is set:
  663. send "&cテレポート地点%arg-2 in lower case%は既に存在しています!"
  664. else:
  665. set {kitpvp.teleports::%arg-2%} to location of block at player
  666. set yaw of {kitpvp.teleports::%arg-2%} to 0
  667. set pitch of {kitpvp.teleports::%arg-2%} to 0
  668. send "&a新しいテレポート地点&e%arg-2 in lower case%&aを追加しました"
  669. else if arg-1 is "remove":
  670. if arg-2 contain " ":
  671. send "&cIDに空白は使用できません!"
  672. else if {kitpvp.teleports::%arg-2%} is not set:
  673. send "&cテレポート地点%arg-2 in lower case%は存在していません!"
  674. else:
  675. delete {kitpvp.teleports::%arg-2%}
  676. send "&aテレポート地点&e%arg-2 in lower case%&aを消去しました"
  677. else if arg-1 is "list":
  678. if {kitpvp.teleports::*} is not set:
  679. send "&cテレポート地点はひとつも設定されていません!"
  680. else if {kitpvp.teleports::*} is set:
  681. loop {kitpvp.teleports::*}:
  682. 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%"
  683. on damage of player:
  684. if {kitpvp.playingstate.%victim%} is "not_playing" or "waiting_duel" or "waiting_teambattle":
  685. cancel event
  686. else if {kitpvp.playingstate.%victim%} is not {kitpvp.playingstate.%attacker%}:
  687. attacker is a player
  688. attacker's gamemode is survival or adventure
  689. cancel event
  690. on rightclick with mushroom stew:
  691. player's gamemode is survival or adventure
  692. play sound "ENTITY_GENERIC_EAT" to player with volume 1 and pitch 5
  693. add 2.5 to player's health
  694. set player's tool to bowl
  695. on hunger meter change:
  696. set player's food to 10
  697. add "{foodSaturationLevel:2147483647f}" to nbt of player
  698. on sign change:
  699. line 1 of event-block is "[refill]"
  700. line 2 of event-block is ""
  701. line 3 of event-block is ""
  702. line 4 of event-block is ""
  703. set line 1 of event-block to "&7[&6Soup Refill&7]"
  704. on rightclick:
  705. event is not cancelled
  706. id of clicked block is 63 or 68
  707. if {kitpvp.refillcooldown.%player%} is not set:
  708. line 1 of clicked block is "&7[&6Soup Refill&7]"
  709. line 2 of clicked block is ""
  710. line 3 of clicked block is ""
  711. line 4 of clicked block is ""
  712. open chest with 6 row named "&6Soup Refill" to player
  713. loop 54 times:
  714. set {_slot} to loop-number - 1
  715. set slot {_slot} of player's current inventory to mushroom stew
  716. set {kitpvp.refillcooldown.%player%} to 300
  717. else if {kitpvp.refillcooldown.%player%} is set:
  718. send "&aCooldown: &c%ceil({kitpvp.refillcooldown.%player%}/20)% seconds" to player
  719. every tick:
  720. loop all players:
  721. {kitpvp.refillcooldown.%loop-player%} is set
  722. remove 1 from {kitpvp.refillcooldown.%loop-player%}
  723. {kitpvp.refillcooldown.%loop-player%} <= 0
  724. delete {kitpvp.refillcooldown.%loop-player%}
  725. on drop:
  726. player's gamemode is survival or adventure
  727. line 1 of lore of event-item is "&d&oUndroppable"
  728. cancel event
  729. on inventory click:
  730. "%click type%" contain "drop key"
  731. line 1 of lore of clicked item is "&d&oUndroppable"
  732. cancel event
  733. on inventory click:
  734. if "%click type%" contain "mouse button with shift":
  735. player's current inventory is not inventory of player
  736. "%player's current inventory%" is not "%player's inventory%"
  737. line 1 of lore of clicked item is "&d&oUndroppable"
  738. cancel event
  739. if click type is right mouse button or left mouse button:
  740. clicked inventory is not player's inventory
  741. line 1 of lore of clicked cursor is "&d&oUndroppable"
  742. cancel event
  743. if click type is number key:
  744. clicked inventory is not player's inventory
  745. line 1 of lore of slot click type number of player's inventory is "&d&oUndroppable"
  746. cancel event
  747. every 5 second:
  748. set {kitpvp.tabheader} to "&b-=-=-=-&6&lKitPvP&b-=-=-=-"
  749. wait 3 tick
  750. set {kitpvp.tabheader} to "&b-=-=-=-&e&lK&6&litPvP&b-=-=-=-"
  751. wait 3 tick
  752. set {kitpvp.tabheader} to "&b-=-=-=-&e&lKi&6&ltPvP&b-=-=-=-"
  753. wait 3 tick
  754. set {kitpvp.tabheader} to "&b-=-=-=-&e&lKit&6&lPvP&b-=-=-=-"
  755. wait 3 tick
  756. set {kitpvp.tabheader} to "&b-=-=-=-&6&lK&e&litP&6&lvP&b-=-=-=-"
  757. wait 3 tick
  758. set {kitpvp.tabheader} to "&b-=-=-=-&6&lKi&e&ltPv&6&lP&b-=-=-=-"
  759. wait 3 tick
  760. set {kitpvp.tabheader} to "&b-=-=-=-&6&lKit&e&lPvP&b-=-=-=-"
  761. wait 3 tick
  762. set {kitpvp.tabheader} to "&b-=-=-=-&6&lKitP&e&lvP&b-=-=-=-"
  763. wait 3 tick
  764. set {kitpvp.tabheader} to "&b-=-=-=-&6&lKitPv&e&lP&b-=-=-=-"
  765. wait 3 tick
  766. set {kitpvp.tabheader} to "&b-=-=-=-&6&lKitPvP&b-=-=-=-"
  767. every tick:
  768. loop all players:
  769. 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
  770. {kitpvp.playingstate.%loop-player%} is not "playing_teambattle"
  771. set playerlist name of loop-player to "%getLevelString({kitpvp.level::%UUID of loop-player%}, true)% &7%display name of loop-player%"
  772. command /setspawn:
  773. permission: kitpvp.admin
  774. permission message: &cYou do not have permission to use this command.
  775. trigger:
  776. set {kitpvp.spawn} to location of player
  777. send "&aスポーン地点を設定しました"
  778. command /spawn:
  779. trigger:
  780. if {kitpvp.playingstate.%player%} is not "not_playing" or "playing_ffa":
  781. send "&c現在このコマンドは使用できません"
  782. else if {kitpvp.fightingstate.%player%} is "FIGHTING":
  783. send "&c戦闘中にこのコマンドは使用できません"
  784. send "&cFighting Stateが&eNOT FIGHTING&cになったことを確かめてから使用してください"
  785. else if {kitpvp.fightingstate.%player%} is "NOT FIGHTING":
  786. send "&a15秒後にスポーン地点にテレポートします"
  787. send "&a動かず待機していてください"
  788. set {kitpvp.spawntimer.%player%} to 300
  789. every tick:
  790. loop all players:
  791. {kitpvp.spawntimer.%loop-player%} >= 1
  792. remove 1 from {kitpvp.spawntimer.%loop-player%}
  793. {kitpvp.spawntimer.%loop-player%} is 0
  794. teleportSpawn(loop-player)
  795. heal loop-player
  796. send "&aスポーン地点にテレポートしました" to loop-player
  797. on any movement:
  798. {kitpvp.spawntimer.%player%} >= 1
  799. set {_locstring} to "%location of player%"
  800. wait 1 tick
  801. "%location of player%" is not {_locstring}
  802. send "&a動いたためスポーン地点へのテレポートをキャンセルしました"
  803. delete {kitpvp.spawntimer.%player%}
  804. on damage:
  805. if victim is a player:
  806. set {_health} to health of victim
  807. wait 1 tick
  808. {_health} > health of victim
  809. {kitpvp.spawntimer.%victim%} >= 1
  810. send "&aダメージを受けたためスポーン地点へのテレポートをキャンセルしました" to victim
  811. delete {kitpvp.spawntimer.%victim%}
  812. if attacker is a player:
  813. set {_health} to health of victim
  814. wait 1 tick
  815. {_health} > health of victim
  816. {kitpvp.spawntimer.%attacker%} >= 1
  817. send "&a攻撃を行ったためスポーン地点へのテレポートをキャンセルしました" to attacker
  818. delete {kitpvp.spawntimer.%attacker%}
  819. every tick:
  820. loop all players:
  821. {fightingstatetime.%loop-player%} >= 1
  822. remove 1 from {fightingstatetime.%loop-player%}
  823. {fightingstatetime.%loop-player%} is 0
  824. delete {fightingstatetime.%loop-player%}
  825. set {kitpvp.fightingstate.%loop-player%} to "NOT FIGHTING"
  826. updateSideBar("ffa", loop-player)
  827. command /editstatus [<text>] [<player>] [<text>] [<integer>]:
  828. permission: kitpvp.admin
  829. permission message: &cYou do not have permission to use this command.
  830. aliases: /es
  831. trigger:
  832. if arg-1 is not "add" or "remove" or "set":
  833. send "&cUsage: /editstats <add|remove|set> <player> <level|exp|kills|deaths|assists|bestkillstreak|coins> <count>"
  834. stop
  835. if arg-1 is not set:
  836. send "&cUsage: /editstats <add|remove|set> <player> <level|exp|kills|deaths|assists|bestkillstreak|coins> <count>"
  837. stop
  838. if arg-3 is not "level" or "exp" or "kills" or "deaths" or "assists" or "bestkillstreak" or "coins":
  839. send "&cUsage: /editstats <add|remove|set> <player> <level|exp|kills|deaths|assists|bestkillstreak|coins> <count>"
  840. stop
  841. if arg-1 is "add":
  842. if arg-3 is "level":
  843. add arg-4 to {kitpvp.level::%UUID of arg-2%}
  844. send "&e%arg-2%&aのレベルを&e%arg-4%&a増やしました"
  845. {kitpvp.sidebar.%arg-2%} is "ffa"
  846. giveReward(arg-2, 0, "")
  847. updateSideBar("ffa", arg-2)
  848. if arg-3 is "exp":
  849. giveReward(arg-2, arg-4, "")
  850. send "&e%arg-2%&aの経験値を&e%arg-4%&a増やしました"
  851. {kitpvp.sidebar.%arg-2%} is "ffa"
  852. updateSideBar("ffa", arg-2)
  853. if arg-3 is "kills":
  854. add arg-4 to {kitpvp.kills::%UUID of arg-2%}
  855. send "&e%arg-2%&aのキル数を&e%arg-4%&a増やしました"
  856. {kitpvp.sidebar.%arg-2%} is "ffa"
  857. updateSideBar("ffa", arg-2)
  858. if arg-3 is "deaths":
  859. add arg-4 to {kitpvp.deaths::%UUID of arg-2%}
  860. send "&e%arg-2%&aのデス数を&e%arg-4%&a増やしました"
  861. {kitpvp.sidebar.%arg-2%} is "ffa"
  862. updateSideBar("ffa", arg-2)
  863. if arg-3 is "assists":
  864. add arg-4 to {kitpvp.assists::%UUID of arg-2%}
  865. send "&e%arg-2%&aのアシスト数を&e%arg-4%&a増やしました"
  866. {kitpvp.sidebar.%arg-2%} is "ffa"
  867. updateSideBar("ffa", arg-2)
  868. if arg-3 is "bestkillstreak":
  869. add arg-4 to {kitpvp.bestkillstreak::%UUID of arg-2%}
  870. send "&e%arg-2%&aの最高連続キル数を&e%arg-4%&a増やしました"
  871. {kitpvp.sidebar.%arg-2%} is "ffa"
  872. updateSideBar("ffa", arg-2)
  873. if arg-3 is "coins":
  874. add arg-4 to {kitpvp.coins::%UUID of arg-2%}
  875. send "&e%arg-2%&aのコインを&e%arg-4%&a増やしました"
  876. {kitpvp.sidebar.%arg-2%} is "ffa"
  877. updateSideBar("ffa", arg-2)
  878. if arg-1 is "remove":
  879. if arg-3 is "level":
  880. remove arg-4 from {kitpvp.level::%UUID of arg-2%}
  881. send "&e%arg-2%&aのレベルを&e%arg-4%&a減らしました"
  882. {kitpvp.sidebar.%arg-2%} is "ffa"
  883. giveReward(arg-2, 0, "")
  884. updateSideBar("ffa", arg-2)
  885. if arg-3 is "exp":
  886. giveReward(arg-2, arg-4*-1, "")
  887. send "&e%arg-2%&aの経験値を&e%arg-4%&a減らしました"
  888. {kitpvp.sidebar.%arg-2%} is "ffa"
  889. updateSideBar("ffa", arg-2)
  890. if arg-3 is "kills":
  891. remove arg-4 from {kitpvp.kills::%UUID of arg-2%}
  892. send "&e%arg-2%&aのキル数を&e%arg-4%&a減らしました"
  893. {kitpvp.sidebar.%arg-2%} is "ffa"
  894. updateSideBar("ffa", arg-2)
  895. if arg-3 is "deaths":
  896. remove arg-4 from {kitpvp.deaths::%UUID of arg-2%}
  897. send "&e%arg-2%&aのデス数を&e%arg-4%&a減らしました"
  898. {kitpvp.sidebar.%arg-2%} is "ffa"
  899. updateSideBar("ffa", arg-2)
  900. if arg-3 is "assists":
  901. remove arg-4 from {kitpvp.assists::%UUID of arg-2%}
  902. send "&e%arg-2%&aのアシスト数を&e%arg-4%&a減らしました"
  903. {kitpvp.sidebar.%arg-2%} is "ffa"
  904. updateSideBar("ffa", arg-2)
  905. if arg-3 is "bestkillstreak":
  906. remove arg-4 from {kitpvp.bestkillstreak::%UUID of arg-2%}
  907. send "&e%arg-2%&aの最高連続キル数を&e%arg-4%&a減らしました"
  908. {kitpvp.sidebar.%arg-2%} is "ffa"
  909. updateSideBar("ffa", arg-2)
  910. if arg-3 is "coins":
  911. remove arg-4 from {kitpvp.coins::%UUID of arg-2%}
  912. send "&e%arg-2%&aのコインを&e%arg-4%&a減らしました"
  913. {kitpvp.sidebar.%arg-2%} is "ffa"
  914. updateSideBar("ffa", arg-2)
  915. if arg-1 is "set":
  916. if arg-3 is "level":
  917. set {kitpvp.level::%UUID of arg-2%} to arg-4
  918. send "&e%arg-2%&aのレベルを&e%arg-4%&aに設定しました"
  919. {kitpvp.sidebar.%arg-2%} is "ffa"
  920. giveReward(arg-2, 0, "")
  921. updateSideBar("ffa", arg-2)
  922. if arg-3 is "exp":
  923. set {kitpvp.exp::%UUID of arg-2%} to arg-4
  924. send "&e%arg-2%&aの経験値を&e%arg-4%&aに設定しました"
  925. {kitpvp.sidebar.%arg-2%} is "ffa"
  926. giveReward(arg-2, 0, "")
  927. updateSideBar("ffa", arg-2)
  928. if arg-3 is "kills":
  929. set {kitpvp.kills::%UUID of arg-2%} to arg-4
  930. send "&e%arg-2%&aのキル数を&e%arg-4%&aに設定しました"
  931. {kitpvp.sidebar.%arg-2%} is "ffa"
  932. updateSideBar("ffa", arg-2)
  933. if arg-3 is "deaths":
  934. set {kitpvp.deaths::%UUID of arg-2%} to arg-4
  935. send "&e%arg-2%&aのデス数を&e%arg-4%&aに設定しました"
  936. {kitpvp.sidebar.%arg-2%} is "ffa"
  937. updateSideBar("ffa", arg-2)
  938. if arg-3 is "assists":
  939. set {kitpvp.assists::%UUID of arg-2%} to arg-4
  940. send "&e%arg-2%&aのアシスト数を&e%arg-4%&aに設定しました"
  941. {kitpvp.sidebar.%arg-2%} is "ffa"
  942. updateSideBar("ffa", arg-2)
  943. if arg-3 is "bestkillstreak":
  944. set {kitpvp.bestkillstreak::%UUID of arg-2%} to arg-4
  945. send "&e%arg-2%&aの最高連続キル数を&e%arg-4%&aに設定しました"
  946. {kitpvp.sidebar.%arg-2%} is "ffa"
  947. updateSideBar("ffa", arg-2)
  948. if arg-3 is "coins":
  949. set {kitpvp.coins::%UUID of arg-2%} to arg-4
  950. send "&e%arg-2%&aのコインを&e%arg-4%&aに設定しました"
  951. {kitpvp.sidebar.%arg-2%} is "ffa"
  952. updateSideBar("ffa", arg-2)
  953. every tick:
  954. loop all players:
  955. set {_health} to tag "Health" of nbt of loop-player-1
  956. add tag "AbsorptionAmount" of nbt of loop-player-1 to {_health}
  957. set {_health} to ceil({_health})
  958. loop all players:
  959. set tab score of loop-player-1 to 0 for loop-player-2
  960. set {_scoreboard} to scoreboard of loop-player-2
  961. set {_objective} to scoreboard objective "tabHold" from scoreboard {_scoreboard}
  962. set scoreboard score of scoreboard objective {_objective} score of "%loop-player-1%" to {kitpvp.kills::%UUID of loop-player-1%}
  963. if {kitpvp.playingstate.%loop-player-2%} is "not_playing" or "waiting_duel" or "waiting_teambattle":
  964. set score "&6✫" below loop-player-1 to {kitpvp.level::%UUID of loop-player-1%} for loop-player-2
  965. else if {kitpvp.playingstate.%loop-player-2%} is "playing_ffa" or "playing_duel" or "playing_teambattle":
  966. set score "&c❤" below loop-player-1 to {_health} for loop-player-2
  967. on damage of player:
  968. event is not cancelled
  969. {kitpvp.playingstate.%victim%} is "playing_ffa" or "playing_teambattle"
  970. if attacker is a player:
  971. if {kitpvp.playingstate.%victim%} is "playing_ffa":
  972. if {kitpvp.fightingstate.%victim%} is "NOT FIGHTING":
  973. set {kitpvp.fightingstate.%victim%} to "FIGHTING"
  974. set {fightingstatetime.%victim%} to 200
  975. updateSideBar("ffa", victim)
  976. else if {kitpvp.fightingstate.%victim%} is "FIGHTING":
  977. set {fightingstatetime.%victim%} to 200
  978. if {kitpvp.fightingstate.%attacker%} is "NOT FIGHTING":
  979. set {kitpvp.fightingstate.%attacker%} to "FIGHTING"
  980. set {fightingstatetime.%attacker%} to 200
  981. updateSideBar("ffa", attacker)
  982. else if {kitpvp.fightingstate.%attacker%} is "FIGHTING":
  983. set {fightingstatetime.%attacker%} to 200
  984. wait 1 tick
  985. health of victim > 0
  986. set {lastattacker.%victim%} to "%attacker%" parsed as player
  987. set {killjudgetime.%victim%} to 200
  988. set {attackedplayers.%victim%::%attacker%} to final damage
  989. set {assistjudgetime.%victim%::%attacker%} to 600
  990. else if attacker is TNT:
  991. set {_attacker} to getOwnerTag("%tag ""Tags"" of nbt of attacker%")
  992. {_attacker} is set
  993. if victim is {_attacker}:
  994. cancel event
  995. stop
  996. set {kitpvp.fightingstate.%victim%} to "FIGHTING"
  997. set {fightingstatetime.%victim%} to 200
  998. updateSideBar("ffa", victim)
  999. set {kitpvp.fightingstate.%{_attacker}%} to "FIGHTING"
  1000. set {fightingstatetime.%{_attacker}%} to 200
  1001. updateSideBar("ffa", {_attacker})
  1002. set {_health} to health of victim
  1003. wait 1 tick
  1004. {_health} > health of victim
  1005. if {kitpvp.spawntimer.%{_attacker}%} >= 1:
  1006. send "&a攻撃を行ったためスポーン地点へのテレポートをキャンセルしました" to {_attacker}
  1007. delete {kitpvp.spawntimer.%{_attacker}%}
  1008. if health of victim > 0:
  1009. set {lastattacker.%victim%} to {_attacker}
  1010. set {killjudgetime.%victim%} to 200
  1011. set {attackedplayers.%victim%::%{_attacker}%} to final damage
  1012. set {assistjudgetime.%victim%::%{_attacker}%} to 600
  1013. else if attacker is a living entity:
  1014. set {_attacker} to getOwnerTag("%tag ""Tags"" of nbt of attacker%")
  1015. {_attacker} is set
  1016. if victim is {_attacker}:
  1017. cancel event
  1018. stop
  1019. wait 1 tick
  1020. health of victim > 0
  1021. set {lastattacker.%victim%} to {_attacker}
  1022. set {killjudgetime.%victim%} to 200
  1023. set {attackedplayers.%victim%::%{_attacker}%} to final damage
  1024. set {assistjudgetime.%victim%::%{_attacker}%} to 600
  1025. on target:
  1026. set {_owner} to getOwnerTag("%tag ""Tags"" of nbt of event-entity%")
  1027. target of event-entity is {_owner}
  1028. cancel event
  1029. every tick:
  1030. loop all entities:
  1031. loop-entity is not a player
  1032. loop-entity is a living entity
  1033. loop-entity is not armor stand
  1034. set {_owner} to getOwnerTag("%tag ""Tags"" of nbt of loop-entity%")
  1035. {_owner} is set
  1036. distance between loop-entity and {_owner} > 6
  1037. target of loop-entity is not set
  1038. make loop-entity pathfind to {_owner} with speed 1.5
  1039. every tick:
  1040. loop all players:
  1041. if {killjudgetime.%loop-player%} >= 1:
  1042. remove 1 from {killjudgetime.%loop-player%}
  1043. {killjudgetime.%loop-player%} is 0
  1044. delete {lastattacker.%loop-player%}
  1045. delete {killjudgetime.%loop-player%}
  1046. loop {assistjudgetime.%loop-player%::*}:
  1047. {assistjudgetime.%loop-player%::%loop-index%} >= 1
  1048. remove 1 from {assistjudgetime.%loop-player%::%loop-index%}
  1049. {assistjudgetime.%loop-player%::%loop-index%} is 0
  1050. delete {assistjudgetime.%loop-player%::%loop-index%}
  1051. delete {attackedplayers.%loop-player%::%loop-index%}
  1052. on quit:
  1053. set quit message to "&7%display name of player% &ahas left the server"
  1054. {kitpvp.playingstate.%player%} is "playing_ffa"
  1055. {kitpvp.fightingstate.%player%} is "FIGHTING"
  1056. if {lastattacker.%player%} is set:
  1057. set {_uuid} to UUID of {lastattacker.%player%}
  1058. add 1 to {kitpvp.kills::%{_uuid}%}
  1059. add 1 to {kitpvp.killstreak.%{lastattacker.%player%}%}
  1060. giveReward({lastattacker.%player%}, 10, "Kill")
  1061. loop {attackedplayers.%player%::*}:
  1062. loop-index parsed as player is set
  1063. loop-index parsed as player is not {lastattacker.%player%}
  1064. giveReward(loop-index parsed as player, ceil(loop-value/1.5), "Assist")
  1065. updateSideBar(loop-index parsed as player)
  1066. add 1 to {kitpvp.assists::%UUID of loop-index parsed as player%}
  1067. showKillEffect({lastattacker.%player%}, player)
  1068. play sound "ENTITY_EXPERIENCE_ORB_PICKUP" to {lastattacker.%player%} with volume 1 and pitch 5
  1069. updateSideBar("ffa", {lastattacker.%player%})
  1070. add 4 to absorption hearts of {lastattacker.%player%}
  1071. 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に倒された"
  1072. if {kitpvp.killstreak.%{lastattacker.%player%}%} is 5 or 15:
  1073. broadcast "&e%display name of {lastattacker.%player%}%&aが&e%{kitpvp.killstreak.%{lastattacker.%player%}%}%&a連続キルを達成しました!"
  1074. giveReward({lastattacker.%player%}, {kitpvp.killstreak.%{lastattacker.%player%}%}, "Kill Streak Bonus")
  1075. if last 1 characters of "%{kitpvp.killstreak.%{lastattacker.%player%}%}%" is "0":
  1076. broadcast "&e%display name of {lastattacker.%player%}%&aが&e%{kitpvp.killstreak.%{lastattacker.%player%}%}%&a連続キルを達成しました!"
  1077. giveReward({lastattacker.%player%}, {kitpvp.killstreak.%{lastattacker.%player%}%}, "Kill Streak Bonus")
  1078. if {kitpvp.killstreak.%player%} >= 3:
  1079. broadcast "&e%display name of {lastattacker.%player%}%&aが&e%display name of player%&aの&e%{kitpvp.killstreak.%player%}%&a連続キルを阻止しました!"
  1080. giveReward({lastattacker.%player%}, {kitpvp.killstreak.%player%}, "Stop Kill Streak Bonus")
  1081. else if {lastattacker.%player%} is not set:
  1082. broadcast "&c%display name of player%&b[&6%{kitpvp.killstreak.%player%}%&b] &eは死んだ"
  1083. on death of player:
  1084. {kitpvp.playingstate.%victim%} is "playing_ffa"
  1085. if victim is attacker:
  1086. stop
  1087. add 1 to {kitpvp.deaths::%UUID of victim%}
  1088. loop all projectiles:
  1089. shooter of loop-entity is victim
  1090. kill loop-entity
  1091. updateSideBar("ffa", victim)
  1092. if attacker is set:
  1093. if attacker is a player:
  1094. showKillEffect(attacker, victim)
  1095. play sound "ENTITY_EXPERIENCE_ORB_PICKUP" to attacker with volume 1 and pitch 5
  1096. add 1 to {kitpvp.kills::%UUID of attacker%}
  1097. add 1 to {kitpvp.killstreak.%attacker%}
  1098. giveReward(attacker, 10, "Kill")
  1099. loop {attackedplayers.%victim%::*}:
  1100. loop-index parsed as player is set
  1101. loop-index parsed as player is not attacker
  1102. giveReward(loop-index parsed as player, ceil(loop-value/1.5), "Assist")
  1103. updateSideBar(loop-index parsed as player)
  1104. add 1 to {kitpvp.assists::%UUID of loop-index parsed as player%}
  1105. if {kitpvp.killstreak.%attacker%} > {kitpvp.bestkillstreak::%UUID of attacker%}:
  1106. set {kitpvp.bestkillstreak::%UUID of attacker%} to {kitpvp.killstreak.%attacker%}
  1107. updateSideBar("ffa", attacker)
  1108. add 4 to absorption hearts of attacker
  1109. if projectile is an arrow:
  1110. if name of attacker's tool is set:
  1111. 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で射抜かれた"
  1112. else:
  1113. 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に射抜かれた"
  1114. else:
  1115. if name of attacker's tool is set:
  1116. 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で倒された"
  1117. else:
  1118. 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に倒された"
  1119. if {kitpvp.killstreak.%attacker%} is 5 or 15:
  1120. broadcast "&e%display name of attacker%&aが&e%{kitpvp.killstreak.%attacker%}%&a連続キルを達成しました!"
  1121. giveReward(attacker, {kitpvp.killstreak.%attacker%}, "Kill Streak Bonus")
  1122. if last 1 characters of "%{kitpvp.killstreak.%attacker%}%" is "0":
  1123. broadcast "&e%display name of attacker%&aが&e%{kitpvp.killstreak.%attacker%}%&a連続キルを達成しました!"
  1124. giveReward(attacker, {kitpvp.killstreak.%attacker%}, "Kill Streak Bonus")
  1125. if {kitpvp.killstreak.%victim%} >= 3:
  1126. broadcast "&e%display name of attacker%&aが&e%display name of victim%&aの&e%{kitpvp.killstreak.%victim%}%&a連続キルを阻止しました!"
  1127. giveReward(attacker, {kitpvp.killstreak.%victim%}, "Stop Kill Streak Bonus")
  1128. else if attacker is not a player:
  1129. if attacker is TNT:
  1130. set {_attacker} to getOwnerTag("%tag ""Tags"" of nbt of attacker%")
  1131. if {_attacker} is set:
  1132. showKillEffect({_attacker}, victim)
  1133. play sound "ENTITY_EXPERIENCE_ORB_PICKUP" to {_attacker} with volume 1 and pitch 5
  1134. set {_uuid} to UUID of {_attacker}
  1135. add 1 to {kitpvp.kills::%{_uuid}%}
  1136. add 1 to {kitpvp.killstreak.%{_attacker}%}
  1137. giveReward({_attacker}, 10, "Kill")
  1138. loop {attackedplayers.%victim%::*}:
  1139. loop-index parsed as player is set
  1140. loop-index parsed as player is not {_attacker}
  1141. giveReward(loop-index parsed as player, ceil(loop-value/1.5), "Assist")
  1142. updateSideBar(loop-index parsed as player)
  1143. add 1 to {kitpvp.assists::%UUID of loop-index parsed as player%}
  1144. if {kitpvp.killstreak.%{_attacker}%} > {kitpvp.bestkillstreak::%{_uuid}%}:
  1145. set {kitpvp.bestkillstreak::%{_uuid}%} to {kitpvp.killstreak.%{_attacker}%}
  1146. updateSideBar("ffa", {_attacker})
  1147. add 4 to absorption hearts of {_attacker}
  1148. 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に爆破された"
  1149. if {kitpvp.killstreak.%{_attacker}%} is 5 or 15:
  1150. broadcast "&e%display name of {_attacker}%&aが&e%{kitpvp.killstreak.%{_attacker}%}%&a連続キルを達成しました!"
  1151. giveReward(attacker, {kitpvp.killstreak.%{_attacker}%}, "Kill Streak Bonus")
  1152. if last 1 characters of "%{kitpvp.killstreak.%{_attacker}%}%" is "0":
  1153. broadcast "&e%display name of {_attacker}%&aが&e%{kitpvp.killstreak.%{_attacker}%}%&a連続キルを達成しました!"
  1154. giveReward(attacker, {kitpvp.killstreak.%{_attacker}%}, "Kill Streak Bonus")
  1155. if {kitpvp.killstreak.%victim%} >= 3:
  1156. broadcast "&e%display name of {_attacker}%&aが&e%display name of victim%&aの&e%{kitpvp.killstreak.%victim%}%&a連続キルを阻止しました!"
  1157. giveReward(attacker, {kitpvp.killstreak.%victim%}, "Stop Kill Streak Bonus")
  1158. else if {_attacker} is not set:
  1159. set death message to "&c%display name of victim% &eは死んだ"
  1160. else if attacker is not TNT:
  1161. if attacker is a living entity:
  1162. set {_attacker} to getOwnerTag("%tag ""Tags"" of nbt of attacker%")
  1163. if {_attacker} is set:
  1164. showKillEffect({_attacker}, victim)
  1165. play sound "ENTITY_EXPERIENCE_ORB_PICKUP" to {_attacker} with volume 1 and pitch 5
  1166. set {_uuid} to UUID of {_attacker}
  1167. add 1 to {kitpvp.kills::%{_uuid}%}
  1168. add 1 to {kitpvp.killstreak.%{_attacker}%}
  1169. giveReward({_attacker}, 10, "Kill")
  1170. loop {attackedplayers.%victim%::*}:
  1171. loop-index parsed as player is set
  1172. loop-index parsed as player is not {_attacker}
  1173. giveReward(loop-index parsed as player, ceil(loop-value/1.5), "Assist")
  1174. updateSideBar(loop-index parsed as player)
  1175. add 1 to {kitpvp.assists::%UUID of loop-index parsed as player%}
  1176. if {kitpvp.killstreak.%{_attacker}%} > {kitpvp.bestkillstreak::%{_uuid}%}:
  1177. set {kitpvp.bestkillstreak::%{_uuid}%} to {kitpvp.killstreak.%{_attacker}%}
  1178. updateSideBar("ffa", {_attacker})
  1179. add 4 to absorption hearts of {_attacker}
  1180. if name of attacker is set:
  1181. 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に殺害された"
  1182. else if name of attacker is not set:
  1183. 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に殺害された"
  1184. if {kitpvp.killstreak.%{_attacker}%} is 5 or 15:
  1185. broadcast "&e%display name of {_attacker}%&aが&e%{kitpvp.killstreak.%{_attacker}%}%&a連続キルを達成しました!"
  1186. giveReward(attacker, {kitpvp.killstreak.%{_attacker}%}, "Kill Streak Bonus")
  1187. if last 1 characters of "%{kitpvp.killstreak.%{_attacker}%}%" is "0":
  1188. broadcast "&e%display name of {_attacker}%&aが&e%{kitpvp.killstreak.%{_attacker}%}%&a連続キルを達成しました!"
  1189. giveReward(attacker, {kitpvp.killstreak.%{_attacker}%}, "Kill Streak Bonus")
  1190. if {kitpvp.killstreak.%victim%} >= 3:
  1191. broadcast "&e%display name of {_attacker}%&aが&e%display name of victim%&aの&e%{kitpvp.killstreak.%victim%}%&a連続キルを阻止しました!"
  1192. giveReward(attacker, {kitpvp.killstreak.%victim%}, "Stop Kill Streak Bonus")
  1193. else if {_attacker} is not set:
  1194. if name of attacker is set:
  1195. set death message to "&c%display name of victim%&b[&6%{kitpvp.killstreak.%victim%}%&b] &eは &c%name of attacker% &eに殺害された"
  1196. else if name of attacker is not set:
  1197. set death message to "&c%display name of victim%&b[&6%{kitpvp.killstreak.%victim%}%&b] &eは &c%attacker% &eに殺害された"
  1198. else:
  1199. set death message to "&c%display name of victim%&b[&6%{kitpvp.killstreak.%victim%}%&b] &eは死んだ"
  1200. else if attacker is not set:
  1201. if {lastattacker.%victim%} is set:
  1202. set {_uuid} to UUID of {lastattacker.%victim%}
  1203. add 1 to {kitpvp.kills::%{_uuid}%}
  1204. add 1 to {kitpvp.killstreak.%{lastattacker.%victim%}%}
  1205. giveReward({lastattacker.%victim%}, 10, "Kill")
  1206. loop {attackedplayers.%victim%::*}:
  1207. loop-index parsed as player is set
  1208. loop-index parsed as player is not {lastattacker.%victim%}
  1209. giveReward(loop-index parsed as player, ceil(loop-value/1.5), "Assist")
  1210. updateSideBar(loop-index parsed as player)
  1211. add 1 to {kitpvp.assists::%UUID of loop-index parsed as player%}
  1212. showKillEffect({lastattacker.%victim%}, victim)
  1213. play sound "ENTITY_EXPERIENCE_ORB_PICKUP" to {lastattacker.%victim%} with volume 1 and pitch 5
  1214. updateSideBar("ffa", {lastattacker.%victim%})
  1215. add 4 to absorption hearts of {lastattacker.%victim%}
  1216. 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に倒された"
  1217. if {kitpvp.killstreak.%{lastattacker.%victim%}%} is 5 or 15:
  1218. broadcast "&e%display name of {lastattacker.%victim%}%&aが&e%{kitpvp.killstreak.%{lastattacker.%victim%}%}%&a連続キルを達成しました!"
  1219. giveReward({lastattacker.%victim%}, {kitpvp.killstreak.%{lastattacker.%victim%}%}, "Kill Streak Bonus")
  1220. if last 1 characters of "%{kitpvp.killstreak.%{lastattacker.%victim%}%}%" is "0":
  1221. broadcast "&e%display name of {lastattacker.%victim%}%&aが&e%{kitpvp.killstreak.%{lastattacker.%victim%}%}%&a連続キルを達成しました!"
  1222. giveReward({lastattacker.%victim%}, {kitpvp.killstreak.%{lastattacker.%victim%}%}, "Kill Streak Bonus")
  1223. if {kitpvp.killstreak.%victim%} >= 3:
  1224. broadcast "&e%display name of {lastattacker.%victim%}%&aが&e%display name of victim%&aの&e%{kitpvp.killstreak.%victim%}%&a連続キルを阻止しました!"
  1225. giveReward({lastattacker.%victim%}, {kitpvp.killstreak.%victim%}, "Stop Kill Streak Bonus")
  1226. else if {lastattacker.%victim%} is not set:
  1227. set death message to "&c%display name of victim%&b[&6%{kitpvp.killstreak.%victim%}%&b] &eは死んだ"
  1228. wait 19 tick
  1229. force victim to respawn
  1230. teleportSpawn(victim)
  1231. on respawn:
  1232. teleportSpawn(player)
  1233. command /setkititems [<text>]:
  1234. permission: kitpvp.admin
  1235. permission message: &cYou do not have permission to use this command.
  1236. trigger:
  1237. if arg is not set:
  1238. send "&cUsage: /setkititems <kit>"
  1239. else if arg is set:
  1240. if {kits::*} contain arg:
  1241. loop 41 times:
  1242. set {_slot} to loop-number - 1
  1243. set {kititems.%arg%::%{_slot}%} to slot {_slot} of player's inventory
  1244. send "&aキット%arg%のアイテムを設定しました"
  1245. else:
  1246. send "&cキット%arg%は存在しません"
  1247. on projectile hit:
  1248. projectile is an arrow
  1249. tag "pickup" of nbt of projectile is 0 or 2
  1250. kill projectile
  1251. function getRanker(rankingtype: string, rank: integer) :: string:
  1252. {_rankingtype} is "level" or "kills" or "deaths" or "kd" or "bestkillstreak"
  1253. set {_high} to -1
  1254. if {_rankingtype} is "kd":
  1255. loop {kitpvp.kills::*}:
  1256. if {kitpvp.deaths::%loop-index%} is 0:
  1257. set {_kd::%loop-index%} to {kitpvp.kills::%loop-index%}
  1258. else:
  1259. set {_kd::%loop-index%} to {kitpvp.kills::%loop-index%}/{kitpvp.deaths::%loop-index%}
  1260. loop {_rank} times:
  1261. loop {_kd::*}:
  1262. loop-value-2 > {_high}
  1263. set {_returnvalue} to {mcid::%loop-index%}
  1264. set {_high} to loop-value-2
  1265. set {_highvalue} to loop-index
  1266. set {_high} to -1
  1267. delete {_kd::%{_highvalue}%}
  1268. return {_returnvalue}
  1269. else if {_rankingtype} is "level":
  1270. loop {kitpvp.level::*}:
  1271. set {_level::%loop-index%} to loop-value+{kitpvp.exp::%loop-index%}/(round(round(1.01^(5*loop-value)*100)/100)*100)
  1272. loop {_rank} times:
  1273. loop {_level::*}:
  1274. loop-value-2 > {_high}
  1275. set {_returnvalue} to {mcid::%loop-index%}
  1276. set {_high} to loop-value-2
  1277. set {_highvalue} to loop-index
  1278. set {_high} to -1
  1279. delete {_level::%{_highvalue}%}
  1280. return {_returnvalue}
  1281. else:
  1282. loop {kitpvp.%{_rankingtype}%::*}:
  1283. set {_%{_rankingtype}%::%loop-index%} to loop-value
  1284. loop {_rank} times:
  1285. loop {_%{_rankingtype}%::*}:
  1286. loop-value-2 > {_high}
  1287. set {_returnvalue} to {mcid::%loop-index%}
  1288. set {_high} to loop-value-2
  1289. set {_highvalue} to loop-index
  1290. set {_high} to -1
  1291. delete {_%{_rankingtype}%::%{_highvalue}%}
  1292. return {_returnvalue}
  1293. function getKD(uuid: string) :: number:
  1294. if {kitpvp.deaths::%{_uuid}%} is 0:
  1295. set {_kd} to {kitpvp.kills::%{_uuid}%}
  1296. else:
  1297. set {_kd} to {kitpvp.kills::%{_uuid}%}/{kitpvp.deaths::%{_uuid}%}
  1298. return {_kd}
  1299. function getUUIDFromMCID(mcid: string) :: string:
  1300. loop {mcid::*}:
  1301. loop-value is {_mcid}
  1302. return loop-index
  1303. stop loop
  1304. every second:
  1305. loop all armor stands:
  1306. set {_tags::*} to getTagValues(loop-entity)
  1307. if {_tags::*} contain "levelrankerhead1":
  1308. set {_ranker} to getRanker("level", 1)
  1309. name of loop-entity's helmet is not "%{_ranker}%"
  1310. execute console command "execute %UUID of loop-entity% ~ ~ ~ replaceitem entity @s slot.armor.head skull 1 3 {display:{Name:""%{_ranker}%""},SkullOwner:%{_ranker}%}"
  1311. if {_tags::*} contain "levelrankerhead2":
  1312. set {_ranker} to getRanker("level", 2)
  1313. name of loop-entity's helmet is not "%{_ranker}%"
  1314. execute console command "execute %UUID of loop-entity% ~ ~ ~ replaceitem entity @s slot.armor.head skull 1 3 {display:{Name:""%{_ranker}%""},SkullOwner:%{_ranker}%}"
  1315. if {_tags::*} contain "levelrankerhead3":
  1316. set {_ranker} to getRanker("level", 3)
  1317. name of loop-entity's helmet is not "%{_ranker}%"
  1318. execute console command "execute %UUID of loop-entity% ~ ~ ~ replaceitem entity @s slot.armor.head skull 1 3 {display:{Name:""%{_ranker}%""},SkullOwner:%{_ranker}%}"
  1319. if {_tags::*} contain "killsrankerhead1":
  1320. set {_ranker} to getRanker("kills", 1)
  1321. name of loop-entity's helmet is not "%{_ranker}%"
  1322. execute console command "execute %UUID of loop-entity% ~ ~ ~ replaceitem entity @s slot.armor.head skull 1 3 {display:{Name:""%{_ranker}%""},SkullOwner:%{_ranker}%}"
  1323. if {_tags::*} contain "killsrankerhead2":
  1324. set {_ranker} to getRanker("kills", 2)
  1325. name of loop-entity's helmet is not "%{_ranker}%"
  1326. execute console command "execute %UUID of loop-entity% ~ ~ ~ replaceitem entity @s slot.armor.head skull 1 3 {display:{Name:""%{_ranker}%""},SkullOwner:%{_ranker}%}"
  1327. if {_tags::*} contain "killsrankerhead3":
  1328. set {_ranker} to getRanker("kills", 3)
  1329. name of loop-entity's helmet is not "%{_ranker}%"
  1330. execute console command "execute %UUID of loop-entity% ~ ~ ~ replaceitem entity @s slot.armor.head skull 1 3 {display:{Name:""%{_ranker}%""},SkullOwner:%{_ranker}%}"
  1331. if {_tags::*} contain "kdrankerhead1":
  1332. set {_ranker} to getRanker("kd", 1)
  1333. name of loop-entity's helmet is not "%{_ranker}%"
  1334. execute console command "execute %UUID of loop-entity% ~ ~ ~ replaceitem entity @s slot.armor.head skull 1 3 {display:{Name:""%{_ranker}%""},SkullOwner:%{_ranker}%}"
  1335. if {_tags::*} contain "kdrankerhead2":
  1336. set {_ranker} to getRanker("kd", 2)
  1337. name of loop-entity's helmet is not "%{_ranker}%"
  1338. execute console command "execute %UUID of loop-entity% ~ ~ ~ replaceitem entity @s slot.armor.head skull 1 3 {display:{Name:""%{_ranker}%""},SkullOwner:%{_ranker}%}"
  1339. if {_tags::*} contain "kdrankerhead3":
  1340. set {_ranker} to getRanker("kd", 3)
  1341. name of loop-entity's helmet is not "%{_ranker}%"
  1342. execute console command "execute %UUID of loop-entity% ~ ~ ~ replaceitem entity @s slot.armor.head skull 1 3 {display:{Name:""%{_ranker}%""},SkullOwner:%{_ranker}%}"
  1343. if {_tags::*} contain "bestkillstreakrankerhead1":
  1344. set {_ranker} to getRanker("bestkillstreak", 1)
  1345. name of loop-entity's helmet is not "%{_ranker}%"
  1346. execute console command "execute %UUID of loop-entity% ~ ~ ~ replaceitem entity @s slot.armor.head skull 1 3 {display:{Name:""%{_ranker}%""},SkullOwner:%{_ranker}%}"
  1347. if {_tags::*} contain "bestkillstreakrankerhead2":
  1348. set {_ranker} to getRanker("bestkillstreak", 2)
  1349. name of loop-entity's helmet is not "%{_ranker}%"
  1350. execute console command "execute %UUID of loop-entity% ~ ~ ~ replaceitem entity @s slot.armor.head skull 1 3 {display:{Name:""%{_ranker}%""},SkullOwner:%{_ranker}%}"
  1351. if {_tags::*} contain "bestkillstreakrankerhead3":
  1352. set {_ranker} to getRanker("bestkillstreak", 3)
  1353. name of loop-entity's helmet is not "%{_ranker}%"
  1354. execute console command "execute %UUID of loop-entity% ~ ~ ~ replaceitem entity @s slot.armor.head skull 1 3 {display:{Name:""%{_ranker}%""},SkullOwner:%{_ranker}%}"
  1355. if {_tags::*} contain "levelrankername1":
  1356. set {_ranker} to getRanker("level", 1)
  1357. set {_uuid} to getUUIDFromMCID(getRanker("level", 1))
  1358. add "{CustomName:""&6&l1. &7%{_ranker}% - &e%{kitpvp.level::%{_uuid}%}%"",CustomNameVisible:1b}" to nbt of loop-entity
  1359. if {_tags::*} contain "levelrankername2":
  1360. set {_ranker} to getRanker("level", 2)
  1361. set {_uuid} to getUUIDFromMCID(getRanker("level", 2))
  1362. add "{CustomName:""&f&l2. &7%{_ranker}% - &e%{kitpvp.level::%{_uuid}%}%"",CustomNameVisible:1b}" to nbt of loop-entity
  1363. if {_tags::*} contain "levelrankername3":
  1364. set {_ranker} to getRanker("level", 3)
  1365. set {_uuid} to getUUIDFromMCID(getRanker("level", 3))
  1366. add "{CustomName:""&c&l3. &7%{_ranker}% - &e%{kitpvp.level::%{_uuid}%}%"",CustomNameVisible:1b}" to nbt of loop-entity
  1367. if {_tags::*} contain "killsrankername1":
  1368. set {_ranker} to getRanker("kills", 1)
  1369. set {_uuid} to getUUIDFromMCID(getRanker("kills", 1))
  1370. add "{CustomName:""&6&l1. &7%{_ranker}% - &e%{kitpvp.kills::%{_uuid}%}%"",CustomNameVisible:1b}" to nbt of loop-entity
  1371. if {_tags::*} contain "killsrankername2":
  1372. set {_ranker} to getRanker("kills", 2)
  1373. set {_uuid} to getUUIDFromMCID(getRanker("kills", 2))
  1374. add "{CustomName:""&f&l2. &7%{_ranker}% - &e%{kitpvp.kills::%{_uuid}%}%"",CustomNameVisible:1b}" to nbt of loop-entity
  1375. if {_tags::*} contain "killsrankername3":
  1376. set {_ranker} to getRanker("kills", 3)
  1377. set {_uuid} to getUUIDFromMCID(getRanker("kills", 3))
  1378. add "{CustomName:""&c&l3. &7%{_ranker}% - &e%{kitpvp.kills::%{_uuid}%}%"",CustomNameVisible:1b}" to nbt of loop-entity
  1379. if {_tags::*} contain "kdrankername1":
  1380. set {_ranker} to getRanker("kd", 1)
  1381. set {_uuid} to getUUIDFromMCID(getRanker("kd", 1))
  1382. add "{CustomName:""&6&l1. &7%{_ranker}% - &e%getKD({_uuid})%"",CustomNameVisible:1b}" to nbt of loop-entity
  1383. if {_tags::*} contain "kdrankername2":
  1384. set {_ranker} to getRanker("kd", 2)
  1385. set {_uuid} to getUUIDFromMCID(getRanker("kd", 2))
  1386. add "{CustomName:""&f&l2. &7%{_ranker}% - &e%getKD({_uuid})%"",CustomNameVisible:1b}" to nbt of loop-entity
  1387. if {_tags::*} contain "kdrankername3":
  1388. set {_ranker} to getRanker("kd", 3)
  1389. set {_uuid} to getUUIDFromMCID(getRanker("kd", 3))
  1390. add "{CustomName:""&c&l3. &7%{_ranker}% - &e%getKD({_uuid})%"",CustomNameVisible:1b}" to nbt of loop-entity
  1391. if {_tags::*} contain "bestkillstreakrankername1":
  1392. set {_ranker} to getRanker("bestkillstreak", 1)
  1393. set {_uuid} to getUUIDFromMCID(getRanker("bestkillstreak", 1))
  1394. add "{CustomName:""&6&l1. &7%{_ranker}% - &e%{kitpvp.bestkillstreak::%{_uuid}%}%"",CustomNameVisible:1b}" to nbt of loop-entity
  1395. if {_tags::*} contain "bestkillstreakrankername2":
  1396. set {_ranker} to getRanker("bestkillstreak", 2)
  1397. set {_uuid} to getUUIDFromMCID(getRanker("bestkillstreak", 2))
  1398. add "{CustomName:""&f&l2. &7%{_ranker}% - &e%{kitpvp.bestkillstreak::%{_uuid}%}%"",CustomNameVisible:1b}" to nbt of loop-entity
  1399. if {_tags::*} contain "bestkillstreakrankername3":
  1400. set {_ranker} to getRanker("bestkillstreak", 3)
  1401. set {_uuid} to getUUIDFromMCID(getRanker("bestkillstreak", 3))
  1402. add "{CustomName:""&c&l3. &7%{_ranker}% - &e%{kitpvp.bestkillstreak::%{_uuid}%}%"",CustomNameVisible:1b}" to nbt of loop-entity
  1403. delete {_ranker}
  1404. delete {_uuid}
  1405. on damage of player:
  1406. if attacker is a player:
  1407. event is not cancelled
  1408. wait 1 tick
  1409. displayHealth(attacker, victim)
  1410. else if attacker is TNT:
  1411. set {_attacker} to getOwnerTag("%tag ""Tags"" of nbt of attacker%")
  1412. {_attacker} is set
  1413. event is not cancelled
  1414. wait 1 tick
  1415. displayHealth({_attacker}, victim)
  1416. on damage:
  1417. damage was caused by entity explosion
  1418. attacker is tnt
  1419. set damage to damage*0.5
  1420. on break:
  1421. player's gamemode is not creative
  1422. if {kitpvp.playingstate.%player%} is "playing_duel":
  1423. if {kitpvp.duel.duelmode::%{kitpvp.duel.usingarena::%player%}%} is not "builduhc":
  1424. cancel event
  1425. else if {kitpvp.duel.duelmode::%{kitpvp.duel.usingarena::%player%}%} is "builduhc":
  1426. id of event-block is not 8 or 9 or 10 or 11
  1427. {kitpvp.duel.playerplacedblocks.%{kitpvp.duel.usingarena::%player%}%::*} do not contain location of event-block
  1428. cancel event
  1429. else:
  1430. cancel event
  1431. on place:
  1432. player's gamemode is not creative
  1433. if {kitpvp.playingstate.%player%} is "playing_duel":
  1434. {kitpvp.duel.duelmode::%{kitpvp.duel.usingarena::%player%}%} is not "builduhc"
  1435. cancel event
  1436. else:
  1437. event-block is not fire
  1438. cancel event
  1439. on rightclick with hoe:
  1440. player's gamemode is not creative
  1441. id of clicked block is 2 or 3
  1442. cancel event
  1443. on rightclick with fire charge:
  1444. player's gamemode is not creative
  1445. cancel event
  1446. command /setkit <text>:
  1447. permission: kitpvp.admin
  1448. permission message: &cYou do not have permission to use this command.
  1449. trigger:
  1450. {kits::*} contain arg
  1451. loop 41 times:
  1452. set {_slot} to loop-number - 1
  1453. set slot {_slot} of player's inventory to {kititems.%arg%::%{_slot}%}
  1454. on fishing:
  1455. fishing state is CAUGHT_ENTITY
  1456. cancel event
  1457. kill fishing hook
Advertisement
Add Comment
Please, Sign In to add comment