Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on right click on a player:
- name of target entity is not "&a消耗するやつ" or "&a消耗しないやつ"
- execute player command "record %name of target entity%"
- on damage:
- damage cause is fall or drowning
- cancel event
- on damage:
- victim and attacker is player
- damage cause is attack
- {start} is true
- cancel event
- if {play.2::%victim%} is set:
- if {oni.%attacker%} is true:
- set {oni} to "%victim%" parsed as player
- set {oni.%attacker%} to false
- set {oni.%victim%} to true
- push the victim upwards at speed 1
- push the victim forwards at speed 1.5
- execute console command "scoreboard players reset %attacker%"
- execute console command "scoreboard players set %victim% oni 1"
- execute console command "scoreboard players tag %victim% add oni"
- execute console command "scoreboard players tag %attacker% remove oni"
- execute console command "replaceitem entity %attacker% slot.armor.head air"
- execute console command "replaceitem entity %victim% slot.armor.head minecraft:wool 1 14 {ench:[{id:10,lvl:1}]}"
- broadcast "&c&l%victim%さんが鬼になりました!"
- execute console command "nte player %victim% prefix &4"
- execute console command "nte player %attacker% prefix &a"
- execute console command "playsound minecraft:block.note.pling master @a ~ ~ ~ 1 2 1"
- stop
- else if {oni2.%attacker%} is true:
- if {oni.%victim%} is true:
- stop
- set {oni2} to "%victim%" parsed as player
- set {oni2.%attacker%} to false
- set {oni2.%victim%} to true
- push the victim upwards at speed 1
- push the victim forwards at speed 1.5
- execute console command "scoreboard players reset %attacker%"
- execute console command "scoreboard players set %victim% oni 1"
- execute console command "scoreboard players tag %victim% add oni"
- execute console command "scoreboard players tag %attacker% remove oni"
- execute console command "replaceitem entity %attacker% slot.armor.head air"
- execute console command "replaceitem entity %victim% slot.armor.head minecraft:wool 1 14 {ench:[{id:10,lvl:1}]}"
- broadcast "&c&l%victim%さんが鬼になりました!"
- execute console command "nte player %victim% prefix &4"
- execute console command "nte player %attacker% prefix &a"
- execute console command "playsound minecraft:block.note.pling master @a ~ ~ ~ 1 2 1"
- else:
- stop
- else:
- stop
- command /first:
- executable by: console
- trigger:
- set {start} to true
- set {_coin} to random integer between 10 and 50
- if amount of {play.2::*} is greater than or equal to 114:
- broadcast "&b&l参加者が七人を超したため鬼を二人にします。不具合多し。"
- broadcast "&a&l抽選中..."
- wait 5 seconds
- loop {play.2::*}:
- delete {speed.%loop-value%}
- add 1 to {count.%loop-value%}
- wait 1 tick
- set {oni} to random player of {play.2::*}
- set {oni2} to random player of {play.2::*}
- if {oni} is {oni2}:
- set {oni} to random player of {play.2::*}
- set {oni2} to random player of {play::*}
- broadcast "&b&l%{oni}%さんと%{oni2}%さんが鬼になりました!初期鬼ブースト+%{_coin}%コイン"
- set {oni.%{oni}%} to true
- set {oni2.%{oni2}%} to true
- add {_coin} to {coin.%{oni}%} and {coin.%{oni2}%}
- execute console command "scoreboard players set %{oni}% oni 1"
- execute console command "scoreboard players set %{oni2}% oni 1"
- execute console command "scoreboard objectives setdisplay sidebar oni"
- execute console command "scoreboard players tag %{oni}% add oni"
- execute console command "scoreboard players tag %{oni2}% add oni"
- execute console command "replaceitem entity %{oni}% slot.armor.head minecraft:wool 1 14 {ench:[{id:10,lvl:1}]}"
- execute console command "replaceitem entity %{oni2}% slot.armor.head minecraft:wool 1 14 {ench:[{id:10,lvl:1}]}"
- execute console command "playsound minecraft:ui.button.click master @a ~ ~ ~ 1 2 1"
- execute console command "start"
- stop
- broadcast "&a&l抽選中..."
- wait 5 seconds
- loop {play.2::*}:
- delete {speed.%loop-value%}
- add 1 to {count.%loop-value%}
- wait 1 tick
- set {oni} to random player of {play.2::*}
- set {oni.%{oni}%} to true
- add 1 to {first.%{oni}%}
- execute console command "scoreboard players set %{oni}% oni 1"
- execute console command "scoreboard objectives setdisplay sidebar oni"
- execute console command "scoreboard players tag %{oni}% add oni"
- execute console command "replaceitem entity %{oni}% slot.armor.head minecraft:wool 1 14 {ench:[{id:10,lvl:1}]}"
- broadcast "&b&l%{oni}%さんが初期鬼となりました!初期鬼ブースト+%{_coin}%コイン"
- add {_coin} to {coin.%{oni}%}
- execute console command "playsound minecraft:ui.button.click master @a ~ ~ ~ 1 2 1"
- execute console command "start"
- command /play:
- trigger:
- if {start} is false:
- if {play.%player%} is not set:
- set {play.%player%} to true
- set {play.2::%player%} to player
- add 1 to {play}
- execute console command "scoreboard players tag %player% add play"
- broadcast "&a%player%さんが参加しました!"
- if {play} is 2:
- broadcast "&aあと15秒で抽選を開始します!※抽選開始以降は参加できません。"
- wait 15 seconds
- execute console command "first"
- stop
- else:
- stop
- if {play.%player%} is set:
- message "&cあなたはすでに参加しています。"
- execute console command "playsound minecraft:ui.button.click master %player% ~ ~ ~ 1 2 1"
- stop
- else:
- message "&c途中参加はできません。"
- execute console command "playsound minecraft:ui.button.click master %player% ~ ~ ~ 1 2 1"
- command /start:
- executable by: console
- trigger:
- execute console command "setblock 1205 5 -207 redstone_block"
- wait a tick
- execute console command "setblock 1205 5 -207 air"
- execute console command "gamemode adventure @a[tag=play]"
- execute console command "random"
- broadcast "&b20秒後に鬼が解放されます..."
- wait 20 seconds
- wait 30 seconds
- broadcast "&a残り一分..."
- wait 30 seconds
- broadcast "&a残り三十秒..."
- wait 15 seconds
- broadcast "&a残り十五秒..."
- wait 12 seconds
- broadcast "&a3"
- wait 1 seconds
- broadcast "&a2"
- wait 1 seconds
- broadcast "&a1"
- wait 1 seconds
- broadcast "&b&l終了!"
- execute console command "playsound minecraft:entity.enderdragon.growl master @a ~ ~ ~ 1 2 1"
- execute console command "end"
- command /end:
- executable by: console
- trigger:
- execute console command "setblock 1205 5 -210 redstone_block"
- wait a tick
- execute console command "setblock 1205 5 -210 air"
- loop {play.2::*}:
- teleport loop-value to {spawn}
- execute console command "replaceitem entity @a slot.armor.head air"
- execute console command "scoreboard players tag @a remove oni"
- execute console command "scoreboard players tag @a remove play"
- execute console command "scoreboard players reset @a"
- remove {oni} from {play.2::*}
- remove {oni2} from {play.2::*}
- wait 1 tick
- loop {play.2::*}:
- add 200 to {coin.%loop-value%}
- add 1 to {win.%loop-value%}
- delete {play.2::*}
- add 60 to {coin.%{oni}%}
- set {play} to 0
- delete {oni}
- delete {oni2}
- delete {map}
- loop all players:
- delete {play.%loop-player%}
- delete {oni.%loop-player%}
- set {start} to false
- command /record [<offline player>]:
- aliases: /rc
- trigger:
- if arg 1 is not set:
- set {_lose.%player%} to {count.%player%} - {win.%player%}
- message "&a総プレイ回数&e%{count.%player%}%||&a勝利回数&e%{win.%player%}%||&a敗北回数&e%{_lose.%player%}%||&a初期鬼の回数&e%{first.%player%}%||&aコイン&e%{coin.%player%}%"
- stop
- if arg 1 is set:
- set {_lose.%arg 1%} to {count.%arg 1%} - {win.%arg 1%}
- message "&b%arg 1%さんの記録&e||&a総プレイ回数&e%{count.%arg 1%}%||&a勝利回数&e%{win.%arg 1%}%||&a敗北回数&e%{_lose.%arg 1%}%||&a初期鬼の回数&e%{first.%arg 1%}%||&aコイン&e%{coin.%arg 1%}%"
- execute console command "playsound minecraft:entity.firework.twinkle master %player% ~ ~ ~ 1 2 1"
- stop
- command /who:
- trigger:
- if {oni} is set:
- if {oni2} is set:
- message "&e%{oni}%さんと%{oni2}%さんが鬼です!"
- stop
- else:
- message "&e%{oni}%さんが鬼です!"
- stop
- else:
- execute console command "playsound minecraft:ui.button.click master %player% ~ ~ ~ 1 2 1"
- message "&c鬼はいません。"
- command /players:
- trigger:
- message "&a参加者は%{play.2::*}%です!"
- command /addmap <text>:
- usage: &c/addmap <マップ名>
- permission: tag.map.add
- trigger:
- set {_player} to player
- {_player} is "zZjurijuriZz"
- if arg 1 is set:
- set {map::%arg 1%} to location of player
- message "&aマップ登録をしました。"
- command /maps:
- permission: tag.map.view
- trigger:
- message "%{map::*}%"
- message "&a合計で%amount of {map::*}%個マップがあります。"
- command /random:
- executable by: console
- trigger:
- set {map} to random element of {map::*}
- loop {play.2::*}:
- teleport loop-value to {map}
- execute console command "playsound minecraft:entity.enderdragon_fireball.explode master @a"
- wait 4 tick
- teleport {oni} and {oni2} to {spawn}
- wait 20 seconds
- broadcast "&b&l鬼が解放されました!"
- execute console command "playsound minecraft:entity.enderdragon.flap master @a ~ ~ ~ 1 2 1"
- teleport {oni} and {oni2} to {map}
- command /delmap:
- permission: tag.map.delete
- trigger:
- message "ランダムな座標を削除します。"
- loop {map::*}:
- set {_delete} to random element of {map::*}
- remove {_delete} from {map::*}
- command /firstspawn:
- permission: tag.spawn
- trigger:
- set {spawn} to location of player
- on quit:
- if {oni.%player%} is true:
- execute console command "replaceitem entity %player% slot.armor.head air"
- execute console command "nte player %player% prefix &f"
- set {_name} to player
- remove {_name} from {play.2::*}
- delete {oni.%player%}
- execute console command "scoreboard players tag %player% remove oni"
- execute console command "scoreboard players reset %player%"
- broadcast "&c&l鬼の%player%さんが抜けてしまったため&a&l再抽選&c&lを行います。"
- execute console command "playsound minecraft:ui.button.click master @a ~ ~ ~ 1 2 1"
- wait 2 seconds
- loop {play.2::*}:
- wait 1 tick
- set {oni} to random player of {play.2::*}
- set {oni.%{oni}%} to true
- execute console command "replaceitem entity %{oni}% slot.armor.head minecraft:wool 1 14 {ench:[{id:10,lvl:1}]}"
- execute console command "scoreboard players tag %{oni}% add oni"
- broadcast "&b&l%{oni}%さんが鬼になりました!"
- execute console command "nte player %{oni}% prefix &4"
- execute console command "playsound minecraft:ui.button.click master @a ~ ~ ~ 1 2 1"
- stop
- else:
- execute console command "nte player %player% prefix &f"
- set {_name} to player
- remove {_name} from {play.2::*}
- delete {play.%player%}
- command /setcoin <offline player> <integer>:
- permission: sk.setcoin
- trigger:
- set {_player} to player
- {_player} is "zZjurijuriZz"
- set {coin.%arg 1%} to arg 2
- message "&a%arg 1%のコインを%arg 2%に設定しました。"
- on left click on a sign:
- line 1 is "exchange"
- line 2 is "coin"
- cancel event
- set line 1 to "&1右クリックでコインと"
- set line 2 to "&1エメラルドを交換"
- set line 4 to "&1エメ一個で100コイン"
- on right click on a sign:
- line 1 is "&1右クリックでコインと"
- line 2 is "&1エメラルドを交換"
- if player's tool is air:
- if {coin.%player%} >= 100:
- remove 100 from {coin.%player%}
- message "&a交換しました!エメラルドをもって右クリックすると100コインに戻ります!"
- give hidden enchant emerald of Looting 1 named "&a100コイン" to player
- stop
- if {coin.%player%} < 100:
- message "&cコインが足りないです!"
- stop
- if player's tool is emerald:
- wait 1 tick
- remove emerald from player
- add 100 to {coin.%player%}
- message "&a交換しました!所持金が100コイン増えました!"
- stop
- on drop:
- cancel event
- command /addvote:
- executable by: console
- trigger:
- add 1 to {voted}
- command /votecount:
- permission: skript.vote.count
- trigger:
- message "&a%{voted}%回投票されています。"
- every 10 minutes:
- broadcast "&b[お知らせ]&6&lこの鯖が面白い!と思ったらぜひ/prvoteでこの鯖に投票して応援してください!"
- on left click on a sign:
- line 1 is "play"
- line 2 is "鬼ごっこ"
- cancel event
- set line 1 to "&1&lクリックで参加!"
- set line 2 to "&b鬼ごっこ"
- on right click on a sign:
- line 1 is "&1&lクリックで参加!"
- line 2 is "&b鬼ごっこ"
- cancel event
- execute player command "play"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement