Advertisement
siso_

AeAe

Apr 14th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.37 KB | None | 0 0
  1. options:
  2. s: &a&l[さいくつ(未定)] &f&6
  3.  
  4. command /start:
  5. permission: skript.admin
  6. trigger:
  7. set {game} to true
  8. set {pvp} to false
  9. delete {allplayer::*}
  10. delete {players}
  11. broadcast "{@s} ゲームを開始します"
  12. command "/time set day"
  13. timelimit()
  14. set {timer} to 10
  15. loop all players:
  16. if {nojoin.%loop-player%} is "on":
  17. send "&cあなたは今回のゲームには参加しません" to loop-player
  18. else:
  19. add loop-player to {allplayer::*}
  20. add loop-player to {member::*}
  21. give book named "&6レシピブック" to loop-player
  22. give 64 bread to loop-player
  23. give wooden axe to loop-player
  24. loop {allplayer::*}:
  25. add 1 to {players}
  26. randomtp(loop-value)
  27. rs(loop-value)
  28. set loop-value's gamemode to survival
  29. rule(loop-value)
  30. function randomtp(p: player):
  31. set {nofall.%{_p}%} to true
  32. set {_xcoord} to a random number between -999 and 999
  33. set {_zcoord} to a random number between -999 and 999
  34. execute console command "/tp %{_p}% %{_zcoord}% 100 %{_xcoord}%"
  35. wait 5 seconds
  36. set {nofall.%{_p}%} to false
  37. every second:
  38. timercheck()
  39.  
  40. function timercheck():
  41. if {time.%{timenum}%} is set:
  42. floor(unix timestamp of now) = {time.%{timenum}%} - 540:
  43. broadcast "{@s} 残り9分"
  44. set {timer} to 9
  45. rs(all players)
  46. floor(unix timestamp of now) = {time.%{timenum}%} - 480:
  47. broadcast "{@s} 残り8分"
  48. set {timer} to 8
  49. rs(all players)
  50. floor(unix timestamp of now) = {time.%{timenum}%} - 420:
  51. broadcast "{@s} 残り7分"
  52. set {timer} to 7
  53. rs(all players)
  54. floor(unix timestamp of now) = {time.%{timenum}%} - 360:
  55. broadcast "{@s} 残り6分"
  56. set {timer} to 6
  57. rs(all players)
  58. floor(unix timestamp of now) = {time.%{timenum}%} - 300:
  59. broadcast "{@s} 残り5分"
  60. set {timer} to 5
  61. rs(all players)
  62. floor(unix timestamp of now) = {time.%{timenum}%} - 240:
  63. broadcast "{@s} 残り4分"
  64. set {timer} to 4
  65. rs(all players)
  66. floor(unix timestamp of now) = {time.%{timenum}%} - 180:
  67. broadcast "{@s} 残り3分"
  68. set {timer} to 3
  69. rs(all players)
  70. floor(unix timestamp of now) = {time.%{timenum}%} - 120:
  71. broadcast "{@s} 残り2分、PvPが可能になりました"
  72. set {pvp} to true
  73. set {timer} to 2
  74. rs(all players)
  75. floor(unix timestamp of now) = {time.%{timenum}%} - 60:
  76. broadcast "{@s} 残り1分"
  77. set {timer} to 1
  78. rs(all players)
  79. floor(unix timestamp of now) = {time.%{timenum}%} - 30:
  80. broadcast "{@s} 残り30秒"
  81. floor(unix timestamp of now) = {time.%{timenum}%} - 10:
  82. broadcast "{@s} 残り10秒"
  83. wait 5 seconds
  84. broadcast "{@s} 5"
  85. wait 1 seconds
  86. broadcast "{@s} 4"
  87. wait 1 seconds
  88. broadcast "{@s} 3"
  89. wait 1 seconds
  90. broadcast "{@s} 2"
  91. wait 1 seconds
  92. broadcast "{@s} 1"
  93. wait 1 seconds
  94. broadcast "{@s} 終了!!"
  95. loop {allplayer::*}:
  96. result(loop-value)
  97. teleport loop-value to location at (0, 100, 0) in "world"
  98. wait 3 seconds
  99. broadcast "{@s} 結果発表!!"
  100. wait 1 seconds
  101. broadcast "&6..."
  102. command "/playsound ui.button.click master @a ~ ~ ~ 2 1.1 1"
  103. wait 1 seconds
  104. broadcast ".."
  105. command "/playsound ui.button.click master @a ~ ~ ~ 2 1.1 1"
  106. wait 1 seconds
  107. broadcast "&6."
  108. command "/playsound ui.button.click master @a ~ ~ ~ 2 1.1 1"
  109. wait 1 seconds
  110. execute console command "/playsound entity.player.levelup ambient @a ~ ~ ~ 1 1 1"
  111. result2()
  112.  
  113. function timelimit():
  114. if {time.%{timenum}%} is not set:
  115. add 1 to {timenum}
  116. set {timer} to 10
  117. set {time.%{timenum}%} to floor(unix timestamp of now) + 600
  118. stop
  119. if {time.%{timenum}%} is set:
  120. delete {time.%{timenum}%}
  121. set {timer} to 10
  122. add 1 to {timenum}
  123. set {time.%{timenum}%} to floor(unix timestamp of now) + 600
  124. else:
  125. send "&cTime limit Error &5Unixnow%floor(unix timestamp of now)% &6%{time.%{timenum}%}%" to ops
  126. command /stopgame:
  127. permission: skript.admin
  128. trigger:
  129. broadcast "{@s} ゲームを終了しました"
  130. set {game} to false
  131. execute console command "/clear @a"
  132. loop {allplayer::*}:
  133. kill loop-value
  134. teleport loop-value to {lobby}
  135. set loop-value's gamemode to adventure
  136. delete {point::%loop-value%}
  137. set {pvp} to false
  138. delete {point::*}
  139. delete {time.%{timenum}%}
  140. delete {allplayer::*}
  141. rs(all players)
  142. lvup(all players)
  143. stop
  144. function result(p: player):
  145. set {point::%{_p}%} to 0
  146. add number of coal in {_p}'s inventory to {point::%{_p}%}
  147. add number of iron ore in {_p}'s inventory to {point::%{_p}%}
  148. add number of iron ingot in {_p}'s inventory * 2 to {point::%{_p}%}
  149. add number of gold ore in {_p}'s inventory * 2 to {point::%{_p}%}
  150. add number of gold ingot in {_p}'s inventory * 3 to {point::%{_p}%}
  151. add number of redstone in {_p}'s inventory * 1.5 to {point::%{_p}%}
  152. add number of lapis in {_p}'s inventory * 1.7 to {point::%{_p}%}
  153. add number of diamond in {_p}'s inventory * 10 to {point::%{_p}%}
  154. add number of emerald in {_p}'s inventory * 1919 to {point::%{_p}%}
  155. #Point send
  156. if {_p} has coal:
  157. add number of coal in {_p}'s inventory to {_coal.%{_p}%}
  158. else:
  159. set {_coal.%{_p}%} to 0
  160. if {_p} has iron ore:
  161. add number of iron ore in {_p}'s inventory to {_iron.ore.%{_p}%}
  162. else:
  163. set {_iron.ore.%{_p}%} to 0
  164. if {_p} has iron ingot:
  165. add number of iron ingot in {_p}'s inventory * 2 to {_iron.%{_p}%}
  166. else:
  167. set {_iron.%{_p}%} to 0
  168. if {_p} has gold ore:
  169. add number of gold ore in {_p}'s inventory * 2 to {_gold.ore.%{_p}%}
  170. else:
  171. set {_gold.ore.%{_p}%} to 0
  172. if {_p} has gold ingot:
  173. add number of gold ingot in {_p}'s inventory * 3 to {_gold.%{_p}%}
  174. else:
  175. set {_gold.%{_p}%} to 0
  176. if {_p} has redstone:
  177. add number of redstone in {_p}'s inventory * 1.5 to {_redstone.%{_p}%}
  178. else:
  179. set {_redstone.%{_p}%} to 0
  180. if {_p} has lapis:
  181. add number of lapis in {_p}'s inventory * 1.7 to {_lapis.%{_p}%}
  182. else:
  183. set {_lapis.%{_p}%} to 0
  184. if {_p} has diamond:
  185. add number of diamond in {_p}'s inventory * 10 to {_diamond.%{_p}%}
  186. else:
  187. set {_diamond.%{_p}%} to 0
  188. if {_p} has emerald:
  189. add number of emerald in {_p}'s inventory * 1919 to {_emerald.%{_p}%}
  190. else:
  191. set {_emerald.%{_p}%} to 0
  192. send "&7石炭のポイント &6%{_coal.%{_p}%}%" to {_p}
  193. send "鉄のポイント &6%{_iron.ore.%{_p}%}%" to {_p}
  194. send "鉄インゴットのポイント &6%{_iron.%{_p}%}%" to {_p}
  195. send "&e金のポイント &6%{_gold.ore.%{_p}%}%" to {_p}
  196. send "&e金インゴットのポイント &6%{_gold.%{_p}%}%" to {_p}
  197. send "&cレッドストーンのポイント &6%{_redstone.%{_p}%}%" to {_p}
  198. send "&9ラピスラズリのポイント &6%{_lapis.%{_p}%}%" to {_p}
  199. send "&bダイアモンドのポイント &6%{_diamond.%{_p}%}%" to {_p}
  200. send "&aエメラルドのポイント &6%{_emerald.%{_p}%}%" to {_p}
  201. clear {_p}'s inventory
  202. add {point::%{_p}%} to {xp.%{_p}%}
  203. function result2():
  204. set {_high} to 0
  205. loop {point::*}:
  206. set {_list::%loop-index%} to loop-value
  207. loop size of {allplayer::*} times:
  208. loop {_list::*}:
  209. loop-value-2 > {_high}
  210. set {_high} to loop-value-2
  211. set {_highplayer} to loop-index
  212. broadcast "&6%loop-number%位&e%{_highplayer}%&6の&a%{_high}%&6ポイント!"
  213. set {_high} to 0
  214. delete {_list::%{_highplayer}%}
  215. wait 6 seconds
  216. execute console command "/stopgame"
  217. stop
  218. on damage:
  219. if {nofall.%victim%} is true:
  220. cancel event
  221. if damage cause is lava:
  222. cancel event
  223. if {pvp} is false:
  224. cancel event
  225. on death of player:
  226. force victim to respawn
  227. if {game} is true:
  228. wait 10 tick
  229. randomtp(victim)
  230. stop
  231. else:
  232. teleport victim to {lobby}
  233. wait 1 seconds
  234. execute console command "/clear %victim%"
  235. on first join:
  236. set player's gamemode to adventure
  237. broadcast "&e%player%&6さんが&d初&6参加しました"
  238. set {xp.%player%} to 0
  239. set {lv.%player%} to 1
  240. set {kill.%player%} to 0
  241. set {nextlv.%player%} to 1
  242. teleport player to {lobby}
  243. add "&e%player% &6IP &a%ip of player%" to {iplog::*}
  244. set player tab name to "&6&l[&a&lLv%{lv.%player%}%&6&l] &f%player%"
  245. rs(player)
  246. on join:
  247. broadcast "&e%player%&6さんが&6参加しました"
  248. set player's gamemode to adventure
  249. clear player's inventory
  250. set player tab name to "&6&l[&a&lLv%{lv.%player%}%&6&l] &f%player%"
  251. rs(player)
  252. if {game} is true:
  253. give clock named "&6途中参加" to player
  254. stop
  255. else:
  256. stop
  257. on quit:
  258. remove player from {allplayer::*}
  259. on rightclick holding clock:
  260. {game} is true
  261. clear player's inventory
  262. give wooden axe to player
  263. give book named "&6レシピブック" to player
  264. give 64 bread to player
  265. broadcast "&e%player%さんが途中参加しました"
  266. set player's gamemode to survival
  267. add player to {allplayer::*}
  268. add 1 to {players}
  269. randomtp(player)
  270. rule(player)
  271. function lvup(p: player):
  272. set {_p} tab name to "&6&l[&a&lLv%{lv.%{_p}%}%&6&l] &f%{_p}%"
  273. if {lv.%{_p}%} >= 50:
  274. set {_p} tab name to "&6&l[&b&lLv%{lv.%{_p}%}%&6&l] &f%{_p}%"
  275. if {lv.%{_p}%} >= 100:
  276. set {_p} tab name to "&6&l[&3&lLv%{lv.%{_p}%}%&6&l] &f%{_p}%"
  277. if {lv.%{_p}%} >= 200:
  278. set {_p} tab name to "&6&l[&d&lLv%{lv.%{_p}%}%&6&l] &f%{_p}%"
  279. while {xp.%{_p}%} >= {nextlv.%{_p}%}:
  280. wait 2.5 tick
  281. play sound "entity.player.levelup" with volume 0.8 and pitch 0.7 at {_p} for {_p}
  282. set {nextlv.%{_p}%} to {nextlv.%{_p}%} * 1.2
  283. add 1 to {lv.%{_p}%}
  284. send "&aLvUP!! &l%{lv.%{_p}%}%Lv" to {_p}
  285. set {send.%{_p}%} to true
  286. if {send.%{_p}%} is true:
  287. send "&6次のレベルまで &5&l""%{nextlv.%{_p}%}%XP""" to {_p}
  288. set {_p} tab name to "&6&l[&a&lLv%{lv.%{_p}%}%&6&l] &f%{_p}%"
  289. set {send.%{_p}%} to false
  290. rs({_p})
  291. command /status [<offline player>]:
  292. trigger:
  293. if arg 1 is not set:
  294. send "=======&9%player% Status&f======="
  295. send "&6Lv:%{lv.%player%}%"
  296. send "&aXP:%{xp.%player%}%"
  297. send "&cKill:%{kill.%player%}%"
  298. send "&5NextLv:%{nextlv.%player%}%"
  299. stop
  300. else if arg-1 has not played before:
  301. send "&cそのプレイヤーはこのサーバーに参加したことがありません"
  302. stop
  303. else:
  304. send "=======&9%arg 1% Status&f======="
  305. send "&6Lv:%{lv.%arg 1%}%"
  306. send "&aXP:%{xp.%arg 1%}%"
  307. send "&cKill:%{kill.%arg 1%}%"
  308. send "&5NextLv:%{nextlv.%arg 1%}%"
  309. stop
  310. function rs(p: player):
  311. if {game} is true:
  312. wipe {_p}'s sidebar
  313. set name of sidebar of {_p} to "&5&lゲーム名募集中"
  314. set score "&6&lSisoPixel" in sidebar of {_p} to 1
  315. set score "" in sidebar of {_p} to 2
  316. set score "&6残り時間:&a%{timer}%分" in sidebar of {_p} to 3
  317. stop
  318. else:
  319. wipe {_p}'s sidebar
  320. set name of sidebar of {_p} to "&e&lしその鯖"
  321. set score "&6&lSisoPixel" in sidebar of {_p} to 1
  322. set score "" in sidebar of {_p} to 2
  323. set score "Lv: &b&l%{lv.%{_p}%}%" in sidebar of {_p} to 3
  324. set score "XP: &a&l%{xp.%{_p}%}%" in sidebar of {_p} to 4
  325. set score "Kills: &c&l%{kill.%{_p}%}%" in sidebar of {_p} to 5
  326. set score "&b===Your Status===" in sidebar of {_p} to 6
  327. set score "" in sidebar of {_p} to 7
  328. function rule(p: player):
  329. send "&6このゲームは鉱石を掘ってポイントを稼ぎ一位になるゲームです" to {_p}
  330. send "&6ポイントの付け方は鉱石の数×倍率です" to {_p}
  331. send "&7石炭 × 1" to {_p}
  332. send "鉄 × 1" to {_p}
  333. send "鉄インゴット × 2" to {_p}
  334. send "&e金 × 2" to {_p}
  335. send "&e金インゴット × 3" to {_p}
  336. send "&4レッドストーン × 1.5" to {_p}
  337. send "&9ラピスラズリ × 1.7" to {_p}
  338. send "&bダイアモンド × 10" to {_p}
  339. send "&aエメラルド × 1919" to {_p}
  340. send "&6&lとりあえず死なないで鉱石を掘ればいい!!" to {_p}
  341. on mine of diamond ore:
  342. broadcast "&e%player%がダイアモンドを掘りました!!"
  343. on rightclick holding book:
  344. open chest with 6 row named "&6FastPickaxe" to player
  345. format slot 12 of player with iron ore to be unstealable
  346. format slot 13 of player with iron ore to be unstealable
  347. format slot 14 of player with iron ore to be unstealable
  348. format slot 21 of player with coal to be unstealable
  349. format slot 23 of player with coal to be unstealable
  350. format slot 22 of player with stick to be unstealable
  351. format slot 31 of player with stick to be unstealable
  352. command /ea <text>:
  353. permission: skript.admin
  354. trigger:
  355. evaluate "%arg 1%"
  356. on skript load:
  357. register new shapeless recipe for iron pickaxe of Efficiency 2 named "&b&lFast Pickaxe" using iron ore, iron ore, iron ore, stick, stick, coal, coal, air, air
  358. on skript stop:
  359. df "world"
  360. command /lvup:
  361. trigger:
  362. lvup(all players)
  363. rs(all players)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement