Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on damage of player:
- attacker is player:
- if {%attacker%.pvp} is set:
- if {%victim%.pvp} is not set:
- cancel event
- else:
- if {%victim%.pvp} is set:
- cancel event
- on death of player:
- attacker is player:
- if {%attacker%.pvp} is set:
- if {%victim%.pvp} is set:
- force respawn victim
- broadcast "&6[1vs1] &a%attacker%&eが&a%victim%&eを倒した!"
- broadcast "&6[1vs1] &e今回の勝者は&a%attacker%&eです!"
- execute console command "endarena %{%attacker%.pa}%"
- execute console command "execute %attacker% ~ ~ ~ /summon fireworks_rocket ~ ~1 ~ {LifeTime:25,FireworksItem:{id:fireworks,Count:1,tag:{Fireworks:{Explosions:[{Type:1,Colors:[I;16711680,16750848,16773120,65280,255],FadeColors:[I;16777215]}]}}}}"
- wait a second
- execute console command "execute %attacker% ~ ~ ~ /summon fireworks_rocket ~ ~1 ~ {LifeTime:25,FireworksItem:{id:fireworks,Count:1,tag:{Fireworks:{Explosions:[{Type:1,Colors:[I;16711680,16750848,16773120,65280,255],FadeColors:[I;16777215]}]}}}}"
- wait a second
- execute console command "execute %attacker% ~ ~ ~ /summon fireworks_rocket ~ ~1 ~ {LifeTime:25,FireworksItem:{id:fireworks,Count:1,tag:{Fireworks:{Explosions:[{Type:1,Colors:[I;16711680,16750848,16773120,65280,255],FadeColors:[I;16777215]}]}}}}"
- wait a second
- execute console command "execute %attacker% ~ ~ ~ /summon fireworks_rocket ~ ~1 ~ {LifeTime:25,FireworksItem:{id:fireworks,Count:1,tag:{Fireworks:{Explosions:[{Type:1,Colors:[I;16711680,16750848,16773120,65280,255],FadeColors:[I;16777215]}]}}}}"
- wait a second
- execute console command "execute %attacker% ~ ~ ~ /summon fireworks_rocket ~ ~1 ~ {LifeTime:25,FireworksItem:{id:fireworks,Count:1,tag:{Fireworks:{Explosions:[{Type:1,Colors:[I;16711680,16750848,16773120,65280,255],FadeColors:[I;16777215]}]}}}}"
- command /addarena [<text>]:
- permission: 1vs1.arena.add
- permission message: §cYou need permission "1vs1.arena.add"!
- trigger:
- if arg-1 is set:
- if arg-1 is {arena::*}:
- send "&6[1vs1] &cそのアリーナは既に存在します!"
- execute console command "execute @a ~ ~ ~ /playsound minecraft:item.shield.break master @a ~ ~ ~ 5 0.5"
- else:
- send "&6[1vs1] &eAdded arena ""%arg 2%""!"
- add "&c[Arena] &6%arg 2%" to {arena::*}
- else:
- send "&cUsage: &7/addarena <new arena>"
- command /arena-setspawn [<text>] [<text>]:
- permission: 1vs1.arena.spawn.set
- permission message: §cYou need permission "1vs1.arena.spawn.set"!
- aliases: /arenasetspawn, /arena-ss, /arenass, /ass
- trigger:
- if arg-1 is set:
- if arg-1 is {arena::*}:
- if {1vs1.%arg 1%.start} is set:
- send "&6[1vs1] &cそのアリーナは既に開始しているか、開始直前です!"
- execute console command "execute %player% ~ ~ ~ /playsound minecraft:item.shield.break master %player% ~ ~ ~ 5 0.5"
- else:
- if arg-2 is "red" or "blue":
- if arg-2 is "red":
- execute console command "execute %player% ~ ~ ~ /kill @e[type=armor_stand,tag=%arg 1%_r]"
- execute console command "execute %player% ~ ~ ~ /summon armor_stand ~ ~ ~ {Invisible:1,Marker:1,Tags:[""%arg 1%_r""]}"
- execute console command "execute %player% ~ ~ ~ /tp @e[type=armor_stand,tag=%arg 1%_r] %player%"
- send "&3[%arg 1%] &c&lRed&e's spawnpoint setted! (%location of player%)"
- if arg-2 is "blue":
- execute console command "execute %player% ~ ~ ~ /kill @e[type=armor_stand,tag=%arg 1%_b]"
- execute console command "execute %player% ~ ~ ~ /summon armor_stand ~ ~ ~ {Invisible:1,Marker:1,Tags:[""%arg 1%_b""]}"
- execute console command "execute %player% ~ ~ ~ /tp @e[type=armor_stand,tag=%arg 1%_b] %player%"
- send "&3[%arg 1%] &b&lBlue&e's spawnpoint setted! (%location of player%)"
- else:
- send "&cUsage: &7/ass %arg 1% <red/blue>"
- else:
- send "&6[1vs1] &cそのアリーナは存在しません!"
- execute console command "execute %player% ~ ~ ~ /playsound minecraft:item.shield.break master %player% ~ ~ ~ 5 0.5"
- else:
- send "&cUsage: &7/ass <arena> <red/blue>"
- command /arena-removespawn [<text>]:
- permission: 1vs1.arena.spawn.remove
- permission message: §cYou need permission "1vs1.arena.spawn.remove"!
- aliases: /arenaremovespawn, /arena-rs, /arenars, /ars
- trigger:
- if arg-1 is set:
- if arg-1 is {arena::*}:
- if {1vs1.%arg 1%.start} is set:
- send "&6[1vs1] &cそのアリーナは既に開始しているか、開始直前です!"
- execute console command "execute %player% ~ ~ ~ /playsound minecraft:item.shield.break master %player% ~ ~ ~ 5 0.5"
- else:
- execute console command "/kill @e[type=armor_stand,tag=%arg 1%_c]"
- execute console command "/kill @e[type=armor_stand,tag=%arg 1%_b]"
- send "&3[%arg 1%] &eRemoved spawnpoint!"
- else:
- send "&6[1vs1] &cそのアリーナは存在しません!"
- execute console command "execute %player% ~ ~ ~ /playsound minecraft:item.shield.break master %player% ~ ~ ~ 5 0.5"
- else:
- send "&cUsage: &7/ars <arena>"
- command /removearena [<text>]:
- permission: 1vs1.arena.remove
- permission message: §cYou need permission "1vs1.arena.remove"!
- trigger:
- if arg-1 is set:
- if arg-1 is {arena::*}:
- if {1vs1.%arg 1%.start} is set:
- send "&6[1vs1] &cそのアリーナは既に開始しているか、開始直前です!"
- execute console command "execute @a ~ ~ ~ /playsound minecraft:item.shield.break master @a ~ ~ ~ 5 0.5"
- else:
- delete {1vs1.%arg 2%.jc}
- if {%player%.ja} is arg-1:
- delete {%player%.ja}
- delete {%player%.j}
- else:
- send "&6[1vs1] &cそのアリーナは存在しません!"
- execute console command "execute @a ~ ~ ~ /playsound minecraft:item.shield.break master @a ~ ~ ~ 5 0.5"
- else:
- send "&cUsage: &7/removearena <arena>"
- command /listarena [<text>]:
- permission: 1vs1.command.listarena
- permission message: §cYou need permission "1vs1.command.listarena"!
- trigger:
- if {arena::*} is set:
- send "&6&l---------------[ List of arena ]---------------"
- loop {arena::*}:
- send "%loop-value%"
- send "&6&l----------------------------------------------"
- else:
- send "&6&l[List of arena] &cアリーナがありません!"
- command /endarena [<text>]:
- permission: 1vs1.command.endarena
- permission message: §cYou need permission "1vs1.command.endarena"
- trigger:
- if arg-1 is set:
- if arg-1 is {arena::*}:
- if {1vs1.%arg 1%.start} is set:
- execute console command "execute @a ~ ~ ~ /playsound minecraft:entity.player.levelup master @a ~ ~ ~ 5 1.0"
- broadcast "&3[%arg 1%] &bアリーナ終了!"
- execute console command "tp %{%arg 1%.r}% <ロビーの座標> 0 0"
- execute console command "tp %{%arg 1%.b}% <ロビーの座標> 0 0"
- execute console command "clear %{%arg 1%.r}%"
- execute console command "clear %{%arg 1%.b}%"
- execute console command "nt %{%arg 1%.r}% &r"
- execute console command "nt %{%arg 1%.b}% &r"
- execute console command "tn %{%arg 1%.r}% &r"
- execute console command "tn %{%arg 1%.b}% &r"
- delete {%{%arg 1%.r}%.pvp}
- delete {%{%arg 1%.b}%.pvp}
- delete {%arg 1%.r}
- delete {%arg 1%.b}
- else:
- send "&6[1vs1] &cそのアリーナは開始していません!"
- execute console command "execute %player% ~ ~ ~ /playsound minecraft:item.shield.break master %player% ~ ~ ~ 5 0.5"
- else:
- send "&6[1vs1] &cそのアリーナは存在しません!"
- execute console command "execute %player% ~ ~ ~ /playsound minecraft:item.shield.break master %player% ~ ~ ~ 5 0.5"
- else:
- send "&cUsage: &7/endarena <arena>"
- command /nametag <player> <text>:
- permission: 1vs1.command.nt
- permission message: §cYou don't enough permission!
- aliases: /nt
- trigger:
- set arg-1's display name to "%coloured arg 2%%arg 1%"
- send "&bComplete!"
- command /tabname <player> <text>:
- permission: 1vs1.command.tn
- permission message: §cYou don't enough permission!
- aliases: /tn
- trigger:
- set arg-1's tablist name to "%coloured arg 2%%arg 1%"
- send "&bComplete!"
- command /startarena [<text>]:
- permission: 1vs1.command.startarena
- permission message: §cYou need permission "1vs1.command.listarena"!
- trigger:
- if arg-1 is set:
- if arg-1 is {arena::*}:
- if {1vs1.%arg 1%.start} is set:
- execute console command "clear %{%arg 1%.r}%"
- execute console command "clear %{%arg 1%.b}%"
- execute console command "replaceitem entity %{%arg 1%.r}% slot.hotbar.0 minecraft:iron_sword 1 0 {HideFlags:63,Unbreakable:1,display:{Name:""§eIron Sword"",Lore:["""",""§b§lStatus:"",""§6>> §2攻撃力 6"",""§6>> §2攻撃速度 1.6"",""&6>> §9不可壊""]}}"
- execute console command "replaceitem entity %{%arg 1%.r}% slot.hotbar.1 minecraft:bow 1 0 {HideFlags:63,Unbreakable:1,display:{Name:""§eBow""}}"
- execute console command "tp %{%arg 1%.r}% @e[type=armor_stand,tag=%arg 1%_r]"
- execute console command "tp %{%arg 1%.b}% @e[type=armor_stand,tag=%arg 1%_b]"
- broadcast "&6[1vs1] &e「%arg 1%」の人数が揃いましたので、アリーナを開始します。"
- execute console command "execute @a ~ ~ ~ /playsound minecraft:entity.arrow.hit_player master @a ~ ~ ~ 5 1.0"
- wait 5 seconds
- broadcast "&3[%arg 1%] &b開始まであと &a&l10&b 秒"
- execute console command "execute @a ~ ~ ~ /playsound minecraft:ui.button.click master @a ~ ~ ~ 5 1.0"
- wait 5 seconds
- broadcast "&3[%arg 1%] &b開始まであと &e&l5&b 秒"
- execute console command "execute @a ~ ~ ~ /playsound minecraft:ui.button.click master @a ~ ~ ~ 5 1.0"
- wait a second
- broadcast "&3[%arg 1%] &b開始まであと &6&l4&b 秒"
- execute console command "execute @a ~ ~ ~ /playsound minecraft:ui.button.click master @a ~ ~ ~ 5 1.0"
- wait a second
- broadcast "&3[%arg 1%] &b開始まであと &c&l3&b 秒"
- execute console command "execute @a ~ ~ ~ /playsound minecraft:ui.button.click master @a ~ ~ ~ 5 1.0"
- wait a second
- broadcast "&3[%arg 1%] &b開始まであと &c&l2&b 秒"
- execute console command "execute @a ~ ~ ~ /playsound minecraft:ui.button.click master @a ~ ~ ~ 5 1.0"
- wait a second
- broadcast "&3[%arg 1%] &b開始まであと &c&l1&b 秒"
- execute console command "execute @a ~ ~ ~ /playsound minecraft:ui.button.click master @a ~ ~ ~ 5 1.0"
- wait a second
- broadcast "&3[%arg 1%] &bアリーナ開始!"
- execute console command "execute @a ~ ~ ~ /playsound minecraft:entity.elder_guardian.curse master @a ~ ~ ~ 5 1.0"
- set {%{%arg 1%.r}%.pvp} to 1
- set {%{%arg 1%.r}%.pvp} to 1
- set {%{%arg 1%.r}%.pa} to arg-1
- execute console command "nt %{%arg 1%.r}% &c"
- execute console command "nt %{%arg 1%.b}% &b"
- execute console command "tn %{%arg 1%.r}% &c[%arg 1%] &c"
- execute console command "tn %{%arg 1%.b}% &b[%arg 1%] &b"
- else:
- send "&6[1vs1] &c「%arg 1%」の人数が揃っていないので、アリーナを開始できません!"
- execute console command "execute %player% ~ ~ ~ /playsound minecraft:item.shield.break master %player% ~ ~ ~ 5 0.5"
- else:
- send "&6[1vs1] &cそのアリーナは存在しません!"
- execute console command "execute %player% ~ ~ ~ /playsound minecraft:item.shield.break master %player% ~ ~ ~ 5 0.5"
- else:
- send "&cUsage: &7/startarena <arena>"
- command /1vs1 [<text>] [<text>]:
- aliases: /1v1
- trigger:
- if arg-1 is "join" or "leave":
- if arg-1 is "join":
- if arg-2 is set:
- if arg-2 is {arena::*}:
- set {%player%.ja} to arg-2
- if {1vs1.%{%player%.ja}%.start} is set:
- send "&6[1vs1] &cそのアリーナは既に開始しているか、開始直前です!"
- execute console command "execute %player% ~ ~ ~ /playsound minecraft:item.shield.break master %player% ~ ~ ~ 5 0.5"
- else:
- if {1vs1.%player%.j} is not set:
- if {1vs1.%{%player%.ja}%.jc} is not set:
- set {1vs1.%player%.j} to {%player%.ja}
- set {1vs1.%{%player%.ja}%.jc} to 1
- broadcast "&6[1vs1] &a%player%&eが「%{%player%.ja}%」に参加しました! &71&8/&72"
- set {%{%player%.ja}%.r} to player
- execute console command "execute @a ~ ~ ~ /playsound minecraft:entity.arrow.hit_player master @a ~ ~ ~ 5 1.0"
- else:
- delete {1vs1.%{%player%.ja}%.jc}
- broadcast "&6[1vs1] &a%player%&eが「%{%player%.ja}%」に参加しました! &72&8/&72"
- set {%{%player%.ja}%.b} to player
- set {1vs1.%{%player%.ja}%.start} to 1
- execute console command "startarena %{%player%.ja}%"
- else:
- send "&6[1vs1] &c既に参加しています!"
- execute console command "execute %player% ~ ~ ~ /playsound minecraft:item.shield.break master %player% ~ ~ ~ 5 0.5"
- else:
- send "&cそのアリーナは存在しません!"
- execute console command "execute @a ~ ~ ~ /playsound minecraft:entity.arrow.hit_player master @a ~ ~ ~ 5 1.0"
- else:
- send "&cUsage: &7/1vs1 join <arena>"
- if arg-1 is "leave":
- if {%player%.%{%player%.ja}%.j} is set:
- if {1vs1.%{%player%.ja}%.jc} is 1:
- delete {1vs1.%{%player%.ja}%.jc}
- delete {%player%.%{%player%.ja}%.j}
- delete {%player%.ja}
- broadcast "&6[1vs1] &a%player%&eが「%{%player%.ja}%」から退出しました。 &70&8/&72"
- execute console command "execute @a ~ ~ ~ /playsound minecraft:ui.button.click master @a ~ ~ ~ 5 1.0"
- else:
- send "&6[1vs1] &cアリーナに参加していません!"
- execute console command "execute @a ~ ~ ~ /playsound minecraft:entity.arrow.hit_player master @a ~ ~ ~ 5 1.0"
- else:
- send "&cUsage: &7/1vs1 <join <arena>/leave>"
Add Comment
Please, Sign In to add comment