Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #KitPvP 2.1 by Tapioca_MilkTea
- options:
- prefix: [KitPvP]
- command /kits [<text>]:
- trigger:
- if arg-1 is not set:
- wait 1 ticks
- open chest with 2 row named "Kitの選択" to player
- wait 1 ticks
- format slot 2 of player with wood sword named "&8剣士" to close then run [execute player command "/kits kisi"]
- format slot 3 of player with obsidian named "&e傭兵" to close then run [execute player command "/kits tanku"]
- if player doesn't have permission "ks.yumihei":
- format slot 4 of player with yellow stained glass pane named "弓使い" with lore "&cこのキットは購入することで使用可能になります" to be unstealable
- if player has permission "ks.yumihei":
- format slot 4 of player with bow named "&1弓使い" with lore "&aこのキットは購入済みです" to close then run [execute player command "/kits yumihei"]
- if player doesn't have permission "ks.fire":
- format slot 5 of player with pink stained glass pane named "ファイアーマン" with lore "&cこのキットは購入することで使用可能になります" to be unstealable
- if player has permission "ks.fire":
- format slot 5 of player with flint and steel named "&cファイアーマン" with lore "&aこのキットは購入済みです" to close then run [execute player command "/kits pairo"]
- if player doesn't have permission "ks.ansatusya":
- format slot 6 of player with red stained glass pane named "神速" with lore "&cこのキットは購入することで使用可能になります" to be unstealable
- if player has permission "ks.ansatusya":
- format slot 6 of player with feather named "&b神速" with lore "&aこのキットは購入済みです" to close then run [execute player command "/kits ansatusya"]
- if player doesn't have permission "ks.ghost":
- format slot 7 of player with light gray stained glass pane named "ghost" with lore "&cこのキットは購入することで使用可能になります" to be unstealable
- if player has permission "ks.ghost":
- format slot 7 of player with pumpkin named "&7ghost" with lore "&aこのキットは購入済みです" to close then run [execute player command "/kits ghost"]
- if arg-1 is "kisi":
- make console execute command "/effect %player% clear"
- clear player's inventory
- set slot 0 of player to iron sword
- set slot 1 of player to 64 bread
- set slot 2 of player to brick named "&8防御"
- set slot 8 of player to barrier block named "&cKit選択に戻る"
- equip player with chainmail chestplate
- equip player with iron boots
- equip player with chainmail leggings
- message "{@prefix} あなたは剣士を選択しました!"
- stop
- if arg-1 is "tanku":
- make console execute command "/effect %player% clear"
- clear player's inventory
- set slot 0 of player to stone sword
- set slot 1 of player to 64 bread
- set slot 2 of player to apple named "&d回復"
- set slot 8 of player to barrier block named "&cKit選択に戻る"
- equip player with iron chestplate
- equip player with chainmail leggings
- message "{@prefix} あなたは傭兵を選択しました!"
- stop
- if arg-1 is "yumihei":
- if player has permission "ks.yumihei":
- make console execute command "/effect %player% clear"
- clear player's inventory
- set slot 0 of player to bow
- set slot 1 of player to 64 bread
- set slot 2 of player to 32 arrows
- set slot 8 of player to barrier block named "&cKit選択に戻る"
- equip player with leather helmet
- equip player with leather chestplate
- stop
- if arg-1 is "pairo":
- if player has permission "ks.fire":
- make console execute command "/effect %player% clear"
- clear player's inventory
- set slot 0 of player to stone sword
- set slot 1 of player to blaze rod of fire aspect 1
- set slot 2 of player to 64 bread
- set slot 8 of player to barrier block named "&cKit選択に戻る"
- equip player with leather chestplate
- equip player with chainmail leggings
- equip player with iron boots
- message "{@prefix} あなたはパイロを選択しました!"
- stop
- if arg-1 is "ansatusya":
- if player has permission "ks.ansatusya":
- make console execute command "/effect %player% clear"
- clear player's inventory
- set slot 0 of player to stone sword
- set slot 2 of player to 1 feather named "&bSpeed"
- set slot 1 of player to 64 bread
- set slot 8 of player to barrier block named "&cKit選択に戻る"
- equip player with chainmail chestplate
- equip player with iron leggings
- equip player with iron helmet
- apply potion of speed 1 to the player for 1000 seconds
- message "{@prefix} あなたは神速を選択しました!"
- stop
- if arg 1 is "ghost":
- if player has permission "ks.ghost":
- apply potion of Resistance 1 to the player for 1000 seconds
- make console execute command "/effect %player% clear"
- clear player's inventory
- set slot 0 of player to diamond sword of Sharpness 2
- set slot 1 of player to 64 bread
- set slot 8 of player to barrier block named "&cKit選択に戻る"
- apply potion of Invisibility 1 to the player for 1000 seconds
- message "{@prefix} あなたはghostを選択しました!"
- set {%player%.ghost} to true
- stop
- on right click holding brick:
- name of held item contains "防御"
- set {_cooldown} to difference between {skill.%player%.lastused} and now
- if {_cooldown} is less than 8 seconds:
- message "&5%difference between 8 seconds and {_cooldown}% &6後に使用可能"
- stop
- apply potion of Resistance 1 to the player for 5 seconds
- set {skill.%player%.lastused} to now
- on right click holding feather:
- name of held item contains "Speed"
- set {_cooldown} to difference between {skill.%player%.lastused} and now
- if {_cooldown} is less than 14 seconds:
- message "&5%difference between 14 seconds and {_cooldown}% &6後に使用可能"
- stop
- apply potion of Speed 2 to the player for 8 seconds
- set {skill.%player%.lastused} to now
- on rightclick holding apple:
- name of held item contains "回復"
- set {_cooldown} to difference between {skill.%player%.lastused} and now
- if {_cooldown} is less than 15 seconds:
- message "&5%difference between 15 seconds and {_cooldown}% &6後に使用可能"
- stop
- add 3 to the player's health
- set {skill.%player%.lastused} to now
- on damage of player:
- if {%victim%.ghost} is true:
- increase the damage by damage*20
- on respawn:
- if {%player%.ghost} is true:
- wait 25 tick
- apply potion of Invisibility 1 to the player for 1000 seconds
- apply potion of Resistance 4 to the player for 1000 seconds
- on right click holding chest:
- name of held item contains "Kit選択"
- make player execute command "/kits"
- stop
- on right click holding barrier block:
- make console execute command "/effect %player% clear"
- clear player's inventory
- if {%player%.ghost} is true:
- set {%player%.ghost} to false
- set slot 2 of player to chest named "&bKit選択"
- set slot 4 of player to emerald named "&6Kit購入"
- set slot 6 of player to book named "&5あなたの情報"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement