chibimario

Untitled

May 19th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.86 KB | None | 0 0
  1. on damage of player:
  2. victim is player
  3. if attacker is {hanta-}:
  4. set attacker's helmet to air
  5. set victim's helmet to diamond_helmet
  6. remove speed from attacker
  7. remove speed from victim
  8. apply ambient speed 1 to victim for 1 day
  9. apply ambient speed 2 to attacker for 3 second
  10. wait a tick
  11. set {hanta-} to victim
  12. broadcast "&f%{hanta-}%が鬼になりました!"
  13. stop
  14.  
  15. command /tousoutyuu [<text>]:
  16. permission:op
  17. permission message:&fUnknown commands. Type "/help" for help.
  18. trigger:
  19. if arg 1 is "setspawn":
  20. set {Spawn} to player's location
  21. send "&fシステム>> &fゲームのスポーン地点を設定しました"
  22. stop
  23. if arg 1 is "onispawn":
  24. set {hanta-spawn} to player's location
  25. send "&fシステム>> &fハンターのスポーン地点を設定しました"
  26. stop
  27. if arg 1 is "start":
  28. clear {hanta-}
  29. set {Count} to 240
  30. wait 1 tick
  31. set {hanta-} to random player out of all players
  32. set {hanta-}'s helmet to diamond_helmet
  33. broadcast "&6%{hanta-}%がハンターになりました!"
  34. broadcast "&6逃走中開始!"
  35. loop all players:
  36. apply ambient strength 1 to {hanta-} for 1 day
  37. apply ambient instant health 10 to loop-player for 1 day
  38. set {Count} to 300
  39. if loop-player is not {hanta-}:
  40. teleport loop-player to {Spawn}
  41. if loop-player is {hanta-}:
  42. wait 5 seconds
  43. teleport {hanta-} to {hanta-spawn}
  44. remove 1 from {Count}
  45. wait 50 seconds
  46. execute console command "/setblock 4 63 94 redstone_block"
  47. wait 150 seconds
  48. broadcast "&6150秒が経ったな、まぁクリアしたかは俺の知ったことじゃないが頑張ってくれ"
  49. wait 1 seconds
  50. set loop-player's helmet to air
  51. broadcast "&fタイムアップ"
  52. teleport loop-player to {Lobby}
  53. stop
  54. if arg 1 is "stop":
  55. set {Count} to 0
  56. send "&fシステム>> &fゲームをストップしました"
  57. clear {hanta-}
  58. stop
  59. else:
  60. send "/tousoutyuu setspawn"
  61. send "/tousoutyuu onispawn"
  62. send "/tousoutyuu start"
  63. send "/tousoutyuu stop"
  64. every 10 tick:
  65. loop all players:
  66. wipe loop-player's sidebar
  67. set name of sidebar of loop-player to "&f逃走中"
  68. set score "&fゲーム終了まで" in sidebar of loop-player to {Count}
  69. set score "&e-------------------------" in sidebar of loop-player to -100
  70. set score "&c現在のハンター %{hanta-}%" in sidebar of loop-player to -300
  71. set score "&e-------------------------" in sidebar of loop-player to -500
  72. stop
  73. on disconnect:
  74. if player is {hanta-}:
  75. execute console command "/tousoutyuu stop"
  76. broadcast "&fシステム>> &fハンターが&cログアウト&fしたため、ゲームが終了されました"
  77. broadcast "&cLogout - %player%"
  78. stop
  79. on inventory click:
  80. if clicked slot type is armor:
  81. if player's helmet is diamond_helmet:
  82. cancel event
Add Comment
Please, Sign In to add comment