akon1248

KitPvP-5

Apr 20th, 2019
444
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 26.96 KB | None | 0 0
  1. on damage:
  2. attacker is a player
  3. damage was caused by attack
  4. event is not cancelled
  5. attacker's tool is iron sword
  6. name of attacker's tool is "&9Squid Sword"
  7. chance of 15%:
  8. execute console command "execute %UUID of victim% ~ ~ ~ effect @s 15 5 0"
  9. execute console command "execute %UUID of victim% ~ ~ ~ effect @s 2 5 1"
  10. on rightclick:
  11. id of player's tool is 351
  12. durability of player's tool is 0
  13. name of player's tool is "&8Squid Ink"
  14. {kitpvp.timers.%player%::squidink} is not set
  15. play sound "entity.squid.death" to all players at player with volume 1.2 pitch 1
  16. execute console command "execute %player% ~ ~ ~ particle fallingdust ~ ~1 ~ 1 1 1 0 1000 force"
  17. execute console command "execute %player% ~ ~ ~ particle largesmoke ~ ~1 ~ 1 1 1 0 1000 force"
  18. loop entities in radius 5 around player:
  19. loop-entity is a living entity
  20. loop-entity is not player
  21. execute console command "execute %UUID of loop-entity% ~ ~ ~ effect @s 15 10 0"
  22. execute console command "execute %UUID of loop-entity% ~ ~ ~ effect @s 2 10 2"
  23. set {kitpvp.timers.%player%::squidink} to 600
  24. every tick:
  25. loop all players:
  26. {kitpvp.timers.%loop-player%::squidink} >= 1
  27. remove 1 from {kitpvp.timers.%loop-player%::squidink}
  28. if id of loop-player's tool is 351:
  29. durability of loop-player's tool is 0
  30. name of loop-player's tool is "&8Squid Ink"
  31. send action bar from "&8Squid Ink&aが使用可能になるまであと%ceil({kitpvp.timers.%loop-player%::squidink}/20)%秒" to loop-player
  32. {kitpvp.timers.%loop-player%::squidink} is 0
  33. delete {kitpvp.timers.%loop-player%::squidink}
  34. send action bar from "&8Squid Ink&aが使用可能になりました" to loop-player
  35. on damage:
  36. attacker is a player
  37. damage was caused by attack
  38. event is not cancelled
  39. attacker's tool is iron axe
  40. name of attacker's tool is "&5Minotaur's Axe"
  41. damage is 5
  42. set damage to 3
  43. chance of 10%:
  44. set damage to damage*1.5
  45. wait 1 tick
  46. play sound "entity.generic.explode" to all players at victim with volume 3 pitch 0.7
  47. execute console command "execute %UUID of victim% ~ ~ ~ particle hugeexplosion ~ ~1 ~ 0 0 0 0 1 force"
  48. push victim upwards with speed 1
  49. add "{FallDistance:10f}" to nbt of victim
  50. on rightclick with gunpowder:
  51. name of player's tool is "&5Rush"
  52. {kitpvp.timers.%player%::rush} is not set
  53. set {kitpvp.timers.%player%::rush} to 900
  54. play sound "entity.cow.ambient" to all players at player with volume 2 pitch 1
  55. wait 5 tick
  56. execute console command "execute %player% ~ ~ ~ effect @s 8 3 128 true"
  57. set {_nohitblockids::*} to 0, 6, 8, 9, 10, 11, 30, 31, 32, 36, 37, 38, 39, 40, 50, 51, 55, 63, 65, 68, 69, 70, 72, 76, 77, 78, 90, 93, 94, 119, 131, 143, 147, 148, 149, 150, 175, 209 and 425
  58. loop 60 times:
  59. if player is dead:
  60. stop loop
  61. if y of velocity of player > 0:
  62. set {_v} to new vector from x of velocity of player, -1, z of velocity of player
  63. set velocity of player to {_v}
  64. if player is on ground:
  65. push player horizontal forwards with speed 0.3
  66. execute console command "execute %player% ~ ~ ~ particle explode ~ ~ ~ 0 0 0 0.2 30"
  67. play sound "entity.cow.step" to all players at player with volume 1 pitch 1
  68. {_nohitblockids::*} do not contain id of block at location 1 meter horizontal forwards location of player
  69. {_nohitblockids::*} contain id of block at location 1 meter horizontal forwards location 1 meter above location of player
  70. teleport player to location 1 meter above location of player
  71. loop entities in radius 2 around player:
  72. loop-entity is a living entity
  73. loop-entity is not player
  74. make player damage loop-entity by 15
  75. add "{FallDistance:10f}" to nbt of loop-entity
  76. push loop-entity direction from player to loop-entity with speed 0.2
  77. push loop-entity upwards with speed 0.1
  78. if player is dead:
  79. stop loop
  80. wait 1 tick
  81. every tick:
  82. loop all players:
  83. {kitpvp.timers.%loop-player%::rush} >= 1
  84. remove 1 from {kitpvp.timers.%loop-player%::rush}
  85. if loop-player's tool is gunpowder:
  86. name of loop-player's tool is "&5Rush"
  87. send action bar from "&5Rush&aが使用可能になるまであと%ceil({kitpvp.timers.%loop-player%::rush}/20)%秒" to loop-player
  88. {kitpvp.timers.%loop-player%::rush} is 0
  89. delete {kitpvp.timers.%loop-player%::rush}
  90. send action bar from "&5Rush&aが使用可能になりました" to loop-player
  91. on damage of player:
  92. attacker is a player
  93. damage was caused by attack
  94. event is not cancelled
  95. attacker's tool is iron sword
  96. name of attacker's tool is "&bIce Sword"
  97. chance of 10%:
  98. set {kitpvp.timers.%victim%::frozen} to 100
  99. execute console command "execute %UUID of victim% ~ ~ ~ particle blockdust ~ ~1 ~ 0.3 0.5 0.3 0.05 100 normal @a 79"
  100. play sound "block.glass.break" to all players at victim with volume 1.2 pitch 1
  101. on rightclick with prismarine shard:
  102. name of player's tool is "&bFrost Breath"
  103. {kitpvp.timers.%player%::frostbreath} is not set
  104. set {kitpvp.timers.%player%::frostbreath} to 600
  105. set {_loc} to location 0.5 meter forwards player's head
  106. loop 10 times:
  107. if player is dead:
  108. stop loop
  109. execute console command "execute %player% ~ ~ ~ particle instantSpell %x-coordinate of {_loc}% %y-coordinate of {_loc}% %z-coordinate of {_loc}% 0.3 0.3 0.3 1 50 force"
  110. loop entities in radius 2 around {_loc}:
  111. loop-entity is a living entity
  112. loop-entity is not player
  113. make player damage loop-entity by 5
  114. loop-entity is a player
  115. set {kitpvp.timers.%loop-entity%::frozen} to 200
  116. set {_loc} to location 1 meter forwards {_loc}
  117. wait 1 tick
  118. every tick:
  119. loop all players:
  120. {kitpvp.timers.%loop-player%::frostbreath} >= 1
  121. remove 1 from {kitpvp.timers.%loop-player%::frostbreath}
  122. if loop-player's tool is prismarine shard:
  123. name of loop-player's tool is "&bFrost Breath"
  124. send action bar from "&bFrost Breath&aが使用可能になるまであと%ceil({kitpvp.timers.%loop-player%::frostbreath}/20)%秒" to loop-player
  125. {kitpvp.timers.%loop-player%::frostbreath} is 0
  126. delete {kitpvp.timers.%loop-player%::frostbreath}
  127. send action bar from "&bFrost Breath&aが使用可能になりました" to loop-player
  128. every tick:
  129. loop all players:
  130. if {kitpvp.timers.%loop-player%::frozen} >= 1:
  131. remove 1 from {kitpvp.timers.%loop-player%::frozen}
  132. execute console command "execute %loop-player% ~ ~ ~ particle mobSpell ~%random number between -0.3 and 0.3% ~%random number between 0 and 2% ~%random number between -0.3 and 0.3% 0.6 1 1 1 0"
  133. set loop-player's walk speed to 0.15
  134. damage loop-player by 0.25
  135. {kitpvp.timers.%loop-player%::frozen} is 0
  136. set loop-player's walk speed to 0.2
  137. delete {kitpvp.timers.%loop-player%::frozen}
  138. on rightclick with stick:
  139. name of player's tool is "&5Necromancer's Wand"
  140. {kitpvp.timers.%player%::necromancerwand} is not set
  141. set {kitpvp.timers.%player%::necromancerwand} to 600
  142. set {_monsterpattern} to random integer between 0 and 1
  143. play sound "ENTITY_ZOMBIE_VILLAGER_CONVERTED" to player with volume 1 and pitch 5
  144. execute console command "execute %player% ~ ~ ~ particle witchMagic ~ ~1 ~ 0.3 0.5 0.3 0.1 500 force"
  145. if {_monsterpattern} is 0:
  146. spawn a skeleton at player
  147. set name of last spawned entity to "&5%player%'s Skeleton"
  148. else if {_monsterpattern} is 1:
  149. spawn an adult zombie at player
  150. set name of last spawned entity to "&5%player%'s Zombie"
  151. add "{Tags:[""necromancermonster"",""owner:%player%""],Health:50.0f,Attributes:[{Name:""generic.maxHealth"",Base:50.0d},{Name:""generic.movementSpeed"",Base:0.3d},{Name:""generic.attackDamage"",Base:6.0d},{Name:""generic.followRange"",Base:50.0d}]}" to nbt of last spawned entity
  152. set {kitpvp.mobage::%UUID of last spawned entity%} to 3600
  153. wait 1 tick
  154. ignite last spawned entity for 0 tick
  155. add "{ArmorItems:[{},{},{},{id:""minecraft:leather_helmet"",Count:1b,Damage:0s,tag:{Unbreakable:1b}}],HandItems:[{},{}]}" to nbt of last spawned entity
  156. every tick:
  157. loop {kitpvp.mobage::*}:
  158. if getEntityFromUUID(loop-index) is not set:
  159. delete {kitpvp.mobage::%loop-index%}
  160. {kitpvp.mobage::%loop-index%} >= 1
  161. remove 1 from {kitpvp.mobage::%loop-index%}
  162. {kitpvp.mobage::%loop-index%} is 0
  163. delete {kitpvp.mobage::%loop-index%}
  164. set {_mob} to getEntityFromUUID(loop-index)
  165. execute console command "execute %UUID of {_mob}% ~ ~ ~ particle explode ~ ~1 ~ 0.3 0.5 0.3 0 100"
  166. teleport {_mob} to location at x-coordinate of {_mob}, -64, z-coordinate of {_mob} in world "%{_mob}'s world%"
  167. delayKill({_mob}, 10)
  168. on death:
  169. victim is not a player
  170. set {_tags::*} to getTagValues(victim)
  171. {_tags::*} contain "necromancermonster"
  172. clear drops
  173. on damage:
  174. victim is not a player
  175. attacker is a player
  176. set {_owner} to getOwnerTag("%tag ""Tags"" of nbt of victim%")
  177. {_owner} is set
  178. {_owner} is attacker
  179. attacker's gamemode is survival or adventure
  180. cancel event
  181. on damage of player:
  182. attacker is a living entity
  183. loop all entities:
  184. loop-entity is not a player
  185. loop-entity is not armor stand
  186. loop-entity is a living entity
  187. set {_owner} to getOwnerTag("%tag ""Tags"" of nbt of loop-entity%")
  188. {_owner} is victim
  189. target of loop-entity is not a player
  190. attacker is not loop-entity
  191. set target of loop-entity to attacker
  192. on damage:
  193. attacker is a player
  194. victim is a living entity
  195. victim is not armor stand
  196. event is not cancelled
  197. loop all entities:
  198. loop-entity is not a player
  199. loop-entity is not armor stand
  200. loop-entity is a living entity
  201. set {_owner} to getOwnerTag("%tag ""Tags"" of nbt of loop-entity%")
  202. {_owner} is attacker
  203. victim is not loop-entity
  204. set target of loop-entity to victim
  205. every tick:
  206. loop all players:
  207. {kitpvp.timers.%loop-player%::necromancerwand} >= 1
  208. remove 1 from {kitpvp.timers.%loop-player%::necromancerwand}
  209. if loop-player's tool is stick:
  210. name of loop-player's tool is "&5Necromancer's Wand"
  211. send action bar from "&5Necromancer's Wand&aが使用可能になるまであと%ceil({kitpvp.timers.%loop-player%::necromancerwand}/20)%秒" to loop-player
  212. {kitpvp.timers.%loop-player%::necromancerwand} is 0
  213. delete {kitpvp.timers.%loop-player%::necromancerwand}
  214. send action bar from "&5Necromancer's Wand&aが使用可能になりました" to loop-player
  215. on rightclick with flint:
  216. name of player's tool is "&5Fang Attack"
  217. {kitpvp.timers.%player%::fangattack} is not set
  218. set {kitpvp.timers.%player%::fangattack} to 600
  219. set {_loc} to location 1 meter horizontal forwards player
  220. loop 15 times:
  221. if player is dead:
  222. stop loop
  223. set {_spawnloc} to {_loc}
  224. add 90 to yaw of {_spawnloc}
  225. spawn an evoker fangs at {_spawnloc}
  226. add "{Tags:[""owner:%player%""]}" to nbt of last spawned evoker fangs
  227. set {_loc} to location 1 meter horizontal forwards {_loc}
  228. wait 1 tick
  229. every tick:
  230. loop all players:
  231. {kitpvp.timers.%loop-player%::fangattack} >= 1
  232. remove 1 from {kitpvp.timers.%loop-player%::fangattack}
  233. if loop-player's tool is flint:
  234. name of loop-player's tool is "&5Fang Attack"
  235. send action bar from "&5Fang Attack&aが使用可能になるまであと%ceil({kitpvp.timers.%loop-player%::fangattack}/20)%秒" to loop-player
  236. {kitpvp.timers.%loop-player%::fangattack} is 0
  237. delete {kitpvp.timers.%loop-player%::fangattack}
  238. send action bar from "&5Fang Attack&aが使用可能になりました" to loop-player
  239. on damage:
  240. attacker is evoker fangs
  241. set {_owner} to getOwnerTag("%tag ""Tags"" of nbt of attacker%")
  242. {_owner} is set
  243. cancel event
  244. set {_victimowner} to getOwnerTag("%tag ""Tags"" of nbt of victim%")
  245. if {_victimowner} is set:
  246. {_victimowner} is not {_owner}
  247. make {_owner} damage victim by 12
  248. else:
  249. victim is not {_owner}
  250. make {_owner} damage victim by 12
  251. on damage:
  252. attacker is a player
  253. attacker's tool is popped chorus fruit
  254. name of attacker's tool is "&cUppercut"
  255. event is not cancelled
  256. damage was caused by attack
  257. {kitpvp.timers.%attacker%::uppercut} is not set
  258. set {kitpvp.timers.%attacker%::uppercut} to 900
  259. set damage to 6
  260. loop 5 times:
  261. play sound "entity.player.attack.knockback" to all players at victim with volume 2 pitch 1
  262. wait 1 tick
  263. push victim upwards with speed 1
  264. push victim in horizontal direction of attacker with speed 0.5
  265. add "{FallDistance:5f}" to nbt of victim
  266. every tick:
  267. loop all players:
  268. {kitpvp.timers.%loop-player%::uppercut} >= 1
  269. remove 1 from {kitpvp.timers.%loop-player%::uppercut}
  270. if loop-player's tool is popped chorus fruit:
  271. name of loop-player's tool is "&cUppercut"
  272. send action bar from "&cUppercut&aが使用可能になるまであと%ceil({kitpvp.timers.%loop-player%::uppercut}/20)%秒" to loop-player
  273. {kitpvp.timers.%loop-player%::uppercut} is 0
  274. delete {kitpvp.timers.%loop-player%::uppercut}
  275. send action bar from "&cUppercut&aが使用可能になりました" to loop-player
  276. on rightclick with fire charge:
  277. name of player's tool is "&cPunch Rush"
  278. cancel event
  279. {kitpvp.timers.%player%::punchrush} is not set
  280. set {kitpvp.timers.%player%::punchrush} to 1200
  281. loop 60 times:
  282. if player is dead:
  283. stop loop
  284. set {_loc} to location random number between -2 and 2 meter east location random number between -2 and 2 meter above location random number between -2 and 2 meter south location 5 meter forwards player's head
  285. execute console command "execute %player% ~ ~ ~ particle largeexplode %x-coordinate of {_loc}% %y-coordinate of {_loc}% %z-coordinate of {_loc}% 0 0 0 0 1"
  286. execute console command "execute %player% ~ ~ ~ particle crit %x-coordinate of {_loc}% %y-coordinate of {_loc}% %z-coordinate of {_loc}% 0 0 0 1 10"
  287. play sound "entity.player.attack.crit" to all players at {_loc} with volume 1 pitch 1
  288. if distance between location 0.5 meter horizontal to the right location 0.2 meter below player's head and {_loc} < distance between location 0.5 meter horizontal to the left location 0.2 meter below player's head and {_loc}:
  289. set {_vector} to vector between location 0.4 meter horizontal to the right location 0.2 meter below player's head and {_loc}
  290. set {_ploc} to location 0.5 meter horizontal to the right location 0.2 meter below player's head
  291. else if distance between location 0.5 meter horizontal to the right location 0.2 meter below player's head and {_loc} > distance between location 0.5 meter horizontal to the left location 0.2 meter below player's head and {_loc}:
  292. set {_vector} to vector between location 0.4 meter horizontal to the left location 0.2 meter below player's head and {_loc}
  293. set {_ploc} to location 0.5 meter horizontal to the left location 0.2 meter below player's head
  294. set yaw of {_ploc} to vector yaw of {_vector}
  295. set pitch of {_ploc} to vector pitch of {_vector}
  296. loop round(sqrt(x of {_vector}^2+y of {_vector}^2+z of {_vector}^2))*2 times:
  297. execute console command "execute %player% ~ ~ ~ particle crit %x-coordinate of {_ploc}% %y-coordinate of {_ploc}% %z-coordinate of {_ploc}% 0 0 0 0 1"
  298. loop entities in radius 0.5 around {_ploc}:
  299. {_victims::*} do not contain loop-entity
  300. loop-entity is not player
  301. loop-entity is not armor stand
  302. loop-entity is a living entity
  303. resetDamageDelay(loop-entity)
  304. make player damage loop-entity by 3
  305. set {_victims::%UUID of loop-entity%} to loop-entity
  306. set {_ploc} to location 0.5 meter forwards {_ploc}
  307. wait 1 tick
  308. loop {_victims::*}:
  309. add "{Motion:[0.0d,0.0d,0.0d]}" to nbt of loop-value-2
  310. delete {_victims::*}
  311. every tick:
  312. loop all players:
  313. {kitpvp.timers.%loop-player%::punchrush} >= 1
  314. remove 1 from {kitpvp.timers.%loop-player%::punchrush}
  315. if loop-player's tool is fire charge:
  316. name of loop-player's tool is "&cPunch Rush"
  317. send action bar from "&cPunch Rush&aが使用可能になるまであと%ceil({kitpvp.timers.%loop-player%::punchrush}/20)%秒" to loop-player
  318. {kitpvp.timers.%loop-player%::punchrush} is 0
  319. delete {kitpvp.timers.%loop-player%::punchrush}
  320. send action bar from "&cPunch Rush&aが使用可能になりました" to loop-player
  321. on damage:
  322. attacker is a player
  323. damage was caused by attack
  324. attacker's tool is iron sword
  325. name of attacker's tool is "&bGolem Sword"
  326. event is not cancelled
  327. chance of 10%:
  328. loop 5 times:
  329. play sound "entity.irongolem.attack" to all players at attacker with volume 1.2 pitch 1
  330. set damage to damage*1.2
  331. wait 1 tick
  332. push victim upwards with speed 0.5
  333. push victim in horizontal direction of attacker with speed 0.3
  334. add "{FallDistance:5f}" to nbt of victim
  335. function breakEffect(id: number, data: number, loc: location):
  336. set {_packet} to new play_server_world_event packet
  337. set location pinfo 0 of {_packet} to {_loc}
  338. set int pnum 0 of {_packet} to 2001
  339. set int pnum 1 of {_packet} to {_data}*4096+{_id}
  340. loop all players:
  341. loop-player's world is {_loc}'s world
  342. send loop-player packet {_packet}
  343. on rightclick with firework star:
  344. name of player's tool is "&bShock Wave"
  345. player is on ground
  346. {kitpvp.timers.%player%::shockwave} is not set
  347. set {kitpvp.timers.%player%::shockwave} to 900
  348. play sound "entity.zombie.attack_door_wood" to all players at player with volume 2 pitch 1
  349. set {_loc} to location at x-coordinate of player, y-coordinate of block at player-0.5, z-coordinate of player in world "%player's world%"
  350. set {_yaw} to yaw of player
  351. set {_nohitblockids::*} to 0, 6, 8, 9, 10, 11, 30, 31, 32, 36, 37, 38, 39, 40, 50, 51, 55, 63, 65, 68, 69, 70, 72, 76, 77, 90, 93, 94, 119, 131, 143, 147, 148, 149, 150, 175, 209 and 425
  352. loop 40 times:
  353. if player is dead:
  354. stop loop
  355. set yaw of {_loc} to {_yaw}
  356. set {_block} to location below location of block at {_loc}
  357. breakEffect(id of block at {_block}, data of block at {_block}, location of block at {_loc})
  358. breakEffect(id of block east {_block}, data of block east {_block}, location east location of block at {_loc})
  359. breakEffect(id of block south {_block}, data of block south {_block}, location south location of block at {_loc})
  360. breakEffect(id of block west {_block}, data of block west {_block}, location west location of block at {_loc})
  361. breakEffect(id of block north {_block}, data of block north {_block}, location north location of block at {_loc})
  362. loop entities in radius 1.5 around {_loc}:
  363. loop-entity is not player
  364. push loop-entity direction from {_loc} to loop-entity with speed 0.3
  365. set velocity of loop-entity to new vector from x of velocity of loop-entity, 1.2, z of velocity of loop-entity
  366. loop-entity is a living entity
  367. loop-entity is not armor stand
  368. make player damage loop-entity by 20
  369. if {_nohitblockids::*} do not contain id of block at location 0.5 meter horizontal forwards {_loc}:
  370. if {_nohitblockids::*} contain id of block at location 1 meter above location 0.5 meter horizontal forwards {_loc}:
  371. set {_loc} to location at x-coordinate of location 0.5 meter horizontal forwards {_loc}, y-coordinate of {_loc}+1, z-coordinate of location 0.5 meter horizontal forwards {_loc} in world "%player's world%"
  372. else:
  373. stop loop
  374. else if {_nohitblockids::*} contain id of block at location 0.5 meter horizontal forwards {_loc}:
  375. if {_nohitblockids::*} do not contain id of block at location 1 meter below location 0.5 meter horizontal forwards {_loc}:
  376. set {_loc} to location 0.5 meter horizontal forwards {_loc}
  377. else if {_nohitblockids::*} contain id of block at location 1 meter below location 0.5 meter horizontal forwards {_loc}:
  378. if {_nohitblockids::*} do not contain id of block at location 2 meter below location 0.5 meter horizontal forwards {_loc}:
  379. set {_loc} to location at x-coordinate of location 0.5 meter horizontal forwards {_loc}, y-coordinate of {_loc}-1, z-coordinate of location 0.5 meter horizontal forwards {_loc} in world "%player's world%"
  380. else:
  381. stop loop
  382. wait 1 tick
  383. every tick:
  384. loop all players:
  385. {kitpvp.timers.%loop-player%::shockwave} >= 1
  386. remove 1 from {kitpvp.timers.%loop-player%::shockwave}
  387. if loop-player's tool is firework star:
  388. name of loop-player's tool is "&bShock Wave"
  389. send action bar from "&bShock Wave&aが使用可能になるまであと%ceil({kitpvp.timers.%loop-player%::shockwave}/20)%秒" to loop-player
  390. {kitpvp.timers.%loop-player%::shockwave} is 0
  391. delete {kitpvp.timers.%loop-player%::shockwave}
  392. send action bar from "&bShock Wave&aが使用可能になりました" to loop-player
  393. on damage:
  394. attacker is a player
  395. event is not cancelled
  396. damage was caused by attack
  397. attacker's tool is stone sword
  398. name of attacker's tool is "&8Wither Sword"
  399. chance of 15%:
  400. execute console command "execute %UUID of victim% ~ ~ ~ effect @s 20 10 1"
  401. heal attacker by 2
  402. on rightclick with stick:
  403. name of player's tool is "&8Wither Wand"
  404. {kitpvp.timers.%player%::witherwand} is not set
  405. set {kitpvp.timers.%player%::witherwand} to 1200
  406. play sound "entity.wither.shoot" to all players at player with volume 2 pitch 1
  407. shoot a wither skull from player with speed 1
  408. add "{Tags:[""witherkitwitherskull""]}" to nbt of shot projectile
  409. on projectile hit:
  410. projectile is fireball
  411. set {_tags::*} to getTagValues(projectile)
  412. {_tags::*} contain "witherkitwitherskull"
  413. spawn a tnt at projectile
  414. add "{Tags:[""owner:%shooter%""],Fuse:0s}" to nbt of last spawned tnt
  415. loop entities in radius 5 around projectile:
  416. loop-entity is not shooter
  417. loop-entity is a living entity
  418. loop-entity is not armor stand
  419. execute console command "execute %UUID of loop-entity% ~ ~ ~ effect @s 20 15 2"
  420. on damage:
  421. projectile is fireball
  422. set {_tags::*} to getTagValues(projectile)
  423. {_tags::*} contain "witherkitwitherskull"
  424. set damage to 0.5
  425. shooter is set
  426. heal shooter by 5
  427. every tick:
  428. loop all players:
  429. {kitpvp.timers.%loop-player%::witherwand} >= 1
  430. remove 1 from {kitpvp.timers.%loop-player%::witherwand}
  431. if loop-player's tool is stick:
  432. name of loop-player's tool is "&8Wither Wand"
  433. send action bar from "&8Wither Wand&aが使用可能になるまであと%ceil({kitpvp.timers.%loop-player%::witherwand}/20)%秒" to loop-player
  434. {kitpvp.timers.%loop-player%::witherwand} is 0
  435. delete {kitpvp.timers.%loop-player%::witherwand}
  436. send action bar from "&8Wither Wand&aが使用可能になりました" to loop-player
  437. on rightclick with prismarine crystal:
  438. name of player's tool is "&8Shuriken"
  439. play sound "entity.arrow.shoot" to all players at player with volume 1 pitch 1
  440. shoot a snowball from player with speed 1.5
  441. add "{Tags:[""shuriken""]}" to nbt of shot projectile
  442. set {_packet} to new play_server_entity_destroy packet
  443. set int pnum 0 of {_packet} to 1
  444. set int array pnum 0 of {_packet} to id of shot projectile
  445. send all players packet {_packet}
  446. player's gamemode is survival or adventure
  447. remove prismarine crystal from player's tool
  448. on damage:
  449. projectile is a snowball
  450. set {_tags::*} to getTagValues(projectile)
  451. {_tags::*} contain "shuriken"
  452. set damage to 1
  453. on rightclick with firework star:
  454. name of player's tool is "&8Smoke Bomb"
  455. {kitpvp.timers.%player%::smokebomb} is not set
  456. set {kitpvp.timers.%player%::smokebomb} to 600
  457. execute console command "execute %player% ~ ~ ~ effect @s 14 15 0"
  458. execute console command "execute %player% ~ ~ ~ particle smoke ~ ~1 ~ 1 1 1 0 3000 force"
  459. loop entities in radius 5 around player:
  460. loop-entity is a living entity
  461. loop-entity is not player
  462. execute console command "execute %UUID of loop-entity% ~ ~ ~ effect @s 15 5 0"
  463. execute console command "execute %UUID of loop-entity% ~ ~ ~ effect @s 2 5 0"
  464. every tick:
  465. loop all projectiles:
  466. loop-entity is a snowball
  467. set {_tags::*} to getTagValues(loop-entity)
  468. {_tags::*} contain "shuriken"
  469. delete {_tags::*}
  470. set {_loc} to location of loop-entity
  471. set {_v} to velocity of loop-entity
  472. set yaw of {_loc} to vector yaw of {_v}
  473. set pitch of {_loc} to vector pitch of {_v}
  474. loop ceil(sqrt(x of {_v}^2+y of {_v}^2+z of {_v}^2)*4) times:
  475. show 1 crit particles at {_loc} offset by 0, 0, 0 with speed 0
  476. set {_loc} to location 0.25 meter backwards {_loc}
  477. loop all players:
  478. if boots of loop-player is leather boots:
  479. name of boots of loop-player is "&8Ninja Shoes"
  480. execute console command "execute %loop-player% ~ ~ ~ effect @s 1 1 0 true"
  481. amount of prismarine crystal named "&8Shuriken" with lore "&d&oUndroppable" in loop-player's inventory < 16
  482. chance of 1%:
  483. give loop-player prismarine crystal named "&8Shuriken" with lore "&d&oUndroppable"
  484. if {kitpvp.timers.%loop-player%::smokebomb} >= 1:
  485. remove 1 from {kitpvp.timers.%loop-player%::smokebomb}
  486. if loop-player's tool is firework star:
  487. name of loop-player's tool is "&8Smoke Bomb"
  488. send action bar from "&8Smoke Bomb&aが使用可能になるまであと%ceil({kitpvp.timers.%loop-player%::smokebomb}/20)%秒" to loop-player
  489. {kitpvp.timers.%loop-player%::smokebomb} is 0
  490. delete {kitpvp.timers.%loop-player%::smokebomb}
  491. send action bar from "&8Smoke Bomb&aが使用可能になりました" to loop-player
  492. if loop-player has invisibility:
  493. set {_packet1} to new play_server_entity_equipment packet
  494. set int pnum 0 of {_packet1} to id of loop-player
  495. set "ItemSlots" penum 0 of {_packet1} to "HEAD"
  496. set {_packet2} to new play_server_entity_equipment packet
  497. set int pnum 0 of {_packet2} to id of loop-player
  498. set "ItemSlots" penum 0 of {_packet2} to "CHEST"
  499. set {_packet3} to new play_server_entity_equipment packet
  500. set int pnum 0 of {_packet3} to id of loop-player
  501. set "ItemSlots" penum 0 of {_packet3} to "LEGS"
  502. set {_packet4} to new play_server_entity_equipment packet
  503. set int pnum 0 of {_packet4} to id of loop-player
  504. set "ItemSlots" penum 0 of {_packet4} to "FEET"
  505. loop all players:
  506. loop-player-2 is not loop-player-1
  507. send loop-player-2 packet {_packet1}
  508. send loop-player-2 packet {_packet2}
  509. send loop-player-2 packet {_packet3}
  510. send loop-player-2 packet {_packet4}
  511. else:
  512. set {_packet1} to new play_server_entity_equipment packet
  513. set int pnum 0 of {_packet1} to id of loop-player
  514. set "ItemSlots" penum 0 of {_packet1} to "HEAD"
  515. if helmet of loop-player is set:
  516. set {_head} to helmet of loop-player-1
  517. set "ItemModifier" pinfo 0 of {_packet1} to {_head}
  518. set {_packet2} to new play_server_entity_equipment packet
  519. set int pnum 0 of {_packet2} to id of loop-player
  520. set "ItemSlots" penum 0 of {_packet2} to "CHEST"
  521. if chestplate of loop-player is set:
  522. set {_chest} to chestplate of loop-player-1
  523. set "ItemModifier" pinfo 0 of {_packet2} to {_chest}
  524. set {_packet3} to new play_server_entity_equipment packet
  525. set int pnum 0 of {_packet3} to id of loop-player
  526. set "ItemSlots" penum 0 of {_packet3} to "LEGS"
  527. if leggings of loop-player is set:
  528. set {_legs} to leggings of loop-player-1
  529. set "ItemModifier" pinfo 0 of {_packet3} to {_legs}
  530. set {_packet4} to new play_server_entity_equipment packet
  531. set int pnum 0 of {_packet4} to id of loop-player
  532. set "ItemSlots" penum 0 of {_packet4} to "FEET"
  533. if boots of loop-player is set:
  534. set {_feet} to boots of loop-player-1
  535. set "ItemModifier" pinfo 0 of {_packet4} to {_feet}
  536. loop all players:
  537. loop-player-2 is not loop-player-1
  538. send loop-player-2 packet {_packet1}
  539. send loop-player-2 packet {_packet2}
  540. send loop-player-2 packet {_packet3}
  541. send loop-player-2 packet {_packet4}
  542. delete {_head}
  543. delete {_chest}
  544. delete {_legs}
  545. delete {_feet}
Advertisement
Add Comment
Please, Sign In to add comment