SHARE
TWEET

増え鬼

K2Rk1o Feb 1st, 2019 (edited) 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Options:
  2. #=================#
  3. #増え鬼
  4. #=================#
  5.     header: %nl%&9---&7| &8&l増え鬼 &7|&9---%nl%
  6.     footer: %nl%&2Ping&f: &6%ping of player%%nl%
  7.     join: &8≫ &7%player% &2join
  8.     quit: &8≫ &7%player% &2quit
  9.  
  10.  
  11. On any movement:
  12.     set tab header to "{@header}" and footer to "{@footer}" for player
  13.  
  14. On join:
  15.     set join message to "{@join}"
  16.     if {game} is true:
  17.         execute player command "oni"
  18.     delete {join::%player%}
  19.  
  20. command /join-spawn:
  21.     permission: sk
  22.     trigger:
  23.         set {joinspawn} to location of player
  24.         send "&8≫&a設定しました"
  25.    
  26. On quit:
  27.     set quit message to "{@quit}"
  28.     if {join::%player%} is true:
  29.         add -1 to {player}
  30.         delete {join::%player%}
  31.         stop
  32.  
  33. Command /ho [<text>] [<player>]:
  34.     permission: ho
  35.     trigger:
  36.         if arg-1 is "oni":
  37.             if arg-2 is set:
  38.                 set {oni} to arg-2
  39.                 add {oni} to {oni::*}
  40.                 broadcast "&c今回の鬼は&6%{oni::*}%&cさんです。"
  41.                 stop
  42.             else:
  43.                 send "名前いれろ"
  44.                 stop
  45.         if arg-1 is "start":
  46.             if {oni} is set:
  47.                 if {player} is less than or equal to 1:
  48.                     send "&6人数が足りません最低でも2人は必要です。"
  49.                     stop
  50.                 if {player} isn't set:
  51.                     send "&6人数が足りません最低でも2人は必要です。"
  52.                     stop
  53.                 else:
  54.                     set {game} to true
  55.                     loop all players:
  56.                         if {join::%loop-player%} is true:
  57.                             add loop-value to {nige::*}
  58.                             remove {oni} from {nige::*}
  59.                             stop loop
  60.                     add {oni} to {oniteam::*}
  61.                     add -1 to {player}
  62.                     set {onk::%{oni}%} to true
  63.                     command "gamemode a @a"
  64.                     broadcast "&c今回の鬼は&6%{oniteam::*}%さんです。"
  65.                     wait 2 second
  66.                     broadcast "&cゲームを開始します。"
  67.                     loop all players:
  68.                         if {niger::%loop-player%} is true:
  69.                             set {nige.kakuredama::%loop-player%} to true
  70.                             stop loop
  71.                     execute console command "onigokko start2"
  72.                     stop
  73.         if arg-1 is "start2":
  74.             if {game} is true:
  75.                 set {_first} to {oni}
  76.                 loop all players:
  77.                     if loop-player is {_first}:
  78.                         execute loop-player command "oni"
  79.                     if {nige.kakuredama::%loop-player%} is true:
  80.                         execute loop-player command "onigokko-get-kakuredama"
  81.                         stop loop
  82.                 set {time} to "300"
  83.                 loop all players:
  84.                     if loop-player has permission "skript":
  85.                         if loop-player isn't {oni}:
  86.                             set {kakuredama::%loop-player%} to "3"
  87.                     else:
  88.                         if loop-player isn't {oni}:        
  89.                             set {kakuredama::%loop-player%} to "3"
  90.                             stop loop
  91.                 broadcast "&6ゲームスタート!!!"
  92.         if arg-1 is "stopgame":
  93.             set {game} to false
  94.             delete {oni}
  95.             delete {time}
  96.             broadcast "&aゲーム終了"
  97.             wait 1 second
  98.             broadcast "&e今回の生存者は&7...."
  99.             wait 2 second
  100.             loop all players:
  101.                 if {nige::*} is set:
  102.                     add loop-player to {nigewin::*}
  103.                     broadcast "&6%{nigewin::*}%です!"
  104.                     stop loop
  105.                 if {nige::*} isn't set:
  106.                     broadcast "&5....&4いませんでした..%{oniteam::*}%&cの勝利!"
  107.                     stop loop
  108.             execute console command "clear @a"
  109.             loop all players:
  110.                 if loop-player have permission "sk":
  111.                     delete {nigewin::*}
  112.                     delete {oniteam::*}
  113.                     delete {nige::*}
  114.                     delete {oni}
  115.                     delete {kakuredama::%loop-player%}
  116.                     delete {oni::*}
  117.                     delete {nige.kakuredama::%loop-player%}
  118.                     delete {onik::%loop-player%}
  119.                     delete {niger::%loop-player%}
  120.                     delete {onk::%loop-player%}
  121.                     delete {player}
  122.                     delete {join::%loop-player%}
  123.                     stop loop
  124.                 if loop-player don't have permission "sk":
  125.                     delete {nigewin::*}
  126.                     delete {oniteam::*}
  127.                     delete {nige::*}
  128.                     delete {oni}
  129.                     delete {kakuredama::%loop-player%}
  130.                     delete {oni::*}
  131.                     delete {nige.kakuredama::%loop-player%}
  132.                     delete {onik::%loop-player%}
  133.                     delete {niger::%loop-player%}
  134.                     delete {onk::%loop-player%}
  135.                     delete {player}
  136.                     delete {join::%loop-player%}
  137.                     stop loop
  138.         else:
  139.             send "..."
  140.             stop
  141.  
  142. Command /oni:
  143.     trigger:
  144.         if {game} is true:
  145.             teleport the player to {onispawn}
  146.             set player's helmet to diamond helmet
  147.             set player's chestplate to diamond chestplate
  148.             set player's leggings to diamond leggings
  149.             set player's boots to diamond boots
  150.             give player book named "鬼本"
  151.             broadcast "&2%player%は&9鬼&2に&c食われた"
  152.             set {_victimplayer} to player
  153.             remove {_victimplayer} from {nige::*}
  154.             set {onk::%player%} to true
  155.             add {_victimplayer} to {oniteam::*}
  156.             add -1 to {player}
  157.              
  158.  
  159. command /onigokko-get-kakuredama:
  160.     trigger:
  161.         if {game} is true:
  162.             give player slimeball named "隠れ玉"
  163.             stop
  164.  
  165.  
  166.  
  167. command /play:
  168.     trigger:
  169.         if {join::%player%} isn't true:
  170.             if {game} isn't true:
  171.                 add 1 to {player}
  172.                 set {join::%player%} to true
  173.                 broadcast "&7≫ &2%player%&aさんが参加しました。"
  174.         else:
  175.             send "あなたはすでに参加しています。"
  176.             stop
  177.  
  178. command /leave-onigokko:
  179.     trigger:
  180.         if {join::%player%} is true:
  181.             add -1 to {player}
  182.             set {join::%player%} to false
  183.             broadcast "&7≫ &2%player%さんが参加を取り消しました。"
  184.             stop
  185.         else:
  186.             send "あなたは参加していません。"
  187.             stop
  188.  
  189. On damage:
  190.     if {game} is true:
  191.         if {onk::%victim%} isn't set:
  192.             if {niger::%attacker%} is true:
  193.                 stop
  194.             if {onk::%attacker%} is true:
  195.                 teleport the victim to {onispawn}
  196.                 set victim's helmet to diamond helmet
  197.                 set victim's chestplate to diamond chestplate
  198.                 set victim's leggings to diamond leggings
  199.                 set victim's boots to diamond boots
  200.                 broadcast "&2%victim%は&9鬼&2に&c食われた"
  201.                 set {_victimplayer} to victim
  202.                 remove {_victimplayer} from {nige::*}
  203.                 set {onk::%victim%} to true
  204.                 add {_victimplayer} to {oniteam::*}
  205.                 add -1 to {player}
  206.                 stop
  207.         if {onk::%victim%} is true:
  208.             cancel event
  209.             stop
  210.         if {niger::%attacker%} is true:
  211.             stop
  212.     else:
  213.         stop
  214.  
  215. every second in "world":
  216.     if {game} is true:
  217.         if {time} is 0:
  218.             execute console command "onigokko stopgame"
  219.             stop
  220.         if {player} is 0:
  221.             execute console command "onigokko stopgame"
  222.  
  223. every 1 second:
  224.     if {game} is true:
  225.         remove 1 from {time}
  226.     else:
  227.         stop
  228.  
  229. command /oni-set-start:
  230.     permission: sk
  231.     trigger:
  232.         set {onispawn} to location of player
  233.         send "&8≫&a設定しました"
  234.  
  235. On respawn:
  236.     teleport the player to {onispawn}
  237.  
  238. On right click:
  239.     if player's held item is slimeball:
  240.         if {kakuredama::%player%} is less than or equal to 0:
  241.             stop
  242.         if {kakuredama::%player%} is greater or equal to 1:
  243.             execute console command "effect %player% minecraft:invisibility 3 0 true"
  244.             remove 1 from {kakuredama::%player%}
  245.             stop
  246.     if player's held item is book:
  247.         teleport the player to {onispawn}
  248.         stop
  249.  
  250. every 1 second:
  251.     loop all players:
  252.         wipe loop-player's sidebar
  253.         set name of sidebar of loop-player to "&7&k| &8増え鬼 &7&k|"
  254.         set score "&2残り時間: %{time}%" in sidebar of loop-player to 4
  255.         set score "&6残り人数: %{player}%" in sidebar of loop-player to 3
  256.         set score "&7隠れ玉: %{kakuredama::%loop-player%}%" in sidebar of loop-player to 2
  257.         set score "&5Game: %{game}%" in sidebar of loop-player to 1
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