Advertisement
Guest User

Untitled

a guest
Feb 27th, 2020
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. command /weaponstatus [<text>] [<text>] [<number>]:
  2. permission: weapon.sk
  3. aliases: /ws
  4. trigger:
  5. if arg-1 is set:
  6. if arg-2 is "ct":
  7. set line 2 of lore of held item to colored "&3-&aCooltime&7:&f%arg-3%"
  8. if arg-2 is "id":
  9. set line 3 of lore of held item to colored "&3-&8ID&7:&f%arg-3%"
  10. set the name of held item to colored arg-1
  11. else:
  12. send "&a/weapon &c<weapon name> <weapon status> &c<number>"
  13. send "&aWeaponStatus&7: &bct&7,&bid"
  14.  
  15. every 1 seconds in "world":
  16. loop all players:
  17. set {_weapon::*} to lore of loop-player's tool
  18. loop {_weapon::*}:
  19. loop-value-1 contains "&3-&8ID&7:&f":
  20. set {_n} to loop-value-1
  21. replace "&3-&8ID&7:&f" with "" in {_n}
  22. set {id.%loop-player%} to {_n} parsed as number
  23. if {ct::%loop-player%::%{id.%loop-player%}%} is not set:
  24. loop 50 times:
  25. set {ct::%loop-player%::%loop-number%} to 1
  26. if {ct::%loop-player%::%{id.%loop-player%}%} >= 1:
  27. loop 50 times:
  28. remove 1 from {ct::%loop-player%::%loop-number%}
  29. if display name of loop-player's held item is set:
  30. send action bar "&d Item &3[ &r%display name of loop-player's held item% &3] &dCooltime &e[ %{ct::%loop-player%::%{id.%loop-player%}%}% &e]" to loop-player
  31. else:
  32. send action bar "&d Name &3[ &r%loop-player% &3]" to loop-player
  33. else:
  34. if display name of loop-player's held item is set:
  35. send action bar "&d Item &3[ &r%display name of loop-player's held item% &3] &dCooltime &e[ Already &e]" to loop-player
  36. else:
  37. send action bar "&d Name &3[ &r%loop-player% &3]" to loop-player
  38.  
  39. #-Shop-Chest-
  40.  
  41. on leftclick on chest:
  42. if player is op:
  43. if player is sneaking:
  44. if block under the event-block is gold block:
  45. cancel event
  46. open chest with 6 rows named "shop-edit" to player
  47. set {_num} to 0
  48. loop 54 times:
  49. set {_shop} to "%inventory name of player's current inventory%"
  50. replace all "-edit" with "" in {_shop}
  51. set slot {_num} of player's current inventory to {%{_shop}%::%{_num}%}
  52. add 1 to {_num}
  53.  
  54. on rightclick on chest:
  55. if block under the event-block is gold block:
  56. cancel event
  57. open chest with 6 rows named "shop" to player
  58. set {_num} to 0
  59. loop 54 times:
  60. set {_shop} to "%inventory name of player's current inventory%"
  61. set slot {_num} of player's current inventory to {%{_shop}%::%{_num}%}
  62. add 1 to {_num}
  63.  
  64. on inventory close:
  65. if inventory name of player's current inventory contain "-edit":
  66. set {_num} to 0
  67. loop 54 times:
  68. set {_shop} to "%inventory name of player's current inventory%"
  69. replace all "-edit" with "" in {_shop}
  70. set {%{_shop}%::%{_num}%} to slot {_num} of player's current inventory
  71. add 1 to {_num}
  72. send "&6%{_shop}%&7の情報を保存しました"
  73.  
  74. #-Timer-
  75.  
  76. command /timer [<number>]:
  77. permission: sk.admin
  78. trigger:
  79. set {timer} to arg-1
  80. set {progress} to 100 / arg-1
  81. set {ppercent} to 100
  82.  
  83. every 1 seconds in "world":
  84. if {timer} >= 0:
  85. loop all players:
  86. create bossbar titled "&e[ %{timer}% Seconds &e]" and id "timer" for loop-player with progress {ppercent} with colors green
  87. remove {progress} from {ppercent}
  88. remove 1 from {timer}
  89. else if {timer} <= 0:
  90. remove bossbar "timer"
  91. delete {player::*}
  92. set {ffa} to false
  93. send all players title "&4! - &cタイムアップ&4 - !" for 3 seconds
  94. teleport all players to {lobby}
  95. delete {timer}
  96.  
  97. #-Gamemode-
  98.  
  99. command /game [<text>]:
  100. permission: sk.admin
  101. trigger:
  102. if arg-1 is "ffa":
  103. ffastart(player)
  104. if arg-1 is "tdm":
  105. tdmstart(player)
  106. if arg-1 is not set:
  107. send "&c/game ffa,tdm"
  108.  
  109. command /ss [<text>]:
  110. permission: sk.admin
  111. trigger:
  112. if arg-1 is "lobby":
  113. send "&a待機場所を設定しました。"
  114. set {lobby} to location of event-player
  115. if arg-1 is "ffa":
  116. send "&a待機場所を設定しました。"
  117. set {ffa} to location of event-player
  118. if arg-1 is "blue":
  119. send "&a待機場所を設定しました。"
  120. set {bspawn} to location of event-player
  121. if arg-1 is "red":
  122. send "&a待機場所を設定しました。"
  123. set {rspawn} to location of event-player
  124.  
  125.  
  126. on quit:
  127. if {player::*} contains "%player%":
  128. remove player from {player::*}
  129. death()
  130.  
  131. on join:
  132. if {game} is true:
  133. send "&c試合がすでに始まっているので観戦です。"
  134. send "&c少々お待ちください。"
  135. set player's gamemode to adventure
  136. teleport player to {lobby}
  137. else:
  138. teleport player to {lobby}
  139. set player's gamemode to adventure
  140.  
  141. on damage of player:
  142. health of victim*2 <= final damage
  143. cancel event
  144. broadcast "&7%attacker% &f≪&r%display name of attacker's held item%&f≫ &ckilled &7%victim%"
  145. heal victim
  146. set victim's gamemode to spectator
  147. remove victim from {player::*}
  148. death()
  149.  
  150. function ffastart(p: player):
  151. if {game} is not set:
  152. set {game} to false
  153. else if {game} is true:
  154. send "&cもうすでに試合が始まっています。" to {_p}
  155. else if {game} is false:
  156. loop all players:
  157. teleport loop-player to {ffa}
  158. start()
  159.  
  160. function start():
  161. broadcast "&a5秒後にスタートします..."
  162. wait 2 seconds
  163. send all players title "&6[ &a3 &6]" for 1 seconds
  164. wait 1 seconds
  165. send all players title "&6[ &e2 &6]" for 1 seconds
  166. wait 1 seconds
  167. send all players title "&6[ &c1 &6]" for 1 seconds
  168. wait 1 seconds
  169. send all players title "&6[ &aSTART &6]" for 1 seconds
  170. loop all players:
  171. add loop-player to {player::*}
  172. set {_num} to number of {player::*}
  173. broadcast "&b残り%{_num}%人です。"
  174. command "/timer 600"
  175. set {game} to true
  176.  
  177. function tdmstart(p: player):
  178. if {game} is not set:
  179. set {game} to false
  180. else if {game} is true:
  181. send "&cもうすでに試合が始まっています。" to {_p}
  182. else if {game} is false:
  183. loop all players:
  184. if number of {red::*} is 0:
  185. add loop-player to {red::*}
  186. send loop-player title "&6[ &c赤チーム &6]" for 3 seconds
  187. if number of {red::*} = number of {blue::*}:
  188. add loop-player to {red::*}
  189. send loop-player title "&6[ &c赤チーム &6]" for 3 seconds
  190. if number of {red::*} > number of {blue::*}:
  191. add loop-player to {blue::*}
  192. send loop-player title "&6[ &9蒼チーム &6]" for 3 seconds
  193. teleport {blue::*} to {bspawn}
  194. teleport {red::*} to {rspawn}
  195. start()
  196.  
  197. function death():
  198. set {_num} to number of {player::*}
  199. if {_num} <= 1:
  200. broadcast "&eWinner &8- &b%{players::*}%"
  201. set {game} to false
  202. teleport all players to {lobby}
  203. delete {timer}
  204. remove bossbar "timer"
  205. else:
  206. broadcast "&b残り%{_num}%人です。"
  207.  
  208. on rightclick with bone:
  209. set {_loc} to location of event-player
  210. add 1.5 to y-coordinate of {_loc}
  211. execute console command "playsound minecraft:BLOCK_ANVIL master @a %x-coordinate of {_loc}% %y-coordinate of {_loc}% %z-coordinate of {_loc}% 1 0"
  212. set {_a2} to yaw of location of event-player - 270
  213. set {_a1} to Pitch of location of event-player * -1
  214. set {_x} to sin(90-{_a1}) * cos({_a2}) * 1
  215. set {_z} to sin(90-{_a1}) * sin({_a2}) * 1
  216. set {_y} to cos(90-{_a1}) * 1
  217. set {_a::*} to lore of player's tool
  218. loop {_a::*}:
  219. loop-value contains "&3-&8ID&7:&f":
  220. set {_n} to loop-value
  221. replace "&3-&8ID&7:&f" with "" in {_n}
  222. set {id.%player%} to {_n} parsed as number
  223. if {ct::%player%::%{id.%player%}%} <= 0:
  224. set {_i::*} to lore of player's tool
  225. loop {_i::*}:
  226. loop-value contains "&3-&aCooltime&7:&f":
  227. set {_n} to loop-value
  228. replace "&3-&aCooltime&7:&f" with "" in {_n}
  229. set {ct::%player%::%{id.%player%}%} to {_n} parsed as number
  230. execute console command "/playsound minecraft:entity.skeleton.shoot master @a %x-coordinate of {_loc}% %y-coordinate of {_loc}% %z-coordinate of {_loc}% 1 0.75"
  231. if name of event-item contains "火":
  232. if lore of event-item contains "直線":
  233. loop 40 times:
  234. add {_x} to x-coordinate of {_loc}
  235. add {_y} to y-coordinate of {_loc}
  236. add {_z} to z-coordinate of {_loc}
  237. loop 20 times:
  238. set {_numx} to random number between -0.25 and 0.25
  239. set {_numy} to random number between -0.25 and 0.25
  240. set {_numz} to random number between -0.25 and 0.25
  241. execute console command "/particle reddust %x-coordinate of {_loc} + {_numx}% %y-coordinate of {_loc} + {_numy}% %z-coordinate of {_loc} + {_numz}% 0.1 1 1 -1 0 force"
  242. if block at {_loc} is not air:
  243. execute console command "particle flame %x-coordinate of {_loc}% %y-coordinate of {_loc} + 0.5% %z-coordinate of {_loc}% 1 1 1 0 50 force"
  244. execute console command "/playsound minecraft:entity.shulker_bullet.hit master @a %x-coordinate of {_loc}% %y-coordinate of {_loc} + 0.5% %z-coordinate of {_loc}% 3 1"
  245. loop living entities in radius 2 of {_loc}:
  246. loop-entity's gamemode is not spectator
  247. loop-entities is not event-player
  248. make player damage loop-entity by 12
  249. stop
  250. loop living entities in radius 2 of {_loc}:
  251. loop-entity is not event-player
  252. loop-entity's gamemode is not spectator
  253. execute console command "particle flame %x-coordinate of {_loc}% %y-coordinate of {_loc} + 0.5% %z-coordinate of {_loc}% 1 1 1 0 50 force"
  254. execute console command "/playsound minecraft:entity.shulker_bullet.hit master @a %x-coordinate of {_loc}% %y-coordinate of {_loc} + 0.5% %z-coordinate of {_loc}% 3 1"
  255. make player damage loop-entity by 8
  256. ignite loop-entity for 5 seconds
  257. stop
  258. wait a ticks
  259. else if name of event-item contains "水":
  260. if lore of event-item contains "直線":
  261. loop 40 times:
  262. add {_x} to x-coordinate of {_loc}
  263. add {_y} to y-coordinate of {_loc}
  264. add {_z} to z-coordinate of {_loc}
  265. loop 20 times:
  266. set {_numx} to random number between -0.25 and 0.25
  267. set {_numy} to random number between -0.25 and 0.25
  268. set {_numz} to random number between -0.25 and 0.25
  269. execute console command "/particle reddust %x-coordinate of {_loc} + {_numx}% %y-coordinate of {_loc} + {_numy}% %z-coordinate of {_loc} + {_numz}% 0.1 0.5 -0.1 1 0 force"
  270. if block at {_loc} is not air:
  271. execute console command "particle splash %x-coordinate of {_loc}% %y-coordinate of {_loc} + 0.5% %z-coordinate of {_loc}% 1 1 1 0 50 force"
  272. execute console command "/playsound minecraft:entity.shulker_bullet.hit master @a %x-coordinate of {_loc}% %y-coordinate of {_loc} + 0.5% %z-coordinate of {_loc}% 3 1"
  273. loop living entities in radius 2 of {_loc}:
  274. loop-entity's gamemode is not spectator
  275. command "/effect %loop-entity% speed 5 1 true"
  276. stop
  277. loop living entities in radius 2 of {_loc}:
  278. loop-entities is not event-player
  279. loop-entity's gamemode is not spectator
  280. execute console command "particle splash %x-coordinate of {_loc}% %y-coordinate of {_loc} + 0.5% %z-coordinate of {_loc}% 1 1 1 0 50 force"
  281. execute console command "/playsound minecraft:entity.shulker_bullet.hit master @a %x-coordinate of {_loc}% %y-coordinate of {_loc} + 0.5% %z-coordinate of {_loc}% 3 1"
  282. command "/effect %loop-entity% speed 5 1 true"
  283. stop
  284. wait a ticks
  285. else if name of event-item contains "草":
  286. if lore of event-item contains "直線":
  287. loop 40 times:
  288. add {_x} to x-coordinate of {_loc}
  289. add {_y} to y-coordinate of {_loc}
  290. add {_z} to z-coordinate of {_loc}
  291. loop 20 times:
  292. set {_numx} to random number between -0.25 and 0.25
  293. set {_numy} to random number between -0.25 and 0.25
  294. set {_numz} to random number between -0.25 and 0.25
  295. execute console command "/particle reddust %x-coordinate of {_loc} + {_numx}% %y-coordinate of {_loc} + {_numy}% %z-coordinate of {_loc} + {_numz}% 0.1 1 -1 1 0 force"
  296. if block at {_loc} is not air:
  297. execute console command "particle happyVillager %x-coordinate of {_loc}% %y-coordinate of {_loc} + 0.5% %z-coordinate of {_loc}% 1 1 1 0 50 force"
  298. execute console command "/playsound minecraft:entity.shulker_bullet.hit master @a %x-coordinate of {_loc}% %y-coordinate of {_loc} + 0.5% %z-coordinate of {_loc}% 3 1"
  299. loop living entities in radius 2 of {_loc}:
  300. loop-entities is not event-player
  301. set {_a::*} to lore of player's tool
  302. loop {_a::*}:
  303. loop-value-2 contains "&a特性&7:&a":
  304. set {_n} to loop-value-2
  305. replace "&a特性&7:&a" with "" in {_n}
  306. add {_n} parsed as number to {_health}
  307. set {_health} to 7
  308. add 1 to {_health}
  309. add {_health} to the loop-entity's health
  310. stop
  311. loop living entities in radius 2 of {_loc}:
  312. loop-entity is not event-player
  313. loop-entity's gamemode is not spectator
  314. execute console command "particle happyVillager %x-coordinate of {_loc}% %y-coordinate of {_loc} + 0.5% %z-coordinate of {_loc}% 1 1 1 0 50 force"
  315. execute console command "/playsound minecraft:entity.shulker_bullet.hit master @a %x-coordinate of {_loc}% %y-coordinate of {_loc} + 0.5% %z-coordinate of {_loc}% 3 1"
  316. set {_a::*} to lore of player's tool
  317. loop {_a::*}:
  318. loop-value-2 contains "&a特性&7:&a":
  319. set {_n} to loop-value-2
  320. replace "&a特性&7:&a" with "" in {_n}
  321. add {_n} parsed as number to {_health}
  322. set {_health} to 7
  323. add 1 to {_health}
  324. add {_health} to the loop-entity's health
  325. stop
  326. wait a ticks
  327. else if name of event-item contains "風":
  328. if lore of event-item contains "直線":
  329. loop 40 times:
  330. add {_x} to x-coordinate of {_loc}
  331. add {_y} to y-coordinate of {_loc}
  332. add {_z} to z-coordinate of {_loc}
  333. loop 20 times:
  334. set {_numx} to random number between -0.25 and 0.25
  335. set {_numy} to random number between -0.25 and 0.25
  336. set {_numz} to random number between -0.25 and 0.25
  337. execute console command "/particle reddust %x-coordinate of {_loc} + {_numx}% %y-coordinate of {_loc} + {_numy}% %z-coordinate of {_loc} + {_numz}% 0 1 1 1 0 force"
  338. if block at {_loc} is not air:
  339. execute console command "particle explode %x-coordinate of {_loc}% %y-coordinate of {_loc} + 0.5% %z-coordinate of {_loc}% 0.5 0.5 0.5 0 50 force"
  340. execute console command "/playsound minecraft:entity.shulker_bullet.hit master @a %x-coordinate of {_loc}% %y-coordinate of {_loc} + 0.5% %z-coordinate of {_loc}% 3 1"
  341. loop living entities in radius 2 of {_loc}:
  342. loop-entity's gamemode is not spectator
  343. loop-entities is not event-player
  344. make player damage loop-entity by 4
  345. set velocity of loop-entity to vector {_x} * 0.75,{_y} + 0.5,{_z} * 0.75
  346. stop
  347. loop living entities in radius 2 of {_loc}:
  348. loop-entity is not event-player
  349. loop-entity's gamemode is not spectator
  350. execute console command "particle explode %x-coordinate of {_loc}% %y-coordinate of {_loc} + 0.5% %z-coordinate of {_loc}% 0.5 0.5 0.5 0 50 force"
  351. execute console command "/playsound minecraft:entity.shulker_bullet.hit master @a %x-coordinate of {_loc}% %y-coordinate of {_loc} + 0.5% %z-coordinate of {_loc}% 3 1"
  352. make player damage loop-entity by 4
  353. set velocity of loop-entity to vector {_x} * 0.75,{_y} + 0.5,{_z} * 0.75
  354. stop
  355. wait a ticks
  356. else if name of event-item contains "雷":
  357. if lore of event-item contains "直線":
  358. loop 40 times:
  359. add {_x} to x-coordinate of {_loc}
  360. add {_y} to y-coordinate of {_loc}
  361. add {_z} to z-coordinate of {_loc}
  362. loop 20 times:
  363. set {_numx} to random number between -0.25 and 0.25
  364. set {_numy} to random number between -0.25 and 0.25
  365. set {_numz} to random number between -0.25 and 0.25
  366. execute console command "/particle reddust %x-coordinate of {_loc} + {_numx}% %y-coordinate of {_loc} + {_numy}% %z-coordinate of {_loc} + {_numz}% 0 1 0 1 0 force"
  367. if block at {_loc} is not air:
  368. execute console command "particle totem %x-coordinate of {_loc}% %y-coordinate of {_loc} + 0.5% %z-coordinate of {_loc}% 1 1 1 0 50 force"
  369. execute console command "/playsound minecraft:entity.shulker_bullet.hit master @a %x-coordinate of {_loc}% %y-coordinate of {_loc} + 0.5% %z-coordinate of {_loc}% 3 1"
  370. loop living entities in radius 2 of {_loc}:
  371. loop-entity's gamemode is not spectator
  372. loop-entities is not event-player
  373. make player damage loop-entity by 12
  374. stop
  375. loop living entities in radius 2 of {_loc}:
  376. loop-entity is not event-player
  377. loop-entity's gamemode is not spectator
  378. execute console command "particle totem %x-coordinate of {_loc}% %y-coordinate of {_loc} + 0.5% %z-coordinate of {_loc}% 1 1 1 0 50 force"
  379. execute console command "/playsound minecraft:entity.shulker_bullet.hit master @a %x-coordinate of {_loc}% %y-coordinate of {_loc} + 0.5% %z-coordinate of {_loc}% 3 1"
  380. make player damage loop-entity by 12
  381. stop
  382. wait a ticks
  383. else if name of event-item contains "氷":
  384. if lore of event-item contains "直線":
  385. loop 40 times:
  386. add {_x} to x-coordinate of {_loc}
  387. add {_y} to y-coordinate of {_loc}
  388. add {_z} to z-coordinate of {_loc}
  389. loop 20 times:
  390. set {_numx} to random number between -0.25 and 0.25
  391. set {_numy} to random number between -0.25 and 0.25
  392. set {_numz} to random number between -0.25 and 0.25
  393. execute console command "/particle reddust %x-coordinate of {_loc} + {_numx}% %y-coordinate of {_loc} + {_numy}% %z-coordinate of {_loc} + {_numz}% 0.1 1 -0.1 1 0 force"
  394. if block at {_loc} is not air:
  395. execute console command "particle fallingdust %x-coordinate of {_loc}% %y-coordinate of {_loc} + 0.5% %z-coordinate of {_loc}% 1 1 1 0 50 force @a 022"
  396. execute console command "/playsound minecraft:entity.shulker_bullet.hit master @a %x-coordinate of {_loc}% %y-coordinate of {_loc} + 0.5% %z-coordinate of {_loc}% 3 1"
  397. loop living entities in radius 2 of {_loc}:
  398. loop-entity's gamemode is not spectator
  399. loop-entities is not event-player
  400. make player damage loop-entity by 7
  401. command "/effect %loop-entity% slowness 5 3 true"
  402. stop
  403. loop living entities in radius 2 of {_loc}:
  404. loop-entity is not event-player
  405. loop-entity's gamemode is not spectator
  406. execute console command "particle fallingdust %x-coordinate of {_loc}% %y-coordinate of {_loc} + 0.5% %z-coordinate of {_loc}% 1 1 1 0 50 force @a 022"
  407. execute console command "/playsound minecraft:entity.shulker_bullet.hit master @a %x-coordinate of {_loc}% %y-coordinate of {_loc} + 0.5% %z-coordinate of {_loc}% 3 1"
  408. make player damage loop-entity by 7
  409. command "/effect %loop-entity% slowness 5 3 true"
  410. stop
  411. wait a ticks
  412.  
  413. on rightclick with tnt:
  414. cancel event
  415. set {_loc} to location of event-player
  416. add 1.5 to y-coordinate of {_loc}
  417. set {_a2} to yaw of location of event-player - 270
  418. set {_a1} to Pitch of location of event-player * -1
  419. set {_x} to sin(90-{_a1}) * cos({_a2}) * 1
  420. set {_z} to sin(90-{_a1}) * sin({_a2}) * 1
  421. set {_y} to cos(90-{_a1}) * 1
  422. add {_x} to x-coordinate of {_loc}
  423. add {_y} to y-coordinate of {_loc}
  424. add {_z} to z-coordinate of {_loc}
  425. loop 2 times:
  426. set velocity of event-player to vector {_x} * -0.75,{_y} + 0.5,{_z} * -0.75
  427. wait a ticks
  428.  
  429. on rightclick with sand:
  430. cancel event
  431. set {_loc} to location of event-player
  432. add 1.5 to y-coordinate of {_loc}
  433. set {_a2} to yaw of location of event-player - 270
  434. set {_a1} to Pitch of location of event-player * -1
  435. set {_x} to sin(90-{_a1}) * cos({_a2}) * 0.4
  436. set {_z} to sin(90-{_a1}) * sin({_a2}) * 0.4
  437. set {_y} to cos(90-{_a1}) * 0.4
  438. loop 10 times:
  439. add {_x} to x-coordinate of {_loc}
  440. add {_y} to y-coordinate of {_loc}
  441. add {_z} to z-coordinate of {_loc}
  442. execute console command "particle fallingdust %x-coordinate of {_loc}% %y-coordinate of {_loc}% %z-coordinate of {_loc}% 0.075 0.075 0.075 0 10 force @a 12"
  443. execute console command "/playsound minecraft:block.sand.step master @a %x-coordinate of {_loc}% %y-coordinate of {_loc}% %z-coordinate of {_loc}% 0.75 2"
  444. if block at {_loc} is not air:
  445. execute console command "/playsound minecraft:entity.firework.large_blast master @a %x-coordinate of {_loc}% %y-coordinate of {_loc}% %z-coordinate of {_loc}% 5 1"
  446. launch "ball large" firework at {_loc} timed 0 coloured "brown"
  447. loop living entities in radius 3 of {_loc}:
  448. loop-entity's gamemode is not spectator
  449. make player damage loop-entity by 8
  450. stop
  451. wait a ticks
  452. execute console command "/playsound minecraft:entity.firework.large_blast master @a %x-coordinate of {_loc}% %y-coordinate of {_loc}% %z-coordinate of {_loc}% 5 1"
  453. launch "ball large" firework at {_loc} timed 0 coloured "brown"
  454. loop living entities in radius 2 of {_loc}:
  455. loop-entity's gamemode is not spectator
  456. make player damage loop-entity by 8
  457.  
  458. command /type <number>:
  459. trigger:
  460. if arg-1 is 1:
  461. set line 1 of lore of held item to colored "&aタイプ&7:&a直線"
  462. set the name of held item to "&a合成装備 &e/ &a火"
  463. if arg-1 is 2:
  464. set line 1 of lore of held item to colored "&aタイプ&7:&a直線"
  465. set the name of held item to "&a合成装備 &e/ &a水"
  466. if arg-1 is 3:
  467. set line 1 of lore of held item to colored "&aタイプ&7:&a直線"
  468. set the name of held item to "&a合成装備 &e/ &a草"
  469. if arg-1 is 4:
  470. set line 1 of lore of held item to colored "&aタイプ&7:&a直線"
  471. set the name of held item to "&a合成装備 &e/ &a風"
  472. if arg-1 is 5:
  473. set line 1 of lore of held item to colored "&aタイプ&7:&a直線"
  474. set the name of held item to "&a合成装備 &e/ &a雷"
  475. if arg-1 is 6:
  476. set line 1 of lore of held item to colored "&aタイプ&7:&a直線"
  477. set the name of held item to "&a合成装備 &e/ &a氷"
  478.  
  479. on join:
  480. set rf max hp of event-entity to 40
  481. set health of event-entity to max health of event-entity
  482.  
  483. on inventory click:
  484. if inventory name of player's current inventory contain "合成箱":
  485. if clicked slot is 0:
  486. cancel event
  487. if clicked slot is 4:
  488. cancel event
  489. if clicked slot is 5:
  490. cancel event
  491. if clicked slot is 6:
  492. cancel event
  493. if clicked slot is 7:
  494. cancel event
  495. if clicked slot is 8:
  496. cancel event
  497.  
  498. on rightclick on anvil:
  499. cancel event
  500. open chest with 1 rows named "&5合成箱" to player
  501. set slot 0 of player's current inventory to black stained glass pane named "&7閉じる合成"
  502. set slot 4 of player's current inventory to red stained glass pane named "&c←アイテム 使いかた→"
  503. set slot 5 of player's current inventory to yellow stained glass pane named "&b属性"
  504. set slot 6 of player's current inventory to yellow stained glass pane named "&bタイプ"
  505. set slot 7 of player's current inventory to yellow stained glass pane named "&b特性"
  506. set slot 8 of player's current inventory to black stained glass pane named "&7閉じると合成"
  507.  
  508. on inventory close:
  509. if inventory name of player's current inventory contain "合成箱":
  510. set {_num} to 0
  511. if name of slot 1 of player's current inventory contain "火" or "水" or "草":
  512. if name of slot 2 of player's current inventory contain "直線":
  513. if name of slot 3 of player's current inventory contain "特性":
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement