Advertisement
ALPHADOIDE

Untitled

Jul 11th, 2021 (edited)
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 32.22 KB | None | 0 0
  1. on death of villager:
  2. wait 1 second
  3. set {_loc} to location of event-entity
  4. spawn villager at {_loc}
  5.  
  6. on spawn of villager:
  7. set the max health of the event-entity to 20
  8. heal event-entity
  9.  
  10. on death of player:
  11. if attacker is players:
  12. play sound "BLOCK_ANVIL_PLACE" with volume 0.8 and pitch 1 to the attacker
  13. set death message to "&b<%attacker%>&7-&7[&e%name of attacker's tool%&7]→&c<%victim%>"
  14. add 10 to {money::%attacker%}
  15. add 1 to {kill::%attacker%}
  16. add 1 to {exp::%attacker%}
  17. add 1 to {strike::%attacker%}
  18. add 1 to {death::%player%}
  19. set {strike::%victim's uuid%} to 0
  20. if {exp::%attacker%} >= {nextexp::%attacker%}:
  21. add 1 to {level::%attacker%}
  22. broadcast "&b[ゲームマスター]&e&l%attacker%のレベルが%{level::%attacker%}%になった!みんな祝え!"
  23. add 1 to {nextexp::%attacker%}
  24. set {exp::%attacker%} to 0
  25. loop all players:
  26. play sound "ENTITY_FIREWORK_LAUNCH" with volume 0.3 and pitch 1 to the loop-players
  27. wait 15 ticks
  28. play sound "ENTITY_FIREWORK_TWINKLE" with volume 1 and pitch 1.0 to the loop-players
  29.  
  30.  
  31. on death of player:
  32. if {strike::%attacker%} is 5:
  33. broadcast "&b[ゲームマスター]&e&l%attacker%が連続5キル!報酬として30ペルくれてやろう!!"
  34. add 30 to {money::%attacker%}
  35.  
  36. else if {strike::%attacker%} is 10:
  37. broadcast "&b[ゲームマスター]&e&l%attacker%が連続10キル!やるじゃねえか!ほらよ100ペルだ受け取れ!"
  38. add 100 to {money::%attacker%}
  39.  
  40. else if {strike::%attacker%} is 15:
  41. broadcast "&b[ゲームマスター]&e&l%attacker%が連続15キル!誰かこの化け物を止めてくれ!"
  42. broadcast "&5[システム]&c&l%attacker%が賞金首に指定されました・・・倒した者には100ペルが与えられます"
  43. set {kensyou%attacker%} to true
  44.  
  45. if {kensyou%victim's uuid%} is true:
  46. broadcast "&b[ゲームマスター]&e&l%attacker%が賞金首を仕留めたぞ!よくやった!%victim%もい~いファイトだったぜ!お互いに100ペルプレゼントだ!"
  47. add 100 to {money::%attacker%}
  48. add 100 to {money::%victim's uuid%}
  49. set {kensyou%victim's uuid%} to false
  50.  
  51. on damage:
  52. play sound "ENTITY_ARROW_HIT_PLAYER" with volume 2 and pitch 1.1 to the attacker
  53.  
  54. on chat:
  55. loop all players:
  56. play sound "BLOCK_STONE_BUTTON_CLICK_OFF" with volume 0.3 and pitch 1 to the loop-players
  57.  
  58. command /firstset:
  59. trigger:
  60. set {kill::%player%} to 0
  61. set {money::%player%} to 0
  62. set {exp::%player%} to 0
  63. set {nextexp::%player%} to 20
  64. set {exppoint::%player%} to 5
  65. set {level::%player%} to 1
  66. set {strike::%player%} to 0
  67. set {kensyou%player%} to false
  68. set {skill%player%} to 0
  69. loop {SkillNumber} times:
  70. set {skillunlock::%player%::%loop-number%} to false
  71. set {skillunlock::%player%::1} to true
  72. set {death::%player%} to 0
  73. set {SkillNumber} to 5
  74. set {BuildShopPage.%player%} to 1
  75.  
  76.  
  77. every 5 tick:
  78. loop all players:
  79. set action bar of loop-players to "&1&l<スキル:%{SkillName%{Skill%loop-player%}%}%> &d&l<所持金:%{money::%loop-player%}%ペル> &c&l<連続キル:%{strike::%loop-player%}%KILL>"
  80.  
  81. on rightclick:
  82. if block is sign:
  83. if line 1 is "&d&l100ペル引き出す":
  84. if {money::%player%} >= 100:
  85. give 1 gold nugget named "&d&l100ペル" with lore "&e&lシフト右クリックで電子化できる" and "&5「俺にとっては銃弾より" and "&5価値のあるものさ」" and "&5ジョン・グレー" to player
  86. remove 100 from {money::%player%}
  87. else:
  88. send "&cどうやらペルが足りないようだ・・・" to player
  89.  
  90. else if line 1 is "&e&l1000ペル引き出す":
  91. if {money::%player%} >= 1000:
  92. give 1 gold ingot named "&d&l1000ペル" with lore "&e&lシフト右クリックで電子化できる" and "&5「こいつのためなら、俺は" and "&5命を懸けてもいい」" and "&5ジョン・グレー" to player
  93. remove 1000 from {money::%player%}
  94. else:
  95. send "&cどうやらペルが足りないようだ・・・" to player
  96.  
  97. else if line 1 is "&b&l10000ペル引き出す":
  98. if {money::%player%} >= 10000:
  99. give 1 gold block named "&d&l10000ペル" with lore "&e&lシフト右クリックで電子化できる" and "&5「俺がくたばったら" and "&5こいつと俺を一緒に埋めてくれ」" and "&5ジョン・グレー" to player
  100. remove 10000 from {money::%player%}
  101. else:
  102. send "&cどうやらペルが足りないようだ・・・" to player
  103.  
  104.  
  105. on rightclick:
  106. name of held item is "&d&l10000ペル"
  107. player is sneaking
  108. wait a tick
  109. play sound "BLOCK_NOTE_HARP" with volume 100 and pitch 7 at player for player
  110. remove gold block named "&d&l10000ペル" with lore "&e&lシフト右クリックで電子化できる" and "&5「俺がくたばったら" and "&5こいつと俺を一緒に埋めてくれ」" and "&5ジョン・グレー" from player's inventory
  111. add 10000 to {money::%player%}
  112.  
  113. on rightclick:
  114. name of held item is "&d&l1000ペル"
  115. player is sneaking
  116. wait a tick
  117. play sound "BLOCK_NOTE_HARP" with volume 100 and pitch 7 at player for player
  118. remove gold ingot named "&d&l1000ペル" with lore "&e&lシフト右クリックで電子化できる" and "&5「こいつのためなら、俺は" and "&5命を懸けてもいい」" and "&5ジョン・グレー" from player's inventory
  119. add 1000 to {money::%player%}
  120.  
  121. on rightclick:
  122. name of held item is "&d&l100ペル"
  123. player is sneaking
  124. wait a tick
  125. play sound "BLOCK_NOTE_HARP" with volume 100 and pitch 7 at player for player
  126. remove gold nugget named "&d&l100ペル" with lore "&e&lシフト右クリックで電子化できる" and "&5「俺にとっては銃弾より" and "&5価値のあるものさ」" and "&5ジョン・グレー" from player's inventory
  127. add 100 to {money::%player%}
  128.  
  129.  
  130. on sign change:
  131. if line 1 is "100ペル":
  132. set line 1 to "&d&l100ペル引き出す"
  133. else if line 1 is "1000ペル":
  134. set line 1 to "&e&l1000ペル引き出す"
  135. else if line 1 is "10000ペル":
  136. set line 1 to "&b&l10000ペル引き出す"
  137.  
  138. command /setmoney <int>:
  139. permission: admin
  140. trigger:
  141. set {money::%player%} to arg
  142.  
  143. command /sethelmet:
  144. permission: admin
  145. trigger:
  146. loop {SkillNumber} times:
  147. if loop-number = 1:
  148. set {hel%loop-number%} to leather helmet named "&b&l新兵" with lore "&e&l特殊能力:&b&l移動速度が上昇する" and "&5「戦場で生き残るため、仕事を即座に覚える必要があった」" and "&5名のない兵士"
  149. set {SkillName%loop-number%} to "新兵"
  150. else if loop-number = 2:
  151. set {hel%loop-number%} to leather helmet named "&b&l鉄壁" with lore "&e&l特殊能力:&b&l体力が上昇する" and "&5「俺は神頼みで強くなったんじゃない、努力したんだ」" and "&5ジブラルタル"
  152. dye {hel%loop-number%} red
  153. set {SkillName%loop-number%} to "鉄壁"
  154. else if loop-number = 3:
  155. set {hel%loop-number%} to leather helmet named "&b&l忍者" with lore "&e&l特殊能力:&b&l落下ダメージを無効化する" and "&5「目立たず仕事をやり遂げるのが一流の忍者ってもんだ」" and "&5横山光輝"
  156. dye {hel%loop-number%} black
  157. set {SkillName%loop-number%} to "忍者"
  158. else if loop-number = 4:
  159. set {hel%loop-number%} to leather helmet named "&b&l職業軍人" with lore "&e&l特殊能力:&b&l被弾時、移動速度がかなり上昇" and "&5「猛者はスコープを使わないって?私は大砲よ」" and "&5バンガロール"
  160. dye {hel%loop-number%} brown
  161. set {SkillName%loop-number%} to "職業軍人"
  162. else if loop-number = 5:
  163. set {hel%loop-number%} to leather helmet named "&b&l衛生兵" with lore "&e&l特殊能力:&b&l回復速度が上昇する" and "&5「死ぬほど痛いだろうが、死にはせん。さあ行くぞ!」" and "&5ウィリアム・ビル"
  164. dye {hel%loop-number%} green
  165. set {SkillName%loop-number%} to "衛生兵"
  166.  
  167.  
  168. on damage:
  169. {skill%victim%} = 3
  170. damage was caused by fall
  171. cancel event
  172.  
  173. on crackshot damage:
  174. {skill%event-entity%} = 4
  175. apply potion of speed 3 to the event-entity for 1 seconds
  176.  
  177. on walking on red glass:
  178. block under the event-block is beacon
  179. set {pointloc} to location of event-block
  180. set {_pointmessage} to a random integer between 1 and 3
  181. if {_pointmessage} == 1:
  182. broadcast "&b[ゲームマスター]&e&l%player%が拠点を制圧したぜ!奴を狙うなら今がチャンスだ!"
  183. if {_pointmessage} == 2:
  184. broadcast "&b[ゲームマスター]&e&l%player%が拠点を制圧しやがった!他の奴ら残念だったな!次頑張れ!"
  185. if {_pointmessage} == 3:
  186. broadcast "&b[ゲームマスター]&e&l%player%が拠点を制圧したのか?他のやつに賭けてたんだが・・・チクショウ!"
  187. add 150 to {money::%player%}
  188. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 and pitch 1.0 to player
  189. set block to glass
  190. set {point} to 60
  191.  
  192. every seconds:
  193. loop all players:
  194. {skill%loop-player%} = 5
  195. heal loop-player by 0.5 hearts
  196.  
  197. if {point} <= 60:
  198. remove 1 from {point}
  199. if {point} == 0:
  200. set block at {pointloc} to red glass
  201. set {_pointmes} to a random integer between 1 and 3
  202. if {_pointmes} == 1:
  203. broadcast "&b[ゲームマスター]&e&l拠点が復活したぞお前ら!報酬は早い者勝ちだ!"
  204. if {_pointmes} == 2:
  205. broadcast "&b[ゲームマスター]&e&l拠点が復活したぞ・・・もうそんな時間か?!"
  206. if {_pointmes} == 3:
  207. broadcast "&b[ゲームマスター]&e&l拠点が復活したぜ!俺は%random element out of all players%が制圧するに1000ペル賭ける!"
  208.  
  209. #---------------------2-----------------------
  210.  
  211. on rightclick on entity:
  212. if display name of event-entity is "スキルショップ":
  213. cancel event
  214. open chest inventory with 6 row named "&a&lスキルショップ" to player
  215. loop 10 times:
  216. set slot loop-number - 1 of player's current inventory to iron bars named ""
  217. set slot 4 of player's current inventory to magma cream named "&e&lスキルショップ" with lore "&a&lレベルアップなどで入手できる経験値を消費して" and "&a&lスキルを購入することができる。" and "&a&l使用するスキルの選択は、メニューから行ってね" and "&c&lなおスキルの購入には5経験値pointが必要です" and "&5「経験は、何よりの宝になる」 ロック・ロバート"
  218. set slot 9 of player's current inventory to {hel1}
  219. set slot 10 of player's current inventory to {hel2}
  220. set slot 11 of player's current inventory to {hel3}
  221. set slot 12 of player's current inventory to {hel4}
  222. set slot 13 of player's current inventory to {hel5}
  223. loop {SkillNumber} times:
  224. if {skillunlock::%player%::%loop-number%} is true:
  225. set slot loop-number - 1 + 9 of player's current inventory to red wool named "&d&l開放済み"
  226.  
  227. on inventory click:
  228. name of clicked inventory is "&a&lスキルショップ"
  229. cancel event
  230. if event-item is {hel1}:
  231. SkillShop(player, 1)
  232. else if event-item is {hel2}:
  233. SkillShop(player, 2)
  234. else if event-item is {hel3}:
  235. SkillShop(player, 3)
  236. else if event-item is {hel4}:
  237. SkillShop(player, 4)
  238. else if event-item is {hel5}:
  239. SkillShop(player, 5)
  240.  
  241. function SkillShop(p :player, n :number):
  242. if {exppoint::%{_p}%} >= 5:
  243. send "&5[システム]&c&l%{SkillName%{_n}%}%を開放しました!" to {_p}
  244. remove 5 from {exppoint::%{_p}%}
  245. set {skillunlock::%{_p}%::%{_n}%} to true
  246. close {_p}'s inventory
  247. wait 10 ticks
  248. play sound "ENTITY_FIREWORK_LAUNCH" with volume 1 and pitch 1.0 to {_p}
  249. wait 20 ticks
  250. play sound "ENTITY_FIREWORK_TWINKLE" with volume 1 and pitch 1.0 to {_p}
  251. else:
  252. send "経験値が足りないようだ・・・" to {_p}
  253. play sound "BLOCK_LAVA_POP" with volume 1 and pitch 1.0 to {_p}
  254. close {_p}'s inventory
  255.  
  256.  
  257. command /setexp <int>:
  258. trigger:
  259. set {exppoint::%player%} to arg
  260.  
  261.  
  262. every 3 second:
  263. loop all players:
  264. wipe loop-player's sidebar
  265. set name of sidebar of loop-player to "&e-%loop-player% Status-"
  266. set score "&aLevel:%{level::%loop-player%}%" in sidebar of loop-player to 3
  267. set score "&bEXP:%{exp::%loop-player%}%/%{nextexp::%loop-player%}%" in sidebar of loop-player to 2
  268. set score "所持経験値:%{exppoint::%loop-player%}%point" in sidebar of loop-player to 1
  269.  
  270. command /buildshop <number>:
  271. permission: admin
  272. trigger:
  273. set {testchest%player%} to true
  274. set {BuildShopNumber} to arg
  275. open chest inventory with 6 row named "&a&l建材ショップ Page:%arg%" to player
  276. set {_num} to 0
  277. loop {BuildShop.%arg%::*}:
  278. set slot {_num} of player's current inventory to loop-value
  279. add 1 to {_num}
  280.  
  281. on rightclick on entity:
  282. if display name of event-entity is "&d建材ショップ":
  283. open chest inventory with 6 row named "&a&l建材ショップ Page:1" to player
  284. set {_num} to 0
  285. set {BuildShopPage.%player%} to 1
  286. loop {BuildShop.1::*}:
  287. set slot {_num} of player's current inventory to loop-value
  288. add 1 to {_num}
  289. set slot 53 of player's current inventory to arrow named "次のページへ"
  290.  
  291. command /openbuildshop <number>:
  292. trigger:
  293. open chest inventory with 6 row named "&a&l建材ショップ Page:%arg%" to player
  294. set {_num} to 0
  295. loop {BuildShop.%arg%::*}:
  296. set slot {_num} of player's current inventory to loop-value
  297. add 1 to {_num}
  298.  
  299. on inventory close:
  300. {testchest%player%} is true
  301. loop 54 times:
  302. set {BuildShop.%{BuildShopNumber}%::%loop-number - 1%} to slot "%loop-number - 1%" parsed as an integer of current inventory of player
  303. set {testchest%player%} to false
  304.  
  305. on inventory click:
  306. name of clicked inventory contains "&a&l建材ショップ"
  307. {testchest%player%} is false
  308. cancel event
  309. if {money::%player%} >= 100:
  310. remove 100 from {money::%player%}
  311. give event-item to player
  312. play sound "BLOCK_NOTE_HARP" with volume 1 and pitch 1.0 to player
  313. else:
  314. send "ペルが足りないようだ・・・" to player
  315. play sound "BLOCK_LAVA_POP" with volume 1 and pitch 1.0 to player
  316. close player's inventory
  317. if event-item is arrow named "次のページへ":
  318. close player's inventory
  319. add 1 to {BuildShopPage.%player%}
  320. open chest inventory with 6 row named "&a&l建材ショップ Page:%{BuildShopPage.%player%}%" to player
  321. set {_num} to 0
  322. loop {BuildShop.%{BuildShopPage.%player%}%::*}:
  323. set slot {_num} of player's current inventory to loop-value
  324. add 1 to {_num}
  325. set slot 53 of player's current inventory to arrow named "次のページへ"
  326. set slot 45 of player's current inventory to arrow named "前のページへ"
  327. else if event-item is arrow named "前のページへ":
  328. close player's inventory
  329. remove 1 from {BuildShopPage.%player%}
  330. open chest inventory with 6 row named "&a&l建材ショップ Page:%{BuildShopPage.%player%}%" to player
  331. set {_num} to 0
  332. loop {BuildShop.%{BuildShopPage.%player%}%::*}:
  333. set slot {_num} of player's current inventory to loop-value
  334. add 1 to {_num}
  335. set slot 53 of player's current inventory to arrow named "次のページへ"
  336. {BuildShopPage.%player%} >= 2
  337. set slot 45 of player's current inventory to arrow named "前のページへ"
  338.  
  339. command /setgatya <String> <number>:
  340. permission: admin
  341. trigger:
  342. set {Gatya::%arg-1%} to player's tool
  343. set {GatyaChance::%arg-1%} to arg-2
  344. give name tag named "&e%arg-1%のガチャチケット" with lore "&d当選確率: 1/%arg-2%" and "&a右クリックでガチャを引くことができる" to player
  345. loop {Gatya::*}:
  346. send loop-index to player
  347.  
  348. on rightclick with name tag:
  349. loop {Gatya::*}:
  350. if player have name tag named "&e%loop-index%のガチャチケット" with lore "&d当選確率: 1/%{GatyaChance::%loop-index%}%" and "&a右クリックでガチャを引くことができる":
  351. wait 2 ticks
  352. remove name tag named "&e%loop-index%のガチャチケット" with lore "&d当選確率: 1/%{GatyaChance::%loop-index%}%" and "&a右クリックでガチャを引くことができる" from the player
  353. set {_gatya} to a random integer between 1 and {GatyaChance::%loop-index%}
  354. if {_gatya} = 1:
  355. broadcast "&e&l%player%さんが、%loop-index%を当てました!"
  356. give {Gatya::%loop-index%} to player
  357. loop all players:
  358. loop 5 times:
  359. play sound "ENTITY_FIREWORK_LAUNCH" with volume 0.3 and pitch 1 to the loop-players
  360. wait 10 ticks
  361. else:
  362. play sound "BLOCK_LAVA_POP" with volume 1 and pitch 1.0 to player
  363.  
  364. command /patinko:
  365. trigger:
  366. give iron nugget named "&b&l10ペルパチンコ玉" with lore "&a10ペルと同じ価値を持つ玉" and "&a10ペルパチンコ台で使える" to player
  367.  
  368. on rightclick:
  369. if block is sign:
  370. if line 1 is "&d&l10ペルパチンコ":
  371. if line 2 is "当たり:30玉":
  372. player have iron nugget named "&b&l10ペルパチンコ玉" with lore "&a10ペルと同じ価値を持つ玉" and "&a10ペルパチンコ台で使える"
  373. wait 1 tick
  374. remove iron nugget named "&b&l10ペルパチンコ玉" with lore "&a10ペルと同じ価値を持つ玉" and "&a10ペルパチンコ台で使える" from player
  375. set {_10pati} to a random integer between 1 and 30
  376. if {_10pati} = 1:
  377. play sound "ENTITY_PLAYER_LEVELUP" with volume 0.5 and pitch 2 to the players
  378. give 30 iron nugget named "&b&l10ペルパチンコ玉" with lore "&a10ペルと同じ価値を持つ玉" and "&a10ペルパチンコ台で使える" to player
  379. else:
  380. play sound "BLOCK_NOTE_BELL" with volume 0.5 and pitch 1 to the players
  381.  
  382. if line 2 is "当たり:10玉":
  383. player have iron nugget named "&b&l10ペルパチンコ玉" with lore "&a10ペルと同じ価値を持つ玉" and "&a10ペルパチンコ台で使える"
  384. wait 1 tick
  385. remove iron nugget named "&b&l10ペルパチンコ玉" with lore "&a10ペルと同じ価値を持つ玉" and "&a10ペルパチンコ台で使える" from player
  386. set {_10pati} to a random integer between 1 and 10
  387. if {_10pati} = 1:
  388. play sound "ENTITY_PLAYER_LEVELUP" with volume 0.5 and pitch 2 to the players
  389. give 10 iron nugget named "&b&l10ペルパチンコ玉" with lore "&a10ペルと同じ価値を持つ玉" and "&a10ペルパチンコ台で使える" to player
  390. else:
  391. play sound "BLOCK_NOTE_BELL" with volume 0.5 and pitch 1 to the players
  392.  
  393. else if line 2 is "当たり:5玉":
  394. player have iron nugget named "&b&l10ペルパチンコ玉" with lore "&a10ペルと同じ価値を持つ玉" and "&a10ペルパチンコ台で使える"
  395. wait 1 tick
  396. remove iron nugget named "&b&l10ペルパチンコ玉" with lore "&a10ペルと同じ価値を持つ玉" and "&a10ペルパチンコ台で使える" from player
  397. set {_10pati} to a random integer between 1 and 5
  398. if {_10pati} = 1:
  399. play sound "ENTITY_PLAYER_LEVELUP" with volume 0.5 and pitch 2 to the players
  400. give 5 iron nugget named "&b&l10ペルパチンコ玉" with lore "&a10ペルと同じ価値を持つ玉" and "&a10ペルパチンコ台で使える" to player
  401. else:
  402. play sound "BLOCK_NOTE_BELL" with volume 0.5 and pitch 1 to the players
  403.  
  404.  
  405.  
  406. on sign change:
  407. if line 1 is "10ペルパチンコ5":
  408. set line 1 to "&d&l10ペルパチンコ"
  409. set line 2 to "当たり:5玉"
  410. set line 3 to "&a確率:高"
  411. if line 1 is "10ペルパチンコ10":
  412. set line 1 to "&d&l10ペルパチンコ"
  413. set line 2 to "当たり:10玉"
  414. set line 3 to "&a確率:中"
  415. if line 1 is "10ペルパチンコ30":
  416. set line 1 to "&d&l10ペルパチンコ"
  417. set line 2 to "当たり:30玉"
  418. set line 3 to "&a確率:低"
  419.  
  420. #-----------------------menu----------------------
  421.  
  422. on rightclick with clock:
  423. if name of event-item is "&c&lメニュー":
  424. open chest inventory with 1 row named "&c&lメニュー" to player
  425. set slot 0 of player's current inventory to ender pearl named "&b&lテレポート" with lore "&e&l各施設などにテレポートできる" and "&e&l戦場に出撃中は使用できない"
  426. set slot 1 of player's current inventory to book named "&b&lスキル変更" with lore "&e&l解放済みのスキルに変更できる" and "&e&l戦場に出撃中は使用できない"
  427. set slot 7 of player's current inventory to paper named "&b&lキルランキング" with lore "&e&lプレイヤーのキルやキルレートなどの" and "&e&lランキングを表示する"
  428. set slot 8 of player's current inventory to lime dye named "&b&l設定" with lore "&e&l連続出撃、キルログ非表示など" and "&e&l便利な設定などが行える"
  429.  
  430. on inventory click:
  431. name of clicked inventory is "&c&lメニュー"
  432. cancel event
  433. if event-item is ender pearl named "&b&lテレポート" with lore "&e&l各施設などにテレポートできる" and "&e&l戦場に出撃中は使用できない":
  434.  
  435. else if event-item is book named "&b&lスキル変更" with lore "&e&l解放済みのスキルに変更できる" and "&e&l戦場に出撃中は使用できない":
  436. open chest inventory with 1 row named "&a&lスキル変更" to player
  437. set slot 0 of player's current inventory to {hel1}
  438. set slot 1 of player's current inventory to {hel2}
  439. set slot 2 of player's current inventory to {hel3}
  440. set slot 3 of player's current inventory to {hel4}
  441. set slot 4 of player's current inventory to {hel5}
  442.  
  443. loop {SkillNumber} times:
  444. if {skill%player%} is loop-number:
  445. set slot loop-number - 1 of player's current inventory to purple wool named "&d&l選択中"
  446. loop {SkillNumber} times:
  447. if {skillunlock::%player%::%loop-number%} is false:
  448. set slot loop-number - 1 of player's current inventory to red wool named "&d&l未開放"
  449. else if event-item is paper named "&b&lキルランキング" with lore "&e&lプレイヤーのキルやキルレートなどの" and "&e&lランキングを表示する":
  450. open chest inventory with 1 row named "&a&lランキング一覧" to player
  451. set {_high} to 0
  452. set {_count} to 7
  453. set {_killrankitem} to diamond sword named "&aキルランキング"
  454. loop {kill::*}:
  455. set {_killrank::%loop-index%} to loop-value
  456. loop {_count} times:
  457. loop {_killrank::*}:
  458. loop-value-2 > {_high}
  459. set {_high} to loop-value-2
  460. set {_highplayer} to loop-index
  461. set line loop-number of lore of {_killrankitem} to "&a%loop-number%位.&b%{_highplayer}%: &c%{_high}%Kill"
  462. set {_high} to 0
  463. delete {_killrank::%{_highplayer}%}
  464. set slot 0 of player's current inventory to {_killrankitem}
  465.  
  466. else if event-item is lime dye named "&b&l設定" with lore "&e&l連続出撃、キルログ非表示など" and "&e&l便利な設定などが行える":
  467.  
  468.  
  469. on inventory click:
  470. name of clicked inventory is "&a&lスキル変更"
  471. cancel event
  472. if event-item is {hel1}:
  473. set {skill%player%} to 1
  474. send "&5[システム]&c&lスキルを新兵に変更しました"
  475. set the player's walk speed to 0.3
  476. set the max health of the player to 20
  477. set player's helmet to unbreakable {hel1}
  478. play sound "BLOCK_NOTE_HARP" with volume 100 and pitch 7 at player for player
  479. close player's inventory
  480. else if event-item is {hel2}:
  481. set {skill%player%} to 2
  482. send "&5[システム]&c&lスキルを鉄壁に変更しました"
  483. set the max health of the player to 30
  484. heal the player
  485. set the player's walk speed to 0.20
  486. set player's helmet to unbreakable {hel2}
  487. play sound "BLOCK_NOTE_HARP" with volume 100 and pitch 7 at player for player
  488. close player's inventory
  489. else if event-item is {hel3}:
  490. set {skill%player%} to 3
  491. send "&5[システム]&c&lスキルを忍者に変更しました"
  492. set the max health of the player to 20
  493. set the player's walk speed to 0.20
  494. set player's helmet to unbreakable {hel3}
  495. play sound "BLOCK_NOTE_HARP" with volume 100 and pitch 7 at player for player
  496. close player's inventory
  497. else if event-item is {hel4}:
  498. set {skill%player%} to 4
  499. send "&5[システム]&c&lスキルを職業軍人に変更しました"
  500. set the max health of the player to 20
  501. set the player's walk speed to 0.20
  502. set player's helmet to unbreakable {hel4}
  503. play sound "BLOCK_NOTE_HARP" with volume 100 and pitch 7 at player for player
  504. close player's inventory
  505. else if event-item is {hel5}:
  506. set {skill%player%} to 5
  507. send "&5[システム]&c&lスキルを衛生兵に変更しました"
  508. set the max health of the player to 20
  509. set the player's walk speed to 0.20
  510. set player's helmet to unbreakable {hel5}
  511. play sound "BLOCK_NOTE_HARP" with volume 100 and pitch 7 at player for player
  512. close player's inventory
  513.  
  514. command /menuitem:
  515. trigger:
  516. give 1 clock named "&c&lメニュー" with lore "&e便利な機能を利用したり、設定を変更できる" to player
  517.  
  518. command /fieldspawn:
  519. permission: admin
  520. trigger:
  521. if {FieldNumber} is not set:
  522. set {FieldNumber} to 0
  523. send "フィールドナンバーが設定されていなかったのでもう一度コマンド入力してください" to player
  524. else:
  525. set {FieldSpawn::%{FieldNumber}%} to location of player
  526. add 1 to {FieldNumber}
  527.  
  528. command /firstsetspawn:
  529. trigger:
  530. set {FieldNumber} to 0
  531.  
  532. command /deletefield <number>:
  533. trigger:
  534. if arg is not set:
  535. loop {FieldSpawn::*}:
  536. delete {FieldSpawn::%loop-index%}
  537. set {FieldNumber} to 0
  538. send "すべてのフィールド座標を削除しました" to player
  539. else if {FieldSpawn} is set:
  540. delete {FieldSpawn::%arg%}
  541. send "%arg%番の座標を削除しました" to player
  542. else:
  543. send "その番号は存在しません" to player
  544.  
  545. command /fieldlist:
  546. permission: admin
  547. trigger:
  548. loop {FieldSpawn::*}:
  549. send "%loop-index% : %{FieldSpawn::%loop-index%}%" to player
  550.  
  551. command /fieldtp:
  552. trigger:
  553. set {_tpcheck%player%} to true
  554. while ({_tpcheck%player%}):
  555. set {_tpnum%player%} to a random integer between 0 and size of {FieldSpawn::*} - 1
  556. spawn an armor stand at location of {FieldSpawn::%{_tpnum%player%}%}
  557. set {_entity%player%} to last spawned armor stand
  558. add "{Marker:true,Invisible:true,NoGravity:true}" to entity-nbt of {_entity%player%}
  559. loop all players:
  560. if distance between the last spawned entity and loop-player is smaller than 20:
  561. send "エリア内に敵がいます" to player
  562. kill {_entity%player%}
  563. wait 3 ticks
  564. else:
  565. send "エリア内に敵がいないので出撃します" to player
  566. set {_tpcheck%player%} to false
  567. kill {_entity%player%}
  568. teleport player to {FieldSpawn::%{_tpnum%player%}%}
  569.  
  570.  
  571. command /setgun <String> <Number>:
  572. permission: admin
  573. trigger:
  574. if {GunNum::%arg-1%} is not set:
  575. set {GunNum::%arg-1%} to 0
  576. set {Gun::%arg-1%::%{GunNum::%arg-1%}%} to player's tool
  577. set {GunType::%arg-1%} to arg-1
  578. send "{Gun::%arg-1%::%{GunNum::%arg-1%}%}" to player
  579. set {GunPrice::%arg-1%::%{GunNum::%arg-1%}%} to arg-2
  580. add 1 to {GunNum::%arg-1%}
  581.  
  582. command /deletegun <String>:
  583. permission: admin
  584. trigger:
  585. loop {Gun::%arg-1%::*}:
  586. delete {Gun::%arg-1%::%loop-index%}
  587. delete {GunNum::%arg-1%}
  588. delete {GunPrice::%arg-1%::%loop-index%}
  589.  
  590. command /aaa:
  591. trigger:
  592. send "%{Gun::*}%" to player
  593.  
  594. command /bbb:
  595. trigger:
  596. set {test12::test13::test14} to 0
  597. loop {test12::*}:
  598. send "a" to player
  599.  
  600. on rightclick on entity:
  601. loop {GunType::*}:
  602. if display name of event-entity is "%loop-value-1%ショップ":
  603. cancel event
  604. open chest inventory with 6 row named "&c&l%loop-value-1%ショップ" to player
  605. set {_gui%player%} to 0
  606. loop 9 times:
  607. set slot loop-number - 1 of player's current inventory to iron bars named " "
  608. set slot loop-number - 1 + 27 of player's current inventory to iron bars named " "
  609. loop {Gun::%loop-value-1%::*}:
  610. set slot {_gui%player%} + 9 of player's current inventory to {Gun::%loop-value-1%::%loop-index-2%}
  611. set slot {_gui%player%} + 18 of player's current inventory to gold nugget named "&b&l値段" with lore "&c&l%{GunPrice::%loop-value-1%::%loop-index-2%}%ペル"
  612. add 1 to {_gui%player%}
  613. set slot 4 of player's current inventory to magma cream named "&e&l銃ショップ" with lore "&a&lペルを消費して銃を購入することができる" and "&a&l価格は銃の下の金塊に表示されます"
  614.  
  615. on inventory click:
  616. name of clicked inventory contains "ショップ"
  617. loop {GunType::*}:
  618. if name of clicked inventory is "&c&l%loop-value-1%ショップ":
  619. cancel event
  620. loop {Gun::%loop-value-1%::*}:
  621. if event-item is {Gun::%loop-value-1%::%loop-index-2%}:
  622. GunShop(player, "%loop-value-1%", "%loop-index-2%")
  623. close player's inventory
  624.  
  625. function GunShop(p: player,s: string,n: string):
  626. if {money::%{_p}%} >= {GunPrice::%{_s}%::%{_n}%}:
  627. give {Gun::%{_s}%::%{_n}%} to {_p}
  628. play sound "ENTITY_PLAYER_LEVELUP" with volume 1 and pitch 1 at {_p} for {_p}
  629. send "&a&l銃を購入しました!" to {_p}
  630. remove {GunPrice::%{_s}%::%{_n}%} from {money::%{_p}%}
  631. else:
  632. send "&a&lどうやらペルが足りないようだ・・・" to {_p}
  633.  
  634. command /listgun <String>:
  635. permission: admin
  636. trigger:
  637. send "-%arg-1%-"
  638. loop {Gun::%arg-1%::*}:
  639. send "%loop-index% : %{Gun::%arg-1%::%loop-index%}%"
  640.  
  641.  
  642. command /getgun:
  643. trigger:
  644. give {testgun} to player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement