SHARE
TWEET

[人狼RPG] 全体Skript

kawaneko Mar 22nd, 2019 (edited) 102 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. options:
  2.     logo: &7[&4&l人狼RPG&7]
  3. command /jinro <text>:
  4.     permission: sk.admin
  5.     trigger:
  6.         if arg-1 is "start" or "stop":
  7.             if arg-1 is "start":
  8.                 set {jinro} to "true"
  9.                 execute console command "setblock 22 1 120 air"
  10.                 execute console command "/clear @a nether_star"
  11.                 execute console command "/setblock 20 1 120 air"
  12.                 execute console command "/clear @a[team=sanka] noteblock"
  13.                 execute console command "/clear @a[team=sanka] redstone_block"
  14.                 execute console command "/setblock 41 1 185 redstone_block"
  15.                 execute console command "/setblock 37 1 182 redstone_block"
  16.                 execute console command "/effect @a[team=sanka] 21 10000 4 true"
  17.                 execute console command "/scoreboard teams leave @a[team=lobby]"
  18.                 execute console command "/jg @a"
  19.                 wait 1 seconds
  20.                 broadcast "{@logo} &aマップを選んでいます…"
  21.                 execute console command "/setblock 41 1 185 air"
  22.                 wait 2 second
  23.                 execute console command "/execute @r[type=Armor_Stand,name=MapRandom] ~ ~ ~ setblock ~ ~ ~ redstone_block"
  24.                 wait 10 second
  25.                 execute console command "/title @a subtitle ["""",{""text"":""--"",""color"":""dark_gray""},{""text"":""JinrouPRG"",""bold"":true,""color"":""dark_red""},{""text"":""--"",""color"":""dark_gray""}]"
  26.                 execute console command "/title @a title ["""",{""text"":""\u4eba\u72fcRPG"",""bold"":true,""color"":""dark_red""},{""text"":""\u3092\u59cb\u3081\u307e\u3059"",""color"":""dark_gray""}]"
  27.                 execute console command "/execute @a ~ ~ ~ /playsound minecraft:block.dispenser.fail master @a"
  28.                 broadcast "{@logo} &4&l人狼RPG&aをスタートします…"
  29.                 execute console command "/heal @a"
  30.                 wait 3 seconds
  31.                 execute console command "/title @a title ["""",{""text"":""\u4eba\u72fcRPG"",""bold"":true,""color"":""dark_red""},{""text"":""\u3092\u59cb\u3081\u307e\u3059"",""color"":""dark_gray""}]"
  32.                 execute console command "/title @a title {""text"":""3\u2026"",""bold"":true,""color"":""green""}"
  33.                 execute console command "/execute @a ~ ~ ~ /playsound minecraft:block.dispenser.fail master @a"
  34.                 broadcast "{@logo} &a3…"
  35.                 wait 2 second
  36.                 execute console command "/execute @a ~ ~ ~ /playsound minecraft:block.dispenser.fail master @a"
  37.                 execute console command "/title @a title ["""",{""text"":""\u4eba\u72fcRPG"",""bold"":true,""color"":""dark_red""},{""text"":""\u3092\u59cb\u3081\u307e\u3059"",""color"":""dark_gray""}]"
  38.                 execute console command "/title @a title {""text"":""2\u2026"",""bold"":true,""color"":""yellow""}"
  39.                 broadcast "{@logo} &e2…"
  40.                 wait 2 seconds
  41.                 execute console command "/execute @a ~ ~ ~ /playsound minecraft:block.dispenser.fail master @a"
  42.                 execute console command "/title @a title ["""",{""text"":""\u4eba\u72fcRPG"",""bold"":true,""color"":""dark_red""},{""text"":""\u3092\u59cb\u3081\u307e\u3059"",""color"":""dark_gray""}]"
  43.                 execute console command "/execute @a ~ ~ ~ /playsound minecraft:block.dispenser.fail master @a"
  44.                 execute console command "/title @a title {""text"":""1\u2026"",""bold"":true,""color"":""red""}"
  45.                 broadcast "{@logo} &41…"
  46.                 wait 2 seconds
  47.                 execute console command "/title @a title {""text"":""Start!!"",""bold"":true,""color"":""gold""}"
  48.                 execute console command "/title @a subtitle ["""",{""text"":""--"",""color"":""dark_gray""},{""text"":""JinrouPRG"",""bold"":true,""color"":""dark_red""},{""text"":""--"",""color"":""dark_gray""}]"
  49.                 execute console command "/execute @a ~ ~ ~ /playsound minecraft:entity.experience_orb.pickup master @a"      
  50.                 command "/skeletonsummon"
  51.                 command "/setblock 49 1 181 redstone_block"
  52.                 broadcast "{@logo} &6&lStart!!"
  53.                 set {time} to "night"
  54.                 set {times} to 150
  55.                 if {jinrou1} is "true":
  56.                     command "/scoreboard teams join jinrou @r[team=sanka]"
  57.                 else:
  58.                     if {jinrou2} is "true":
  59.                         command "/scoreboard teams join jinrou @r[team=sanka]"
  60.                         command "/scoreboard teams join jinrou @r[team=sanka]"
  61.                     else:
  62.                         if {jinrou3} is "true":
  63.                             command "/scoreboard teams join jinrou @r[team=sanka]"
  64.                             command "/scoreboard teams join jinrou @r[team=sanka]"
  65.                             command "/scoreboard teams join jinrou @r[team=sanka]"
  66.                         else:
  67.                             if {jinrou4} is "true":
  68.                                 command "/scoreboard teams join jinrou @r[team=sanka]"
  69.                                 command "/scoreboard teams join jinrou @r[team=sanka]"
  70.                                 command "/scoreboard teams join jinrou @r[team=sanka]"
  71.                                 command "/scoreboard teams join jinrou @r[team=sanka]"
  72.                             else:
  73.                                 if {jinrou5} is "true":
  74.                                     command "/scoreboard teams join jinrou @r[team=sanka]"
  75.                                     command "/scoreboard teams join jinrou @r[team=sanka]"
  76.                                     command "/scoreboard teams join jinrou @r[team=sanka]"
  77.                                     command "/scoreboard teams join jinrou @r[team=sanka]"
  78.                                     command "/scoreboard teams join jinrou @r[team=sanka]"
  79.                                 else:
  80.                                     if {jinrou6} is "true":
  81.                                         command "/scoreboard teams join jinrou @r[team=sanka]"
  82.                                         command "/scoreboard teams join jinrou @r[team=sanka]"
  83.                                         command "/scoreboard teams join jinrou @r[team=sanka]"
  84.                                         command "/scoreboard teams join jinrou @r[team=sanka]"
  85.                                         command "/scoreboard teams join jinrou @r[team=sanka]"
  86.                                         command "/scoreboard teams join jinrou @r[team=sanka]"
  87.                                     else:
  88.                                         if {jinrou7} is "true":
  89.                                             command "/scoreboard teams join jinrou @r[team=sanka]"
  90.                                             command "/scoreboard teams join jinrou @r[team=sanka]"                                            
  91.                                             command "/scoreboard teams join jinrou @r[team=sanka]"
  92.                                             command "/scoreboard teams join jinrou @r[team=sanka]"
  93.                                             command "/scoreboard teams join jinrou @r[team=sanka]"
  94.                                             command "/scoreboard teams join jinrou @r[team=sanka]"
  95.                                             command "/scoreboard teams join jinrou @r[team=sanka]"
  96.                 if {kyouzin1} is "true":
  97.                     command "/scoreboard teams join kyouzin @r[team=sanka]"
  98.                 else:
  99.                     if {kyouzin2} is "true":
  100.                         command "/scoreboard teams join kyouzin @r[team=sanka]"
  101.                         command "/scoreboard teams join kyouzin @r[team=sanka]"
  102.                     else:
  103.                         if {kyouzin3} is "true":
  104.                             command "/scoreboard teams join kyouzin @r[team=sanka]"
  105.                             command "/scoreboard teams join kyouzin @r[team=sanka]"
  106.                             command "/scoreboard teams join kyouzin @r[team=sanka]"
  107.                 if {gouhu1} is "true":
  108.                     command "/scoreboard teams join gouhu @r[team=sanka]"
  109.                 else:
  110.                     if {gouhu2} is "true":
  111.                         command "/scoreboard teams join gouhu @r[team=sanka]"
  112.                         command "/scoreboard teams join gouhu @r[team=sanka]"
  113.                     else:
  114.                         if {gouhu3} is "true":
  115.                             command "/scoreboard teams join gouhu @r[team=sanka]"
  116.                             command "/scoreboard teams join gouhu @r[team=sanka]"
  117.                             command "/scoreboard teams join gouhu @r[team=sanka]"
  118.                 if {kyu1} is "true":
  119.                     command "/scoreboard teams join kyuketu @r[team=sanka]"
  120.                     command "/scoreboard teams join murabito @a[team=sanka]"
  121.                     command "/scoreboard teams join murabito @a[team=sanka]"
  122.                     command "/jinrou @a[team=jinrou]"
  123.                     command "/kyuketuki @a[team=kyuketu]"
  124.                     command "/kyouzin @a[team=kyouzin]"
  125.                     command "/gouhu @a[team=gouhu]"
  126.                 else:
  127.                     if {kyu0} is "true":
  128.                         command "/scoreboard teams join murabito @a[team=sanka]"
  129.                         command "/jinrou @a[team=jinrou]"
  130.                         command "/kyuketuki @a[team=kyuketu]"
  131.                         command "/kyouzin @a[team=kyouzin]"
  132.                         command "/gouhu @a[team=gouhu]"
  133.             if arg-1 is "stop":
  134.                 execute console command "setblock 22 1 120 redstone_block"
  135.                 broadcast "{@logo} &4&l人狼終了!"
  136.                 broadcast "&8==============&4役職&8=============="
  137.                 broadcast "&4&l人狼 … &b%{jinrou::*}%"
  138.                 broadcast "&8&l狂人 … &b%{kyouzin::*}%"
  139.                 broadcast "&6&l豪富 … &b%{gouhu::*}%"
  140.                 broadcast "&d&l吸血鬼 … &b%{kyuketuki::*}%"
  141.                 broadcast "&8====================================="
  142.                 set {jinro::a} to "false"
  143.                 set {map1} to "false"
  144.                 set {map2} to "false"
  145.                 set {time} to "a"
  146.                 set {times} to 10
  147.                 set {vlls::a} to 0
  148.                 set {jrrs::a} to 0
  149.                 set {vams::a} to 0
  150.                 delete {jinrou::*}
  151.                 delete {kyouzin::*}
  152.                 delete {gouhu::*}
  153.                 delete {kyuketuki::*}
  154.                 delete {murabito::*}
  155.                 delete {sankaa::*}
  156.                 execute console command "time set 1000"
  157.                 execute console command "/sankaa"
  158.                 loop all players:
  159.                     set {vll::%loop-player%} to "false"
  160.                     set {jrr::%loop-player%} to "false"
  161.                     set {shpp.%loop-player%} to "false"
  162.                     set {vam::%loop-player%} to "false"
  163.                     set {game.%loop-player%} to "false"
  164.                     set {start.%loop-player%} to "false"
  165.  
  166. command /villager <player>:
  167.     permission: sk.villager
  168.     trigger:
  169.         set {vll::%arg-1%} to "true"
  170.         add 1 to {vlls::a}
  171.         add name of arg-1 to {murabito::*}
  172. command /jinrou <player>:
  173.     permission: sk.jinrou
  174.     trigger:
  175.         set {jrr::%arg-1%} to "true"
  176.         add 1 to {jrrs::a}
  177.         add name of arg-1 to {jinrou::*}
  178. command /kyuketuki <player>:
  179.     permission: sk.kyuketuki
  180.     trigger:
  181.         set {vam::%arg-1%} to "true"
  182.         add 1 to {vams::a}
  183.         add name of arg-1 to {kyuketuki::*}
  184. command /jvcheck <player>:
  185.     permission: sk.admin
  186.     trigger:
  187.         send "villagers %{vlls::a}%"
  188.         send "jinros %{jrrs::a}%"
  189.         send "kyuuketuki %{vams::a}%"
  190. command /kyouzin <player>:
  191.     permission: skript.admin
  192.     trigger:
  193.         add name of arg-1 to {kyouzin::*}
  194. on death:
  195.     attacker is player
  196.     victim is player
  197.     if {vll::%victim%} is "true":
  198.         remove 1 from {vlls::a}
  199.     else:
  200.         remove 1 from {jrrs::a}
  201. on death:
  202.     set {shpp.%victim%} to "true"
  203.     execute console command "/clear %player%"
  204.     execute console command "/scoreboard teams leave %player%"
  205.     execute console command "/effect @a 23 10000 255 true"
  206.     execute console command "/spawnpoint %player% -20 5 112"
  207. on damage:
  208.     if attacker's tool is stick:
  209.         if {jrr::%victim%} is "true":
  210.             cancel event
  211.             execute console command "clear %attacker% minecraft:stick 0 1 "
  212.             send "&6占っています.." to attacker
  213.             wait 1 second
  214.             send "&b結果: &a%victim%は&4人狼でした。" to attacker
  215.         else:
  216.             if {vll::%victim%} is "true":
  217.                 cancel event
  218.                 execute console command "clear %attacker% minecraft:stick 0 1 "
  219.                 send "&6占っています.." to attacker
  220.                 wait 1 second
  221.                 send "&b結果: &a%victim%は&b村人でした。" to attacker
  222.             if {vam::%victim%} is "true":
  223.                 cancel event
  224.                 execute console command "clear %attacker% minecraft:stick 0 1 "
  225.                 send "&6占っています.." to attacker
  226.                 wait 1 second
  227.                 send "&b結果: &a%victim%は&5吸血鬼でした。" to attacker
  228.             else:
  229.                 cancel event
  230.                 execute console command "clear %attacker% minecraft:stick 0 1 "
  231.                 send "&6占っています.." to attacker
  232.                 wait 1 second
  233.                 send "&b結果: &a%victim%は&a村人でした。" to attacker
  234.  
  235. on damage:
  236.     if attacker's tool is redstone dust:
  237.         if {vam::%victim%} is "true":
  238.             send "&5吸血の十字架&aを使って吸血鬼を倒した!" to attacker
  239.             execute console command "/execute %attacker% ~ ~ ~ /playsound minecraft:item.shield.break ambient %attacker% ~ ~ ~"
  240.             execute console command "clear %attacker% redstone 0 1"
  241.             kill victim
  242.         else:
  243.             send "&5吸血の十字架&aを使った。"
  244.             execute console command "/execute %attacker% ~ ~ ~ /playsound minecraft:item.shield.break ambient %attacker% ~ ~ ~"
  245.             execute console command "clear %attacker% redstone 0 1"
  246.             cancel event
  247.  
  248. every 1 second:
  249.     remove 1 from {times}
  250.     if {times} is less than 0:
  251.         if {time} is "night":
  252.             set {time} to "day"
  253.             set {times} to 100
  254.             command "/time set day"
  255.             command "/title @a title {""text"":""\u231a\u671d\u306b\u306a\u308a\u307e\u3057\u305f\u231a"",""bold"":true,""color"":""red""}"
  256.             command "/scoreboard players add 日 jinrou 1"
  257.             command "/title @a subtitle ["""",{""text"":""--"",""bold"":true,""italic"":true,""color"":""gold""},{""score"":{""name"":""\u65e5"",""objective"":""jinrou""},""bold"":true,""italic"":true,""color"":""gold""},{""text"":""\u65e5\u76ee--"",""bold"":true,""italic"":true,""color"":""gold""}]"
  258.             command "kill @e[type=skeleton,name=スケルトン]"
  259.             command "execute @a ~ ~ ~ /playsound minecraft:entity.wolf.whine master @a"
  260.         else:
  261.             if {time} is "day":
  262.                 if {map1} is "true":
  263.                     set {time} to "night"
  264.                     set {times} to 150
  265.                     command "/time set night"
  266.                     command "/title @a title ["""",{""text"":""\u263d"",""bold"":true,""color"":""dark_blue""},{""text"":""\u591c\u306b\u306a\u308a\u307e\u3057\u305f"",""bold"":true,""color"":""blue""},{""text"":""\u263d"",""bold"":true,""color"":""dark_blue""}]"
  267.                     command "execute @a ~ ~ ~ /playsound minecraft:entity.player.death master @a"  
  268.                     command "/summonskeleton"
  269.                 if {map2} is "true":
  270.                     set {time} to "night"
  271.                     set {times} to 150
  272.                     command "/time set night"
  273.                     command "/title @a title ["""",{""text"":""\u263d"",""bold"":true,""color"":""dark_blue""},{""text"":""\u591c\u306b\u306a\u308a\u307e\u3057\u305f"",""bold"":true,""color"":""blue""},{""text"":""\u263d"",""bold"":true,""color"":""dark_blue""}]"
  274.                     command "execute @a ~ ~ ~ /playsound minecraft:entity.player.death master @a"
  275.                     command "/summonskeleton1"        
  276. every 1 second:
  277.     loop all players:
  278.         if {time} is "day":
  279.             send action bar "&6&l朝 &B&L>>> &a&L残り時間&b&L:&e&L%{times}%" to loop-player
  280.             command "effect %loop-player% 23 0"
  281.             command "effect %loop-player% 11 0"
  282.             command "clear %loop-player% nether_star"
  283.             command "jg %loop-player%"
  284.             command "/setblock 37 1 177 redstone_block"
  285.         else:
  286.             if {time} is "night":
  287.                 send action bar "&9&l夜 &B&L>>> &a&L残り時間&b&L:&e&L%{times}%" to loop-player
  288.                 command "clear %loop-player% nether_star"
  289.                 command "jg %loop-player%"
  290.                 command "/setblock 37 1 177 air"
  291.             else:
  292.                 send action bar "&a&lゲーム参加人数 &b&l(&6&l%{sankaa::a}%&b&l/&e&l%number of all players%&b&l)" to loop-player
  293.  
  294. every 45 second:
  295.     if {time} is "night":
  296.         if {map1} is "true":
  297.             command "/summonskeleton"
  298.         if {map2} is "true":
  299.             command "/summonskeleton1"
  300.  
  301. command /discord:
  302.     trigger:
  303.         execute console command "/tellraw %player% ["""",{""text"":""Server Discord : "",""color"":""aqua"",""clickEvent"":{""action"":""open_url"",""value"":""https://discord.gg/FuR2YdT""}},{""text"":""Click Here!"",""underlined"":true,""color"":""green"",""clickEvent"":{""action"":""open_url"",""value"":""https://discord.gg/FuR2YdT""}}]"
  304.  
  305. command /map [<text>]:
  306.     executable by: console
  307.     trigger:
  308.         if arg-1 is "1":
  309.             set {map1} to "true"
  310.         if arg-1 is "2":
  311.             set {map2} to "true"
  312.  
  313. command /skeletonsummon:
  314.     permission: skript.admin
  315.     trigger:
  316.         if {map1} is "true":
  317.             command "/summonskeleton"
  318.         else:
  319.             if {map2} is "true":
  320.                 command "/summonskeleton1"
  321. command /sankaa:
  322.     permission: sk.admin
  323.     trigger:
  324.         set {sankaa::a} to 0
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top