Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /j <text> <number>:
- permission:sk.admin
- trigger:
- if arg-1 is "kyoujinn":
- set {kyoujinn.ninnzuu} to arg-2
- broadcast "》&a狂人の人数が%arg-2%人になりました。"
- stop
- if arg-1 is "zinrou":
- set {zinrou.ninnzuu} to arg-2
- broadcast "》&a人狼の人数が%arg-2%人になりました。"
- stop
- if arg-1 is "kyuuketuki":
- set {kyuuketuki.ninnzuu} to arg-2
- broadcast "》&a吸血鬼の人数が%arg-2%人になりました。"
- stop
- command /jreadyzinrou:
- permission:sk.admin
- trigger:
- if {zinrou.ninnzuu} is equal to 1:
- command "/clear @a[team=sannka]"
- command "/scoreboard teams join mura @a[team=sannka]"
- wait 2 ticks
- command "/scoreboard teams join zinrou @r[team=mura]"
- stop
- if {zinrou.ninnzuu} is equal to 2:
- command "/clear @a[team=sannka]"
- command "/scoreboard teams join mura @a[team=sannka]"
- wait 2 ticks
- command "/scoreboard teams join zinrou @r[team=mura,c=2]"
- stop
- if {zinrou.ninnzuu} is equal to 3:
- command "/clear @a[team=sannka]"
- command "/scoreboard teams join mura @a[team=sannka]"
- wait 2 ticks
- command "/scoreboard teams join zinrou @r[team=mura,c=3]"
- stop
- if {zinrou.ninnzuu} is equal to 4:
- command "/clear @a[team=sannka]"
- command "/scoreboard teams join mura @a[team=sannka]"
- wait 2 ticks
- command "/scoreboard teams join zinrou @r[team=mura,c=4]"
- stop
- if {zinrou.ninnzuu} is equal to 5:
- command "/clear @a[team=sannka]"
- command "/scoreboard teams join mura @a[team=sannka]"
- wait 2 ticks
- command "/scoreboard teams join zinrou @r[team=mura,c=5]"
- stop
- command /jreadykyoujinn:
- permission:sk.admin
- trigger:
- if {kyoujinn.ninnzuu} is equal to 1:
- command "/clear @a[team=sannka]"
- command "/scoreboard teams join mura @a[team=sannka]"
- wait 2 ticks
- command "/scoreboard teams join kyoujinn @r[team=mura]"
- stop
- if {kyoujinn.ninnzuu} is equal to 2:
- command "/clear @a[team=sannka]"
- command "/scoreboard teams join mura @a[team=sannka]"
- wait 2 ticks
- command "/scoreboard teams join kyoujinn @r[team=mura,c=2]"
- stop
- if {kyoujinn.ninnzuu} is equal to 3:
- command "/clear @a[team=sannka]"
- command "/scoreboard teams join mura @a[team=sannka]"
- wait 2 ticks
- command "/scoreboard teams join kyoujinn @r[team=mura,c=3]"
- stop
- command /jreadykyuuketuki:
- permission:sk.admin
- trigger:
- if {kyuuketuki.ninnzuu} is equal to 1:
- command "/clear @a[team=sannka]"
- wait 2 ticks
- command "/scoreboard teams join kyuuketuki @r[team=mura]"
- stop
- if {kyuuketuki.ninnzuu} is greater than 1:
- broadcast "&4Error>吸血鬼の人数を1人もしくは0人にしてください。"
- broadcast "&e30秒後ゲームをリセットします。"
- wait 30 seconds
- command "/jreset"
- stop
- #初期設定
- command /jsetting:
- permission:sk.admin
- trigger:
- set {j} to false
- set {nosannka} to false
- message "set"
- command "/scoreboard teams add mura"
- command "/scoreboard teams add kyoujinn"
- command "/scoreboard teams add sannka"
- command "/scoreboard teams add zinrou"
- command "/scoreboard teams add kyuuketuki"
- command "/scoreboard teams option sannka color yellow"
- command "/scoreboard teams option mura color yellow"
- command "/scoreboard teams option kyoujinn color yellow"
- command "/scoreboard teams option zinrou color yellow"
- command "/scoreboard teams option kyuuketuki color yellow"
- command "/scoreboard teams option mura nametagVisibility never"
- command "/scoreboard teams option kyuuketuki nametagVisibility never"
- command "/scoreboard teams option kyoujinn nametagVisibility never"
- command "/scoreboard teams option zinrou nametagVisibility hideForOtherTeams"
- command "/scoreboard teams option mura seeFriendlyInvisibles false"
- command "/scoreboard teams option kyoujinn seeFriendlyInvisibles false"
- command "/scoreboard objectives add day dummy"
- command "/gamerule announceAdvancements false"
- command "/gamerule keepInventory true"
- command "/gamerule commandBlockOutput false"
- command "/gamerule doMobSpawn false"
- command "/scoreboard objectives add shibou dummy"
- command "/gamerule showdeathmessage false"
- on rightclick holding a armor stand:
- if {jday} is "night":
- name of held item contains "騎士の祈り"
- execute console command "/effect %player% 11 1000000 255 true"
- execute console command "/clear %player% armor_stand 0 1"
- execute console command "/execute %player% ~ ~ ~ playsound minecraft:block.anvil.destroy ambient %player%"
- send "&6騎士の祈りを使用しました。"
- on rightclick holding a armor stand:
- if {jday} is "hiru":
- name of held item contains "騎士の祈り"
- send "&c昼の間は使用できません。"
- on rightclick holding a armor stand:
- if {%player%.zinrou} is true:
- name of held item contains "騎士の祈り"
- wait 1 second
- execute console command "/effect %player% 11 0 0 true"
- execute console command "/clear %player% armor_stand 0 1"
- message "&c人狼はこのアイテムを使用できません。"
- on rightclick holding a ender crystal:
- if {%player%.kyoujinn} is true:
- name of held item contains "共犯者の目"
- execute console command "/clear %player% end_crystal 0 1"
- send "&4人狼は[%{zinrou::*}%]です。"
- on rightclick holding a ender crystal:
- if {%player%.kyoujinn} is false:
- name of held item contains "共犯者の目"
- message "あなたは狂人ではないため人狼を見ることはできません。"
- execute console command "/clear %player% end_crystal 0 1"
- on rightclick with red dye:
- if {j} is false:
- if {nosannka} is false:
- if {waitjoin.%player%} is false:
- execute console command "/scoreboard teams join sannka %player%"
- execute console command "/execute %player% ~ ~ ~ /playsound minecraft:block.dispenser.dispense ambient %player% ~ ~ ~ 2 1"
- set {%player%.sannka} to true
- broadcast "》&e%player%さんが人狼RPGに参加しました!"
- command "/clear %player% minecraft:dye"
- add 1 to {sannka.ninnzuu}
- wait 2 ticks
- set slot 4 of player to gray dye
- set {waitjoin.%player%} to true
- wait 1.5 seconds
- set {waitjoin.%player%} to false
- on join:
- set {waitjoin.%player%} to false
- set {%player%.sannka} to false
- command "/scoreboard teams leave %player%"
- if {j} is false:
- if player is not op:
- if {j2} is false:
- command "/clear %player%"
- wait 2 ticks
- set slot 4 of player to red dye
- on rightclick with gray dye:
- if {j} is false:
- if {nosannka} is false:
- if {waitjoin.%player%} is false:
- execute console command "/scoreboard teams leave %player%"
- execute console command "/execute %player% ~ ~ ~ /playsound minecraft:block.dispenser.dispense ambient %player% ~ ~ ~ 2 1"
- set {%player%.sannka} to false
- broadcast "&7》%player%さんが人狼の参加を拒否しました。"
- remove 1 from {sannka.ninnzuu}
- command "/clear %player% minecraft:dye"
- wait 2 ticks
- set slot 4 of player to red dye
- set {waitjoin.%player%} to true
- wait 1.5 seconds
- set {waitjoin.%player%} to false
- on rightclick holding a gold nugget:
- if {j} is true:
- name of held item contains "プロビデンスの眼光"
- execute console command "/effect @a minecraft:glowing 30 1"
- command "/effect %player% minecraft:glowing 0 0"
- execute console command "/clear %player% minecraft:gold_nugget 0 1"
- command "/effect @a[score_shibou_min=1] clear"
- message "プロビデンスの眼光を使用しました。"
- loop all players:
- if {%loop-player%.shibou} is true:
- command "/effect %loop-player% minecraft:glowing 0 0"
- on damage:
- attacker is a player
- if attacker is holding diamond:
- if {jday} is "night":
- if name of tool of attacker is "占いの権利":
- cancel event
- command "/clear %attacker% minecraft:diamond 0 1"
- if {%victim%.mura} is true:
- send "》&a%victim%さんは村人です。" to attacker
- stop
- if {%victim%.kyoujinn} is true:
- send "》&a%victim%さんは村人です。" to attacker
- stop
- if {%victim%.zinrou} is true:
- send "》&c%victim%さんは人狼です。" to attacker
- stop
- if {%victim%.kyuuketuki} is true:
- send "》&5%victim%さんは吸血鬼です。" to attacker
- stop
- on damage:
- attacker is a player
- if attacker is holding diamond:
- if {jday} is "hiru":
- if name of tool of attacker is "占いの権利":
- cancel event
- send "&c昼の間は使用できません。"
- #吸血鬼のやつ
- on damage:
- attacker is a player
- if attacker's held item is nether star:
- if {j} is true:
- if {%victim%.kyuuketuki} is false:
- cancel event
- command "/clear %attacker% minecraft:nether_star 0 1"
- send "???>%victim%は&5吸血鬼&fではないようだ" to attacker
- on damage:
- attacker is a player
- if attacker's held item is nether star:
- if {j} is true:
- if {%victim%.kyuuketuki} is true:
- command "/clear %attacker% minecraft:nether_star 0 1"
- command "/kill %victim%"
- command "/execute %victim% ~ ~ ~ particle snowballpoof ~ ~ ~ 1 1 1 1 80"
- wait 5 seconds
- send "&4ーあなたは%attacker%に殺された。ー" to victim
- teleport victim to {jspawn}
- on damage:
- attacker is a player
- if attacker is holding snowball:
- command "/effect %victim% minecraft:slowness 10 200"
- command "/effect %victim% minecraft:blindness 10 255"
- command "/effect %victim% minecraft:night_vision 10 255"
- command "/execute %victim% ~ ~ ~ particle snowballpoof ~ ~ ~ 1 1 1 1 80"
- command "/execute %victim% ~ ~ ~ playsound minecraft:entity.firework.twinkle ambient %attacker%"
- command "/execute %victim% ~ ~ ~ playsound minecraft:entity.firework.twinkle ambient %victim%"
- every 1 second:
- if {j} is true:
- if {jday} is "night":
- remove 1 from {jnight}
- #昼になる
- every 1 second:
- if {j} is true:
- if {jnight} is less than 0:
- set {jday} to "hiru"
- wait 2 ticks
- set {jnight} to 90
- command "/playsound minecraft:block.chest.open ambient @a"
- command "/time set 1200"
- command "/kill @e[type=skeleton]"
- wait 2 ticks
- set {jmute} to false
- command "/effect @a 11 0 0 true"
- loop all players:
- send title "&c朝になりました&e☀" with subtitle "&6&l~%{jdate}%日目~" to loop-player
- command "/effect %loop-player% minecraft:resistance 0 0 true"
- every 1 second:
- if {j} is true:
- if {jhiru} is equal to 21:
- command "/time set 12500"
- #夜になる
- every 1 second:
- if {j} is true:
- if {jhiru} is less than 0:
- set {jday} to "night"
- wait 2 ticks
- set {jhiru} to 50
- set {jmute} to true
- add 1 to {jdate}
- command "/scoreboard players add @e[type=armor_stand,name=day] day 1"
- wait 2 ticks
- command "/execute @a ~ ~ ~ /playsound minecraft:entity.wolf.howl master @a ~ ~ ~"
- command "/setblock -36 63 -999 minecraft:redstone_block"
- command "/time set 18500"
- loop all players:
- send title "&1&l夜になりました&e&l☽" with subtitle "&6&l~%{jdate}%日目~" to loop-player
- if {%loop-player%.kyuuketuki} is true:
- command "/effect %loop-player% minecraft:resistance 200 150 true"
- #すけだす
- every 40 seconds:
- if {j} is true:
- if {jday} is "night":
- command "/setblock -36 63 -999 minecraft:redstone_block"
- every 1 second:
- if {j} is true:
- if {jday} is "hiru":
- remove 1 from {jhiru}
- command /co <text>:
- usage:/co [mura/kyoujinn/jinrou/kyuuketuki]
- trigger:
- if {j} is true:
- if arg-1 is "mura":
- set {co.%player%} to "&a[CO村人]"
- message "COしました。"
- stop
- if arg-1 is "kyoujinn":
- set {co.%player%} to "&7[CO狂人]"
- broadcast "CO≫%player%さんが&7[狂人]&fをCOしました。"
- stop
- if arg-1 is "jinrou":
- set {co.%player%} to "&4[CO人狼]"
- broadcast "CO≫%player%さんが&4[人狼]&fをCOしました。"
- stop
- if arg-1 is "kyuuketuki":
- set {co.%player%} to "&5[CO吸血鬼]"
- broadcast "CO≫%player%さんが&5[吸血鬼]&fをCOしました。"
- stop
- if {j2} is true:
- if arg-1 is "mura":
- set {co.%player%} to "&a[CO村人]"
- message "COしました。"
- stop
- if arg-1 is "kyoujinn":
- set {co.%player%} to "&7[CO狂人]"
- broadcast "CO≫%player%さんが&7[狂人]&fをCOしました。"
- stop
- if arg-1 is "jinrou":
- set {co.%player%} to "&4[CO人狼]"
- broadcast "CO≫%player%さんが&4[人狼]&fをCOしました。"
- stop
- if arg-1 is "kyuuketuki":
- message "このモードでは吸血鬼はありません。"
- on command "/co":
- if {j} is false:
- if {j2} is false:
- message "試合中のみ使用可能です。"
- on first join:
- set {%player%.chatmute} to false
- command /chatmute <player> <text>:
- permission:sk.admin
- trigger:
- if arg-2 is "on":
- set {%arg-1%.chatmute} to true
- stop
- if arg-2 is "no":
- set {%arg-1%.chatmute} to false
- stop
- #ちゃっとけい
- on join:
- if {j} is false:
- if {j2} is false:
- loop all players:
- if {%player%.chatmute} is not set:
- set {%player%.chatmute} to false
- if {%player%.shibou} is not set:
- set {%player%.shibou} to false
- on chat:
- if {jmute} is false:
- if {%player%.chatmute} is false:
- if {jday} is "hiru":
- if {%player%.shibou} is false:
- cancel event
- loop all players:
- command "/execute %loop-player% ~ ~ ~ /playsound minecraft:ui.button.click ambient %loop-player% ~ ~ ~ 20 2"
- broadcast "%{co.%player%}%&c%player%&e≫&b%message%"
- on chat:
- if {j} is true:
- if {jmute} is true:
- if {%player%.chatmute} is true:
- cancel event
- on chat:
- if {jday} is "night":
- if {%player%.shibou} is false:
- cancel event
- message "&9-今は夜のため会話はできません。-"
- on chat:
- cancel event
- if {%player%.shibou} is true:
- loop all players:
- if {%loop-player%.shibou} is true:
- if {j} is true:
- send "&a[観戦]&b%message%" to loop-player
- on death:
- if victim is not player:
- chance of 35%:
- give emerald to attacker
- on death:
- if victim is not player:
- chance of 5%:
- give emerald to attacker
- send "&6ボーナスエメラルド+1" to attacker
- command /rename <text>:
- permission: sk.admin
- trigger:
- set held item's name to "%arg-1%"
- send "&c>Rename: %arg-1%"
- stop
- on walking on obsidian:
- block under the event-block is light green wool:
- if {j} is false:
- if {jnot} is false:
- set {%player%.mura2} to true
- set {%player%.mura} to true
- add "%player%" to {mura::*}
- message "&e》あなたの役職は[&a&l村人&e]です。"
- set {%player%.job} to "&a[村人]"
- add 1 to {mura.ninnzuu}
- teleport player to {jspawn}
- on walking on obsidian:
- block under the event-block is purple wool:
- if {j} is false:
- if {jnot} is false:
- set {%player%.kyoujinn} to true
- set {%player%.kyoujinn2} to true
- add "%player%" to {kyoujinn::*}
- message "&e》あなたの役職は[&7&l狂人&e]です。"
- set {%player%.job} to "&7[狂人]"
- teleport player to {jspawn}
- on walking on obsidian:
- block under the event-block is red wool:
- if {j} is false:
- if {jnot} is false:
- set {%player%.zinrou} to true
- set {%player%.zinrou2} to true
- add "%player%" to {zinrou::*}
- wait 2 ticks
- message "&e》あなたの役職は[&4&l人狼&e]です。"
- set {%player%.job} to "&4[人狼]"
- message "&4仲間一覧:%{zinrou::*}%"
- message "昼の間のみ/jc <msg> で人狼のみの会話が可能"
- teleport player to {jspawn}
- on walking on obsidian:
- block under the event-block is black wool:
- if {j} is false:
- if {jnot} is false:
- set {%player%.kyuuketuki} to true
- set {%player%.kyuuketuki2} to true
- add "%player%" to {kyuuketuki::*}
- message "&e》あなたの役職は[&5&l吸血鬼&e]です。"
- set {%player%.job} to "&5[吸血鬼]"
- teleport player to {jspawn}
- every 80 second:
- loop all players:
- if {%loop-player%.mura} is true:
- send "&eあなたの役職は「&a村人&e」です。" to loop-player
- every 80 second:
- loop all players:
- if {%loop-player%.kyoujinn} is true:
- send "&eあなたの役職は「7狂人&e」です。" to loop-player
- send "SHOPの共犯者の目を使うと今生きている人狼を確認できます。" to loop-player
- every 80 second:
- loop all players:
- if {%loop-player%.kyuuketuki} is true:
- send "&eあなたの役職は「&5吸血鬼&e」です。" to loop-player
- command /w:
- trigger:
- message "&4不正防止のため使用できません。"
- command /tell:
- trigger:
- message "&4不正防止のため使用できません。"
- command /t:
- trigger:
- message "&4不正防止のため使用できません。"
- command /ch:
- trigger:
- message "&4不正防止のため使用できません。"
- command /lc:
- trigger:
- message "&4不正防止のため使用できません。"
- command /lunachat:
- trigger:
- message "&4不正防止のため使用できません。"
- on command "/lunachat:w":
- message "&4不正防止のため使用できません。"
- cancel event
- on command "/lunachat:t":
- message "&4不正防止のため使用できません。"
- cancel event
- on command "/lunachat:tell":
- message "&4不正防止のため使用できません。"
- cancel event
- on command "/lunachat:msg":
- message "&4不正防止のため使用できません。"
- cancel event
- on command "/lunachat:m":
- message "&4不正防止のため使用できません。"
- cancel event
- on command "/lunachat:lunachat w":
- cancel event
- message "&4不正防止のため使用できません。"
- on command "/lunachat:lunachat m":
- cancel event
- message "&4不正防止のため使用できません。"
- on command "/lunachat:lunachat t":
- cancel event
- message "&4不正防止のため使用できません。"
- on command "/lunachat:lunachat tell":
- cancel event
- message "&4不正防止のため使用できません。"
- on command "/lunachat:lunachat msg":
- cancel event
- message "&4不正防止のため使用できません。"
- command /jtell <player> <text>:
- trigger:
- send "&7%player%≫%arg-2%" to arg-1
- send "&7%player%≫%arg-2%" to player
- send "&7%player% used jtell msg:%arg-2%" to ops
- on quit:
- if {%player%.mura} is true:
- remove 1 from {mura.ninnzuu}
- set {%player%.mura} to false
- stop
- if {%player%.kyuuketuki} is true:
- remove 1 from {kyuuketuki.ninnzuu}
- set {%player%.kyuuketuki} to false
- stop
- if {%player%.zinrou} is true:
- remove 1 from {zinrou.ninnzuu}
- set {%player%.zinrou} to false
- stop
- if {%player%.kyoujinn} is true:
- remove 1 from {kyoujinn.ninnzuu}
- set {%player%.kyoujinn} to false
- stop
- on quit:
- set player's tab list name to "%player%"
- command /tabnick [<player>] [<text>]:
- permission: skript.admin
- trigger:
- if arg 1 or arg 2 is not set:
- message "&a&o/tabnick &e(player) &5(text)"
- stop
- if arg 1 is set:
- if arg 2 is "reset" or "delete" or "remove":
- set arg 1's tab list name to "%arg 1%"
- message "&e%player%のTabのニックネームをリセットしました"
- stop
- if arg 1 is set:
- if arg 2 is set:
- set arg 1's tab list name to "%colored arg-2%"
- message "&e%player%&6のtabnickを%arg 2%&6に変更しました"
- #死亡したとき
- on death:
- if {j} is true:
- if {%victim%.mura} is true:
- remove 1 from {mura.ninnzuu}
- set {%victim%.mura} to false
- command "/gamemode 3 %victim%"
- wait 3 seconds
- teleport victim to {jspawn}
- command "/scoreboard players set %victim% shibou 0"
- set {%victim%.shibou} to true
- send "&4???≫あなたは%attacker%に殺されたようだ。" to victim
- stop
- if {%victim%.kyuuketuki} is true:
- remove 1 from {kyuuketuki.ninnzuu}
- set {%victim%.kyuuketuki} to false
- command "/gamemode 3 %victim%"
- wait 3 seconds
- teleport player to {jspawn}
- send "&4???≫あなたは%attacker%に殺されたようだ。" to victim
- command "/scoreboard players set %victim% shibou 1"
- set {%victim%.shibou} to true
- stop
- if {%victim%.zinrou} is true:
- remove 1 from {zinrou.ninnzuu}
- set {%victim%.zinrou} to false
- command "/gamemode 3 %victim%"
- wait 3 seconds
- teleport player to {jspawn}
- send "&4???≫あなたは%attacker%に殺されたようだ。" to victim
- command "/scoreboard players set %victim% shibou 1"
- set {%victim%.shibou} to true
- stop
- if {%victim%.kyoujinn} is true:
- remove 1 from {kyoujinn.ninnzuu}
- set {%victim%.kyoujinn} to false
- command "/gamemode 3 %victim%"
- teleport player to {jspawn}
- send "&4???≫あなたは%attacker%に殺されたようだ。" to victim
- command "/scoreboard players set %victim% shibou 1"
- set {%victim%.shibou} to true
- stop
- on quit:
- set {%player%.shibou} to false
- on death of player:
- force event-player to respawn
- on death:
- set {%player%.chatmute} to true
- every 2 seconds:
- if {j} is true:
- if {j} is true:
- if {zinrou.ninnzuu} is less than 1:
- if {kyuuketuki.ninnzuu} is less than 1:
- broadcast "》&6人狼が消滅したため&a村人陣営&6が勝利しました。"
- command "/execute @a ~ ~ ~ /playsound minecraft:ui.toast.challenge_complete ambient @a"
- broadcast "&a村人:[%{mura::*}%]"
- broadcast "&7狂人:[%{kyoujinn::*}%]"
- broadcast "&c人狼:[%{zinrou::*}%]"
- broadcast "&5吸血鬼:[%{kyuuketuki::*}%]"
- command "/jreset"
- loop all players:
- send title "~&a&l村人陣営の勝利~" with subtitle "ゲーム終了" to loop-player
- add 30 to {%loop-player%.coin}
- if {%loop-player%.rank} is "MVP":
- add 10 to {%loop-player%.coin}
- if {%loop-player%.mura2} is true:
- add 1 to {%loop-player%.win}
- add 1 to {%loop-player%.mura.win}
- add 1 to {murawin}
- add 50 to {%loop-player%.coin}
- stop
- if {mura.ninnzuu} is less than 1:
- if {kyuuketuki.ninnzuu} is less than 1:
- broadcast "》&6村人が消滅したので、&4人狼陣営&6が勝利しました。"
- broadcast "&a村人:[%{mura::*}%]"
- broadcast "&7狂人:[%{kyoujinn::*}%]"
- broadcast "&c人狼:[%{zinrou::*}%]"
- broadcast "&5吸血鬼:[%{kyuuketuki::*}%]"
- command "/jreset"
- command "/execute @a ~ ~ ~ /playsound minecraft:entity.wolf.howl master @a ~ ~ ~"
- loop all players:
- send title "~&4&l人狼陣営の勝利~" with subtitle "ゲーム終了" to loop-player
- add 30 to {%loop-player%.coin}
- if {%loop-player%.rank} is "MVP":
- add 10 to {%loop-player%.coin}
- if {%loop-player%.zinrou2} is true:
- add 1 to {%loop-player%.win}
- add 1 to {%loop-player%.zinrou.win}
- add 1 to {zinrouwin}
- add 50 to {%loop-player%.coin}
- stop
- if {zinrou.ninnzuu} is less than 1:
- if {kyuuketuki.ninnzuu} is greater than 0:
- broadcast "》&6人狼は消滅したが、吸血鬼が生き残っていたため、&5吸血鬼&6が勝利しました"
- command "/execute @a ~ ~ ~ /playsound minecraft:entity.bat.death ambient @a"
- broadcast "&a村人:[%{mura::*}%]"
- broadcast "&7狂人:[%{kyoujinn::*}%]"
- broadcast "&c人狼:[%{zinrou::*}%]"
- broadcast "&5吸血鬼:[%{kyuuketuki::*}%]"
- command "/jreset"
- loop all players:
- send title "&5&l~吸血鬼の勝利~" with subtitle "ゲーム終了" to loop-player
- add 30 to {%loop-player%.coin}
- if {%loop-player%.rank} is "MVP":
- add 10 to {%loop-player%.coin}
- if {%loop-player%.kyuuketuki2} is true:
- add 1 to {%loop-player%.win}
- add 1 to {%loop-player%.kyuuketuki.win}
- add 1 to {kyuuketukiwin}
- add 50 to {%loop-player%.coin}
- stop
- if {mura.ninnzuu} is less than 1:
- if {kyuuketuki.ninnzuu} is greater than 0:
- broadcast "》&6村人がいなくなったが、吸血鬼が生き残っていたため、&5吸血鬼&6が勝利しました。"
- command "/execute @a ~ ~ ~ /playsound minecraft:entity.bat.death ambient @a"
- broadcast "&a村人:[%{mura::*}%]"
- broadcast "&7狂人:[%{kyoujinn::*}%]"
- broadcast "&c人狼:[%{zinrou::*}%]"
- broadcast "&5吸血鬼:[%{kyuuketuki::*}%]"
- command "/jreset"
- loop all players:
- send title "~&5&l吸血鬼の勝利~" with subtitle "ゲーム終了" to loop-player
- add 30 to {%loop-player%.coin}
- if {%loop-player%.rank} is "MVP":
- add 10 to {%loop-player%.coin}
- if {%loop-player%.kyuuketuki2} is true:
- add 1 to {%loop-player%.win}
- add 1 to {%loop-player%.kyuuketuki.win}
- add 1 to {kyuuketukiwin}
- add 50 to {%loop-player%.coin}
- stop
- on death:
- if victim is a player:
- add 1 to {%attacker%.kill}
- add 1 to {%victim%.death}
- on death:
- if victim is not player:
- add 1 to {%attacker%.sukekill}
- command /jstats:
- trigger:
- send "&6-------&c人狼RPGStats&6-------"
- send "殺した回数:%{%player%.kill}%"
- send "死んだ回数:%{%player%.death}%"
- send "スケルトンを殺した数:%{%player%.sukekill}%"
- send "勝った回数:%{%player%.win}%"
- send "村人で勝った回数:%{%player%.mura.win}%"
- send "人狼で勝った回数:%{%player%.zinrou.win}%"
- send "吸血鬼で勝った回数:%{%player%.kyuuketuki.win}%"
- send "あなたのXP:%{%player%.coin}%"
- send "次のレベルまでに必要なXP:%{needxp.%player%} - {%player%.coin}%"
- send "基準xp:%{needxp.%player%}%"
- send "あなたのレベル:%{%player%.level}%"
- on quit:
- set {%player%.mura2} to false
- set {%player%.kyoujinn2} to false
- set {%player%.zinrou2} to false
- set {%player%.kyuuketuki2} to false
- on join:
- set {co.%player%} to "[Lobby]"
- teleport player to {j.lobby}
- message "&eこの鯖は人狼ゲームをプレイできるサーバーです。"
- message "http://plsk.net/tctjinrou"
- message "このURLにルールなどの説明があります。"
- broadcast "&e[&c+&e]%player%"
- wait 4 ticks
- if {j} is true:
- set {%player%.shibou} to true
- message "試合中です。終了までのお待ちください。&7[mode:&cPVP人狼&7]"
- message "観戦チャットに参加されました。"
- command "/gamemode 3 %player%"
- teleport player to {jspawn}
- if {j2} is true:
- set {%player%.shibou} to true
- message "試合中です。終了までのお待ちください。&7[mode:&cPVP人狼&7]"
- message "観戦チャットに参加されました。"
- command "/gamemode 3 %player%"
- teleport player to {jspawn}
- on right click on a player:
- send "&cPlayername:&a[%{%clicked entity%.level}%]&b%clicked entity%" to player
- command /jreset:
- permission:sk.admin
- trigger:
- command "/kill @e[type=skeleton]"
- set {j} to false
- wait 2 ticks
- set {pvp} to false
- broadcast "》&eゲームをリセットします。"
- command "/clear @a"
- command "/gamemode 2 @a"
- command "/scoreboard teams leave @a"
- loop all players:
- teleport loop-player to {j.lobby}
- set {%loop-player%.shibou} to true
- set {%loop-player%.mura} to false
- set {%loop-player%.kyoujinn} to false
- set {%loop-player%.zinrou} to false
- set {%loop-player%.kyuuketuki} to false
- set {%loop-player%.mura2} to false
- set {%loop-player%.kyoujinn2} to false
- set {%loop-player%.zinrou2} to false
- set {%loop-player%.kyuuketuki2} to false
- set {jday} to "hiru"
- set {jhiru} to 0
- set {jnight} to 0
- set {jmute} to false
- set {jdate} to 0
- set {nosannka} to false
- command "/scoreboard players set %loop-player% shibou 0"
- command "/time set 1200"
- command "/kill @e[type=skeleton]"
- command "/effect @a clear"
- set {%loop-player%.chatmute} to false
- delete {mura::*}
- delete {kyoujinn::*}
- delete {zinrou::*}
- delete {kyuuketuki::*}
- set {mura.ninnzuu} to 0
- set {kyoujinn.ninnzuu} to 0
- set {zinrou.ninnzuu} to 0
- set {kyuuketuki.ninnzuu} to 0
- set {%loop-player%.shibou} to false
- set {j} to false
- set loop-player's tab list name to "%loop-player%"
- set slot 4 of loop-player to red dye
- set {%loop-player%.chatmute} to false
- command "/cmd on"
- set {%loop-player%.job} to "&8[なし]"
- wait 3 seconds
- teleport loop-player to {j.lobby}
- wait 2 ticks
- command "/easytp2 ROOYROOY test2"
- if {%loop-player%.autojoin} is true:
- set {%loop-player%.sannka} to true
- add 1 to {sannka.ninnzuu}
- command "/scoreboard teams join sannka %loop-player%"
- set slot 4 of loop-player to gray dye
- broadcast "》&eリセット終了!"
- every 2 minutes:
- broadcast "&a定期≫&6/jstats統計を確認できます。"
- every 220 seconds:
- broadcast "&e定期≫&a/island でMVPランクを獲得できます。"
- broadcast "&bMVPランクの特典は/rank で確認できます。"
- command /jlobby:
- permission:sk.admin
- trigger:
- set {j.lobby} to location of player
- command /jchecktp:
- permission:sk.admin
- trigger:
- command "/tp @a[team=mura] @e[type=armor_stand,name=muracheck]"
- command "/tp @a[team=kyoujinn] @e[type=armor_stand,name=kyoujinncheck]"
- command "/tp @a[team=zinrou] @e[type=armor_stand,name=zinroucheck]"
- command "/tp @a[team=kyuuketuki] @e[type=armor_stand,name=kyuuketukicheck]"
- #RANK
- #SHOPで暗号キーを教える
- command /rankbuy <number> <player>:
- usage:/rankbuy <購入するためのNUMBER>
- trigger:
- if arg-1 is 29392:
- if arg-2 is not set:
- set {%player%.rank} to "MVP"
- broadcast "&aRANK≫&6%player%さんがMVP RANKになりました。"
- add 100 to {%player%.coin}
- message "&a特典≫&e+100coin"
- stop
- if arg-2 is set:
- set {%arg-2%.rank} to "MVP"
- broadcast "&aRANK≫&6%arg-2%さんがMVP RANKになりました。"
- add 100 to {%arg-2%.coin}
- send "&a特典≫&e+100coin" to arg-2
- stop
- command /rank:
- trigger:
- message "&6---------------&a[MVPRANK]&6---------------"
- message "/autojoin コマンドが使用できます。"
- message "/hat コマンドを使用できます。"
- message "待機時間にプレイヤーを右クリックするとそのプレイヤーに乗ることができます。"
- message "ゲーム終了時にもらえるXPが少しだけ増えます。"
- message "接続制限人数を無視できます。(ISLAND の最大設定人数を超えてる場合は無理です。)"
- on join:
- if {j} is false:
- if {%player%.rank} is "MVP":
- if {%player%.autojoin} is true:
- if {j2} is false:
- set {%player%.autojoin} to true
- set {%player%.sannka} to true
- add 1 to {sannka.ninnzuu}
- broadcast "&bAutojoin》&e%player%さんが人狼RPGに参加しました!"
- command "/scoreboard teams join sannka %player%"
- set slot 4 of player to gray dye
- command /Autojoin <boolean>:
- trigger:
- if arg-1 is true:
- if {%player%.rank} is "MVP":
- message "&eAutojoinがonになりました"
- if {%player%.sannka} is false:
- set {%player%.autojoin} to true
- set {%player%.sannka} to true
- add 1 to {sannka.ninnzuu}
- broadcast "&bAutojoin》&e%player%さんが人狼RPGに参加しました!"
- set slot 4 of player to gray dye
- command "/scoreboard teams join sannka %player%"
- if arg-1 is false:
- if {%player%.rank} is "MVP":
- set {%player%.autojoin} to false
- message "&7AutojoinをOFFにしました。"
- if {%player%.sannka} is true:
- set {%player%.autojoin} to false
- set {%player%.sannka} to false
- remove 1 from {sannka.ninnzuu}
- command "/scoreboard teams leave %player%"
- broadcast "&bAutojoin》&7%player%さんが人狼の参加を拒否しました。"
- set slot 4 of player to red dye
- command /jspawn:
- permission:sk.admin
- trigger:
- set {jspawn} to location of player
- message "set"
- on command "/jstart":
- if {zinrou.ninnzuu} is less than 1:
- message "人狼の人数を設定してください。"
- cancel event
- on command "/jstart":
- if {sannka.ninnzuu} is less than 2:
- message "参加者が足りません。"
- cancel event
- command /jugokenai:
- permission:sk.admin
- trigger:
- loop all players:
- command "/effect %loop-player% minecraft:slowness 7 200"
- command "/effect %loop-player% minecraft:blindness 7 255"
- command /jstart:
- permission:sk.admin
- trigger:
- broadcast "&c人狼RPG》&eまもなく人狼RPGを開始します"
- command "/clear @a"
- command "/time set 1200"
- set {jday} to 0
- set {nosannka} to true
- command "/effect @a minecraft:invisibility 23 23"
- set {pvp} to true
- command "/jugokenai"
- wait 2 seconds
- command "/kill @e[type=skeleton]"
- command "/jreadyzinrou"
- command "/jreadykyoujinn"
- command "/jreadykyuuketuki"
- wait 3 seconds
- command "/jchecktp"
- wait 3 seconds
- broadcast "&6---------[役職]---------"
- broadcast "&7狂人:%{kyoujinn.ninnzuu}%人"
- broadcast "&c人狼:%{zinrou.ninnzuu}%人"
- broadcast "&5吸血鬼:%{kyuuketuki.ninnzuu}%人"
- broadcast "&a村人:%{mura.ninnzuu}%人"
- command "/setblock -36 63 -993 minecraft:redstone_block"
- wait 5 seconds
- broadcast "&e/co [mura/kyoujinn/zinrou/kyuuketuki]でCOできます"
- command "/effect @a minecraft:regeneration 10 100 true"
- command "/effect @a minecraft:saturation 10 100 true"
- set {jday} to "hiru"
- command "/effect @a minecraft:health_boost 10000 4 true"
- loop all players:
- set {sworddamage.%loop-player%} to 30
- set {sannka.ninnzuu} to 0
- send title "&4人狼RPGスタート!" with subtitle "もうすぐで夜になります。" to loop-player
- set {%loop-player%.sannka} to false
- set {jnight} to 90
- set {jhiru} to 10
- set {pvp} to true
- set {j} to true
- set loop-player's tab list name to "&r"
- set {co.%loop-player%} to "&f&r[COなし]"
- if {%loop-player%.zinrou} is true:
- loop 64 times:
- give a nether brick named "&c&l[大事!]&4人狼アイテム取引用" with lore "&c&l誰にも見せないように!" to loop-player
- on drop:
- event-item is a nether brick:
- cancel event
- on quit:
- if {%player%.mura} is true:
- set {%player%.mura} to false
- command "/scoreboard teams leave %player%"
- remove 1 from {mura.ninnzuu}
- stop
- if {%player%.kyoujinn} is true:
- set {%player%.kyoujinn} to false
- command "/scoreboard teams leave %player%"
- remove 1 from {kyoujinn.ninnzuu}
- stop
- if {%player%.zinrou} is true:
- set {%player%.zinrou} to false
- remove 1 from {kyoujinn.ninnzuu}
- command "/scoreboard teams leave %player%"
- stop
- if {%player%.kyuuketuki} is true:
- set {%player%.kyuuketuki} to false
- command "/scoreboard teams leave %player%"
- remove 1 from {kyoujinn.ninnzuu}
- stop
- command /pvp <boolean>:
- permission:sk.admin
- trigger:
- if arg-1 is true:
- set {pvp} to true
- message "PVPon"
- stop
- if arg-1 is false:
- set {pvp} to false
- message "pvpoff"
- on damage:
- if {pvp} is false:
- cancel event
- #棒 /give @a minecraft:stick 1 0 {HideFlags:63,AttributeModifiers:[{AttributeName:"generic.attackDamage",Name:"generic.attackDamage",Amount:2,Operation:0,UUIDLeast:969722,UUIDMost:470300}],display:{Name:"ただの棒"}}
- #剣 /give @a minecraft:wooden_sword 1 0 {HideFlags:63,AttributeModifiers:[{AttributeName:"generic.attackDamage",Name:"generic.attackDamage",Amount:3,Operation:0,UUIDLeast:129141,UUIDMost:845772}],Unbreakable:1,display:{Name:"スケ狩り剣"}}
- #助 /summon skeleton ~ ~1 ~ {CustomName:"スケさん",CustomNameVisible:1,HandItems:[{id:"minecraft:stick",Count:1b},{}],HandDropChances:[0.0F,0.085F],Attributes:[{Name:generic.maxHealth,Base:8},{Name:generic.attackDamage,Base:2}],Health:8.0f,DeathLootTable:"dasdas"}
- command /easytp <text>:
- permission:sk.admin
- trigger:
- teleport player to {a.%arg-1%.tp}
- send "&aTeleported..." to player
- command /easytpset <text>:
- permission:sk.admin
- trigger:
- if arg-1 is set:
- set {a.%arg-1%.tp} to location of player
- message "set"
- add "%arg-1%" to {easytp.list::*}
- command /easytp2 <player> <text>:
- permission:sk.admin
- trigger:
- teleport arg-1 to {a.%arg-2%.tp}
- send "&aTeleported..." to arg-1
- command /easytplist:
- permission:sk.admin
- trigger:
- message "%{easytp.list::*}%"
- command /maintenance <boolean>:
- permission: admin.close
- trigger:
- if arg 1 is true:
- loop all players:
- loop-player is not an op
- kick the loop-player due to "メンテナンスのため、OP以外参加することができません。"
- broadcast "&eメンテナンス開始!"
- broadcast "&b&lOPの人のみ参加できます。"
- set {metmode} to true
- if arg 1 is false:
- broadcast "&aメンテナンスを終了しました。"
- set {metmode} to false
- On Connect:
- if player is not an op:
- if {metmode} is true:
- kick the player due to "メンテナンス中の為、入れません。"
- every 80 second:
- loop all players:
- if {%loop-player%.zinrou} is true:
- send "&4人狼≫&4あなたの仲間:%{zinrou::*}%" to loop-player
- on command "/sk disable all":
- cancel event
- broadcast "&4%player%さんが/sk disable を使用しました!"
- set {jbancommand.%player%} to true
- set {ban.reason.%player%} to "Skriptを停止させた。"
- kick the player due to "&4あなたはこの鯖に入ることができません。Reason:%{ban.reason.%player%}%"
- command /pardon-jban <Offline player>:
- permission:sk.admin
- trigger:
- set {jban.%arg-1%} to false
- on connect:
- if {jban.%player%} is true:
- kick the player due to "&4あなたはこの鯖に入ることができません。Reason:%{ban.reason.%player%}%"
- command /jc <text>:
- trigger:
- if {j} is true:
- if {%player%.zinrou} is true:
- loop all players:
- if {%loop-player%.zinrou} is true:
- if {jday} is "hiru":
- send "[人狼チャット]&c%player%&e>&b%arg-1%" to loop-player
- stop
- if {jday} is "night":
- send "&4夜は実行できません。"
- stop
- if {j2} is true:
- if {%player%.zinrou} is true:
- loop all players:
- if {%loop-player%.zinrou} is true:
- send "[人狼チャット]&c%player%&e>&b%arg-1%" to loop-player
- on damage:
- if attacker is holding wooden sword:
- remove 1 from {sworddamage.%attacker%}
- set name of attacker's tool to "&r%{sworddamage.%attacker%}%/30"
- every second:
- loop all players:
- if {sworddamage.%loop-player%} is less than 1:
- command "/clear %loop-player% minecraft:wooden_sword 0 1"
- set {sworddamage.%loop-player%} to 30
- command /hennsuu1 <text> <text>:
- permission:sk.admin
- trigger:
- set {%arg-1%} to "%arg-2%"
- command /hennsuunumber1 <text> <number>:
- permission:sk.admin
- trigger:
- set {%arg-1%} to arg-2
- command /hennsuu2 <text> <text> <text>:
- permission:sk.admin
- trigger:
- set {%arg-1%.%arg-2%} to "%arg-3%"
- command /hennsuunumber2 <text> <text> <number>:
- permission:sk.admin
- trigger:
- set {%arg-1%.%arg-2%} to arg-3
- options:
- BeaconLore: &f
- TnTLore: &f
- BedLore: &f
- ObbyLore: &f
- SpruceLore: &f
- NBlockLore: &f
- DisLore: &f
- command /hat:
- trigger:
- if {%player%.rank} is "MVP":
- open chest with 3 rows named "&8Player Hats" to player
- format slot 10 of player with beacon named "&8[&bBeacon&8] &7Hat" with lore "{@BeaconLore}" to close then run [make player execute "hats %player% beacon"]
- format slot 11 of player with tnt named "&8[&cTNT&8] &7Hat" with lore "{@TnTLore}" to close then run [make player execute "hats %player% tnt"]
- format slot 12 of player with Rose Red named "&8[&f&lBED&8] &7Hat" with lore "{@BedLore}" to close then run [make player execute "hats %player% bed"]
- format slot 13 of player with dragon egg named "&8[&5&lDragon egg&8] &7Hat" with lore "{@ObbyLore}" to close then run [make player execute "hats %player% dragon"]
- format slot 14 of player with Slime block named "&8[&a&lSlime block&8] &7Hat" with lore "{@SpruceLore}" to close then run [make player execute "hats %player% Slime"]
- format slot 15 of player with note block named "&8[&eNote Block&8] &7Hat" with lore "{@NBlockLore}" to close then run [make player execute "hats %player% Noteblock"]
- format slot 16 of player with dispenser named "&8[&2&lDISPENSER&8] &7Hat" with lore "{@DisLore}" to close then run [make player execute "hats %player% dispenser"]
- if {%player%.rank} is not "MVP":
- message "&4このコマンドはMVPRANKのみ使用できます。"
- command "/sudo %player% /island"
- command /hats [<player>] [<text>]:
- executable by: players
- permission: essentials.hats
- permission message: &cYou don't have access to equip hats.
- trigger:
- if {%player%.rank} is "MVP":
- if arg-1 isn't set:
- send "&cIncorrect usage, Enter the players name and the hat you want."
- stop
- if arg-2 isn't set:
- send "&cIncorrect usage, Enter the hat you want to apply on the player."
- stop
- if arg-1 is set:
- if arg-2 is set:
- if arg-2 contains "beacon":
- send "&b(!) &7You have equipped the &bBeacon &7hat!"
- set helmet of player to beacon named "&r"
- stop
- if arg-2 contains "tnt":
- send "&b(!) &7You have equipped the &cTNT &7hat!"
- set helmet of player to tnt named "&r"
- stop
- if arg-2 contains "bed":
- send "&b(!) &7You have equipped the &f&lBed &r&7hat!"
- set helmet of player to bed named "&r"
- stop
- if arg-2 contains "dragon":
- send "&b(!) &7You have equipped the &5&lDragon egg &r&7hat!"
- set helmet of player to dragon egg named "&r"
- stop
- if arg-2 contains "Slime":
- send "&b(!) &7You have equipped the &a&lSlime block &r&7hat!"
- set helmet of player to Slime block named "&r"
- stop
- if arg-2 contains "noteblock":
- send "&b(!) &7You have equipped the &eNote Block &r&7hat!"
- set helmet of player to note block named "&r"
- stop
- if arg-2 contains "dispenser":
- send "&b(!) &7You have equipped the &2&lDISPENSER &r&7hat!"
- set helmet of player to dispenser named "&r"
- stop
- on inventory click:
- if helmet of player is a beacon or TNT or BED or Dragon egg or Slime block or NOTE BLOCK or DISPENSER:
- cancel event
- set helmet of player to air
- on inventory click:
- if player's inventory has a beacon named "&r":
- remove beacon named "&r" from player's inventory
- else:
- if player's inventory has a tnt named "&r":
- remove tnt named "&r" from player's inventory
- else:
- if player's inventory has a bed named "&r":
- remove bed named "&r" from player's inventory
- else:
- if player's inventory has dragon egg named "&r":
- remove obsidian named "&r" from player's inventory
- else:
- if player's inventory has slime block named "&r":
- remove spruce log named "&r" from player's inventory
- else:
- if player's inventory has a note block named "&r":
- remove note block named "&r" from player's inventory
- else:
- if player's inventory has a dispenser named "&r":
- remove dispenser named "&r" from player's inventory
- on rightclick on player:
- if {%player%.rank} is "MVP":
- if {j} is false:
- make player ride the clicked entity
- every 5 seconds:
- loop all players:
- if {needxp.%loop-player%} < {%loop-player%.coin}:
- add 1 to {%loop-player%.level}
- wait 1 tick
- send title "&6&lLevel up" with subtitle "&a&lNew level: &c&l%{%loop-player%.level}%" to loop-player
- command "/execute %loop-player% ~ ~ ~ /playsound minecraft:item.totem.use ambient %loop-player%"
- set {%loop-player%.coin} to 0
- broadcast "&e%loop-player% さんがレベルアップしました。(New level: &c%{%loop-player%.level}%&e)"
- set {needxp1.%loop-player%} to {needxp.%loop-player%} * 1.2
- set {needxp.%loop-player%} to {needxp1.%loop-player%}
- play sound "entity.firework.twinkle" with volume 0.5 and pitch 1 at loop-player
- on join:
- if {%player%.level} is not set:
- set {%player%.level} to 1
- add 50 to {%player%.coin}
- if {needxp.%player%} is not set:
- set {needxp.%player%} to 150
- every hour:
- loop all players:
- add 40 to {%loop-player%.coin}
- send "&eお疲れ様です。(+40XP)" to loop-player
- on command "/sk reload all":
- broadcast "&4[Jinrou-Game] &bシステムをリロードします..."
- on load:
- broadcast "&4[Jinrou-Game] &bリロード完了しました。"
- on command "/jstart":
- if {jnot} is true:
- cancel event
- message "/jmode 1を実行してください。"
- on command "/jreset2":
- if {jnot} is false:
- cancel event
- message "/jmode 2を実行してください。"
- on command "/jsetting":
- set {jnot} to false
- #PVP人狼
- command /jmode <number>:
- usage:/jmode 1=人狼RPG 2=PVP人狼
- permission:sk.admin
- trigger:
- if arg-1 is 1:
- set {jnot} to false
- broadcast "&eモードが「&4人狼RPG&e」になりました。"
- stop
- if arg-1 is 2:
- set {jnot} to true
- broadcast "&eモードが「&4PVP人狼&e」になりました。"
- stop
- on rightclick with red dye:
- if {j2} is false:
- if {nosannka} is false:
- if {waitjoin.%player%} is false:
- if {jnot} is true:
- execute console command "/scoreboard teams join sannka %player%"
- execute console command "/execute %player% ~ ~ ~ /playsound minecraft:block.dispenser.dispense ambient %player% ~ ~ ~ 2 1"
- set {%player%.sannka} to true
- broadcast "》&e%player%さんがPVP人狼に参加しました!"
- command "/clear %player% minecraft:dye"
- add 1 to {sannka.ninnzuu}
- wait 2 ticks
- set slot 4 of player to gray dye
- set {waitjoin.%player%} to true
- wait 1 second
- set {waitjoin.%player%} to false
- on rightclick with gray dye:
- if {j2} is false:
- if {nosannka} is false:
- if {waitjoin.%player%} is false:
- if {jnot} is true:
- execute console command "/scoreboard teams leave %player%"
- execute console command "/execute %player% ~ ~ ~ /playsound minecraft:block.dispenser.dispense ambient %player% ~ ~ ~ 2 1"
- set {%player%.sannka} to false
- broadcast "&7》%player%さんがPVP人狼の参加を拒否しました。"
- remove 1 from {sannka.ninnzuu}
- command "/clear %player% minecraft:dye"
- wait 2 ticks
- set slot 4 of player to red dye
- set {waitjoin.%player%} to true
- wait 1 seconds
- set {waitjoin.%player%} to false
- #ちゃっとけい
- on chat:
- if {j2} is true:
- if {jmute} is true:
- if {%player%.chatmute} is true:
- cancel event
- on chat:
- cancel event
- if {%player%.shibou} is true:
- loop all players:
- if {%loop-player%.shibou} is true:
- if {j2} is true:
- send "&a[観戦]&b%message%" to loop-player
- on walking on obsidian:
- block under the event-block is light green wool:
- if {j2} is false:
- if {jnot} is true:
- set {%player%.mura2} to true
- set {%player%.mura} to true
- add "%player%" to {mura::*}
- message "&e》あなたの役職は[&a&l村人&e]です。"
- set {%player%.job} to "&a[村人]"
- add 1 to {mura.ninnzuu}
- teleport player to {jspawn}
- on walking on obsidian:
- block under the event-block is purple wool:
- if {j2} is false:
- if {jnot} is true:
- set {%player%.kyoujinn} to true
- set {%player%.kyoujinn2} to true
- add "%player%" to {kyoujinn::*}
- message "&e》あなたの役職は[&7&l狂人&e]です。"
- set {%player%.job} to "&7[狂人]"
- teleport player to {jspawn}
- on walking on obsidian:
- block under the event-block is red wool:
- if {j2} is false:
- if {jnot} is true:
- set {%player%.zinrou} to true
- set {%player%.zinrou2} to true
- add "%player%" to {zinrou::*}
- wait 2 ticks
- message "&e》あなたの役職は[&4&l人狼&e]です。"
- set {%player%.job} to "&4[人狼]"
- message "&4仲間一覧:%{zinrou::*}%"
- message "&4[PVP人狼]&c/jc <msg> で人狼のみの会話が可能"
- teleport player to {jspawn}
- #死亡したとき
- on death:
- if {j2} is true:
- if {%victim%.mura} is true:
- remove 1 from {mura.ninnzuu}
- set {%victim%.mura} to false
- command "/gamemode 3 %victim%"
- wait 3 seconds
- teleport victim to {jspawn}
- command "/scoreboard players set %victim% shibou 0"
- set {%victim%.shibou} to true
- send "&4???≫あなたは%attacker%に殺されたようだ。" to victim
- stop
- if {%victim%.zinrou} is true:
- remove 1 from {zinrou.ninnzuu}
- set {%victim%.zinrou} to false
- command "/gamemode 3 %victim%"
- wait 3 seconds
- teleport player to {jspawn}
- send "&4???≫あなたは%attacker%に殺されたようだ。" to victim
- command "/scoreboard players set %victim% shibou 1"
- set {%victim%.shibou} to true
- stop
- if {%victim%.kyoujinn} is true:
- remove 1 from {kyoujinn.ninnzuu}
- set {%victim%.kyoujinn} to false
- command "/gamemode 3 %victim%"
- teleport player to {jspawn}
- send "&4???≫あなたは%attacker%に殺されたようだ。" to victim
- command "/scoreboard players set %victim% shibou 1"
- set {%victim%.shibou} to true
- stop
- every 2 seconds:
- if {j2} is true:
- if {j2} is true:
- if {zinrou.ninnzuu} is less than 1:
- if {kyuuketuki.ninnzuu} is less than 1:
- broadcast "》&6人狼が消滅したため&a村人陣営&6が勝利しました。"
- command "/execute @a ~ ~ ~ /playsound minecraft:ui.toast.challenge_complete ambient @a"
- broadcast "&a村人:[%{mura::*}%]"
- broadcast "&7狂人:[%{kyoujinn::*}%]"
- broadcast "&c人狼:[%{zinrou::*}%]"
- command "/jreset2"
- loop all players:
- send title "~&a&l村人陣営の勝利~" with subtitle "ゲーム終了" to loop-player
- add 30 to {%loop-player%.coin}
- if {%loop-player%.rank} is "MVP":
- add 10 to {%loop-player%.coin}
- if {%loop-player%.mura2} is true:
- add 1 to {%loop-player%.win}
- add 1 to {%loop-player%.mura.win}
- add 1 to {murawin}
- add 30 to {%loop-player%.coin}
- stop
- if {mura.ninnzuu} is less than 1:
- if {kyuuketuki.ninnzuu} is less than 1:
- broadcast "》&6村人が消滅したので、&4人狼陣営&6が勝利しました。"
- broadcast "&a村人:[%{mura::*}%]"
- broadcast "&7狂人:[%{kyoujinn::*}%]"
- broadcast "&c人狼:[%{zinrou::*}%]"
- command "/jreset2"
- command "/execute @a ~ ~ ~ /playsound minecraft:entity.wolf.howl master @a ~ ~ ~"
- loop all players:
- send title "~&4&l人狼陣営の勝利~" with subtitle "ゲーム終了" to loop-player
- add 30 to {%loop-player%.coin}
- if {%loop-player%.rank} is "MVP":
- add 10 to {%loop-player%.coin}
- if {%loop-player%.zinrou2} is true:
- add 1 to {%loop-player%.win}
- add 1 to {%loop-player%.zinrou.win}
- add 1 to {zinrouwin}
- add 30 to {%loop-player%.coin}
- stop
- command /jreset2:
- permission:sk.admin
- trigger:
- set {j2} to false
- wait 2 ticks
- set {pvp} to false
- broadcast "》&eゲームをリセットします。"
- command "/clear @a"
- command "/gamemode 2 @a"
- command "/scoreboard teams leave @a"
- loop all players:
- teleport loop-player to {j.lobby}
- set {%loop-player%.shibou} to true
- set {%loop-player%.mura} to false
- set {%loop-player%.kyoujinn} to false
- set {%loop-player%.zinrou} to false
- set {%loop-player%.kyuuketuki} to false
- set {%loop-player%.mura2} to false
- set {%loop-player%.kyoujinn2} to false
- set {%loop-player%.zinrou2} to false
- set {%loop-player%.kyuuketuki2} to false
- set {jday} to "hiru"
- set {jhiru} to 0
- set {jnight} to 0
- set {jmute} to false
- set {jdate} to 0
- set {nosannka} to false
- command "/scoreboard players set %loop-player% shibou 0"
- command "/time set 1200"
- command "/effect @a clear"
- set {%loop-player%.chatmute} to false
- delete {mura::*}
- delete {kyoujinn::*}
- delete {zinrou::*}
- delete {kyuuketuki::*}
- set {mura.ninnzuu} to 0
- set {kyoujinn.ninnzuu} to 0
- set {zinrou.ninnzuu} to 0
- set {kyuuketuki.ninnzuu} to 0
- set {%loop-player%.shibou} to false
- set {j2} to false
- set loop-player's tab list name to "%loop-player%"
- set slot 4 of loop-player to red dye
- set {%loop-player%.chatmute} to false
- command "/cmd on"
- set {%loop-player%.job} to "&8[なし]"
- wait 3 seconds
- teleport loop-player to {j.lobby}
- wait 2 ticks
- command "/easytp2 ROOYROOY test2"
- if {%loop-player%.autojoin} is true:
- set {%loop-player%.sannka} to true
- add 1 to {sannka.ninnzuu}
- command "/scoreboard teams join sannka %loop-player%"
- set slot 4 of loop-player to gray dye
- broadcast "》&eリセット終了!"
- command /jstart2:
- permission:sk.admin
- trigger:
- broadcast "&c人狼RPG》&eまもなく人狼RPGを開始します"
- command "/clear @a"
- set {nosannka} to true
- command "/effect @a minecraft:invisibility 13 23"
- command "/cmd off"
- set {pvp} to true
- command "/jugokenai"
- wait 2 seconds
- command "/jreadyzinrou"
- command "/jreadykyoujinn"
- wait 3 seconds
- command "/jchecktp"
- wait 3 seconds
- broadcast "&6---------[役職]---------"
- broadcast "&7狂人:%{kyoujinn.ninnzuu}%人"
- broadcast "&c人狼:%{zinrou.ninnzuu}%人"
- broadcast "&a村人:%{mura.ninnzuu}%人"
- wait 3 seconds
- broadcast "&e/co [mura/kyoujinn/zinrou]でCOできます"
- command "/effect @a minecraft:regeneration 10 100 true"
- command "/effect @a minecraft:saturation 10 100 true"
- loop all players:
- set {sannka.ninnzuu} to 0
- set slot 1 of loop-player to diamond sword
- set slot 2 of loop-player to cooked beef
- send title "&4PVP人狼スタート!" with subtitle "&r" to loop-player
- set {%loop-player%.sannka} to false
- set {pvp} to true
- set {j2} to true
- set loop-player's tab list name to "&r"
- set {co.%loop-player%} to "&f&r[COなし]"
- command /jsukesann:
- permission:sk.admin
- trigger:
- command "/setblock -36 63 -999 minecraft:redstone_block"
- command /connect [<number>]:
- permission: skript.admin
- trigger:
- if arg-1 is set:
- set {connect.number} to arg-1
- broadcast "&4[人狼GAME]&a接続可能人数を&e%arg-1%人&aに変更しました"
- on connect:
- if player is not op:
- if {setmode} is false:
- if {%player%.rank} is not "MVP":
- if number of all players >= {connect.number}:
- kick the player due to "&4[人狼Game]&cただいまサーバーは満員です。しばらく待ってからお試しください。&7(&c%number of all players%&7/&e%{connect.number}%&7)"
- on death:
- if {j} is true:
- victim is player
- add 5 to {%attacker%.coin}
- give a emerald to attacker
- on command "/plugins":
- cancel event
- set {_pl::*} to "&aJinrou-RPG", "PVP-Jinrou", "worldedit", "Nocheatplus", "OpenInv", "Anticheat", "Skript"
- send "&fPlugins (%number of {_pl::*}%): %join {_pl::*} with ""&f,&a
- on command "/pl":
- cancel event
- set {_pl::*} to "&aJinrou-RPG", "PVP-Jinrou", "worldedit", "Nocheatplus", "OpenInv", "Anticheat", "Skript"
- send "&fPlugins (%number of {_pl::*}%): %join {_pl::*} with ""&f,&a
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement