Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on first join:
- set {%player%.kill} to 0
- set {%player%.death} to 0
- set {%player%.kd} to 0
- on death:
- if victim is player:
- give attacker stone pickaxe
- broadcast "<red>%attacker%<reset>が<aqua>%victim%<reset>を倒しました!"
- set {number} to 0
- add 1 to {%attacker%.kill}
- add 1 to {%victim%.death}
- set {%attacker%.kd} to {%attacker%.kill} / {%attacker%.death}
- set {%victim%.kd} to {%victim%.kill} / {%victim%.death}
- set attacker's health to attacker's max health
- set victim's health to victim's max health
- wait for a tick
- execute console command "/tp %attacker% 704 4 -548"
- execute console command "/tp %victim% 704 4 -548"
- execute console command "/clear %attacker%"
- execute console command "/clear %victim% 704 4 -548"
- give a stone pickaxe to the attacker
- on damage:
- if victim is player:
- if attacker's tool is a bow:
- message "&c%victim% - %victim's health% hearts" to the attacker
- command /status [<offline player>]:
- trigger:
- if arg is not set:
- message "あなたは%{%player%.kill}%回キルして、%{%player%.death}%回デスして、キルレは%{%player%.kd}%です。" to the player
- else:
- message "%arg%は%{%arg%.kill}%回キルして、%{%arg%.death}%回デスして、キルレは%{%arg%.kd}%です。" to the player
- command /reset:
- trigger:
- set {%player%.kill} to 0
- set {%player%.death} to 0
- set {%player%.kd} to 0
- message "あなたの戦績をリセットしました。" to the player
- function kit(player: player):
- execute console command "/clear %{_player}%"
- execute console command "/gamemode a %{_player}%"
- equip {_player} with all diamond armour of protection 3
- give diamond sword of sharpness 3 to {_player}
- give bow of power 3 to {_player}
- give 64 arrows to {_player}
- give 5 golden apple to {_player}
- command /battle:
- trigger:
- if {number} is 2:
- message "現在PvP中です。" to the player
- if {number} is 1:
- kit(player)
- set {number} to 2
- execute console command "/tp %player% 656 4 -635 270 0"
- set player's health to player's max health
- set player's hunger to 10
- broadcast "PvP始め!"
- if {number} is 0:
- kit(player)
- set {number} to 1
- execute console command "/tp %player% 697 4 -635 90 0"
- set player's health to player's max health
- set player's hunger to 10
- broadcast "PvPを始めるためにはもう1人必要です。"
- command /battlereset:
- trigger:
- set {number} to 0
- broadcast "参加状況をリセットしました。"
Advertisement
Add Comment
Please, Sign In to add comment