akon1248

KitPvP-α

Apr 4th, 2019
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.14 KB | None | 0 0
  1. on load:
  2. set {killeffects::*} to "blood", "flame", "smoke", "magic", "lightning", "tnt", "fireworks", "spiral", "rainbow", "headrocket", "finalsmash", "xporb" and "corpse"
  3. function breakEffect(id: number, data: number, loc: location):
  4. set {_packet} to new play_server_world_event packet
  5. set location pinfo 0 of {_packet} to {_loc}
  6. set int pnum 0 of {_packet} to 2001
  7. set int pnum 1 of {_packet} to {_data}*4096+{_id}
  8. loop all players:
  9. loop-player's world is {_loc}'s world
  10. send loop-player packet {_packet}
  11. function showKillEffect(p: player, victim: player):
  12. set {_loc} to location of {_victim}
  13. set yaw of {_loc} to 0
  14. set pitch of {_loc} to 0
  15. set {_uuid} to UUID of {_p}
  16. {killeffect.%{_uuid}%} is set
  17. if {killeffect.%{_uuid}%} is "blood":
  18. breakEffect(152, 0, {_loc})
  19. breakEffect(152, 0, location 1 meter above {_loc})
  20. else if {killeffect.%{_uuid}%} is "flame":
  21. execute console command "execute %{_p}% ~ ~ ~ particle flame %x-coordinate of {_loc}% %y-coordinate of location 0.75 meter above {_loc}% %z-coordinate of {_loc}% 0.3 0.5 0.3 0.1 500 force"
  22. else if {killeffect.%{_uuid}%} is "smoke":
  23. execute console command "execute %{_p}% ~ ~ ~ particle smoke %x-coordinate of {_loc}% %y-coordinate of location 0.75 meter above {_loc}% %z-coordinate of {_loc}% 0.3 0.5 0.3 0.1 500 force"
  24. else if {killeffect.%{_uuid}%} is "magic":
  25. execute console command "execute %{_p}% ~ ~ ~ particle witchMagic %x-coordinate of {_loc}% %y-coordinate of location 0.75 meter above {_loc}% %z-coordinate of {_loc}% 0.3 0.5 0.3 0.1 500 force"
  26. else if {killeffect.%{_uuid}%} is "lightning":
  27. strike lightning effect at {_loc}
  28. else if {killeffect.%{_uuid}%} is "tnt":
  29. spawn a primed tnt at {_loc}
  30. add "{Tags:[""tnteffect""],Fuse:21s,Motion:[0.0d,0.0d,0.0d]}" to nbt of last spawned tnt
  31. push last spawned tnt upwards with speed 0.5
  32. else if {killeffect.%{_uuid}%} is "fireworks":
  33. spawn a firework rocket at location 1.5 meter above {_loc}
  34. add "{Tags:[""nodamage""],LifeTime:1,FireworksItem:{id:fireworks,Count:1,tag:{Fireworks:{Explosions:[{Type:0,Colors:[I;%randomColor()%]}]}}}}" to nbt of last spawned firework rocket
  35. else if {killeffect.%{_uuid}%} is "spiral":
  36. spiralEffect({_loc})
  37. else if {killeffect.%{_uuid}%} is "rainbow":
  38. execute console command "execute %{_p}% ~ ~ ~ particle reddust %x-coordinate of {_loc}% %y-coordinate of location 0.75 meter above {_loc}% %z-coordinate of {_loc}% 0.3 0.5 0.3 0.1 500 force"
  39. else if {killeffect.%{_uuid}%} is "headrocket":
  40. set yaw of {_loc} to yaw of {_victim}
  41. spawn an armor stand at {_loc}
  42. add "{NoGravity:1b,Invisible:1b,Marker:1b,ArmorItems:[{},{},{},{id:""minecraft:skull"",Count:1b,Damage:3s,tag:{SkullOwner:%{_victim}%}}]}" to nbt of last spawned armor stand
  43. play sound "entity.firework.launch" to all players at {_loc} with volume 2 pitch 1
  44. set {_armorstand} to last spawned armor stand
  45. set {_armorstanduuid} to UUID of {_armorstand}
  46. loop 30 times:
  47. add 10 to yaw of {_loc}
  48. set {_loc} to location 0.3 meter above {_loc}
  49. teleport {_armorstand} to {_loc}
  50. execute console command "execute %{_armorstanduuid}% ~ ~ ~ particle cloud ~ ~1 ~ 0 0 0 0 1"
  51. wait 1 tick
  52. breakEffect(152, 0, location of head of {_armorstand})
  53. kill {_armorstand}
  54. else if {killeffect.%{_uuid}%} is "finalsmash":
  55. set yaw of {_loc} to yaw of {_victim}
  56. set {_yaw} to yaw of {_victim}
  57. set {_loc2} to {_loc}
  58. set yaw of {_loc2} to yaw of {_p}
  59. set pitch of {_loc2} to random number between -10 and -30
  60. spawn an armor stand at {_loc}
  61. add "{NoGravity:1b,NoBasePlate:1b,Marker:1b,ArmorItems:[{id:""minecraft:leather_boots"",Count:1b,Damage:0s},{id:""minecraft:leather_leggings"",Count:1b,Damage:0s},{id:""minecraft:leather_chestplate"",Count:1b,Damage:0s},{id:""minecraft:skull"",Count:1b,Damage:3s,tag:{SkullOwner:%{_victim}%}}]}" to nbt of last spawned armor stand
  62. set {_armorstand} to last spawned armor stand
  63. set {_armorstanduuid} to UUID of {_armorstand}
  64. play sound "entity.firework.launch" to all players at {_loc} with volume 2 pitch 1
  65. loop 70 times:
  66. set {_distance} to loop-number/1.5
  67. add 10 to {_yaw}
  68. set {_loc} to location {_distance} meter forwards {_loc2}
  69. set yaw of {_loc} to {_yaw}
  70. teleport {_armorstand} to {_loc}
  71. execute console command "execute %{_armorstanduuid}% ~ ~ ~ particle cloud ~ ~ ~ 0 0 0 0 1"
  72. wait 1 tick
  73. spawn a firework rocket at {_loc}
  74. add "{Tags:[""nodamage""],LifeTime:1,FireworksItem:{id:fireworks,Count:1,tag:{Fireworks:{Explosions:[{Type:1,Trail:1,Colors:[I;16711680]}]}}}}" to nbt of last spawned firework rocket
  75. kill {_armorstand}
  76. else if {killeffect.%{_uuid}%} is "xporb":
  77. loop 100 times:
  78. loop 10 times:
  79. spawnFakeXPOrb(location random number between -1 and 1 meter east location (random number between 0 and 0.5)+2 meter above location random number between -1 and 1 meter south {_loc}, 30)
  80. wait 1 tick
  81. else if {killeffect.%{_uuid}%} is "corpse":
  82. set {_id} to random integer between 1 and 2147483647
  83. set {_packet1} to new play_server_named_entity_spawn packet
  84. set int pnum 0 of {_packet1} to {_id}
  85. set {_uuid} to UUID of {_victim}
  86. set "UUID" pinfo 0 of {_packet1} to {_uuid}
  87. set double pnum 0 of {_packet1} to x-coordinate of {_loc}
  88. set double pnum 1 of {_packet1} to y-coordinate of {_loc}
  89. set double pnum 2 of {_packet1} to z-coordinate of {_loc}
  90. set byte pnum 0 of {_packet1} to floor((yaw of {_loc})*256/360)
  91. set byte pnum 1 of {_packet1} to floor((pitch of {_loc})*256/360)
  92. set {_packet2} to new play_server_bed packet
  93. set int pnum 0 of {_packet2} to {_id}
  94. set location pinfo 0 of {_packet2} to {_loc}
  95. set {_packet3} to new play_server_entity_teleport packet
  96. set int pnum 0 of {_packet3} to {_id}
  97. set double pnum 0 of {_packet3} to x-coordinate of {_loc}
  98. set double pnum 1 of {_packet3} to y-coordinate of {_loc}
  99. set double pnum 2 of {_packet3} to z-coordinate of {_loc}
  100. set {_packet4} to new play_server_entity_destroy packet
  101. set int array pnum 0 of {_packet4} to {_id}
  102. loop all players:
  103. loop-player's world is {_loc}'s world
  104. send loop-player packet {_packet1}
  105. send loop-player packet {_packet2}
  106. send loop-player packet {_packet3}
  107. wait 5 second
  108. loop all players:
  109. send loop-player packet {_packet4}
  110. function spiralEffect(loc: location):
  111. set {_firstdegree} to (random integer between 0 and 35)*10
  112. set {_radius} to 0.2
  113. loop 5 times:
  114. set pitch of {_loc} to 0
  115. set yaw of {_loc} to {_firstdegree}
  116. loop 107 times:
  117. show 1 fireworks spark particles at location {_radius} meter forwards {_loc} offset by 0, 0, 0 with speed 0
  118. add 0.002 to {_radius}
  119. add 10/3 to yaw of {_loc}
  120. set {_loc} to location 1/108 meter above {_loc}
  121. function spawnFakeXPOrb(loc: location, delay: integer):
  122. set {_packet1} to new play_server_spawn_entity_experience_orb packet
  123. set {_id} to random integer between 0 and 2147483647
  124. set int pnum 0 of {_packet1} to {_id}
  125. set int pnum 1 of {_packet1} to 2147483647
  126. set double pnum 0 of {_packet1} to x-coordinate of {_loc}
  127. set double pnum 1 of {_packet1} to y-coordinate of {_loc}
  128. set double pnum 2 of {_packet1} to z-coordinate of {_loc}
  129. loop all players:
  130. loop-player's world is {_loc}'s world
  131. send loop-player packet {_packet1}
  132. {_delay} > 0
  133. loop {_delay} times:
  134. wait 1 tick
  135. set {_packet2} to new play_server_entity_destroy packet
  136. set int array pnum 0 of {_packet2} to {_id}
  137. loop all players:
  138. loop-player's world is {_loc}'s world
  139. send loop-player packet {_packet2}
  140. function randomColor() :: integer:
  141. set {_colorpattern} to random integer between 1 and 8
  142. if {_colorpattern} is 1:
  143. set {_r} to 255
  144. set {_g} to random integer between 0 and 255
  145. set {_b} to 0
  146. if {_colorpattern} is 2:
  147. set {_r} to 0
  148. set {_g} to 255
  149. set {_b} to random integer between 0 and 255
  150. if {_colorpattern} is 3:
  151. set {_r} to random integer between 0 and 255
  152. set {_g} to 0
  153. set {_b} to 255
  154. if {_colorpattern} is 4:
  155. set {_r} to random integer between 0 and 255
  156. set {_g} to 255
  157. set {_b} to 0
  158. if {_colorpattern} is 5:
  159. set {_r} to 0
  160. set {_g} to random integer between 0 and 255
  161. set {_b} to 255
  162. if {_colorpattern} is 6:
  163. set {_r} to 255
  164. set {_g} to 0
  165. set {_b} to random integer between 0 and 255
  166. if {_colorpattern} is 7:
  167. set {_r} to 0
  168. set {_g} to 0
  169. set {_b} to 0
  170. if {_colorpattern} is 8:
  171. set {_r} to 255
  172. set {_g} to 255
  173. set {_b} to 255
  174. return "%{_r}*65536+{_g}*256+{_b}%" parsed as integer
  175. on explosion prime:
  176. event-entity is tnt
  177. event-entity has scoreboard tag "tnteffect"
  178. cancel event
  179. play sound "entity.generic.explode" to all players at event-entity with volume 4 pitch 0.7
  180. execute console command "execute %UUID of event-entity% ~ ~ ~ particle hugeexplosion %x-coordinate of event-entity% %y-coordinate of event-entity% %z-coordinate of event-entity% 0 0 0 0 1 force"
  181. kill event-entity
  182. on damage:
  183. damage was caused by entity explosion
  184. "%attacker%" is "firework rocket"
  185. attacker has scoreboard tag "nodamage"
  186. cancel event
  187. command /buykilleffect <player> <text>:
  188. executable by: console
  189. trigger:
  190. {killeffects::*} contain arg-2
  191. {killeffects.%UUID of arg-1%::*} do not contain arg-2
  192. add arg-2 to {killeffects.%UUID of arg-1%::*}
  193. send "&aキルエフェクト&e%arg-2%&aのご購入ありがとうございます!" to arg-1
  194. send "&e&n/killeffect&aからキルエフェクトを選択できます" to arg-1
  195. play sound "ENTITY_PLAYER_LEVELUP" to arg-1 with volume 1 and pitch 15
  196. command /killeffect:
  197. aliases: /ke
  198. trigger:
  199. open chest with 5 row named "&aKill Effect Menu" to player
  200. wait 1 tick
  201. set slot 11 of player's current inventory to barrier named "&7None"
  202. set line 1 of lore of slot 11 of player's current inventory to "&a開放済"
  203. set line 2 of lore of slot 11 of player's current inventory to "&eクリックで選択"
  204. set slot 12 of player's current inventory to coal named "&8Smoke"
  205. set line 1 of lore of slot 12 of player's current inventory to "&c未開放"
  206. set slot 13 of player's current inventory to eye of ender named "&5Magic"
  207. set line 1 of lore of slot 13 of player's current inventory to "&c未開放"
  208. set slot 14 of player's current inventory to nether star named "&cR&6a&ei&an&3b&9o&5w"
  209. set line 1 of lore of slot 14 of player's current inventory to "&c未開放"
  210. set slot 15 of player's current inventory to blaze powder named "&cFlame"
  211. set line 1 of lore of slot 15 of player's current inventory to "&c未開放"
  212. set slot 20 of player's current inventory to redstone named "&4Blood"
  213. set line 1 of lore of slot 20 of player's current inventory to "&c未開放"
  214. set slot 21 of player's current inventory to string named "&bSpiral"
  215. set line 1 of lore of slot 21 of player's current inventory to "&c未開放"
  216. set slot 22 of player's current inventory to firework rocket named "&6Fireworks"
  217. set line 1 of lore of slot 22 of player's current inventory to "&c未開放"
  218. set slot 23 of player's current inventory to plain glass block named "&eLightning"
  219. set line 1 of lore of slot 23 of player's current inventory to "&c未開放"
  220. set slot 24 of player's current inventory to tnt named "&cTNT"
  221. set line 1 of lore of slot 24 of player's current inventory to "&c未開放"
  222. set slot 29 of player's current inventory to skeleton head named "&3Head Rocket"
  223. set line 1 of lore of slot 29 of player's current inventory to "&c未開放"
  224. set slot 30 of player's current inventory to armor stand named "&6Final Smash"
  225. set line 1 of lore of slot 30 of player's current inventory to "&c未開放"
  226. set slot 31 of player's current inventory to bottles o' enchanting named "&aXP Orb"
  227. set line 1 of lore of slot 31 of player's current inventory to "&c未開放"
  228. set slot 32 of player's current inventory to rotten flesh named "&4Corpse"
  229. set line 1 of lore of slot 32 of player's current inventory to "&c未開放"
  230. if {killeffects.%UUID of player%::*} contain "smoke":
  231. set line 1 of lore of slot 12 of player's current inventory to "&a開放済"
  232. set line 2 of lore of slot 12 of player's current inventory to "&eクリックで選択"
  233. if {killeffects.%UUID of player%::*} contain "magic":
  234. set line 1 of lore of slot 13 of player's current inventory to "&a開放済"
  235. set line 2 of lore of slot 13 of player's current inventory to "&eクリックで選択"
  236. if {killeffects.%UUID of player%::*} contain "rainbow":
  237. set line 1 of lore of slot 14 of player's current inventory to "&a開放済"
  238. set line 2 of lore of slot 14 of player's current inventory to "&eクリックで選択"
  239. if {killeffects.%UUID of player%::*} contain "flame":
  240. set line 1 of lore of slot 15 of player's current inventory to "&a開放済"
  241. set line 2 of lore of slot 15 of player's current inventory to "&eクリックで選択"
  242. if {killeffects.%UUID of player%::*} contain "blood":
  243. set line 1 of lore of slot 20 of player's current inventory to "&a開放済"
  244. set line 2 of lore of slot 20 of player's current inventory to "&eクリックで選択"
  245. if {killeffects.%UUID of player%::*} contain "spiral":
  246. set line 1 of lore of slot 21 of player's current inventory to "&a開放済"
  247. set line 2 of lore of slot 21 of player's current inventory to "&eクリックで選択"
  248. if {killeffects.%UUID of player%::*} contain "fireworks":
  249. set line 1 of lore of slot 22 of player's current inventory to "&a開放済"
  250. set line 2 of lore of slot 22 of player's current inventory to "&eクリックで選択"
  251. if {killeffects.%UUID of player%::*} contain "lightning":
  252. set line 1 of lore of slot 23 of player's current inventory to "&a開放済"
  253. set line 2 of lore of slot 23 of player's current inventory to "&eクリックで選択"
  254. if {killeffects.%UUID of player%::*} contain "tnt":
  255. set line 1 of lore of slot 24 of player's current inventory to "&a開放済"
  256. set line 2 of lore of slot 24 of player's current inventory to "&eクリックで選択"
  257. if {killeffects.%UUID of player%::*} contain "headrocket":
  258. set line 1 of lore of slot 29 of player's current inventory to "&a開放済"
  259. set line 2 of lore of slot 29 of player's current inventory to "&eクリックで選択"
  260. if {killeffects.%UUID of player%::*} contain "finalsmash":
  261. set line 1 of lore of slot 30 of player's current inventory to "&a開放済"
  262. set line 2 of lore of slot 30 of player's current inventory to "&eクリックで選択"
  263. if {killeffects.%UUID of player%::*} contain "xporb":
  264. set line 1 of lore of slot 31 of player's current inventory to "&a開放済"
  265. set line 2 of lore of slot 31 of player's current inventory to "&eクリックで選択"
  266. if {killeffects.%UUID of player%::*} contain "corpse":
  267. set line 1 of lore of slot 32 of player's current inventory to "&a開放済"
  268. set line 2 of lore of slot 32 of player's current inventory to "&eクリックで選択"
  269. if {killeffect.%UUID of player%} is not set:
  270. set line 2 of lore of slot 11 of player's current inventory to "&e選択済"
  271. else if {killeffect.%UUID of player%} is "smoke":
  272. set line 2 of lore of slot 12 of player's current inventory to "&e選択済"
  273. else if {killeffect.%UUID of player%} is "magic":
  274. set line 2 of lore of slot 13 of player's current inventory to "&e選択済"
  275. else if {killeffect.%UUID of player%} is "rainbow":
  276. set line 2 of lore of slot 14 of player's current inventory to "&e選択済"
  277. else if {killeffect.%UUID of player%} is "flame":
  278. set line 2 of lore of slot 15 of player's current inventory to "&e選択済"
  279. else if {killeffect.%UUID of player%} is "blood":
  280. set line 2 of lore of slot 20 of player's current inventory to "&e選択済"
  281. else if {killeffect.%UUID of player%} is "spiral":
  282. set line 2 of lore of slot 21 of player's current inventory to "&e選択済"
  283. else if {killeffect.%UUID of player%} is "fireworks":
  284. set line 2 of lore of slot 22 of player's current inventory to "&e選択済"
  285. else if {killeffect.%UUID of player%} is "lightning":
  286. set line 2 of lore of slot 23 of player's current inventory to "&e選択済"
  287. else if {killeffect.%UUID of player%} is "tnt":
  288. set line 2 of lore of slot 24 of player's current inventory to "&e選択済"
  289. else if {killeffect.%UUID of player%} is "headrocket":
  290. set line 2 of lore of slot 29 of player's current inventory to "&e選択済"
  291. else if {killeffect.%UUID of player%} is "finalsmash":
  292. set line 2 of lore of slot 30 of player's current inventory to "&e選択済"
  293. else if {killeffect.%UUID of player%} is "xporb":
  294. set line 2 of lore of slot 31 of player's current inventory to "&e選択済"
  295. else if {killeffect.%UUID of player%} is "corpse":
  296. set line 2 of lore of slot 32 of player's current inventory to "&e選択済"
  297. on inventory click:
  298. if inventory type of player's current inventory is "CHEST":
  299. "%player's current inventory%" is "inventory of <none>"
  300. inventory name of player's current inventory is "&aKill Effect Menu"
  301. cancel event
  302. inventory type of clicked inventory is "CHEST"
  303. "%clicked inventory%" is "inventory of <none>"
  304. inventory name of clicked inventory is "&aKill Effect Menu"
  305. if line 2 of lore of clicked item is "&e選択済":
  306. send "&cそのキルエフェクトは既に選択しています"
  307. play sound "ENTITY_ENDERMEN_TELEPORT" to player with volume 1 and pitch 0
  308. close player's inventory
  309. else if line 1 of lore of clicked item is "&c未開放":
  310. send "&cそのキルエフェクトは開放していません"
  311. play sound "ENTITY_ENDERMEN_TELEPORT" to player with volume 1 and pitch 0
  312. close player's inventory
  313. else if name of clicked item is "&7None":
  314. delete {killeffect.%UUID of player%}
  315. send "&aキルエフェクトを%name of clicked item%&aに設定しました"
  316. play sound "BLOCK_NOTE_PLING" to player with volume 1 and pitch 5
  317. close player's inventory
  318. else if name of clicked item is "&8Smoke":
  319. set {killeffect.%UUID of player%} to "smoke"
  320. send "&aキルエフェクトを%name of clicked item%&aに設定しました"
  321. play sound "BLOCK_NOTE_PLING" to player with volume 1 and pitch 5
  322. close player's inventory
  323. else if name of clicked item is "&5Magic":
  324. set {killeffect.%UUID of player%} to "magic"
  325. send "&aキルエフェクトを%name of clicked item%&aに設定しました"
  326. play sound "BLOCK_NOTE_PLING" to player with volume 1 and pitch 5
  327. close player's inventory
  328. else if name of clicked item is "&cR&6a&ei&an&3b&9o&5w":
  329. set {killeffect.%UUID of player%} to "rainbow"
  330. send "&aキルエフェクトを%name of clicked item%&aに設定しました"
  331. play sound "BLOCK_NOTE_PLING" to player with volume 1 and pitch 5
  332. close player's inventory
  333. else if name of clicked item is "&cFlame":
  334. set {killeffect.%UUID of player%} to "flame"
  335. send "&aキルエフェクトを%name of clicked item%&aに設定しました"
  336. play sound "BLOCK_NOTE_PLING" to player with volume 1 and pitch 5
  337. close player's inventory
  338. else if name of clicked item is "&4Blood":
  339. set {killeffect.%UUID of player%} to "blood"
  340. send "&aキルエフェクトを%name of clicked item%&aに設定しました"
  341. play sound "BLOCK_NOTE_PLING" to player with volume 1 and pitch 5
  342. close player's inventory
  343. else if name of clicked item is "&bSpiral":
  344. set {killeffect.%UUID of player%} to "spiral"
  345. send "&aキルエフェクトを%name of clicked item%&aに設定しました"
  346. play sound "BLOCK_NOTE_PLING" to player with volume 1 and pitch 5
  347. close player's inventory
  348. else if name of clicked item is "&6Fireworks":
  349. set {killeffect.%UUID of player%} to "fireworks"
  350. send "&aキルエフェクトを%name of clicked item%&aに設定しました"
  351. play sound "BLOCK_NOTE_PLING" to player with volume 1 and pitch 5
  352. close player's inventory
  353. else if name of clicked item is "&eLightning":
  354. set {killeffect.%UUID of player%} to "lightning"
  355. send "&aキルエフェクトを%name of clicked item%&aに設定しました"
  356. play sound "BLOCK_NOTE_PLING" to player with volume 1 and pitch 5
  357. close player's inventory
  358. else if name of clicked item is "&cTNT":
  359. set {killeffect.%UUID of player%} to "tnt"
  360. send "&aキルエフェクトを%name of clicked item%&aに設定しました"
  361. play sound "BLOCK_NOTE_PLING" to player with volume 1 and pitch 5
  362. close player's inventory
  363. else if name of clicked item is "&3Head Rocket":
  364. set {killeffect.%UUID of player%} to "headrocket"
  365. send "&aキルエフェクトを%name of clicked item%&aに設定しました"
  366. play sound "BLOCK_NOTE_PLING" to player with volume 1 and pitch 5
  367. close player's inventory
  368. else if name of clicked item is "&6Final Smash":
  369. set {killeffect.%UUID of player%} to "finalsmash"
  370. send "&aキルエフェクトを%name of clicked item%&aに設定しました"
  371. play sound "BLOCK_NOTE_PLING" to player with volume 1 and pitch 5
  372. close player's inventory
  373. else if name of clicked item is "&aXP Orb":
  374. set {killeffect.%UUID of player%} to "xporb"
  375. send "&aキルエフェクトを%name of clicked item%&aに設定しました"
  376. play sound "BLOCK_NOTE_PLING" to player with volume 1 and pitch 5
  377. close player's inventory
  378. else if name of clicked item is "&4Corpse":
  379. set {killeffect.%UUID of player%} to "corpse"
  380. send "&aキルエフェクトを%name of clicked item%&aに設定しました"
  381. play sound "BLOCK_NOTE_PLING" to player with volume 1 and pitch 5
  382. close player's inventory
Add Comment
Please, Sign In to add comment