Advertisement
Guest User

Untitled

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