Advertisement
Svely

Anni

Jun 6th, 2018
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 23.30 KB | None | 0 0
  1. options:
  2. anni: &f[&cAnnihilation&f]&a:&f
  3. pe: &cYou dont have permission contact admin
  4. buy: &5You are not buying this class
  5.  
  6. command /anni [<text>] [<text>]:
  7. permission: anni.admin
  8. permission message: {@pe}
  9. trigger:
  10. if arg 1 is set:
  11. if arg 2 is set:
  12. if arg 1 is "setspawn":
  13. if arg 2 is "red":
  14. set {anni.red.spawn} to location of player
  15. send "{@anni}&5 set You location to &cRed&5 spawn"
  16. if arg 2 is "blue":
  17. set {anni.blue.spawn} to location of player
  18. send "{@anni}&5 set You location to &9Blue&5 spawn"
  19. if arg 2 is not set:
  20. if arg 1 is "start":
  21. set {anni.start} to true
  22. broadcast "&5Phase 1"
  23. loop all players:
  24. if {team.red.%loop-player%} is true:
  25. teleport loop-player to {anni.red.spawn}
  26. if {anni.class.civ.%loop-player%} is true:
  27. give loop-player wooden sword
  28. give loop-player stone shovel
  29. give loop-player stone pickaxe
  30. give loop-player stone axe
  31. give loop-player brick named "Craft 'O Matic"
  32. stop
  33. if {anni.class.miner.%loop-player%} is true:
  34. give loop-player {class.miner}
  35. stop
  36. if {team.blue.%loop-player%} is true:
  37. teleport loop-player to {anni.blue.spawn}
  38. if {anni.class.civ.%loop-player%} is true:
  39. give loop-player wooden sword
  40. give loop-player stone shovel
  41. give loop-player stone pickaxe
  42. give loop-player stone axe
  43. give loop-player brick named "Craft 'O Matic"
  44. stop
  45. if {anni.class.miner.%loop-player%} is true:
  46. give loop-player {class.miner}
  47. stop
  48. if arg 1 is "stop":
  49. set {anni.start} to false
  50. broadcast "{@anni} &5運営によってANNIが終了しました"
  51.  
  52. command /rename [<text>]:
  53. permission: anni.admin
  54. permission message: anni.admin
  55. trigger:
  56. if arg 1 is set:
  57. set the name of player's tool to "&r%colored arg-1%"
  58.  
  59. command /soulbound:
  60. permission: anni.admin
  61. permission message: {@pe}
  62. trigger:
  63. set the lore of the player's held item to "&6SoulBound"
  64.  
  65. command /pvp [<text>]:
  66. permission: anni.admin
  67. permission message: {@pe}
  68. trigger:
  69. if arg 1 is "enable":
  70. enable pvp
  71. stop
  72. if arg 1 is "disable":
  73. disable pvp
  74. stop
  75.  
  76. command /status [<text>]:
  77. trigger:
  78. if arg 1 is not set:
  79. send "{@anni} &a%player% status" to player
  80. send "{@anni} &5Kill: %{kill.%player%}%" to player
  81. send "{@anni} &5Nexus Attack damage: %{nexus.damage.%player%}%" to player
  82. send "{@anni} &5Death: %{death.%player%}%" to player
  83.  
  84. command /myxp:
  85. trigger:
  86. send "{@anni} &aXP: %{myxp.%player%}%" to player
  87.  
  88. command /ping [<player>]:
  89. trigger:
  90. if arg 1 is not set:
  91. send "&aping %player's ping%"
  92. if arg 1 is set:
  93. send "&aping %player-arg's ping%"
  94.  
  95. command /report [<player>] [<text>]:
  96. trigger:
  97. if arg 1 is not set:
  98. send "&cプレイヤーが選択されていません"
  99. if arg 2 is not set:
  100. send "&c理由が書かれていません"
  101. if arg 1 is set:
  102. if arg 2 is set:
  103. send "{@anni} Reportを出しました"
  104. loop all players:
  105. if loop-player has permission "anni.admin":
  106. send "{@anni} &c=====Report=====" to loop-player
  107. send "{@anni} Report by %player%" to loop-player
  108. send "{@anni} Player Reported %arg-1%" to loop-player
  109. send "{@anni} Reason %arg-2%" to loop-player
  110.  
  111. command /adminset [<text>] [<offline player>]:
  112. permission: anni.admin
  113. permission message: {@pe}
  114. trigger:
  115. if arg 1 is set:
  116. if arg 2 is set:
  117. if arg 1 is "admin":
  118. set {anni.admin.%arg-2%} to true
  119. set {anni.lobby.%arg-2%} to false
  120. set {team.red.%arg-2%} to false
  121. set {team.blue.%arg-2%} to false
  122. send "{@anni} %arg-2%さんをadminにしました"
  123. if arg 1 is "build":
  124. set {anni.build.%arg-2%} to true
  125. set {anni.lobby.%arg-2%} to false
  126. set {team.red.%arg-2%} to false
  127. set {team.blue.%arg-2%} to false
  128. send "{@anni} %arg-2%さんを&3BuildTeam&fにしました"
  129.  
  130. command /game [<text>]:
  131. trigger:
  132. if arg 1 is set:
  133. if arg 1 is "leave":
  134. if {anni.start} is true:
  135. send "&5Game is already started"
  136. else:
  137. set {anni.join.%player%} to false
  138. send "&5You leave the game"
  139.  
  140. command /ban [<offline player>]:
  141. permission: anni.admin
  142. permission message: {@pe}
  143. trigger:
  144. kick the player
  145.  
  146. command /banticket [<offline player>] [<text>]:
  147. permission: anni.admin
  148. permission message: {@pe}
  149. trigger:
  150. send "{@anni} &5あなたは%player%によってbanされました ban appeal &fhttps://discord.gg/rxBv6Ur" to arg-1
  151. wait 1 second
  152. kick the arg-1
  153. broadcast "{@anni}&5 %player%さんが%arg-1%を処罰しました 理由%arg-2%"
  154.  
  155. command /setlobby:
  156. permission: anni.admin
  157. permission message: {@pe}
  158. trigger:
  159. set {lobby} to location of player
  160. send "{@anni} set you location to lobby"
  161.  
  162. command /dellobby:
  163. permission: anni.admin
  164. permission message: {@pe}
  165. trigger:
  166. delete {lobby}
  167. send "{@anni} deleted lobby"
  168.  
  169. command /team [<text>] [<text>]:
  170. trigger:
  171. if arg 1 is not set:
  172. if arg 2 is not set:
  173. send "{@anni} &5/team join [team]"
  174. send "{@anni} &5/team leave"
  175. if arg 1 is set:
  176. if arg 1 is "join":
  177. if arg 2 is set:
  178. if arg 2 is "red":
  179. if {team.join.%player%} is true:
  180. send "&5You already team"
  181. else:
  182. send "&5You joined the &cRed&5 team"
  183. set {team.join.%player%} to true
  184. set {team.red.%player%} to true
  185. set {anni.lobby.%player%} to false
  186. set {anni.admin.%player%} to false
  187. set {anni.build.%player%} to false
  188. if arg 2 is set:
  189. if arg 2 is "blue":
  190. if {team.join.%player%} is true:
  191. send "&5You already team"
  192. else:
  193. send "&5You joined the &9Blue&5 team"
  194. set {team.join.%player%} to true
  195. set {team.blue.%player%} to true
  196. set {anni.lobby.%player%} to false
  197. set {anni.admin.%player%} to false
  198. set {anni.build.%player%} to false
  199. if arg 1 is set:
  200. if arg 1 is "leave":
  201. if arg 2 is not set:
  202. if {anni.start} is true:
  203. send "&5Game is already started"
  204. stop
  205. else:
  206. send "&5You leave the team"
  207. set {anni.lobby.%player%} to true
  208. set {team.join.%player%} to false
  209. set {team.red.%player%} to false
  210. set {team.blue.%player%} to false
  211. set {anni.admin.%player%} to false
  212. set {anni.build.%player%} to false
  213.  
  214. command /class [<text>]:
  215. trigger:
  216. if arg 1 is "civ":
  217. set {anni.class.civ.%player%} to true
  218. set {anni.class.miner.%player%} to false
  219. set {anni.class.civ.%player%} to false
  220. set {anni.class.civ.%player%} to false
  221. set {anni.class.war.%player%} to false
  222. set {anni.class.archer.%player%} to false
  223. set {anni.class.enchanter.%player%} to false
  224. send "&5Civilian selected"
  225. if arg 1 is "miner":
  226. set {anni.class.miner.%player%} to true
  227. set {anni.class.civ.%player%} to false
  228. set {anni.class.war.%player%} to false
  229. set {anni.class.acrobat.%player%} to false
  230. set {anni.class.archer.%player%} to false
  231. set {anni.class.enchanter.%player%} to false
  232. send "&5Miner selected"
  233. if arg 1 is "acrobat":
  234. if {class.acrobat.%player%} is true:
  235. set {anni.class.acrobat.%player%} to true
  236. set {anni.class.miner.%player%} to false
  237. set {anni.class.civ.%player%} to false
  238. set {anni.class.war.%player%} to false
  239. set {anni.class.archer.%player%} to false
  240. set {anni.class.enchanter.%player%} to false
  241. send "&5Acrobat selected"
  242. else:
  243. send "{@buy}"
  244. if arg 1 is "warrior":
  245. set {anni.class.war.%player%} to true
  246. set {anni.class.acrobat.%player%} to false
  247. set {anni.class.miner.%player%} to false
  248. set {anni.class.civ.%player%} to false
  249. set {anni.class.archer.%player%} to false
  250. set {anni.class.enchanter.%player%} to false
  251. send "&5Warrior selected"
  252. if arg 1 is "archer":
  253. set {anni.class.archer.%player%} to true
  254. set {anni.class.war.%player%} to false
  255. set {anni.class.acrobat.%player%} to false
  256. set {anni.class.miner.%player%} to false
  257. set {anni.class.civ.%player%} to false
  258. set {anni.class.enchanter.%player%} to false
  259. send "&5Archer selected"
  260. if arg 1 is "enchanter":
  261. if {class.enchanter.%player%} is true:
  262. set {anni.class.enchanter.%player%} to true
  263. set {anni.class.archer.%player%} to false
  264. set {anni.class.war.%player%} to false
  265. set {anni.class.acrobat.%player%} to false
  266. set {anni.class.miner.%player%} to false
  267. set {anni.class.civ.%player%} to false
  268. send "&5Enchanter selected"
  269. else:
  270. send "{@buy}"
  271.  
  272. command /adminclass [<text>]:
  273. permission: anni.admin
  274. permission message: {@pe}
  275. trigger:
  276. if arg 1 is set:
  277. if arg 1 is "acrobat":
  278. set {anni.class.acrobat.%player%} to true
  279. send "&5Acrobat selected"
  280. if arg 1 is set:
  281. if arg 1 is "enchanter":
  282. set {anni.class.enchanter.%player%} to true
  283. send "&5Enchanter selected"
  284.  
  285. command /displaycore:
  286. trigger:
  287. loop all players:
  288. set name of sidebar of loop-player to "&6&lMap: None"
  289. set score "&9&lBlue" in sidebar of loop-player to {bluehp}
  290. set score "&c&lRed" in sidebar of loop-player to {redhp}
  291.  
  292. on right click with nether star:
  293. cancel event
  294. name of held item contains "&aTeam selection"
  295. open chest with 1 row named "&aTeam selection" to player
  296. wait 1 tick
  297. format slot 0 of player with red wool named "&cRed Team" to close then run [execute player command "team join Red"]
  298. format slot 1 of player with blue wool named "&9Blue Team" to close then run [execute player command "team join Blue"]
  299.  
  300. on right click with feather:
  301. cancel event
  302. name of held item contains "&eClass selection"
  303. open chest with 6 row named "&8Select A Class" to player
  304. wait 1 tick
  305. format slot 0 of player with crafting table named "&f&oCivilian" to close then run [execute player command "class civ"]
  306. format slot 1 of player with shiny stone pickaxe named "&f&oMiner" to close then run [execute player command "class miner"]
  307. format slot 2 of player with feather named "&f&oAcrobat" with lore "&5WildSkriptが来るまで使えません" to close then run [execute player command "class acrobat"]
  308. format slot 3 of player with stone sword named "&f&oWarrior" to close then run [execute player command "class warrior"]
  309. format slot 4 of player with shiny bow named "&f&oArcher" to close then run [execute player command "class archer"]
  310. format slot 5 of player with experience bottle named "&f&oEnchanter" to close then run [execute player command "class enchanter"]
  311.  
  312. on right click with blaze powder:
  313. if {anni.class.war.%player%} is true:
  314. cancel event
  315. set {_cooldown} to difference between {war.%player%.lastused} and now
  316. if {_cooldown} is less than 60 seconds:
  317. message "&c%difference between 60 seconds and {_cooldown}% 後に使用可能"
  318. stop
  319. execute console command "effect %player% strength 10 0 true"
  320. set {war.%player%.lastused} to now
  321. else:
  322. send "&5You class is not Warrior"
  323.  
  324. on mine of melon block:
  325. cancel event
  326. set block to air
  327. set {_temp} to random integer between 1 and 10
  328. if {_temp} is between 1 and 3:
  329. give 2 melon slice to player
  330. else if {_temp} is between 4 and 6:
  331. give 5 melon slice to player
  332. else if {_temp} is between 6 and 10:
  333. give 7 melon slice to player
  334. wait 300 tick
  335. set block to melon block
  336.  
  337. on left click on sea lantern:
  338. cancel event
  339. if {anni.join.%player%} is true:
  340. send "{@anni} You are already join the game"
  341. else:
  342. set {anni.lobby.%player%} to true
  343. set {anni.join.%player%} to true
  344. broadcast "{@anni} %player% has joined the game"
  345. set slot 0 of player to feather named "&eClass selection"
  346. set slot 1 of player to nether star named "&aTeam selection"
  347.  
  348. on right click with brick:
  349. if name of player's tool is "&eCraft 'O Matic":
  350. open crafting table inventory to player
  351.  
  352. on hunger bar change:
  353. if {anni.start} is true:
  354. stop
  355. else:
  356. cancel event
  357. set the player's food level to 10
  358.  
  359. on right click on end stone:
  360. player has permission "anni.admin"
  361. cancel event
  362. if player's held item is blue dye:
  363. set {bluecore} to location of event-block
  364. set {bluehp} to 75
  365. execute console command "scoreboard players set Blue Nexus %{bluehp}%"
  366. send "{@anni} BlueのNexusを設定しました"
  367. if player's held item is red dye:
  368. set {redcore} to location of event-block
  369. set {redhp} to 75
  370. execute console command "scoreboard players set Red Nexus %{redhp}%"
  371. send "{@anni} RedのNexusを設定しました"
  372. if player's held item is white dye:
  373. if location of event-block is {bluecore}:
  374. delete {bluecore}
  375. send "{@anni} BlueのNexusを削除しました"
  376. if location of event-block is {redcore}:
  377. delete {redcore}
  378. send "{@anni} RedのNexusを削除しました"
  379.  
  380. on break:
  381. if location of event-block is {bluecore}:
  382. if {team.red.%player%} is true:
  383. if {anni.phase.5} is true:
  384. remove 2 from {bluehp}
  385. set {_temp} to random integer between 1 and 10
  386. execute console command "scoreboard players set Blue Nexus %{bluehp}%"
  387. execute console command "displaycore"
  388. if {_temp} is between 1 and 5:
  389. execute console command "playsound minecraft:block.anvil.place master %player% ~ ~ ~ 1 0.8 1"
  390. if {_temp} is between 6 and 10:
  391. execute console command "playsound minecraft:block.anvil.place master %player% ~ ~ ~ 1 0.6 1"
  392. if {bluehp} is smaller than 1:
  393. set block to bedrock
  394. execute console command "playsound minecraft:entity.lightning.impact master %player% ~ ~ ~ 100 1 1"
  395. else:
  396. remove 1 from {bluehp}
  397. set {_temp} to random integer between 1 and 10
  398. execute console command "scoreboard players set Blue Nexus %{bluehp}%"
  399. execute console command "displaycore"
  400. if {_temp} is between 1 and 5:
  401. execute console command "playsound minecraft:block.anvil.place master %player% ~ ~ ~ 1 0.8 1"
  402. if {_temp} is between 6 and 10:
  403. execute console command "playsound minecraft:block.anvil.place master %player% ~ ~ ~ 1 0.6 1"
  404. if {bluehp} is smaller than 1:
  405. set block to bedrock
  406. execute console command "playsound minecraft:entity.lightning.impact master %player% ~ ~ ~ 100 1 1"
  407. if location of event-block is {redcore}:
  408. if {team.blue.%player%} is true:
  409. if {anni.phase.5} is true:
  410. remove 2 from {redhp}
  411. set {_temp} to random integer between 1 and 10
  412. execute console command "scoreboard players set Red Nexus %{redhp}%"
  413. execute console command "displaycore"
  414. if {_temp} is between 1 and 5:
  415. execute console command "playsound minecraft:block.anvil.place master %player% ~ ~ ~ 1 0.8 1"
  416. if {_temp} is between 6 and 10:
  417. execute console command "playsound minecraft:block.anvil.place master %player% ~ ~ ~ 1 0.6 1"
  418. if {redhp} is smaller than 1:
  419. set block to bedrock
  420. execute console command "playsound minecraft:entity.lightning.impact master %player% ~ ~ ~ 100 1 1"
  421. else:
  422. remove 1 from {redhp}
  423. set {_temp} to random integer between 1 and 10
  424. execute console command "scoreboard players set Red Nexus %{redhp}%"
  425. execute console command "displaycore"
  426. if {_temp} is between 1 and 5:
  427. execute console command "playsound minecraft:block.anvil.place master %player% ~ ~ ~ 1 0.8 1"
  428. if {_temp} is between 6 and 10:
  429. execute console command "playsound minecraft:block.anvil.place master %player% ~ ~ ~ 1 0.6 1"
  430. if {redhp} is smaller than 1:
  431. set block to bedrock
  432. execute console command "playsound minecraft:entity.lightning.impact master %player% ~ ~ ~ 100 1 1"
  433.  
  434. on break of end stone:
  435. if player's gamemode is not creative:
  436. cancel event
  437. loop all players:
  438. if {team.red.%loop-player%} is true:
  439. if {anni.phase.5} is true:
  440. add 2 to {myxp.%loop-player%}
  441. add 1 to {nexus.damage.%player%}
  442. send "&a+2 Annihitilation XP" to loop-player
  443. else:
  444. add 1 to {myxp.%loop-player%}
  445. add 1 to {nexus.damage.%player%}
  446. send "&a+1 Annihitilation XP" to loop-player
  447. if {team.blue.%loop-player%} is true:
  448. if {anni.phase.5} is true:
  449. add 2 to {myxp.%loop-player%}
  450. add 1 to {nexus.damage.%player%}
  451. send "&a+2 Annihitilation XP" to loop-player
  452. else:
  453. add 1 to {myxp.%loop-player%}
  454. add 1 to {nexus.damage.%player%}
  455. send "&a+1 Annihitilation XP" to loop-player
  456.  
  457. on player drop:
  458. if lore of event-item contains "&6Soulbound":
  459. cancel event
  460. delete player's held item
  461. execute console command "playsound minecraft:entity.item.break master %player% ~ ~ ~ 1 1 1"
  462.  
  463. on flight toggle:
  464. if {anni.class.acrobat.%player%} is true:
  465. if player's gamemode is not creative:
  466. set player's flight state to false
  467. set {_cooldown} to difference between {acrobat.%player%.lastused} and now
  468. if {_cooldown} is less than 10 seconds:
  469. stop
  470. push player upwards at speed 0.8
  471. push player forwards at speed 0.8
  472. execute console command "playsound minecraft:entity.wither.shoot master %player% ~ ~ ~ 1 1 1"
  473. set {acrobat.%player%.lastused} to now
  474.  
  475. #on jump:
  476. # player's gamemode is not creative:
  477. # player has permission "{@DoubleJumpPerm}":
  478. # {DoubleJump%player's uuid%} is not set:
  479. # block below player is not air or water:
  480. # set player's flight state to true
  481.  
  482. on death:
  483. victim is a player:
  484. if {anni.lobby.%victim%} is true:
  485. force victim to respawn
  486. teleport victim to {lobby}
  487. if {anni.red.respawn.%victim%} is true:
  488. teleport victim to {anni.red.spawn}
  489. if {anni.blue.respawn.%victim%} is true:
  490. teleport victim to {anni.blue.spawn}
  491.  
  492. on death:
  493. victim is a player:
  494. damage cause is void:
  495. set the death message to ""
  496.  
  497. on death of player:
  498. if damager is a player:
  499. if victim is a player:
  500. add 1 to {kill.%damager%}
  501. add 1 to {death.%victim%}
  502. add 3 to {myxp.%damager%}
  503. send "&a+3 Annihitilation XP" to damager
  504.  
  505. on damage:
  506. victim is a player:
  507. if {anni.class.acrobat.%victim%} is true:
  508. damage cause is fall:
  509. cancel event
  510.  
  511. on mine:
  512. if player's gamemode is creative:
  513. stop
  514. else:
  515. if {anni.start} is true:
  516. stop
  517. else:
  518. cancel event
  519. send "&5Game is not started"
  520.  
  521. on portal:
  522. cancel event
  523. open chest with 6 row named "&8Select A Class" to player
  524. wait 1 tick
  525. format slot 0 of player with crafting table named "&f&oCivilian" to close then run [execute player command "class civ"]
  526. format slot 1 of player with shiny stone pickaxe named "&f&oMiner" to close then run [execute player command "class miner"]
  527. format slot 2 of player with feather named "&f&oAcrobat" with lore "&5WildSkriptが来るまで使えません" to close then run [execute player command "class acrobat"]
  528. format slot 3 of player with stone sword named "&f&oWarrior" to close then run [execute player command "class warrior"]
  529. format slot 4 of player with shiny bow named "&f&oArcher" to close then run [execute player command "class archer"]
  530. format slot 5 of player with experience bottle named "&f&oEnchanter" to close then run [execute player command "class enchanter"]
  531. if {team.red.%player%} is true:
  532. teleport player to {anni.red.spawn}
  533. if {team.blue.%player%} is true:
  534. teleport player to {anni.blue.spawn}
  535.  
  536. on mine of cobble stone:
  537. if player's gamemode is creative:
  538. stop
  539. else:
  540. cancel event
  541.  
  542. on mine of coal ore:
  543. cancel event
  544. set block to cobble stone
  545. set {_temp} to random integer between 1 and 10
  546. if {anni.class.miner.%player%} is true:
  547. if {_temp} is between 1 and 5:
  548. give 1 coal to player
  549. add 4 exp to player
  550. wait 7 second
  551. set block to coal ore
  552. if {_temp} is between 6 and 10:
  553. give 2 coal to player
  554. add 4 exp to player
  555. wait 7 second
  556. set block to coal ore
  557. if {anni.class.enchanter.%player%} is true:
  558. give 1 coal to player
  559. add 6 exp to player
  560. wait 7 second
  561. set block to coal ore
  562. else:
  563. give 1 coal to player
  564. add 4 exp to player
  565. wait 7 second
  566. set block to coal ore
  567.  
  568. on mine of iron ore:
  569. cancel event
  570. set block to cobble stone
  571. set {_temp} to random integer between 1 and 10
  572. if {anni.class.miner.%player%} is true:
  573. if {_temp} is between 1 and 5:
  574. give 1 iron ore to player
  575. add 5 exp to player
  576. wait 8 second
  577. set block to iron ore
  578. if {_temp} is between 6 and 10:
  579. give 2 iron ore to player
  580. add 5 exp to player
  581. wait 8 second
  582. set block to iron ore
  583. if {anni.class.enchanter.%player%} is true:
  584. give 1 iron ore to player
  585. add 7 exp to player
  586. wait 8 second
  587. set block to iron ore
  588. else:
  589. give 1 iron ore to player
  590. add 5 exp to player
  591. wait 8 second
  592. set block to iron ore
  593.  
  594. on mine of gold ore:
  595. cancel event
  596. set block to cobble stone
  597. set {_temp} to random integer between 1 and 10
  598. if {anni.class.miner.%player%} is true:
  599. if {_temp} is between 1 and 5:
  600. give 1 gold ore to player
  601. add 6 exp to player
  602. wait 11 second
  603. set block to gold ore
  604. if {_temp} is between 6 and 10:
  605. give 2 gold ore to player
  606. add 6 exp to player
  607. wait 11 second
  608. set block to gold ore
  609. if {anni.class.enchanter.%player%} is true:
  610. give 1 gold ore to player
  611. add 9 exp to player
  612. wait 11 second
  613. set block to gold ore
  614. else:
  615. give 1 gold ore to player
  616. add 6 exp to player
  617. wait 11 second
  618. set block to gold ore
  619.  
  620. on mine of lapis ore:
  621. cancel event
  622. set block to cobble stone
  623. set {_temp} to random integer between 1 and 10
  624. if {_temp} is between 1 and 3:
  625. give 4 lapis lazuli to player
  626. add 7 exp to player
  627. wait 10 second
  628. set block to lapis ore
  629. if {_temp} is between 4 and 7:
  630. give 6 lapis lazuli to player
  631. add 7 exp to player
  632. wait 10 second
  633. set block to lapis ore
  634. if {_temp} is between 8 and 10:
  635. give 9 lapis lazuli to player
  636. add 7 exp to player
  637. wait 10 second
  638. set block to lapis ore
  639. if {anni.class.enchanter.%player%} is true:
  640. if {_temp} is between 1 and 3:
  641. give 4 lapis lazuli to player
  642. add 7 exp to player
  643. wait 10 second
  644. set block to lapis ore
  645. if {_temp} is between 4 and 7:
  646. give 6 lapis lazuli to player
  647. add 9 exp to player
  648. wait 10 second
  649. set block to lapis ore
  650. if {_temp} is between 8 and 10:
  651. give 9 lapis lazuli to player
  652. add 11 exp to player
  653. wait 10 second
  654. set block to lapis ore
  655.  
  656. on mine of emerald ore:
  657. cancel event
  658. set block to cobble stone
  659. set {_temp} to random integer between 1 and 10
  660. if {anni.class.enchanter.%player%} is true:
  661. give 1 emerald to player
  662. add 13 exp to player
  663. wait 15 second
  664. set block to emerald ore
  665. else:
  666. give 1 emerald to player
  667. add 9 exp to player
  668. wait 15 second
  669. set block to emerald ore
  670.  
  671. on first join:
  672. set the join message to ""
  673. set {anni.lobby.%player%} to true
  674. set {anni.class.civ.%player%} to true
  675.  
  676. on join:
  677. set the join message to "&7[&a+&7] %player%"
  678. send "{@anni}&5 /game leave /で 試合から抜けることができます &cゲーム中は使用できません"
  679. send "{@anni}&5/report <player> <reason> /でレポートができます 適当に使うとBanします"
  680. send "{@anni}&5 シーランタンをクリックで参加できます"
  681.  
  682. on quit:
  683. set the quit message to "&7[&c-&7] %player%"
  684.  
  685. on chat:
  686. cancel event
  687. if {anni.admin.%player%} is true:
  688. broadcast "&f[&cAdmin&f] %player%: %message%"
  689. if {anni.build.%player%} is true:
  690. broadcast "&f[&3BuildTeam&f] %player%: %message%"
  691. if {anni.lobby.%player%} is true:
  692. cancel event
  693. broadcast "[&5Lobby&f] %player%: &f%message%"
  694. if {team.red.%player%} is true:
  695. cancel event
  696. broadcast "[&cRed&f] %player%: %message%"
  697. if {team.blue.%player%} is true:
  698. cancel event
  699. broadcast "[&9Blue&f] %player%: %message%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement