Advertisement
Guest User

Nuzlocke Skript

a guest
Jan 27th, 2023
369
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 124.93 KB | None | 0 0
  1. options:
  2. P:<black>[<lime>Nuzlocke<black>] <white>
  3. Fire: <red>Fire
  4. Water: <blue>Water
  5. Grass: <lime>Grass
  6. Normal: <dark gray>Normal
  7. Fighting: <gold>Fighting
  8. Poison: <green>Poison
  9. Ice: <dark aqua>Ice
  10. Electric: <yellow>Electric
  11. Steel: <silver>Steel
  12. Flying: <italic>Flying
  13. Rock: <bold>Rock
  14. Ground: <underline>Ground
  15. Bug: <strikethrough>Bug
  16. Dragon: <dark red>Dragon
  17. Dark: <black>Dark
  18. Fairy: <magenta>Fairy
  19. Psychic: <purple>Psychic
  20. Ghost: <white>Ghost
  21. Res1: 0.85
  22. Res2: 0.75
  23. variables:
  24. {teams} = 0
  25. aliases:
  26. oak_leaves = 18
  27. spruce_leaves = 18:1
  28. birch_leaves = 18:2
  29. jungle_leaves = 18:3
  30. acacia_leaves = 161
  31. dark_oak_leaves = 161:1
  32. coarse_dirt = 3:1
  33.  
  34. #Effect Functions#
  35. function Speed1(p: player):
  36. remove speed from {_p}
  37. remove slowness from {_p}
  38. apply slowness 5 to {_p} for 6 seconds
  39. apply speed 18 to {_p} for 6 seconds
  40. function Speed2(p: player):
  41. remove speed from {_p}
  42. remove slowness from {_p}
  43. apply slowness 2 to {_p} for 6 seconds
  44. apply speed 4 to {_p} for 6 seconds
  45. function Slowness1(p: player):
  46. remove speed from {_p}
  47. remove slowness from {_p}
  48. apply slowness 3 to {_p} for 6 seconds
  49. apply speed 3 to {_p} for 6 seconds
  50. function Slowness2(p: player):
  51. remove speed from {_p}
  52. remove slowness from {_p}
  53. apply slowness 1 to {_p} for 6 seconds
  54.  
  55. #Particle Functions#
  56. function ParticleDepthSuspend(p: player):
  57. set {_xloc} to {_p}'s x-coordinate
  58. set {_yloc} to {_p}'s y-coordinate
  59. set {_zloc} to {_p}'s z-coordinate
  60. execute console command "/particle depthsuspend %{_xloc}% %{_yloc}% %{_zloc}% 1 1 1 3 200"
  61. function ParticleHappyVillager(p: player):
  62. set {_xloc} to {_p}'s x-coordinate
  63. set {_yloc} to {_p}'s y-coordinate
  64. set {_zloc} to {_p}'s z-coordinate
  65. execute console command "/particle happyVillager %{_xloc}% %{_yloc}% %{_zloc}% 0.5 0 0.5 5 15"
  66. function ParticleLargeSmoke(p: player):
  67. set {_xloc} to {_p}'s x-coordinate
  68. set {_yloc} to {_p}'s y-coordinate
  69. set {_zloc} to {_p}'s z-coordinate
  70. execute console command "/particle largesmoke %{_xloc}% %{_yloc}% %{_zloc}% 0.25 0.75 0.25 0 3"
  71. function ParticleCrit(p: player):
  72. set {_xloc} to {_p}'s x-coordinate
  73. set {_yloc} to {_p}'s y-coordinate
  74. set {_zloc} to {_p}'s z-coordinate
  75. execute console command "/particle crit %{_xloc}% %{_yloc}% %{_zloc}% 1 1 1 1 15"
  76. function ParticleNote(p: player):
  77. set {_xloc} to {_p}'s x-coordinate
  78. set {_yloc} to {_p}'s y-coordinate
  79. set {_zloc} to {_p}'s z-coordinate
  80. execute console command "/particle note %{_xloc}% %{_yloc}% %{_zloc}% 1 1 1 1 10"
  81. function ParticleFootstep(p: player):
  82. set {_xloc} to {_p}'s x-coordinate
  83. set {_yloc} to {_p}'s y-coordinate
  84. set {_zloc} to {_p}'s z-coordinate
  85. execute console command "/particle footstep %{_xloc}% %{_yloc}% %{_zloc}% 1 1 1 1"
  86. wait 1 second
  87. execute console command "/particle footstep %{_xloc}% %{_yloc}% %{_zloc}% 1 1 1 1"
  88. wait 1 second
  89. execute console command "/particle footstep %{_xloc}% %{_yloc}% %{_zloc}% 1 1 1 1"
  90. wait 1 second
  91. execute console command "/particle footstep %{_xloc}% %{_yloc}% %{_zloc}% 1 1 1 1"
  92. wait 1 second
  93. execute console command "/particle footstep %{_xloc}% %{_yloc}% %{_zloc}% 1 1 1 1"
  94. function ParticleDroplet(p: player):
  95. set {_xloc} to {_p}'s x-coordinate
  96. set {_yloc} to {_p}'s y-coordinate
  97. set {_zloc} to {_p}'s z-coordinate
  98. execute console command "/particle droplet %{_xloc}% %{_yloc}% %{_zloc}% 0.5 0 0.5 0 20 5"
  99. function ParticleDripWater(p: player):
  100. set {_xloc} to {_p}'s x-coordinate
  101. set {_yloc} to {_p}'s y-coordinate
  102. set {_zloc} to {_p}'s z-coordinate
  103. execute console command "/particle dripWater %{_xloc}% %{_yloc}% %{_zloc}% 0.5 0 0.5 0 20 5"
  104. function ParticleFireworksSpark(p: player):
  105. set {_xloc} to {_p}'s x-coordinate
  106. set {_yloc} to {_p}'s y-coordinate
  107. set {_zloc} to {_p}'s z-coordinate
  108. execute console command "/particle fireworksSpark %{_xloc}% %{_yloc}% %{_zloc}% 1 1 1 0.1 3"
  109. function ParticleHeart(p: player):
  110. set {_xloc} to {_p}'s x-coordinate
  111. set {_yloc} to {_p}'s y-coordinate
  112. set {_zloc} to {_p}'s z-coordinate
  113. execute console command "/particle heart %{_xloc}% %{_yloc}% %{_zloc}% 1 1 1 0.1 3"
  114. function ParticleMobSpell(p: player):
  115. set {_xloc} to {_p}'s x-coordinate
  116. set {_yloc} to {_p}'s y-coordinate
  117. set {_zloc} to {_p}'s z-coordinate
  118. execute console command "/particle mobSpell %{_xloc}% %{_yloc}% %{_zloc}% 1 1 1 1 20"
  119. function ParticlePortal(p: player):
  120. set {_xloc} to {_p}'s x-coordinate
  121. set {_yloc} to {_p}'s y-coordinate
  122. set {_zloc} to {_p}'s z-coordinate
  123. execute console command "/particle portal %{_xloc}% %{_yloc}% %{_zloc}% 1 1 1 0.5 50"
  124. function ParticleAngryVillager(p: player):
  125. set {_xloc} to {_p}'s x-coordinate
  126. set {_yloc} to {_p}'s y-coordinate
  127. set {_zloc} to {_p}'s z-coordinate
  128. execute console command "/particle angryVillager %{_xloc}% %{_yloc}% %{_zloc}% 1 1 1 1 10"
  129. wait 1 second
  130. execute console command "/particle angryVillager %{_xloc}% %{_yloc}% %{_zloc}% 1 1 1 1 10"
  131. function ParticleMobSpellAmbient(p: player):
  132. set {_xloc} to {_p}'s x-coordinate
  133. set {_yloc} to {_p}'s y-coordinate
  134. set {_zloc} to {_p}'s z-coordinate
  135. execute console command "/particle mobSpellAmbient %{_xloc}% %{_yloc}% %{_zloc}% 1 1 1 1 30"
  136. function ParticleLargeExplode(p: player):
  137. set {_xloc} to {_p}'s x-coordinate
  138. set {_yloc} to {_p}'s y-coordinate
  139. set {_zloc} to {_p}'s z-coordinate
  140. execute console command "/particle largeexplode %{_xloc}% %{_yloc}% %{_zloc}% 0.25 0.75 0.25 0 1"
  141. function ParticleRedDust(p: player):
  142. set {_xloc} to {_p}'s x-coordinate
  143. set {_yloc} to {_p}'s y-coordinate
  144. set {_zloc} to {_p}'s z-coordinate
  145. execute console command "/particle reddust %{_xloc}% %{_yloc}% %{_zloc}% 2 1 2 0.1 15"
  146. function ParticleMagicCrit(p: player):
  147. set {_xloc} to {_p}'s x-coordinate
  148. set {_yloc} to {_p}'s y-coordinate
  149. set {_zloc} to {_p}'s z-coordinate
  150. execute console command "/particle magicCrit %{_xloc}% %{_yloc}% %{_zloc}% 1 1 1 0.00001 10"
  151. function ParticleMagicCritB(b: block):
  152. set {_xloc} to {_b}'s x-coordinate
  153. set {_yloc} to {_b}'s y-coordinate
  154. set {_zloc} to {_b}'s z-coordinate
  155. execute console command "/particle magicCrit %{_xloc}% %{_yloc}% %{_zloc}% 1 1 1 0.00001 10"
  156. function ParticleEnchant(p: player):
  157. set {_xloc} to {_p}'s x-coordinate
  158. set {_yloc} to {_p}'s y-coordinate
  159. set {_zloc} to {_p}'s z-coordinate
  160. execute console command "/particle enchantmenttable %{_xloc}% %{_yloc}% %{_zloc}% 1 1 1 0.01 30"
  161. function ParticleInstantSpell(p: player):
  162. set {_xloc} to {_p}'s x-coordinate
  163. set {_yloc} to {_p}'s y-coordinate
  164. set {_zloc} to {_p}'s z-coordinate
  165. execute console command "/particle instantSpell %{_xloc}% %{_yloc}% %{_zloc}% 1 1 1 0.3 15"
  166. function ParticleExplode(p: player):
  167. set {_xloc} to {_p}'s x-coordinate
  168. set {_yloc} to {_p}'s y-coordinate
  169. set {_zloc} to {_p}'s z-coordinate
  170. execute console command "/particle explode %{_xloc}% %{_yloc}% %{_zloc}% 1 1 1 1 5"
  171. function ParticleCloud(p: player):
  172. set {_xloc} to {_p}'s x-coordinate
  173. set {_yloc} to {_p}'s y-coordinate
  174. set {_zloc} to {_p}'s z-coordinate
  175. execute console command "/particle cloud %{_xloc}% %{_yloc}% %{_zloc}% 1 1 1 1 5"
  176. function ParticleDripLava(p: player):
  177. set {_xloc} to {_p}'s x-coordinate
  178. set {_yloc} to {_p}'s y-coordinate
  179. set {_zloc} to {_p}'s z-coordinate
  180. execute console command "/particle dripLava %{_xloc}% %{_yloc}% %{_zloc}% 1 1 1 1 15"
  181. function ParticleSplash(p: player):
  182. set {_xloc} to {_p}'s x-coordinate
  183. set {_yloc} to {_p}'s y-coordinate
  184. set {_zloc} to {_p}'s z-coordinate
  185. execute console command "/particle splash %{_xloc}% %{_yloc}% %{_zloc}% 0.5 0 0.5 0 20 10"
  186. function ParticleBubble(p: player):
  187. set {_xloc} to {_p}'s x-coordinate
  188. set {_yloc} to {_p}'s y-coordinate
  189. set {_zloc} to {_p}'s z-coordinate
  190. execute console command "/particle bubble %{_xloc}% %{_yloc}% %{_zloc}% 0.5 1 0.5 1 10 10"
  191. function ParticleTownAura(p: player):
  192. set {_xloc} to {_p}'s x-coordinate
  193. set {_yloc} to {_p}'s y-coordinate
  194. set {_zloc} to {_p}'s z-coordinate
  195. execute console command "/particle townaura %{_xloc}% %{_yloc}% %{_zloc}% 1 1 1 20 10"
  196. function ParticleFlame(p: player):
  197. set {_xloc} to {_p}'s x-coordinate
  198. set {_yloc} to {_p}'s y-coordinate
  199. set {_zloc} to {_p}'s z-coordinate
  200. execute console command "/particle flame %{_xloc}% %{_yloc}% %{_zloc}% 1 1 1 1 10"
  201. function ParticleLava(p: player):
  202. set {_xloc} to {_p}'s x-coordinate
  203. set {_yloc} to {_p}'s y-coordinate
  204. set {_zloc} to {_p}'s z-coordinate
  205. execute console command "/particle lava %{_xloc}% %{_yloc}% %{_zloc}% 1 1 1 1 3"
  206. function ParticleWake(p: player):
  207. set {_xloc} to {_p}'s x-coordinate
  208. set {_yloc} to {_p}'s y-coordinate
  209. set {_zloc} to {_p}'s z-coordinate
  210. execute console command "/particle wake %{_xloc}% %{_yloc}% %{_zloc}% 1 1 1 1 5"
  211. function ParticleSnow(p: player):
  212. set {_xloc} to {_p}'s x-coordinate
  213. set {_yloc} to {_p}'s y-coordinate
  214. set {_zloc} to {_p}'s z-coordinate
  215. execute console command "/particle snowballpoof %{_xloc}% %{_yloc}% %{_zloc}% 1 1 1 0.00001 7"
  216. execute console command "/particle snowshovel %{_xloc}% %{_yloc}% %{_zloc}% 1 1 1 0.00001 7"
  217. function ParticleBlockDamage(p: player):
  218. set {_xloc} to {_p}'s x-coordinate
  219. set {_yloc} to {_p}'s y-coordinate
  220. set {_zloc} to {_p}'s z-coordinate
  221. execute console command "/particle depthsuspend %{_xloc}% %{_yloc}% %{_zloc}% 1 1 1 1 15"
  222. wait 1 tick
  223. execute console command "/particle blockcrack %{_xloc}% %{_yloc}% %{_zloc}% 1 1 1 1 15"
  224. wait 1 tick
  225. execute console command "/particle blockdust %{_xloc}% %{_yloc}% %{_zloc}% 1 1 1 1 20"
  226. function ParticleFireBlock(b: block):
  227. set {_xloc} to {_b}'s x-coordinate
  228. set {_yloc} to {_b}'s y-coordinate
  229. set {_zloc} to {_b}'s z-coordinate
  230. execute console command "/particle largesmoke %{_xloc}% %{_yloc}% %{_zloc}% 0.25 0.75 0.25 0 3"
  231. execute console command "/setblock stone %{_xloc}% %{_yloc}% %{_zloc}%"
  232. execute console command "/setblock air %{_xloc}% %{_yloc}% %{_zloc}%"
  233. function ParticleSlime(p: player):
  234. set {_xloc} to {_p}'s x-coordinate
  235. set {_yloc} to {_p}'s y-coordinate
  236. set {_zloc} to {_p}'s z-coordinate
  237. execute console command "/particle slime %{_xloc}% %{_yloc}% %{_zloc}% 1 1 1 1 10"
  238.  
  239. # Type Clear Function
  240. function TypeClear(p: player):
  241. remove haste from {_p}
  242. remove fire resistance from {_p}
  243. remove water breathing from {_p}
  244. remove resistance from {_p}
  245. remove weakness from {_p}
  246. remove invisibility from {_p}
  247. remove saturation from {_p}
  248. remove strength from {_p}
  249. remove slowness from {_p}
  250. remove jump boost from {_p}
  251. remove speed from {_p}
  252. remove nausea from {_p}
  253. remove night vision from {_p}
  254. remove mining fatigue from {_p}
  255. remove haste from {_p}
  256. remove absorption from {_p}
  257. set {_p}'s health to 10
  258. if {Pkmn::%{_p}%::Type} is "{@Electric}" or "{@Fighting}" or "{@Ghost}" or "{@Ground}" or "{@Water}":
  259. command "/nuzpl clear %{_p}%"
  260. remove all firework star named "&8TNT Cannon" from {_p}
  261. remove all wet sponge named "&9Water Gun" from {_p}
  262. remove all packed ice named "<dark aqua>Toggle IceWalk" from {_p}
  263. remove all nether star named "&dWand" from {_p}
  264. remove all feather named "<yellow>Toggle Jump Boost" from {_p}
  265. remove all barrier block named "<white>Barrier" from {_p}
  266. remove all diamond shovel named "<brown>Dig" from {_p}
  267. remove all cobblestone named "<bold>Stealth Rock" from {_p}
  268. command "/scoreboard teams leave %{_p}%"
  269. delete {Pkmn::%{_p}%::*}
  270. remove {_p} from {Pkmn::Types::Fire::*}
  271. remove {_p} from {Pkmn::Types::Water::*}
  272. remove {_p} from {Pkmn::Types::Grass::*}
  273. remove {_p} from {Pkmn::Types::Normal::*}
  274. remove {_p} from {Pkmn::Types::Fighting::*}
  275. remove {_p} from {Pkmn::Types::Poison::*}
  276. remove {_p} from {Pkmn::Types::Ice::*}
  277. remove {_p} from {Pkmn::Types::Electric::*}
  278. remove {_p} from {Pkmn::Types::Steel::*}
  279. remove {_p} from {Pkmn::Types::Flying::*}
  280. remove {_p} from {Pkmn::Types::Rock::*}
  281. remove {_p} from {Pkmn::Types::Ground::*}
  282. remove {_p} from {Pkmn::Types::Bug::*}
  283. remove {_p} from {Pkmn::Types::Dragon::*}
  284. remove {_p} from {Pkmn::Types::Dark::*}
  285. remove {_p} from {Pkmn::Types::Fairy::*}
  286. remove {_p} from {Pkmn::Types::Psychic::*}
  287. remove {_p} from {Pkmn::Types::Ghost::*}
  288. remove {_p} from {Pkmn::Types::Shadow::*}
  289. remove {_p} from {PkmnTrainer::List::*}
  290.  
  291. command /pkmntype <text> [<text>] [<text>]:
  292. trigger:
  293. if arg 1 is "list":
  294. message "<white>Trainers: %{PkmnTrainer::List::*}%" to player
  295. message "{@Fire}: %{Pkmn::Types::Fire::*}%" to player
  296. message "{@Water}: %{Pkmn::Types::Water::*}%" to player
  297. message "{@Grass}: %{Pkmn::Types::Grass::*}%" to player
  298. message "{@Normal}: %{Pkmn::Types::Normal::*}%" to player
  299. message "{@Fighting}: %{Pkmn::Types::Fighting::*}%" to player
  300. message "{@Poison}: %{Pkmn::Types::Poison::*}%" to player
  301. message "{@Ice}: %{Pkmn::Types::Ice::*}%" to player
  302. message "{@Electric}: %{Pkmn::Types::Electric::*}%" to player
  303. message "{@Steel}: %{Pkmn::Types::Steel::*}%" to player
  304. message "{@Flying}: %{Pkmn::Types::Flying::*}%" to player
  305. message "{@Rock}: %{Pkmn::Types::Rock::*}%" to player
  306. message "{@Ground}: %{Pkmn::Types::Ground::*}%" to player
  307. message "{@Bug}: %{Pkmn::Types::Bug::*}%" to player
  308. message "{@Dragon}: %{Pkmn::Types::Dragon::*}%" to player
  309. message "{@Dark}: %{Pkmn::Types::Dark::*}%" to player
  310. message "{@Fairy}: %{Pkmn::Types::Fairy::*}%" to player
  311. message "{@Psychic}: %{Pkmn::Types::Psychic::*}%" to player
  312. message "{@Ghost}: %{Pkmn::Types::Ghost::*}%" to player
  313. message "Shadow: %{Pkmn::Types::Shadow::*}%" to player
  314. else if arg 1 is "choose":
  315. if command sender has permission "skript.op":
  316. set {Pkmn::Type::Chooser::%command sender%} to "active"
  317. if {Pkmn::Type::Chooser::%command sender%} is "active":
  318. if arg-3 is not set:
  319. set {_commandsender} to command sender
  320. else if arg-3 is set:
  321. set {_commandsender} to ("%arg-3%" parsed as offlineplayer)
  322. TypeClear({_commandsender})
  323. if arg 2 is "fire":
  324. set {Pkmn::%{_commandsender}%::Type} to "{@Fire}"
  325. add {_commandsender} to {Pkmn::Types::Fire::*}
  326. command "/scoreboard teams add UHC0"
  327. command "/scoreboard teams option UHC0 color red"
  328. command "/scoreboard teams join UHC0 %{_commandsender}%"
  329. else if arg 2 is "normal":
  330. set {Pkmn::%{_commandsender}%::Type} to "{@Normal}"
  331. add {_commandsender} to {Pkmn::Types::Normal::*}
  332. give firework star named "&8TNT Cannon" to {_commandsender}
  333. command "/scoreboard teams add UHC1"
  334. command "/scoreboard teams option UHC1 color dark_gray"
  335. command "/scoreboard teams join UHC1 %{_commandsender}%"
  336. else if arg 2 is "water":
  337. set {Pkmn::%{_commandsender}%::Type} to "{@Water}"
  338. add {_commandsender} to {Pkmn::Types::Water::*}
  339. give wet sponge named "&9Water Gun" to {_commandsender}
  340. command "/scoreboard teams add UHC2"
  341. command "/scoreboard teams option UHC2 color blue"
  342. command "/scoreboard teams join UHC2 %{_commandsender}%"
  343. command "/nuzpl add Water %{_commandsender}%"
  344. else if arg 2 is "fighting":
  345. set {Pkmn::%{_commandsender}%::Type} to "{@Fighting}"
  346. add {_commandsender} to {Pkmn::Types::Fighting::*}
  347. command "/scoreboard teams add UHC3"
  348. command "/scoreboard teams option UHC3 color gold"
  349. command "/scoreboard teams join UHC3 %{_commandsender}%"
  350. command "/nuzpl add Fighting %{_commandsender}%"
  351. else if arg 2 is "poison":
  352. set {Pkmn::%{_commandsender}%::Type} to "{@Poison}"
  353. add {_commandsender} to {Pkmn::Types::Poison::*}
  354. command "/scoreboard teams add UHC4"
  355. command "/scoreboard teams option UHC4 color green"
  356. command "/scoreboard teams join UHC4 %{_commandsender}%"
  357. else if arg 2 is "ice":
  358. set {Pkmn::%{_commandsender}%::Type} to "{@Ice}"
  359. add {_commandsender} to {Pkmn::Types::Ice::*}
  360. command "/scoreboard teams add UHC5"
  361. command "/scoreboard teams option UHC5 color dark_aqua"
  362. command "/scoreboard teams join UHC5 %{_commandsender}%"
  363. give 1 packed ice named "<dark aqua>Toggle IceWalk" to {_commandsender}
  364. else if arg 2 is "dark":
  365. set {Pkmn::%{_commandsender}%::Type} to "{@Dark}"
  366. add {_commandsender} to {Pkmn::Types::Dark::*}
  367. command "/scoreboard teams add UHC6"
  368. command "/scoreboard teams option UHC6 color black"
  369. command "/scoreboard teams join UHC6 %{_commandsender}%"
  370. else if arg 2 is "electric":
  371. set {Pkmn::%{_commandsender}%::Type} to "{@Electric}"
  372. add {_commandsender} to {Pkmn::Types::Electric::*}
  373. command "/scoreboard teams add UHC7"
  374. command "/scoreboard teams option UHC7 color yellow"
  375. command "/scoreboard teams join UHC7 %{_commandsender}%"
  376. command "/nuzpl add Electric %{_commandsender}%"
  377. set {Pkmn::%{_commandsender}%::ElectricFeature} to "MEMES"
  378. else if arg 2 is "steel":
  379. set {Pkmn::%{_commandsender}%::Type} to "{@Steel}"
  380. add {_commandsender} to {Pkmn::Types::Steel::*}
  381. command "/scoreboard teams add UHC8"
  382. command "/scoreboard teams option UHC8 color gray"
  383. command "/scoreboard teams join UHC8 %{_commandsender}%"
  384. else if arg 2 is "grass":
  385. set {Pkmn::%{_commandsender}%::Type} to "{@Grass}"
  386. add {_commandsender} to {Pkmn::Types::Grass::*}
  387. command "/scoreboard teams add UHC9"
  388. command "/scoreboard teams option UHC9 color dark_green"
  389. command "/scoreboard teams join UHC9 %{_commandsender}%"
  390. else if arg 2 is "fairy":
  391. set {Pkmn::%{_commandsender}%::Type} to "{@Fairy}"
  392. add {_commandsender} to {Pkmn::Types::Fairy::*}
  393. command "/scoreboard teams add UHC10"
  394. command "/scoreboard teams option UHC10 color light_purple"
  395. command "/scoreboard teams join UHC10 %{_commandsender}%"
  396. give nether star named "&dWand" to {_commandsender}
  397. else if arg 2 is "rock":
  398. set {Pkmn::%{_commandsender}%::Type} to "{@Rock}"
  399. add {_commandsender} to {Pkmn::Types::Rock::*}
  400. command "/scoreboard teams add UHC11"
  401. command "/scoreboard teams option UHC11 color bold"
  402. command "/scoreboard teams join UHC11 %{_commandsender}%"
  403. command "/bold UHC11"
  404. give a cobblestone named "<bold>Stealth Rock" to {_commandsender}
  405. else if arg 2 is "flying":
  406. set {Pkmn::%{_commandsender}%::Type} to "{@Flying}"
  407. add {_commandsender} to {Pkmn::Types::Flying::*}
  408. command "/scoreboard teams add UHC12"
  409. command "/scoreboard teams option UHC12 color italic"
  410. command "/scoreboard teams join UHC12 %{_commandsender}%"
  411. command "/italic UHC12"
  412. give a feather named "<yellow>Toggle Jump Boost" to {_commandsender}
  413. else if arg 2 is "ghost":
  414. set {Pkmn::%{_commandsender}%::Type} to "{@Ghost}"
  415. add {_commandsender} to {Pkmn::Types::Ghost::*}
  416. # command "/scoreboard teams add UHC13"
  417. # command "/scoreboard teams option UHC13 color white"
  418. # command "/scoreboard teams join UHC13 %{_commandsender}%"
  419. command "/nuzpl add Ghost %{_commandsender}%"
  420. give 1 barrier block named "<white>Barrier" to {_commandsender}
  421. else if arg 2 is "psychic":
  422. set {Pkmn::%{_commandsender}%::Type} to "{@Psychic}"
  423. add {_commandsender} to {Pkmn::Types::Psychic::*}
  424. command "/scoreboard teams add UHC14"
  425. command "/scoreboard teams option UHC14 color dark_purple"
  426. command "/scoreboard teams join UHC14 %{_commandsender}%"
  427. else if arg 2 is "dragon":
  428. set {Pkmn::%{_commandsender}%::Type} to "{@Dragon}"
  429. add {_commandsender} to {Pkmn::Types::Dragon::*}
  430. command "/scoreboard teams add UHC15"
  431. command "/scoreboard teams option UHC15 color dark_red"
  432. command "/scoreboard teams join UHC15 %{_commandsender}%"
  433. else if arg 2 is "bug":
  434. set {Pkmn::%{_commandsender}%::Type} to "{@Bug}"
  435. add {_commandsender} to {Pkmn::Types::Bug::*}
  436. command "/scoreboard teams add UHC17"
  437. command "/scoreboard teams option UHC17 color strikethrough"
  438. command "/scoreboard teams join UHC17 %{_commandsender}%"
  439. command "/strikethrough UHC17"
  440. else if arg 2 is "ground":
  441. set {Pkmn::%{_commandsender}%::Type} to "{@Ground}"
  442. add {_commandsender} to {Pkmn::Types::Ground::*}
  443. command "/scoreboard teams add UHC16"
  444. command "/scoreboard teams option UHC16 color underline"
  445. command "/scoreboard teams join UHC16 %{_commandsender}%"
  446. command "/nuzpl add Ground %{_commandsender}%"
  447. command "/underline UHC16"
  448. set {Pkmn::%{_commandsender}%::GroundFirstUse} to 0
  449. give a diamond shovel of efficiency 5 and unbreaking 3 named "<brown>Dig" to {_commandsender}
  450. else if arg 2 is "shadow":
  451. set {Pkmn::%{_commandsender}%::Type} to "Shadow"
  452. set {Pkmn::%{_commandsender}%::HeartGauge} to 5
  453. set {Pkmn::%{_commandsender}%::Damage} to 0
  454. add {_commandsender} to {Pkmn::Types::Shadow::*}
  455. send "{@P}You are a %{Pkmn::%{_commandsender}%::Type}%<white> type!" to {_commandsender}
  456. delete {Pkmn::Type::Chooser::%command sender%}
  457. stop trigger
  458. else:
  459. message "{@P}Please define which type you want to choose" to command sender
  460. delete {Pkmn::Type::Chooser::%command sender%}
  461. stop trigger
  462. send "{@P}You are a %{Pkmn::%{_commandsender}%::Type}%<white> type! Do /pkmntype <type> to learn about the type!" to {_commandsender}
  463.  
  464. delete {Pkmn::Type::Chooser::%command sender%}
  465. else if arg 1 is "random":
  466. player is an op
  467. set {teams} to 0
  468. make player execute command "/pkmntype clear"
  469. delete {PkmnTypes::*}
  470. loop 18 times:
  471. command "/scoreboard teams add UHC%{teams}%"
  472. set {teams} to {teams}+1
  473. command "/scoreboard teams option UHC0 color red"
  474. command "/scoreboard teams option UHC1 color dark_gray"
  475. command "/scoreboard teams option UHC2 color blue"
  476. command "/scoreboard teams option UHC3 color gold"
  477. command "/scoreboard teams option UHC4 color green"
  478. command "/scoreboard teams option UHC5 color dark_aqua"
  479. command "/scoreboard teams option UHC6 color black"
  480. command "/scoreboard teams option UHC7 color yellow"
  481. command "/scoreboard teams option UHC8 color gray"
  482. command "/scoreboard teams option UHC9 color dark_green"
  483. command "/scoreboard teams option UHC10 color light_purple"
  484. command "/scoreboard teams option UHC11 color bold"
  485. command "/scoreboard teams option UHC12 color italic"
  486. # command "/scoreboard teams option UHC13 color white"
  487. command "/scoreboard teams option UHC14 color dark_purple"
  488. command "/scoreboard teams option UHC15 color dark_red"
  489. command "/scoreboard teams option UHC16 color underline"
  490. command "/scoreboard teams option UHC17 color strikethrough"
  491. command "/bold UHC11"
  492. command "/italic UHC12"
  493. command "/underline UHC16"
  494. command "/strikethrough UHC17"
  495. loop 10 times:
  496. add "{@Fire}" to {PkmnTypes::*}
  497. add "{@Electric}" to {PkmnTypes::*}
  498. add "{@Grass}" to {PkmnTypes::*}
  499. add "{@Water}" to {PkmnTypes::*}
  500. add "{@Normal}" to {PkmnTypes::*}
  501. add "{@Fighting}" to {PkmnTypes::*}
  502. add "{@Poison}" to {PkmnTypes::*}
  503. add "{@Ice}" to {PkmnTypes::*}
  504. add "{@Dark}" to {PkmnTypes::*}
  505. add "{@Steel}" to {PkmnTypes::*}
  506. add "{@Fairy}" to {PkmnTypes::*}
  507. add "{@Flying}" to {PkmnTypes::*}
  508. add "{@Rock}" to {PkmnTypes::*}
  509. add "{@Ghost}" to {PkmnTypes::*}
  510. add "{@Psychic}" to {PkmnTypes::*}
  511. add "{@Dragon}" to {PkmnTypes::*}
  512. add "{@Ground}" to {PkmnTypes::*}
  513. add "{@Bug}" to {PkmnTypes::*}
  514. loop all players:
  515. {PkmnTrainer::%loop-player%} is not set
  516. if {Pkmn::%loop-player%::Type} is not set:
  517. set loop-player's health to 10
  518. set {Pkmn::%loop-player%::Type} to a random element of {PkmnTypes::*}
  519. remove {Pkmn::%loop-player%::Type} from {PkmnTypes::*}
  520. send "{@P}You are a %{Pkmn::%loop-player%::Type}%<white> type! Do /pkmntype <type> to learn about the type!" to loop-player
  521. if {Pkmn::%loop-player%::Type} is "{@Fire}":
  522. execute command "/scoreboard teams join UHC0 %loop-player%"
  523. add loop-player to {Pkmn::Types::Fire::*}
  524. if {Pkmn::%loop-player%::Type} is "{@Normal}":
  525. execute command "/scoreboard teams join UHC1 %loop-player%"
  526. add loop-player to {Pkmn::Types::Normal::*}
  527. give firework star named "&8TNT Cannon" to loop-player
  528. if {Pkmn::%loop-player%::Type} is "{@Water}":
  529. execute command "/scoreboard teams join UHC2 %loop-player%"
  530. command "/nuzpl add Water %loop-player%"
  531. add loop-player to {Pkmn::Types::Water::*}
  532. give wet sponge named "&9Water Gun" to loop-player
  533. if {Pkmn::%loop-player%::Type} is "{@Fighting}":
  534. execute command "/scoreboard teams join UHC3 %loop-player%"
  535. command "/nuzpl add Fighting %loop-player%"
  536. add loop-player to {Pkmn::Types::Fighting::*}
  537. if {Pkmn::%loop-player%::Type} is "{@Poison}":
  538. execute command "/scoreboard teams join UHC4 %loop-player%"
  539. add loop-player to {Pkmn::Types::Poison::*}
  540. if {Pkmn::%loop-player%::Type} is "{@Ice}":
  541. execute command "/scoreboard teams join UHC5 %loop-player%"
  542. add loop-player to {Pkmn::Types::Ice::*}
  543. give 1 packed ice named "<dark aqua>Toggle IceWalk" to loop-player
  544. if {Pkmn::%loop-player%::Type} is "{@Dark}":
  545. execute command "/scoreboard teams join UHC6 %loop-player%"
  546. add loop-player to {Pkmn::Types::Dark::*}
  547. if {Pkmn::%loop-player%::Type} is "{@Electric}":
  548. execute command "/scoreboard teams join UHC7 %loop-player%"
  549. command "/nuzpl add electric %loop-player%"
  550. set {Pkmn::%loop-player%::ElectricFeature} to "MEMES"
  551. add loop-player to {Pkmn::Types::Electric::*}
  552. if {Pkmn::%loop-player%::Type} is "{@Steel}":
  553. execute command "/scoreboard teams join UHC8 %loop-player%"
  554. add loop-player to {Pkmn::Types::Steel::*}
  555. if {Pkmn::%loop-player%::Type} is "{@Grass}":
  556. execute command "/scoreboard teams join UHC9 %loop-player%"
  557. add loop-player to {Pkmn::Types::Grass::*}
  558. if {Pkmn::%loop-player%::Type} is "{@Fairy}":
  559. execute command "/scoreboard teams join UHC10 %loop-player%"
  560. add loop-player to {Pkmn::Types::Fairy::*}
  561. give loop-player a nether star named "&dWand"
  562. if {Pkmn::%loop-player%::Type} is "{@Rock}":
  563. execute command "/scoreboard teams join UHC11 %loop-player%"
  564. add loop-player to {Pkmn::Types::Rock::*}
  565. give a cobblestone named "<bold>Stealth Rock" to loop-player
  566. if {Pkmn::%loop-player%::Type} is "{@Flying}":
  567. execute command "/scoreboard teams join UHC12 %loop-player%"
  568. add loop-player to {Pkmn::Types::Flying::*}
  569. give loop-player a feather named "<yellow>Toggle Jump Boost"
  570. if {Pkmn::%loop-player%::Type} is "{@Ghost}":
  571. # execute command "/scoreboard teams join UHC13 %loop-player%"
  572. add loop-player to {Pkmn::Types::Ghost::*}
  573. command "/nuzpl add Ghost %loop-player%"
  574. give loop-player a barrier block named "<white>Barrier"
  575. if {Pkmn::%loop-player%::Type} is "{@Psychic}":
  576. execute command "/scoreboard teams join UHC14 %loop-player%"
  577. add loop-player to {Pkmn::Types::Psychic::*}
  578. if {Pkmn::%loop-player%::Type} is "{@Dragon}":
  579. execute command "/scoreboard teams join UHC15 %loop-player%"
  580. add loop-player to {Pkmn::Types::Dragon::*}
  581. if {Pkmn::%loop-player%::Type} is "{@Bug}":
  582. execute command "/scoreboard teams join UHC17 %loop-player%"
  583. add loop-player to {Pkmn::Types::Bug::*}
  584. if {Pkmn::%loop-player%::Type} is "{@Ground}":
  585. execute command "/scoreboard teams join UHC16 %loop-player%"
  586. set {Pkmn::GroundFirstUse::%loop-player%} to 0
  587. command "/nuzpl add Ground %loop-player%"
  588. add loop-player to {Pkmn::Types::Ground::*}
  589. give loop-player a diamond shovel of efficiency 5 and unbreaking 3 named "<brown>Dig"
  590. if (amount of {PkmnTypes::*}) is not 0:
  591. exit loop
  592. command "/heal *"
  593. broadcast "{@P}Pokemon Types Randomized!"
  594. else if arg 1 is "particle":
  595. if {Pkmn::%command sender%::Particle} is not set:
  596. send "{@P}You have toggled the particles on!" to command sender
  597. set {Pkmn::%command sender%::Particle} to "DaPenguin19"
  598. else if {Pkmn::%command sender%::Particle} is set:
  599. send "{@P}You have toggled the particles off!" to command sender
  600. delete {Pkmn::%command sender%::Particle}
  601. else if arg 1 is "clear":
  602. command sender has permission "skript.op"
  603. if arg 2 is not set:
  604. loop 18 times:
  605. command "/scoreboard teams remove UHC%(loop-number)-1%"
  606. loop all players:
  607. TypeClear(loop-player)
  608. delete {Pkmn::*}
  609. broadcast "{@P}Pokemon Types Cleared!"
  610. else:
  611. set {_player} to ("%arg-2%" parsed as offlineplayer)
  612. TypeClear({_player})
  613. message "{@P}Your type has been cleared" to {_player}
  614. message "{@P}You cleared %{_player}%'s type" to command sender
  615. else if arg 1 is "item" or "give":
  616. # NEEDS COOLDOWN
  617. set {_commandsender} to command sender
  618. if {Pkmn::%{_commandsender}%::Type} is "{@Normal}":
  619. remove firework star named "&8TNT Cannon" from {_commandsender}
  620. give firework star named "&8TNT Cannon" to {_commandsender}
  621. if {Pkmn::%{_commandsender}%::Type} is "{@Water}":
  622. remove wet sponge named "&9Water Gun" from {_commandsender}
  623. give wet sponge named "&9Water Gun" to {_commandsender}
  624. if {Pkmn::%{_commandsender}%::Type} is "{@Ice}":
  625. remove 1 packed ice named "<dark aqua>Toggle IceWalk" from {_commandsender}
  626. give 1 packed ice named "<dark aqua>Toggle IceWalk" to {_commandsender}
  627. if {Pkmn::%{_commandsender}%::Type} is "{@Fairy}":
  628. remove nether star named "&dWand" from {_commandsender}
  629. give {_commandsender} a nether star named "&dWand"
  630. if {Pkmn::%{_commandsender}%::Type} is "{@Flying}":
  631. remove feather named "<yellow>Toggle Jump Boost" from {_commandsender}
  632. give {_commandsender} a feather named "<yellow>Toggle Jump Boost"
  633. execute server command "/helpop %{_commandsender}% [Flying] has used the 'give' command. Monitor in case of abuse."
  634. if {Pkmn::%{_commandsender}%::Type} is "{@Ghost}":
  635. remove barrier block named "<white>Barrier" from {_commandsender}
  636. give {_commandsender} a barrier block named "<white>Barrier"
  637.  
  638. else if arg 1 is "fire":
  639. send "{@P}About &cFire<white> type:" to player
  640. send "{@P}&2+&fFire Resistance" to player
  641. send "{@P}&2+&fWill-O-Wisp - Arrows set ground on fire on impact and sometimes target (15%%)" to player
  642. send "{@P}&2+&fCooks food automatically and smelts ore automatically" to player
  643. send "{@P}&2+&fLava Plume - Lava Bucket drops in large radius around you (1 minute cooldown)" to player
  644. send "{@P}&c-&fTakes 15%% more melee damage for 1 minute after being in water" to player
  645. send "{@P}&c-&fHolding more than 64 cobble gives slowness 1" to player
  646. send "{@P}Env - When on fire, gain Speed 1 and leave fire trail" to player
  647. else if arg 1 is "grass":
  648. send "{@P}About {@Grass}<white> type:" to player
  649. send "{@P}&2+&fGiga Drain - 5%%-10%% life drain from shot" to player
  650. send "{@P}&2+&fRazor Leaf - Shots do 10%% more damage. Consumes 8 leaves/second. Toggles with left click of bow. Cannot use with Giga Drain." to player
  651. send "{@P}&2+&fLeaf Blade - Make Diamond Sword with leaves instead of diamonds (One Time Use)" to player
  652. send "{@P}&c-&fNeeds to re-hydrate every 5 minutes (Every 5 minutes, Grass type will need to be in water or will have slowness 2 until in water)" to player
  653. send "{@P}&c-&fTakes 50%% more burning damage" to player
  654. send "{@P}Env - Leaves may be crafted into apples (9 similar leaves in crafting table)" to player
  655. else if arg 1 is "water":
  656. send "{@P}About {@Water}<white> type:" to player
  657. send "{@P}&2+&fDepth Strider, Water Breathing)" to player
  658. send "{@P}&2+&fNo after-burn" to player
  659. send "{@P}&2+&fWet Sponge that shoots water block that flows with a cool down of 10 seconds" to player
  660. send "{@P}&2+&fMuddy Water - Shooting a player in water gives player the Slip effect, making their arrows lack range for 10 seconds" to player
  661. send "{@P}&c-&fSlowness 1 near grass and leaves" to player
  662. send "{@P}&c-&fSlowness 1 redstone ore or redstone block" to player
  663. send "{@P}Env - Sponge has 5 second cooldown in rain" to player
  664. else if arg 1 is "normal":
  665. send "{@P}About {@Normal}<white> type:" to player
  666. send "{@P}&2+&fResistance 1" to player
  667. send "{@P}&2+&fSubstitute - When the player types in [/Substitute], player is teleported randomly within a 20 block radius and the position that the player was originally in will be replaced with a Zombie in full iron armor and iron sword. This has a cooldown of 5 minutes" to player
  668. send "{@P}&2+&fGapples heal 2.5 hearts" to player
  669. send "{@P}&2+&fHyper Beam - Shoots a primed TNT from your firework item (30 second cooldown). Cannot damage anyone for 10 seconds after use" to player
  670. send "{@P}Env - No special environmental effects" to player
  671. else if arg 1 is "fighting":
  672. send "{@P}About {@Fighting}<white> type:" to player
  673. send "{@P}&2+&fStrength 1 (Nerfed), Strength 2 (Nerfed) when under 6 hearts" to player
  674. send "{@P}&2+&fAura Sphere - Type /aura to do 30%% more bow damage. Consumes 1 xp level every 2 seconds. Bow deactivated for 1 minute after xp is used up" to player
  675. send "{@P}&2+&fClose Combat - (Can only be used if your hunger bar is 5 bars or below) Each swing of the sword damages an area around the player. Radius of 4 blocks" to player
  676. send "{@P}&c-&fDoes 15%% less damage with a bow" to player
  677. send "{@P}&c-&fEnderpearls do 1 heart of damage" to player
  678. send "{@P}Env - Deals regular damage to all types, regardless of resistance" to player
  679. else if arg 1 is "poison":
  680. send "{@P}About {@Poison}<white> type:" to player
  681. send "{@P}&2+&fResistance 1, Immune to Poison & No Hunger Loss" to player
  682. send "{@P}&2+&fPoison spikes (Thorns) - 20%% of all damage taken from opponent will be dealt back (.5 hearts all time)" to player
  683. send "{@P}&2+&fBaneful Bunker - 15%% Chance to poison when damaged by opponent (Poison 1 for 5 Seconds)" to player
  684. send "{@P}&c-&f15%% less melee damage if inventory contains enchantment table" to player
  685. send "{@P}&c-&fMining fatigue 1 near dirt" to player
  686. send "{@P}Env - Each hit on poison type depletes 0.5 hunger from attacker" to player
  687. else if arg 1 is "ice":
  688. send "{@P}About {@Ice}<white> type:" to player
  689. send "{@P}&2+&fSpeed 1, but Speed 2 near ice and packed ice" to player
  690. send "{@P}&2+&fFreeze-Dry - Water below the player will turn to Ice for 15 seconds (Toggleable with Packed Ice Item)" to player
  691. send "{@P}&2+&fBlizzard - Bow shots gives slowness 1 for 5 second to victim and have a chance (20%%) to freeze the victim (encases the player in ice, suffocation damage won't work)" to player
  692. send "{@P}&c-&fLoses all speed near fire or lava, gains slowness 1" to player
  693. send "{@P}&c-&fNot able to MLG when IceWalking is toggled on" to player
  694. send "{@P}Env - Able to shoot unlimited snowballs from packed ice item when standing on snow" to player
  695. else if arg 1 is "dark":
  696. send "{@P}About {@Dark}<white> type:" to player
  697. send "{@P}&2+&fNight Vision" to player
  698. send "{@P}&2+&fArrow shots give blindness for 1 second" to player
  699. send "{@P}&2+&fThief - Player can right click another player to take what is in their hand. This only works if you have nothing in your hand and needs to be done in sword range. (1 minute cooldown)" to player
  700. send "{@P}&c-&f10%% less melee damage over light level 12" to player
  701. send "{@P}&c-&fSlowness 1 over light level 12" to player
  702. send "{@P}Env - At night, player can play any sound effect to any player of choice every 1 minute using a '/Sound <sound>' command. Use '/Sound list' to see all sounds possible" to player
  703. else if arg 1 is "electric":
  704. send "{@P}About {@Electric}<white> type:" to player
  705. send "{@P}&2+&fSpeed 2" to player
  706. send "{@P}&2+&fParalysis - Shots will sometimes make the opponent unable to move" to player
  707. send "{@P}&2+&fZippy Zap - Speed 3 for a few seconds after you shoot a bow" to player
  708. send "{@P}&c-&fTakes 20%% more damage" to player
  709. send "{@P}&c-&fMining Fatigue 1 when near bedrock (4 blocks away) or obsidian (1 block away)" to player
  710. send "{@P}Env - When raining nearby (50 block radius), all creepers become super charged, pigs become zombie pigman and Electric type will be immune to creepers until the rain stops" to player
  711. else if arg 1 is "steel":
  712. send "{@P}About {@Steel}<white> type:" to player
  713. send "{@P}&2+&fResistance 1, Resistance 2 when you carry a stack of iron" to player
  714. send "{@P}&2+&fAnchor Shot - Knocks victim towards you and sometimes repels them farther (Has a 75%% chance of working)" to player
  715. send "{@P}&2+&f15%% chance for double ores" to player
  716. send "{@P}&c-&fTakes 150%% more damage from fire and lava" to player
  717. send "{@P}&c-&fSlowness 2" to player
  718. send "{@P}Env - Slowness 2 turns to Slowness 1 for 1 minute after mining iron ore" to player
  719. else if arg 1 is "rock":
  720. send "{@P}About {@Rock}<white> type:" to player
  721. send "{@P}&2+&fHaste 4, Resistance 1" to player
  722. send "{@P}&2+&fStealth Rock - Spawns with a Cobblestone with a Silverfish in it. This block when right clicked can place one of these blocks. Anyone that steps on it will instantly break it the Silverfish will have Speed 4 (Cooldown: 15 seconds)" to player
  723. send "{@P}&2+&fSturdy - 2 absorption hearts that regenerate every 2 minutes"
  724. send "{@P}&c-&fTakes 50%% more fall damage" to player
  725. send "{@P}&c-&fSlowness 1" to player
  726. send "{@P}Env - When player has 5 stacks of cobble, all of them are smelted into stone and player's pick will be repaired + upgrade efficiency 3 and unbreaking 3 and silk touch 1 (One time effect)" to player
  727. else if arg 1 is "fairy":
  728. send "{@P}About {@Fairy}<white> type:" to player
  729. send "{@P}&2+&fMisty Terrain - Wand that shoots enderpearls once every 20 seconds" to player
  730. send "{@P}&2+&fSweet Kiss - 50%% chance of arrows applying nausea 1 to victim for 6 seconds" to player
  731. send "{@P}&2+&fUser can eat flowers on the floor. Each flower gives 1 hunger bar and .5 saturation and has a 5%% chance to get increased damage (15%% More Damage) for 2 minutes, 5%% chance to take 1 heart and a 10%% chance to heal .5 hearts" to player
  732. send "{@P}&c-&fDoes 10%% less melee damage" to player
  733. send "{@P}&c-&fSlowness 1 under light level 8" to player
  734. send "{@P}Env - Speed 1 over light level 12" to player
  735. else if arg 1 is "flying":
  736. send "{@P}About {@Flying}<white> type:" to player
  737. send "{@P}&2+&fSpeed 2, Jump Boost 3 (right click with feather to toggle jumpboost)" to player
  738. send "{@P}&2+&fTakes no fall damage" to player
  739. send "{@P}&2+&fGust - Shots give more knockback" to player
  740. send "{@P}&2+&fShots while shooter is in mid air do 20%% more damage" to player
  741. send "{@P}&c-&fSlowness 1 below y=40" to player
  742. send "{@P}&c-&fTakes 50%% more knockback" to player
  743. send "{@P}Env - When taking supposed fall damage, the player gets jump boost 6 for 1 second (which can be toggled off with the feather)" to player
  744. else if arg 1 is "ghost":
  745. send "{@P}About {@Ghost}<white> type:" to player
  746. send "{@P}&2+&fGhost effect (20%% of arrows shot at ghost will miss)" to player
  747. send "{@P}&2+&fTakes no PvE damage except from fire/lava" to player
  748. send "{@P}&2+&fHas the ability to create 10 invisible barrier blocks that disappear after 30 seconds and return to the inventory. Can also left click to prematurely retract all blocks back to inventory" to player
  749. send "{@P}&c-&fDoes 10%% less melee damage over light level 12" to player
  750. send "{@P}&c-&fSlowness 1" to player
  751. send "{@P}Env - Invisibility when above 8 hearts" to player
  752. else if arg 1 is "psychic":
  753. send "{@P}About {@Psychic}<white> type:" to player
  754. send "{@P}&2+&fMind Read - Can look into other peoples inventories, 5 minutes cooldown (/mindread <player>)" to player
  755. send "{@P}&2+&fFuture Sight - Can detect nearby players (100 block radius) by doing /nearme (5 minute cooldown) (Can only see who is near, cannot tell how near)" to player
  756. send "{@P}&2+&fArrows deal 15%% more damage, takes 10%% less damage from projectiles" to player
  757. send "{@P}&c-&fTakes 35%% more damage from melee, does 10%% less melee damage" to player
  758. send "{@P}&c-&fNeeds to sleep every night and consume 3 sugar to keep their psychic abilities. Otherwise, the user will not have any of their abilities throughout the next day." to player
  759. send "{@P}Env - When mindreading a player, the user will hear an alarming noise if the player being mindread is within 50 blocks of the user to notify the user" to player
  760. else if arg 1 is "dragon":
  761. send "{@P}About {@Dragon}<white> type:" to player
  762. send "{@P}&2+&fResistance 1"
  763. send "{@P}&2+&fDragon Dance - Player can sacrifice one diamond using “/dragon” which will increase your melee damage by 2.5%% each time. You can do this until a max of 20%% more melee damage (which is a total of 8 diamonds)" to player
  764. send "{@P}&2+&fDragon Rage - Arrows have a chance (20%%) to hit an area to damage the player (radius of 4)" to player
  765. send "{@P}&c-&fTakes 10%% more melee damage when near flowers" to player
  766. send "{@P}&c-&fSlowness 1 near endermen" to player
  767. send "{@P}Env - All rates are significantly increased for dragon (mob drop rates, flint rates, ore drop rates etc)" to player
  768. else if arg 1 is "bug":
  769. send "{@P}About {@Bug}<white> type:" to player
  770. send "{@P}&2+&fSpeed 1, but Speed 2 for 5 minutes after consuming leaves" to player
  771. send "{@P}&2+&fSpiders don't damage the player" to player
  772. send "{@P}&2+&fSpider Web - Arrow makes cobwebs (which dont drop string) some of the time (75%% block radius - 1) (Cobwebs that appear from the bow will disappear after 5 seconds)" to player
  773. send "{@P}&2+&fString Shot - Hitting someone with a fishing rod will make them unable to switch their items they are holding for 10 seconds. Each use will consume 1 string and will not work without string. Cool down for 1 minute if successful." to player
  774. send "{@P}&c-&fDoes 20%% less melee damage" to player
  775. send "{@P}&c-&fGapples heal 1.5 hearts" to player
  776. send "{@P}Env - Heal Order: Heals half a heart upon rightclicking leaves, 4.5 minute cooldown beware: not a good block to use for walling" to player
  777. else if arg 1 is "ground":
  778. send "{@P}About {@Ground}<white> type:" to player
  779. send "{@P}&2+&fDig - Diamond shovel will allow player to build (right click, which shoots a snowball to area in which you wish to create dirt) a 2 block radius sphere of coarse dirt (Will not suffocate Poison type) blocks for 1 second with a 30 second cooldown (shovel will also be enchanted with Efficiency V Unbreaking 3)" to player
  780. send "{@P}&2+&fThousand Arrows - Arrows make victims in an area of 3 blocks radius not be able to jump for 1 seconds (Flying is immune)" to player
  781. send "{@P}&2+&fNo fall damage" to player
  782. send "{@P}&c-&fSlowness 1" to player
  783. send "{@P}&c-&fBlindness in water" to player
  784. send "{@P}Env - If player has 10 stacks of dirt in their inventory, the dirt block radius is 3 and the cool down is 15 seconds" to player
  785. else if arg 1 is "trainer":
  786. send "{@P}About Trainer:" to player
  787. send "{@P}&2+&fCall back your pokemon: /pkmnreturn <name of pokemon> which essentially works like a tp command (Cool down of 5 minutes)" to player
  788. send "{@P}&2+&f20 hearts" to player
  789. send "{@P}&2+&fResistance 1" to player
  790. send "{@P}&c-&fWeakness 1" to player
  791. send "{@P}&c-&fCannot evolve" to player
  792.  
  793. #on command "/electric":
  794. # if {Pkmn::%command sender%::Type} is "{@Electric}":
  795. # cancel event
  796. # set {_commandsender} to command sender
  797. # if {Pkmn::%command sender%::ElectricFeature} is not set:
  798. # send "{@P}You enabled your electric projectile feature!"
  799. # set {Pkmn::%command sender%::ElectricFeature} to "MEMES"
  800. # command "/nuzpl add Electric %{_commandsender}%"
  801. # stop
  802. # if {Pkmn::%command sender%::ElectricFeature} is set:
  803. # send "{@P}You disabled your electric projectile feature!"
  804. # delete {Pkmn::%command sender%::ElectricFeature}
  805. # command "/nuzpl remove %{_commandsender}%"
  806. # stop
  807.  
  808. #Potion Effects#
  809. every 5 seconds:
  810. if {Pkmn::*} is set:
  811. loop all players:
  812. if {Pkmn::%loop-player%::Type} is "{@Fire}":
  813. remove fire resistance from loop-player
  814. apply fire resistance 1 to loop-player for 6 seconds
  815. if loop-player has 64 cobblestone:
  816. Slowness1(loop-player)
  817. if loop-player is ignited:
  818. Speed1(loop-player)
  819. if {Pkmn::%loop-player%::Type} is "{@Grass}":
  820. if block above block below loop-player is water:
  821. set {Pkmn::%loop-player%::GrassRehydration} to 0
  822. remove slowness from loop-player
  823. if {Pkmn::%loop-player%::Particle} is set:
  824. ParticleHappyVillager(loop-player)
  825. else:
  826. add 1 to {Pkmn::%loop-player%::GrassRehydration}
  827. if {Pkmn::%loop-player%::GrassRehydration} is greater than 59:
  828. Slowness2(loop-player)
  829. if {Pkmn::%loop-player%::Type} is "{@Water}":
  830. remove water breathing from loop-player
  831. apply water breathing 1 to loop-player for 6 seconds
  832. if block below loop-player is grass:
  833. Slowness1(loop-player)
  834. if block below loop-player is leaves:
  835. Slowness1(loop-player)
  836. loop blocks in radius 4 around the loop-player:
  837. if loop-block is redstone ore or redstone block:
  838. Slowness1(loop-player)
  839. if loop-player is burning:
  840. if block above block below loop-player is not fire:
  841. if block above block below loop-player is not lava:
  842. extinguish loop-player
  843. if {Pkmn::%loop-player%::Type} is "{@Ice}":
  844. loop blocks in radius 4 around the loop-player:
  845. if loop-block is ice or packed ice:
  846. set {_nearice} to true
  847. Speed2(loop-player)
  848. if {_nearice} is not set:
  849. Speed1(loop-player)
  850. loop blocks in radius 10 around the loop-player:
  851. if loop-block is fire or lava:
  852. set {_nearlava} to true
  853. Slowness1(loop-player)
  854. if {Pkmn::%loop-player%::Type} is "{@Fighting}":
  855. if health of loop-player is less than 6:
  856. remove strength from loop-player
  857. apply strength 2 to loop-player for 6 seconds
  858. if health of loop-player is greater or equal to 6:
  859. remove strength from loop-player
  860. apply strength 1 to loop-player for 6 seconds
  861. if {Pkmn::%loop-player%::Type} is "{@Poison}":
  862. remove saturation from loop-player
  863. apply saturation 1 to loop-player for 6 seconds
  864. loop blocks in radius 2 around the loop-player:
  865. if loop-block is dirt:
  866. remove mining fatigue from loop-player
  867. apply mining fatigue to loop-player for 6 seconds
  868. if {Pkmn::%loop-player%::Type} is "{@Dark}":
  869. remove night vision from loop-player
  870. apply night vision 1 to loop-player for 69 seconds
  871. if light level at loop-player is greater than 12:
  872. Slowness1(loop-player)
  873. if {Pkmn::%loop-player%::Type} is "{@Electric}":
  874. Speed2(loop-player)
  875. loop blocks in radius 4 of loop-player:
  876. if loop-block is bedrock:
  877. remove mining fatigue from loop-player
  878. apply mining fatigue 1 to loop-player for 6 seconds
  879. if {Pkmn::%loop-player%::Particle} is set:
  880. ParticleDepthSuspend(loop-player)
  881. loop blocks in radius 1 of loop-player:
  882. if loop-block is obsidian:
  883. remove mining fatigue from loop-player
  884. apply mining fatigue 1 to loop-player for 6 seconds
  885. if {Pkmn::%loop-player%::Particle} is set:
  886. ParticleDepthSuspend(loop-player)
  887. if {Pkmn::%loop-player%::Type} is "{@Steel}":
  888. remove slowness from loop-player
  889. if {Pkmn::%loop-player%::SteelIron} is not set:
  890. Slowness2(loop-player)
  891. else:
  892. Slowness1(loop-player)
  893. add 1 to {Pkmn::%loop-player%::SteelIron}
  894. if {Pkmn::%loop-player%::SteelIron} is 12:
  895. delete {Pkmn::%loop-player%::SteelIron}
  896. if {Pkmn::%loop-player%::Type} is "{@Rock}":
  897. remove haste from loop-player
  898. apply haste 4 to loop-player for 6 seconds
  899. Slowness1(loop-player)
  900. if y coordinate of loop-player is less than 60:
  901. if {Pkmn::%loop-player%::Particle} is set:
  902. ParticleDepthSuspend(loop-player)
  903. if {Pkmn::%loop-player%::Type} is "{@Fairy}":
  904. if light level at loop-player is less than 8:
  905. Slowness1(loop-player)
  906. else if light level at loop-player is greater than 12:
  907. Speed1(loop-player)
  908. if {Pkmn::%loop-player%::Particle} is set:
  909. ParticleNote(loop-player)
  910. if {Pkmn::%loop-player%::Type} is "{@Flying}":
  911. Speed2(loop-player)
  912. if {Pkmn::%loop-player%::Type} is "{@Flying}":
  913. if {Pkmn::%loop-player%::FlyingJump} is set:
  914. remove jump boost from loop-player
  915. apply jump boost 3 to loop-player for 6 seconds
  916. if y coordinate of loop-player is less than 40:
  917. Slowness1(loop-player)
  918. if {Pkmn::%loop-player%::Type} is "{@Ghost}":
  919. Slowness1(loop-player)
  920. if loop-player's health is greater than 8:
  921. remove invisibility from loop-player
  922. apply invisibility 2 to loop-player for 6 seconds
  923. if {Pkmn::%loop-player%::Particle} is set:
  924. ParticleFootstep(loop-player)
  925. if {Pkmn::%loop-player%::Type} is "{@Dragon}":
  926. loop entities in radius 3 around loop-player:
  927. if entity is enderman:
  928. Slowness1(loop-player)
  929. if {Pkmn::%loop-player%::Type} is "{@Bug}":
  930. remove speed from loop-player
  931. if {Pkmn::%loop-player%::BugLeafEat} is greater than 0:
  932. Speed2(loop-player)
  933. subtract 1 from {Pkmn::%loop-player%::BugLeafEat}
  934. else:
  935. Speed1(loop-player)
  936. if {Pkmn::%loop-player%::Type} is "{@Ground}":
  937. Slowness1(loop-player)
  938. if block above block under loop-player is water:
  939. remove blindness from loop-player
  940. apply blindness 1 to loop-player for 6 seconds
  941. if {Pkmn::%loop-player%::Particle} is set:
  942. ParticleDroplet(loop-player)
  943.  
  944. # Rock Type Absorption
  945. every 2 minutes:
  946. loop all players:
  947. if {Pkmn::%loop-player%::Type} is "{@Rock}":
  948. remove absorption from loop-player
  949. apply absorption to loop-player for 121 seconds
  950. if {Pkmn::%loop-player%::Particle} is set:
  951. ParticleDepthSuspend(loop-player)
  952.  
  953. on consume of golden apple:
  954. if {Pkmn::%player%::Type} is "{@Rock}":
  955. remove absorption from player
  956. wait 1 tick
  957. apply absorption to player for 121 seconds
  958. if {Pkmn::%player%::Particle} is set:
  959. ParticleDepthSuspend(player)
  960.  
  961. #Effects when projectiles hit ground#
  962. on projectile hit:
  963. if shooter is a player:
  964. if projectile is an arrow:
  965. if {Pkmn::%shooter%::Type} is "{@Fire}":
  966. loop blocks in radius 1:
  967. loop-block is air
  968. set loop-block to fire
  969. loop all players within radius 2 of projectile:
  970. chance of 20%
  971. ignite loop-player
  972. if {Pkmn::%shooter%::Type} is "{@Bug}":
  973. chance of 75%:
  974. loop blocks in radius 1:
  975. loop-block is air
  976. set loop-block to cobweb
  977. set {Pkmn::Cobwebs::%location of loop-block%} to true
  978. if {Pkmn::%shooter%::Particle} is set:
  979. ParticleFireworksSpark(shooter)
  980. wait 1 minute
  981. loop blocks in radius 3:
  982. loop-block is cobweb
  983. set loop-block to air
  984. if {Pkmn::%shooter%::Type} is "{@Dragon}":
  985. chance of 25%:
  986. loop all players within radius 3 of projectile:
  987. loop-player is not shooter
  988. damage loop-player by 1 hearts
  989. loop all players:
  990. loop-player-2 is op
  991. set {_x} to x coordinate of shooter
  992. set {_y} to y coordinate of shooter
  993. set {_z} to z coordinate of shooter
  994. make loop-player-2 execute command "/playsound random.successful_hit %shooter% %{_x}% %{_y}% %{_z}% 100 1 1"
  995. exit loop
  996. if {Pkmn::%shooter%::Particle} is set:
  997. set {_xloc} to the projectile's x-coordinate
  998. set {_yloc} to the projectile's y-coordinate
  999. set {_zloc} to the projectile's z-coordinate
  1000. execute console command "/particle mobSpell %{_xloc}% %{_yloc}% %{_zloc}% 1 1 1 1 20"
  1001. if {Pkmn::%shooter%::Type} is "{@Ground}":
  1002. if {Pkmn::%shooter%::Particle} is set:
  1003. ParticleCrit(shooter)
  1004. loop players in radius 3 of projectile:
  1005. if {Pkmn::%loop-player%::Type} is not "{@Flying}":
  1006. loop-player is not shooter
  1007. extinguish loop-player
  1008. remove jump boost from loop-player
  1009. apply jump boost 200 to loop-player for 1 seconds
  1010. remove fire resistance from loop-player
  1011. apply fire resistance to loop-player for 5 seconds
  1012. if {Pkmn::%loop-player%::Particle} is set:
  1013. ParticleCrit(loop-player)
  1014. if {PkmnTrainer::%loop-player%} is set:
  1015. extinguish loop-player
  1016. remove jump boost from loop-player
  1017. apply jump boost 200 to loop-player for 2 seconds
  1018. remove fire resistance from loop-player
  1019. apply fire resistance to loop-player for 5 seconds
  1020. if {Pkmn::%loop-player%::Particle} is set:
  1021. ParticleCrit(loop-player)
  1022. if {Pkmn::%shooter%::Type} is "{@Flying}":
  1023. if {Pkmn::%shooter%::Airshot} is set:
  1024. wait 1 tick
  1025. delete {Pkmn::%shooter%::Airshot}
  1026. if projectile is a snowball:
  1027. if {Pkmn::%shooter%::Type} is "{@Water}":
  1028. set {_projectileloc} to location of projectile
  1029. set block at {_projectileloc} to water
  1030. if block north of {_projectileloc} is air:
  1031. set block north of {_projectileloc} to grass
  1032. wait 1 tick
  1033. set block north of {_projectileloc} to air
  1034. else if block east of {_projectileloc} is air:
  1035. set block east of {_projectileloc} to grass
  1036. wait 1 tick
  1037. set block east of {_projectileloc} to air
  1038. else if block south of {_projectileloc} is air:
  1039. set block south of {_projectileloc} to grass
  1040. wait 1 tick
  1041. set block south of {_projectileloc} to air
  1042. else if block west of {_projectileloc} is air:
  1043. set block west of {_projectileloc} to grass
  1044. wait 1 tick
  1045. set block west of {_projectileloc} to air
  1046. wait 20 seconds
  1047. if weather is sunny:
  1048. if block at {_projectileloc} is water:
  1049. set block at {_projectileloc} to air
  1050. if {Pkmn::%shooter%::Type} is "{@Ground}":
  1051. set {_projectileloc2} to location of projectile
  1052. if shooter has 640 dirt:
  1053. loop all blocks in radius 3 of {_projectileloc2}:
  1054. if loop-block is air:
  1055. set loop-block to coarse_dirt
  1056. wait 5 minutes
  1057. loop all blocks in radius 4 of {_projectileloc2}:
  1058. if loop-block is coarse_dirt:
  1059. set loop-block to air
  1060. else:
  1061. loop all blocks in radius 2 of {_projectileloc2}:
  1062. if loop-block is air:
  1063. set loop-block to coarse_dirt
  1064. wait 5 minutes
  1065. loop all blocks in radius 3 of {_projectileloc2}:
  1066. if loop-block is coarse_dirt:
  1067. set loop-block to air
  1068. if projectile is an enderpearl:
  1069. if {Pkmn::%shooter%::Type} is "{@Fighting}":
  1070. damage the shooter by 1 heart
  1071.  
  1072. on mine of cobweb:
  1073. if {Pkmn::Cobwebs::%location of event-block%} is true:
  1074. cancel event
  1075. set event-block to air
  1076. damage player's tool by 1
  1077.  
  1078. #Changed mob drops#
  1079. on death of pig:
  1080. if attacker is a player:
  1081. if {Pkmn::%attacker%::Type} is "{@Fire}":
  1082. remove all raw porkchops from drops
  1083. set {_rand} to a random integer from 1 to 3
  1084. loop {_rand} times:
  1085. add 1 cooked porkchop to the drops
  1086. if {Pkmn::%attacker%::Particle} is set:
  1087. ParticleLargeSmoke(victim)
  1088. if {Pkmn::%attacker%::Type} is "{@Dragon}":
  1089. set {_rand} to a random integer from 0 to 2
  1090. loop {_rand} times:
  1091. add 1 raw porkchop to the drops
  1092.  
  1093. on death of cow or mooshroom:
  1094. if attacker is a player:
  1095. if {Pkmn::%attacker%::Type} is "{@Fire}":
  1096. remove all raw beef from drops
  1097. set {_rand} to a random integer from 1 to 3
  1098. loop {_rand} times:
  1099. add 1 cooked beef to the drops
  1100. if {Pkmn::%attacker%::Particle} is set:
  1101. ParticleLargeSmoke(victim)
  1102. if {Pkmn::%attacker%::Type} is "{@Dragon}":
  1103. set {_rand} to a random integer from 0 to 2
  1104. loop {_rand} times:
  1105. add 1 raw beef to the drops
  1106. set {_rand2} to a random integer from 0 to 2
  1107. loop {_rand2} times:
  1108. add 1 leather to the drops
  1109.  
  1110. on death of chicken:
  1111. if attacker is a player:
  1112. if {Pkmn::%attacker%::Type} is "{@Fire}":
  1113. remove all raw chicken from the drops
  1114. add 1 cooked chicken to the drops
  1115. if {Pkmn::%attacker%::Particle} is set:
  1116. ParticleLargeSmoke(victim)
  1117. if {Pkmn::%attacker%::Type} is "{@Dragon}":
  1118. set {_rand} to a random integer from 0 to 2
  1119. loop {_rand} times:
  1120. add 1 feather to the drops
  1121.  
  1122. on death of horse:
  1123. if attacker is a player:
  1124. if {Pkmn::%attacker%::Type} is "{@Dragon}":
  1125. set {_rand} to a random integer from 0 to 2
  1126. loop {_rand} times:
  1127. add 1 leather to the drops
  1128.  
  1129. on death of zombie:
  1130. if attacker is a player:
  1131. if {Pkmn::%attacker%::Type} is "{@Dragon}":
  1132. set {_rand} to a random integer from 0 to 2
  1133. loop {_rand} times:
  1134. add 1 rotten flesh to the drops
  1135.  
  1136. on death of creeper:
  1137. if attacker is a player:
  1138. if {Pkmn::%attacker%::Type} is "{@Dragon}":
  1139. set {_rand} to a random integer from 0 to 2
  1140. loop {_rand} times:
  1141. add 1 gunpowder to the drops
  1142.  
  1143. on death of skeleton:
  1144. if attacker is a player:
  1145. if {Pkmn::%attacker%::Type} is "{@Dragon}":
  1146. set {_rand} to a random integer from 0 to 2
  1147. loop {_rand} times:
  1148. add 1 bone to the drops
  1149. set {_rand2} to a random integer from 0 to 2
  1150. loop {_rand2} times:
  1151. add 1 arrow to the drops
  1152.  
  1153. on death of spider:
  1154. if attacker is a player:
  1155. if {Pkmn::%attacker%::Type} is "{@Dragon}":
  1156. set {_rand} to a random integer from 0 to 2
  1157. loop {_rand} times:
  1158. add 1 string to the drops
  1159.  
  1160. on death of enderman:
  1161. if attacker is a player:
  1162. if {Pkmn::%attacker%::Type} is "{@Dragon}":
  1163. set {_rand} to a random integer from 0 to 2
  1164. loop {_rand} times:
  1165. add 1 ender pearl to the drops
  1166.  
  1167. on death of squid:
  1168. if attacker is a player:
  1169. if {Pkmn::%attacker%::Type} is "{@Dragon}":
  1170. set {_rand} to a random integer from 0 to 2
  1171. loop {_rand} times:
  1172. add 1 dye to the drops
  1173.  
  1174. on death of cave spider:
  1175. if attacker is a player:
  1176. if {Pkmn::%attacker%::Type} is "{@Dragon}":
  1177. set {_rand} to a random integer from 0 to 2
  1178. loop {_rand} times:
  1179. add 1 string to the drops
  1180. add 1 spider eye to the drops
  1181.  
  1182. #Damage events#
  1183. on damage of player:
  1184. if damage is caused by suffocation:
  1185. if block below block above victim is ice:
  1186. cancel event
  1187. if {Pkmn::%victim%::Type} is "{@Poison}":
  1188. if block below block above victim is coarse_dirt:
  1189. cancel event
  1190. if block at victim is coarse_dirt:
  1191. cancel event
  1192. if block above victim is coarse_dirt:
  1193. cancel event
  1194.  
  1195. # Base Resistance 1
  1196. on damage of player:
  1197. if {Pkmn::%victim%::Type} is "{@Normal}" or "{@Poison}" or "{@Rock}" or "{@Dragon}":
  1198. if attacker is an entity:
  1199. if {Pkmn::%attacker%::Type} is "{@Fighting}":
  1200. stop trigger
  1201. set {_damage} to damage
  1202. set damage to ({_damage}*{@Res1})
  1203.  
  1204. # Type Specific Damage Events
  1205. on damage of player:
  1206. if {Pkmn::%attacker%::Type} is "{@Fire}":
  1207. if damage is caused by projectile:
  1208. if projectile is an arrow:
  1209. chance of 10%:
  1210. ignite victim for 3 seconds
  1211. on damage of player:
  1212. if {Pkmn::%victim%::Type} is "{@Fire}":
  1213. if damage is caused by attack or contact:
  1214. if {Pkmn::%victim%::TouchedWater} is set:
  1215. set {_damage} to damage
  1216. set damage to ({_damage}*1.15)
  1217. on damage of player:
  1218. if {Pkmn::%attacker%::Type} is "{@Normal}":
  1219. if {Pkmn::%attacker%::NormalDamage} is set:
  1220. cancel event
  1221. message "{@P}You may not currently damage players normally"
  1222. on damage of player:
  1223. if {Pkmn::%attacker%::Type} is "{@Water}":
  1224. if damage is caused by projectile:
  1225. if projectile is an arrow:
  1226. if block above below victim is water:
  1227. set {Pkmn::%victim%::Slip} to 0
  1228. send "{@P}Your hands have become slippery! Your arrows will have less range and may slip!" to victim
  1229. on damage of player:
  1230. if {Pkmn::%victim%::Type} is "{@Water}":
  1231. if damage is caused by fall:
  1232. if {Pkmn::%victim%::WasInWater} is set:
  1233. cancel event
  1234. if damage is caused by burn:
  1235. cancel event
  1236. extinguish the victim
  1237. on damage of player:
  1238. if {Pkmn::%attacker%::Type} is "{@Fighting}":
  1239. if damage is caused by projectile:
  1240. if projectile is an arrow:
  1241. if {Pkmn::%attacker%::Aura} is set:
  1242. set {_damage} to damage
  1243. set damage to ({_damage}*1.15)
  1244. else:
  1245. set {_damage} to damage
  1246. set damage to ({_damage}*0.85)
  1247. if damage is caused by attack or contact:
  1248. set {Pkmn::%victim%::HitByFighting} to true
  1249. wait 10 ticks
  1250. delete {Pkmn::%victim%::HitByFighting}
  1251. on damage of player:
  1252. if {Pkmn::%attacker%::Type} is "{@Poison}":
  1253. if damage is caused by attack or contact:
  1254. if attacker has 1 enchantment table:
  1255. set {_damage} to damage
  1256. set damage to ({_damage}*0.85)
  1257. on damage of player:
  1258. if {Pkmn::%victim%::Type} is "{@Poison}":
  1259. if attacker is a player:
  1260. set {_hunger} to attacker's hunger meter
  1261. set {_hunger} to ({_hunger}-0.5)
  1262. set attacker's hunger meter to {_hunger}
  1263. if attacker is an entity:
  1264. chance of 15%:
  1265. remove poison from attacker
  1266. apply poison 1 to the attacker for 5 seconds
  1267. else:
  1268. if attacker is a player:
  1269. chance of 20%:
  1270. damage the attacker by .5 hearts
  1271. if damage is caused by poison or suffocation:
  1272. cancel the event
  1273. on damage of player:
  1274. if {Pkmn::%attacker%::Type} is "{@Ice}":
  1275. if damage is caused by projectile:
  1276. if projectile is an arrow:
  1277. Slowness1(victim)
  1278. message "{@P}You have been slowed!" to victim
  1279. chance of 20%:
  1280. loop all blocks in radius 3 of victim:
  1281. if loop-block is air:
  1282. distance between loop-block and victim is greater than 2
  1283. set loop-block to packed ice
  1284. on damage of player:
  1285. if {Pkmn::%attacker%::Type} is "{@Dark}":
  1286. if damage is caused by projectile:
  1287. if projectile is an arrow:
  1288. remove blindness from the victim
  1289. apply blindness 1 to the victim for 1 second
  1290. if {Pkmn::%victim%::Particle} is set:
  1291. ParticleDepthSuspend(victim)
  1292. if damage is caused by attack or contact:
  1293. light level at attacker is greater than 12
  1294. set {_damage} to damage
  1295. set damage to {_damage}*0.9
  1296. on damage of player:
  1297. if {Pkmn::%attacker%::Type} is "{@Electric}":
  1298. if damage is caused by projectile:
  1299. if projectile is an arrow:
  1300. chance of 20%:
  1301. remove slowness from victim
  1302. remove speed from victim
  1303. apply slowness 100 to victim for 2 seconds
  1304. message "{@P}You have been slowed!" to victim
  1305. if {Pkmn::%victim%::Particle} is set:
  1306. ParticleAngryVillager(victim)
  1307. on damage of player:
  1308. if {Pkmn::%victim%::Type} is "{@Electric}":
  1309. set {_damage} to damage
  1310. set damage to ({_damage}*1.20)
  1311. on damage of player:
  1312. if {Pkmn::%attacker%::Type} is "{@Steel}":
  1313. if {Pkmn::%victim%::Type} is not "{@Flying}":
  1314. remove jump boost from victim
  1315. if {PkmnTrainer::%victim%} is set:
  1316. remove jump boost from victim
  1317. chance of 75%:
  1318. push victim in the direction of the attacker at speed -1
  1319. if {Pkmn::%victim%::Particle} is set:
  1320. ParticleExplode(victim)
  1321. on damage of player:
  1322. if {Pkmn::%victim%::Type} is "{@Steel}":
  1323. if attacker is an entity:
  1324. if {Pkmn::%attacker%::Type} is "{@Fighting}":
  1325. stop trigger
  1326. if victim has 64 iron ingot:
  1327. set {_damage} to damage
  1328. set damage to ({_damage}*{@Res2})
  1329. else:
  1330. set {_damage} to damage
  1331. set damage to ({_damage}*{@Res1})
  1332. if damage is caused by fire or burning or lava:
  1333. set {_damage} to damage
  1334. set damage to ({_damage}*2.5)
  1335. if {Pkmn::%victim%::Particle} is set:
  1336. ParticleLargeSmoke(victim)
  1337. on damage of player:
  1338. if {Pkmn::%attacker%::Type} is "{@Grass}":
  1339. if damage is caused by projectile:
  1340. if projectile is an arrow:
  1341. if {Pkmn::%attacker%::RazorLeaf} is set:
  1342. set {_damage} to damage
  1343. set damage to ({_damage}*1.1)
  1344. else:
  1345. set {_damage} to damage
  1346. set {_constant} to a random integer between 4 and 11
  1347. heal the attacker by ({_damage}*(0.01*{_constant}))
  1348. on damage of player:
  1349. if {Pkmn::%victim%::Type} is "{@Grass}":
  1350. if damage is caused by lava or fire or burning:
  1351. remove weakness from victim
  1352. apply weakness 1 to victim for 2 seconds
  1353. set {_damage} to damage
  1354. set damage to ({_damage}*1.5)
  1355. on damage of player:
  1356. if {Pkmn::%attacker%::Type} is "{@Fairy}":
  1357. if damage is caused by projectile:
  1358. if projectile is an arrow:
  1359. chance of 50%:
  1360. remove nausea from victim
  1361. apply nausea to victim for 6 seconds
  1362. if damage is caused by attack or contact:
  1363. if {Pkmn::%attacker%::FairyFlower} is set:
  1364. set {_damage} to damage
  1365. set damage to ({_damage}*1.05)
  1366. else:
  1367. set {_damage} to damage
  1368. set damage to ({_damage}*0.9)
  1369. on damage of player:
  1370. if {Pkmn::%victim%::Type} is "{@Rock}":
  1371. if damage is caused by fall:
  1372. set {_damage} to damage
  1373. set damage to ({_damage}*1.5)
  1374. on damage of player:
  1375. if {Pkmn::%attacker%::Type} is "{@Flying}":
  1376. if damage is caused by projectile:
  1377. if projectile is an arrow:
  1378. push victim in the direction of the attacker at speed 1
  1379. if {Pkmn::%attacker%::AirShot} is set:
  1380. set {_damage} to damage
  1381. set damage to ({_damage}*1.2)
  1382. on damage of player:
  1383. if {Pkmn::%victim%::Type} is "{@Flying}":
  1384. if damage is caused by fall:
  1385. cancel event
  1386. else if attacker is an entity:
  1387. push victim in the direction of the attacker at speed 2
  1388. on damage of player:
  1389. if {Pkmn::%attacker%::Type} is "{@Ghost}":
  1390. if damage is caused by attack or contact:
  1391. if light level at attacker is greater than 12:
  1392. set {_damage} to damage
  1393. set damage to ({_damage}*0.9)
  1394. on damage of player:
  1395. if {Pkmn::%victim%::Type} is "{@Ghost}":
  1396. if damage is caused by fall, poison, suffocation or drowning:
  1397. cancel the event
  1398. if attacker is an entity:
  1399. if attacker is not a player:
  1400. cancel event
  1401. else:
  1402. if damage is caused by projectile:
  1403. if projectile is an arrow:
  1404. chance of 15%:
  1405. cancel event
  1406. delete the arrow
  1407. if {Pkmn::%victim%::Particle} is set:
  1408. ParticleMobSpellAmbient(victim)
  1409. on damage of player:
  1410. if {Pkmn::%attacker%::Type} is "{@Psychic}":
  1411. if {Pkmn::%victim%::Particle} is set:
  1412. ParticlePortal(victim)
  1413. if damage is caused by projectile:
  1414. if projectile is an arrow:
  1415. set {_damage} to damage
  1416. set damage to ({_damage}*1.15)
  1417. else if damage is caused by attack or contact:
  1418. set {_damage} to damage
  1419. set damage to ({_damage}*0.9)
  1420. on damage of player:
  1421. if {Pkmn::%victim%::Type} is "{@Psychic}":
  1422. if damage is caused by projectile:
  1423. if projectile is an arrow:
  1424. set {_damage} to damage
  1425. set damage to ({_damage}*0.9)
  1426. if damage is caused by attack or contact:
  1427. set {_damage} to damage
  1428. set damage to ({_damage}*1.35)
  1429. on damage of player:
  1430. if {Pkmn::%attacker%::Type} is "{@Dragon}":
  1431. if {Pkmn::%attacker%::DragonDance} is set:
  1432. if damage is caused by attack or contact:
  1433. set {_damage} to damage
  1434. set damage to ({_damage}*{Pkmn::%attacker%::DragonDance})
  1435. if {Pkmn::%victim%::Particle} is set:
  1436. ParticleMobSpell(victim)
  1437. on damage of player:
  1438. if {Pkmn::%victim%::Type} is "{@Dragon}":
  1439. if {Pkmn::%attacker%::Type} is not "{@Fighting}":
  1440. if damage is caused by attack or contact:
  1441. if {Pkmn::%victim%::DragonFlower} is set:
  1442. set {_damage} to damage
  1443. set damage to ({_damage}*1.1)
  1444. on damage of player:
  1445. if {Pkmn::%attacker%::Type} is "{@Bug}":
  1446. if damage is caused by attack or contact:
  1447. set {_damage} to damage
  1448. set damage to ({_damage}*0.8)
  1449. on damage of player:
  1450. if {Pkmn::%victim%::Type} is "{@Ground}":
  1451. if damage is caused by fall or suffocation:
  1452. cancel event
  1453.  
  1454. #Special tools/weapons#
  1455. on rightclick:
  1456. if player's tool is wet sponge named "&9Water Gun":
  1457. if {Pkmn::%player%::Type} is "{@Water}":
  1458. if weather in player's world is rainy:
  1459. make the player shoot a snowball at speed 1.5
  1460. remove all wet sponge from the player
  1461. give a sponge to the player
  1462. wait 5 seconds
  1463. remove all sponge from the player
  1464. give wet sponge named "&9Water Gun" to the player
  1465. else:
  1466. make the player shoot a snowball at speed 1.5
  1467. remove all wet sponge from the player
  1468. give a sponge to the player
  1469. wait 10 seconds
  1470. remove all sponge from the player
  1471. give wet sponge named "&9Water Gun" to the player
  1472. if player's tool is nether star named "&dWand":
  1473. if {Pkmn::%player%::Type} is "{@Fairy}":
  1474. if {Pkmn::%player%::FairyCooldown} is not set:
  1475. make the player shoot an enderpearl at speed 1.5
  1476. set {Pkmn::%player%::FairyCooldown} to 0
  1477. if {Pkmn::%player%::Particle} is set:
  1478. ParticleRedDust(player)
  1479. else:
  1480. message "{@P}You need to wait %(20-{Pkmn::%player%::FairyCooldown})% more seconds before you can use this" to player
  1481. if player's tool is diamond shovel named "<brown>Dig":
  1482. if {Pkmn::%player%::Type} is "{@Ground}":
  1483. if {Pkmn::%player%::GroundCooldown} is not set:
  1484. make the player shoot a snowball at speed 1.5
  1485. set {Pkmn::%player%::GroundCooldown} to 0
  1486. else:
  1487. if player has 640 dirt:
  1488. message "{@P}You need to wait %(15-{Pkmn::%player%::GroundCooldown})% more seconds before you can use this" to player
  1489. else:
  1490. message "{@P}You need to wait %(30-{Pkmn::%player%::GroundCooldown})% more seconds before you can use this" to player
  1491. if player's tool is feather named "<yellow>Toggle Jump Boost":
  1492. if {Pkmn::%player%::Type} is "{@Flying}":
  1493. if {Pkmn::%player%::FlyingJump} is not set:
  1494. set {Pkmn::%player%::FlyingJump} to true
  1495. apply jump boost 3 to player for 6 seconds
  1496. message "{@P}Jump Boost toggled"
  1497. if {Pkmn::%player%::Particle} is set:
  1498. ParticleExplode(player)
  1499. else:
  1500. delete {Pkmn::%player%::FlyingJump}
  1501. remove jump boost from player
  1502. message "{@P}Jump Boost toggled"
  1503. if {Pkmn::%player%::Particle} is set:
  1504. ParticleExplode(player)
  1505.  
  1506. if player's tool is packed ice named "<dark aqua>Toggle IceWalk":
  1507. if {Pkmn::%player%::Type} is "{@Ice}":
  1508. if {Pkmn::%player%::IceBlockCreate} is true:
  1509. delete {Pkmn::%player%::IceBlockCreate}
  1510. message "{@P}You will no longer create ice blocks when you walk on water" to player
  1511. if {Pkmn::%player%::Particle} is set:
  1512. ParticleMagicCrit(player)
  1513. else:
  1514. set {Pkmn::%player%::IceBlockCreate} to true
  1515. message "{@P}You will now create ice blocks when you walk on water" to player
  1516. if {Pkmn::%player%::Particle} is set:
  1517. ParticleMagicCrit(player)
  1518. if player's tool is firework star:
  1519. if {Pkmn::%player%::Type} is "{@Normal}":
  1520. if {Pkmn::%player%::TNTCooldown} is not set:
  1521. make the player shoot a primed tnt at speed 1.5
  1522. set {Pkmn::%player%::TNTCooldown} to 0
  1523. set {Pkmn::%player%::NormalDamage} to 0
  1524.  
  1525. on left click:
  1526. if player's tool is sword:
  1527. if hunger meter of player is less than 5.5:
  1528. if {Pkmn::%player%::Type} is "{@Fighting}":
  1529. if pvp is enabled in player's world:
  1530. wait 2 ticks
  1531. loop entities in radius 4 around player:
  1532. if loop-entity is not event-player:
  1533. if {Pkmn::%loop-entity%::HitByFighting} is not set:
  1534. make player damage loop-entity by 0.5
  1535. push loop-entity upwards with force 0.1
  1536. push loop-entity in the direction of player with force 0.1
  1537.  
  1538. #Water-type swimming#
  1539. every 5 ticks:
  1540. if {Pkmn::*} is set:
  1541. loop all players:
  1542. if {Pkmn::%loop-player%::Type} is "{@Water}":
  1543. if block above block below loop-player is water:
  1544. loop-player is sprinting
  1545. push the loop-player forward with force .6
  1546. set {Pkmn::%loop-player%::WasInWater} to true
  1547. wait 3 seconds
  1548. delete {Pkmn::%loop-player%::WasInWater}
  1549.  
  1550. #Ice-type walking on water#
  1551. every 1 tick:
  1552. if {Pkmn::*} is set:
  1553. loop all players:
  1554. if {Pkmn::%loop-player%::Type} is "{@Ice}":
  1555. {Pkmn::%loop-player%::IceBlockCreate} is true
  1556. loop blocks in radius 2 of loop-player:
  1557. if loop-block is water:
  1558. if y coordinate of loop-block is smaller than ((y coordinate of loop-player)+1):
  1559. set loop-block to ice
  1560. add (location of loop-block) to {Pkmn::IceBlocks::*}
  1561. if {Pkmn::%loop-player%::Particle} is set:
  1562. ParticleMagicCritB(loop-block)
  1563. every 15 seconds:
  1564. loop {Pkmn::IceBlocks::*}:
  1565. if block at loop-value is ice:
  1566. set block at loop-value to water
  1567. remove loop-value from {Pkmn::IceBlocks::*}
  1568.  
  1569. #Special Abilities#
  1570. #Psychic-type /near# (formerly Grass type)
  1571. command /nearme:
  1572. trigger:
  1573. if {Pkmn::%command sender%::Type} is "{@Psychic}":
  1574. if {Pkmn::%command sender%::NearCooldown} is not set:
  1575. if {Pkmn::%player%::PsychicAbility} is false:
  1576. message "{@P}You must sleep before using this"
  1577. stop trigger
  1578. loop all players in radius 100 of command sender:
  1579. loop-player is not command sender
  1580. {Pkmn::%loop-player%::Type} is set
  1581. set {_distance} to distance between loop-player and command sender
  1582. message "%loop-player% is near you" to command sender
  1583. if {_distance} is not set:
  1584. message "No players nearby" to command sender
  1585. set {Pkmn::%command sender%::NearCooldown} to 0
  1586. else:
  1587. message "{@P}You need to wait %(300-{Pkmn::%command sender%::NearCooldown})% more seconds before you can use this" to command sender
  1588.  
  1589. #Psychic-type mindread#
  1590. command /mindread <player>:
  1591. trigger:
  1592. if {Pkmn::%command sender%::Type} is "{@Psychic}":
  1593. if {Pkmn::%command sender%::Mindread} is not set:
  1594. if {Pkmn::%player%::PsychicAbility} is false:
  1595. message "{@P}You must sleep before using this"
  1596. stop trigger
  1597. set {_arg1} to ("%arg-1%" parsed as offlineplayer)
  1598. if {_arg1} is online:
  1599. set {Pkmn::%command sender%::Mindread} to 0
  1600. message "<bold>Mindread On %{_arg1}%"
  1601. if {_arg1}'s inventory contains a diamond sword:
  1602. message "%{_arg1}% has a diamond sword."
  1603. if {_arg1}'s inventory contains a diamond sword of sharpness 5:
  1604. message "- Sharpness 5"
  1605. if {_arg1}'s inventory contains a diamond sword of sharpness 4:
  1606. message "- Sharpness 4"
  1607. if {_arg1}'s inventory contains a diamond sword of sharpness 3:
  1608. message "- Sharpness 3"
  1609. if {_arg1}'s inventory contains a diamond sword of sharpness 2:
  1610. message "- Sharpness 2"
  1611. if {_arg1}'s inventory contains a diamond sword of sharpness 1:
  1612. message "- Sharpness 1"
  1613. if {_arg1}'s inventory contains a diamond sword of fire aspect 2:
  1614. message "- Fire Aspect 2"
  1615. if {_arg1}'s inventory contains a diamond sword of fire aspect 1:
  1616. message "- Fire Aspect 1"
  1617. if {_arg1}'s inventory contains a diamond sword of knockback 2:
  1618. message "- Knockback 2"
  1619. if {_arg1}'s inventory contains a diamond sword of knockback 1:
  1620. message "- Knockback 1"
  1621. if {_arg1}'s inventory contains an iron sword:
  1622. message "%{_arg1}% has a iron sword."
  1623. if {_arg1}'s inventory contains an iron sword of sharpness 5:
  1624. message "- Sharpness 5"
  1625. if {_arg1}'s inventory contains an iron sword of sharpness 4:
  1626. message "- Sharpness 4"
  1627. if {_arg1}'s inventory contains an iron sword of sharpness 3:
  1628. message "- Sharpness 3"
  1629. if {_arg1}'s inventory contains an iron sword of sharpness 2:
  1630. message "- Sharpness 2"
  1631. if {_arg1}'s inventory contains an iron sword of sharpness 1:
  1632. message "- Sharpness 1"
  1633. if {_arg1}'s inventory contains an iron sword of fire aspect 2:
  1634. message "- Fire Aspect 2"
  1635. if {_arg1}'s inventory contains an iron sword of fire aspect 1:
  1636. message "- Fire Aspect 1"
  1637. if {_arg1}'s inventory contains an iron sword of knockback 2:
  1638. message "- Knockback 2"
  1639. if {_arg1}'s inventory contains an iron sword of knockback 1:
  1640. message "- Knockback 1"
  1641. if {_arg1}'s inventory contains a stone sword:
  1642. message "%{_arg1}% has a stone sword."
  1643. if {_arg1}'s inventory contains a stone sword of sharpness 5:
  1644. message "- Sharpness 5"
  1645. if {_arg1}'s inventory contains a stone sword of sharpness 4:
  1646. message "- Sharpness 4"
  1647. if {_arg1}'s inventory contains a stone sword of sharpness 3:
  1648. message "- Sharpness 3"
  1649. if {_arg1}'s inventory contains a stone sword of sharpness 2:
  1650. message "- Sharpness 2"
  1651. if {_arg1}'s inventory contains a stone sword of sharpness 1:
  1652. message "- Sharpness 1"
  1653. if {_arg1}'s inventory contains a stone sword of fire aspect 2:
  1654. message "- Fire Aspect 2"
  1655. if {_arg1}'s inventory contains a stone sword of fire aspect 1:
  1656. message "- Fire Aspect 1"
  1657. if {_arg1}'s inventory contains a stone sword of knockback 2:
  1658. message "- Knockback 2"
  1659. if {_arg1}'s inventory contains a stone sword of knockback 1:
  1660. message "- Knockback 1"
  1661. if {_arg1}'s inventory contains a golden sword:
  1662. message "%{_arg1}% has a golden sword."
  1663. if {_arg1}'s inventory contains a golden sword of sharpness 5:
  1664. message "- Sharpness 5"
  1665. if {_arg1}'s inventory contains a golden sword of sharpness 4:
  1666. message "- Sharpness 4"
  1667. if {_arg1}'s inventory contains a golden sword of sharpness 3:
  1668. message "- Sharpness 3"
  1669. if {_arg1}'s inventory contains a golden sword of sharpness 2:
  1670. message "- Sharpness 2"
  1671. if {_arg1}'s inventory contains a golden sword of sharpness 1:
  1672. message "- Sharpness 1"
  1673. if {_arg1}'s inventory contains a golden sword of fire aspect 2:
  1674. message "- Fire Aspect 2"
  1675. if {_arg1}'s inventory contains a golden sword of fire aspect 1:
  1676. message "- Fire Aspect 1"
  1677. if {_arg1}'s inventory contains a golden sword of knockback 2:
  1678. message "- Knockback 2"
  1679. if {_arg1}'s inventory contains a golden sword of knockback 1:
  1680. message "- Knockback 1"
  1681. if {_arg1}'s inventory contains a wooden sword:
  1682. message "%{_arg1}% has a wooden sword."
  1683. if {_arg1}'s inventory contains a diamond sword of sharpness 5:
  1684. message "- Sharpness 5"
  1685. if {_arg1}'s inventory contains a diamond sword of sharpness 4:
  1686. message "- Sharpness 4"
  1687. if {_arg1}'s inventory contains a diamond sword of sharpness 3:
  1688. message "- Sharpness 3"
  1689. if {_arg1}'s inventory contains a diamond sword of sharpness 2:
  1690. message "- Sharpness 2"
  1691. if {_arg1}'s inventory contains a diamond sword of sharpness 1:
  1692. message "- Sharpness 1"
  1693. if {_arg1}'s inventory contains a diamond sword of fire aspect 2:
  1694. message "- Fire Aspect 2"
  1695. if {_arg1}'s inventory contains a diamond sword of fire aspect 1:
  1696. message "- Fire Aspect 1"
  1697. if {_arg1}'s inventory contains a diamond sword of knockback 2:
  1698. message "- Knockback 2"
  1699. if {_arg1}'s inventory contains a diamond sword of knockback 1:
  1700. message "- Knockback 1"
  1701. set {_arrows} to the number of arrows in {_arg1}'s inventory
  1702. set {_feathers} to the number of feathers in {_arg1}'s inventory
  1703. if {_arg1}'s inventory contains a bow:
  1704. message "%{_arg1}% a bow and %{_arrows}% arrows and %{_feathers}% feathers."
  1705. if {_arg1}'s inventory contains a bow of power 5:
  1706. message "- The bow is power 5"
  1707. if {_arg1}'s inventory contains a bow of power 4:
  1708. message "- The bow is power 4"
  1709. if {_arg1}'s inventory contains a bow of power 3:
  1710. message "- The bow is power 3"
  1711. if {_arg1}'s inventory contains a bow of power 2:
  1712. message "- The bow is power 2"
  1713. if {_arg1}'s inventory contains a bow of power 1:
  1714. message "- The bow is power 1"
  1715. if {_arg1}'s inventory contains a bow of punch:
  1716. message "- The bow has punch"
  1717. if {_arg1}'s inventory contains a bow of flame:
  1718. message "- The bow has flame"
  1719. if {_arg1}'s inventory contains a bow of infinity:
  1720. message "- The bow has infinity"
  1721. if {_arg1}'s inventory does not contain a bow:
  1722. message "%{_arg1}% does not have a bow, and has %{_arrows}% arrows and %{_feathers}% feathers<r><gold>."
  1723. set {_goldi} to the number of gold ingots in {_arg1}'s inventory
  1724. set {_goldo} to the number of gold ore in {_arg1}'s inventory
  1725. message "%{_arg1}% has %{_goldi}+{_goldo}% gold."
  1726. set {_diag} to the number of diamonds in {_arg1}'s inventory
  1727. if {_arg1}'s inventory contains a diamond pickaxe:
  1728. message "%{_arg1}% has %{_diag}% diamonds and a diamond pick."
  1729. else:
  1730. message "%{_arg1}% has %{_diag}% diamonds and does not have a diamond pick."
  1731. set {_ench} to 0
  1732. loop all items in {_arg1}'s inventory:
  1733. if loop-item is enchanted:
  1734. set {_ench} to {_ench}+1
  1735. if loop-item is an enchanted book:
  1736. set {_ench} to {_ench}+1
  1737. if {_ench} is larger than 1:
  1738. message "%{_arg1}% is enchanted."
  1739. if {_ench} is 1:
  1740. message "%{_arg1}% has one enchanted item."
  1741. if {_ench} is 0:
  1742. message "%{_arg1}% is not enchanted."
  1743. set {_anv} to the number of anvils in {_arg1}'s inventory
  1744. set {_leather} to the number of leather in {_arg1}'s inventory
  1745. set {_reeds} to the number of sugar cane in {_arg1}'s inventory
  1746. set {_books} to the number of books in {_arg1}'s inventory
  1747. set {_apples} to the number of apples in {_arg1}'s inventory
  1748. if {_arg1}'s inventory contains an anvil:
  1749. message "%{_arg1}% has %{_apples}% apples, %{_leather}% leather, %{_reeds}% reeds, %{_books}% books, and an anvil."
  1750. else:
  1751. message "%{_arg1}% has %{_apples}% apples, %{_leather}% leather, %{_reeds}% reeds, %{_books}% books, and no anvil."
  1752. set {_gapples} to the number of golden apples in {_arg1}'s inventory
  1753. if {_gapples} is greater than 0:
  1754. message "%{_arg1}% has %{_gapples}% golden apples/heads."
  1755. else:
  1756. message "%{_arg1}% has no golden apples."
  1757. message "%{_arg1}% is wearing %helmet of {_arg1}%."
  1758. if the argument-player is wearing a helmet of protection 1:
  1759. message "- Protection 1"
  1760. if the argument-player is wearing a helmet of protection 2:
  1761. message "- Protection 2"
  1762. if the argument-player is wearing a helmet of protection 3:
  1763. message "- Protection 3"
  1764. if the argument-player is wearing a helmet of protection 4:
  1765. message "- Protection 4"
  1766. if the argument-player is wearing a helmet of projectile protection 1:
  1767. message "- Projectile Protection 1"
  1768. if the argument-player is wearing a helmet of projectile protection 2:
  1769. message "- Projectile Protection 2"
  1770. if the argument-player is wearing a helmet of projectile protection 3:
  1771. message "- Projectile Protection 3"
  1772. if the argument-player is wearing a helmet of projectile protection 4:
  1773. message "- Projectile Protection 4"
  1774. message "%{_arg1}% is wearing %chestplate of {_arg1}%."
  1775. if the argument-player is wearing a chestplate of protection 1:
  1776. message "- Protection 1"
  1777. if the argument-player is wearing a chestplate of protection 2:
  1778. message "- Protection 2"
  1779. if the argument-player is wearing a chestplate of protection 3:
  1780. message "- Protection 3"
  1781. if the argument-player is wearing a chestplate of protection 4:
  1782. message "- Protection 4"
  1783. if the argument-player is wearing a chestplate of projectile protection 1:
  1784. message "- Projectile Protection 1"
  1785. if the argument-player is wearing a chestplate of projectile protection 2:
  1786. message "- Projectile Protection 2"
  1787. if the argument-player is wearing a chestplate of projectile protection 3:
  1788. message "- Projectile Protection 3"
  1789. if the argument-player is wearing a chestplate of projectile protection 4:
  1790. message "- Projectile Protection 4"
  1791. message "%{_arg1}% is wearing %leggings of {_arg1}%."
  1792. if the argument-player is wearing leggings of protection 1:
  1793. message "- Protection 1"
  1794. if the argument-player is wearing leggings of protection 2:
  1795. message "- Protection 2"
  1796. if the argument-player is wearing leggings of protection 3:
  1797. message "- Protection 3"
  1798. if the argument-player is wearing leggings of protection 4:
  1799. message "- Protection 4"
  1800. if the argument-player is wearing leggings of projectile protection 1:
  1801. message "- Projectile Protection 1"
  1802. if the argument-player is wearing leggings of projectile protection 2:
  1803. message "- Projectile Protection 2"
  1804. if the argument-player is wearing leggings of projectile protection 3:
  1805. message "- Projectile Protection 3"
  1806. if the argument-player is wearing leggings of projectile protection 4:
  1807. message "- Projectile Protection 4"
  1808. message "%{_arg1}% is wearing %boots of {_arg1}%"
  1809. if the argument-player is wearing boots of protection 1:
  1810. message "- Protection 1"
  1811. if the argument-player is wearing boots of protection 2:
  1812. message "- Protection 2"
  1813. if the argument-player is wearing boots of protection 3:
  1814. message "- Protection 3"
  1815. if the argument-player is wearing boots of protection 4:
  1816. message "- Protection 4"
  1817. if the argument-player is wearing boots of projectile protection 1:
  1818. message "- Projectile Protection 1"
  1819. if the argument-player is wearing boots of projectile protection 2:
  1820. message "- Projectile Protection 2"
  1821. if the argument-player is wearing boots of projectile protection 3:
  1822. message "- Projectile Protection 3"
  1823. if the argument-player is wearing boots of projectile protection 4:
  1824. message "- Projectile Protection 4"
  1825. if {Pkmn::%player%::Particle} is set:
  1826. ParticleEnchant(player)
  1827. set {_dist} to (distance between player and ("%arg-1%" parsed as player))
  1828. if {_dist} is less than 50:
  1829. broadcast "!"
  1830. set {_x} to x coordinate of player
  1831. set {_y} to y coordinate of player
  1832. set {_z} to z coordinate of player
  1833. command "/playsound note.harp %player% %{_x}% %{_y}% %{_z}% 4 0.95 1"
  1834. wait 5 ticks
  1835. command "/playsound note.harp %player% %{_x}% %{_y}% %{_z}% 4 0.95 1"
  1836. wait 5 ticks
  1837. command "/playsound note.harp %player% %{_x}% %{_y}% %{_z}% 4 0.95 1"
  1838. wait 5 ticks
  1839. command "/playsound note.harp %player% %{_x}% %{_y}% %{_z}% 4 0.95 1"
  1840. wait 5 ticks
  1841. command "/playsound note.harp %player% %{_x}% %{_y}% %{_z}% 4 0.95 1"
  1842. wait 5 ticks
  1843. else:
  1844. send "{@P}This player is not online" to command sender
  1845. else:
  1846. send "{@P}You need to wait %(300-{Pkmn::%command sender%::Mindread})% more seconds before you can use this" to command sender
  1847. #Psychic Ability Sleeping#
  1848. at 5:30:
  1849. loop all players:
  1850. if {Pkmn::%loop-player%::Type} is "{@Psychic}":
  1851. if {Pkmn::%loop-player%::PsychicAbility} is true:
  1852. wait 20 ticks
  1853. delete {Pkmn::%loop-player%::PsychicAbility}
  1854. else if {Pkmn::%loop-player%::PsychicAbility} is not set:
  1855. wait 20 ticks
  1856. set {Pkmn::%loop-player%::PsychicAbility} to false
  1857. send "{@P}You did not sleep and have lost your psychic abilities as a result!" to loop-player
  1858. on bed leave:
  1859. if {Pkmn::%player%::Type} is "{@Psychic}":
  1860. if {Pkmn::%player%::PsychicAbility} is false:
  1861. if player has 3 sugar:
  1862. remove 3 sugar from player's inventory
  1863. set {Pkmn::%player%::PsychicAbility} to true
  1864. message "{@P}You have slept and may use your psychic abilities for the day!"
  1865. else:
  1866. message "{@P}You need 3 sugar to reset your psychic abilities for the day!"
  1867. if {Pkmn::%player%::PsychicAbility} is not set:
  1868. if player has 3 sugar:
  1869. remove 3 sugar from player's inventory
  1870. set {Pkmn::%player%::PsychicAbility} to true
  1871. message "{@P}You have slept and may use your psychic abilities for the day!"
  1872. else:
  1873. message "{@P}You need 3 sugar to reset your psychic abilities for the day!"
  1874.  
  1875. #Heal Order#
  1876. on rightclick on leaves:
  1877. if {Pkmn::%player%::Type} is "{@Bug}":
  1878. set the event-block to chest
  1879. set {_chest} to block
  1880. set {_chestloc} to location of block
  1881. chance of 1%:
  1882. add 1 apple to {_chest}
  1883. set block at {_chestloc} to air
  1884. increase the player's hunger meter by 0.5
  1885. set {_x} to x coordinate of event-block
  1886. set {_y} to y coordinate of event-block
  1887. set {_z} to z coordinate of event-block
  1888. loop all players within 16 blocks of event-block:
  1889. command "/playsound random.eat %loop-player% %{_x}% %{_y}% %{_z}% 1 1 1"
  1890. set {Pkmn::%player%::BugLeafEat} to 60
  1891. if {Pkmn::%player%::HealOrderCooldown} is not set:
  1892. heal the player by 0.5 hearts
  1893. if {Pkmn::%player%::Particle} is set:
  1894. ParticleHappyVillager(player)
  1895. set {Pkmn::%player%::HealOrderCooldown} to 0
  1896. else:
  1897. message "{@P}You need to wait %(270-{Pkmn::%player%::HealOrderCooldown})% more seconds before this will heal you" to player
  1898.  
  1899. #Substitute#
  1900. command /substitute:
  1901. aliases: /sub
  1902. trigger:
  1903. {Pkmn::%command sender%::Type} is "{@Normal}"
  1904. if {Pkmn::%command sender%::SubstituteCooldown} is not set:
  1905. set {_location} to location of command sender
  1906. loop blocks in radius 20 around command sender:
  1907. loop-block is not air
  1908. block above loop-block is air
  1909. block above block above loop-block is air
  1910. add location of loop-block to {Pkmn::%command sender%::SubstituteLoc::*}
  1911. set {_loc} to a random element of {Pkmn::%command sender%::SubstituteLoc::*}
  1912. delete {Pkmn::%command sender%::SubstituteLoc::*}
  1913. teleport command sender to block above {_loc}
  1914. spawn a zombie at {_location}
  1915. equip spawned zombie with iron sword
  1916. equip spawned zombie with iron helmet
  1917. equip spawned zombie with iron chestplate
  1918. equip spawned zombie with iron leggings
  1919. equip spawned zombie with iron boots
  1920. apply speed 3 to spawned zombie for 9999 seconds
  1921. set {Pkmn::%command sender%::SubstituteCooldown} to 0
  1922. else:
  1923. message "{@P}You need to wait %(300-{Pkmn::%command sender%::SubstituteCooldown})% more seconds before you can use this" to command sender
  1924.  
  1925. #Dark type sound command#
  1926. command /sound <text> [<player>]:
  1927. trigger:
  1928. {Pkmn::%command sender%::Type} is "{@Dark}"
  1929. if arg-1 is "list":
  1930. message "{@P}Creeper hiss - creeper.primed" to command sender
  1931. message "{@P}Explosion - random.explode" to command sender
  1932. message "{@P}Player damage - game.player.hurt" to command sender
  1933. message "{@P}Zombie - mob.zombie.say" to command sender
  1934. message "{@P}Stone break - dig.stone" to command sender
  1935. message "{@P}Dirt/gravel break - dig.gravel" to command sender
  1936. message "{@P}Wither shoot - mob.wither.shoot" to command sender
  1937. message "{@P}Bow shoot - random.bow" to command sender
  1938. message "{@P}Eating - random.eat" to command sender
  1939. message "{@P}Dragon growl - mob.enderdragon.growl" to command sender
  1940. message "{@P}Dragon death - mob.enderdragon.end" to command sender
  1941. else if arg-2 is set:
  1942. if time in command sender's world is night:
  1943. if {Pkmn::%command sender%::DarkSound} is not set:
  1944. command "/playsound %arg-1% %arg-2% ~ ~ ~ 0.5 1 1"
  1945. message "{@P}Succesfully played %arg-1% to %arg-2%" to command sender
  1946. set {Pkmn::%command sender%::DarkSound} to 0
  1947. loop 60 times:
  1948. wait 1 second
  1949. add 1 to {Pkmn::%command sender%::DarkSound}
  1950. if {Pkmn::%command sender%::DarkSound} is set:
  1951. delete {Pkmn::%command sender%::DarkSound}
  1952. message "{@P}You can use /sound again" to command sender
  1953. else:
  1954. message "{@P}You need to wait %(60-{Pkmn::%command sender%::DarkSound})% more seconds before you can use this" to command sender
  1955. else:
  1956. message "{@P}You can only use this command at night" to command sender
  1957. else if arg-2 is not set:
  1958. message "{@P}Please select a player you want to play this sound to" to command sender
  1959.  
  1960. #Fighting type Aura Sphere#
  1961. command /aura:
  1962. aliases: /aurasphere
  1963. trigger:
  1964. {Pkmn::%command sender%::Type} is "{@Fighting}"
  1965. if command sender's level is equal to 0:
  1966. message "{@P}You must have levels to use this!"
  1967. else if {Pkmn::%command sender%::AuraCooldown} is set:
  1968. message "{@P}You need to wait %(60-{Pkmn::%command sender%::AuraCooldown})% more seconds before you can use this" to command sender
  1969. else:
  1970. set {Pkmn::%command sender%::Aura} to true
  1971. message "{@P}Aura Sphere activated! Your bow will do more damage!" to command sender
  1972. while level of player is not equal to 0:
  1973. wait 2 seconds
  1974. reduce the player's level by 1
  1975. delete {Pkmn::%command sender%::Aura}
  1976. set {Pkmn::%command sender%::AuraCooldown} to 0
  1977. message "{@P}Your aura has faded" to command sender
  1978. message "{@P}Your bow has been disabled for 1 minute" to command sender
  1979. on shoot:
  1980. if {Pkmn::%shooter%::AuraCooldown} is set:
  1981. if shooter's tool is a bow:
  1982. cancel event
  1983. message "{@P}Bow currently disabled" to command sender
  1984.  
  1985. #Poison-type no hunger loss#
  1986. on hunger meter change:
  1987. if {Pkmn::%player%::Type} is "{@Poison}":
  1988. cancel event
  1989.  
  1990. #Dragon Dance#
  1991. command /dragon:
  1992. trigger:
  1993. set {_diaam::%command sender%} to amount of diamonds in player's inventory
  1994. if {Pkmn::%command sender%::Type} is "{@Dragon}":
  1995. if {_diaam::%command sender%} is equal to 0:
  1996. message "{@P}You have no diamonds!"
  1997. stop trigger
  1998. if {Pkmn::%command sender%::DragonDance} is equal to 1.2:
  1999. message "{@P}You may not do that anymore"
  2000. stop trigger
  2001. if {Pkmn::%command sender%::DragonDance} is greater than 1.2:
  2002. message "{@P}You may not do that anymore"
  2003. stop trigger
  2004. remove 1 diamond from command sender's inventory
  2005. if {Pkmn::%command sender%::DragonDance} is set:
  2006. add 0.025 to {Pkmn::%command sender%::DragonDance}
  2007. else:
  2008. set {Pkmn::%command sender%::DragonDance} to 1.025
  2009. message "{@P}Dragon Dance - %({Pkmn::%command sender%::DragonDance}*100)% %% extra melee damage"
  2010.  
  2011. #Dragon-type flower weakness#
  2012. every 5 seconds:
  2013. loop all players:
  2014. if {Pkmn::%loop-player%::Type} is "{@Dragon}":
  2015. loop blocks in radius 3 around loop-player:
  2016. if loop-block is flower:
  2017. set {_flower} to 1
  2018. if {_flower} is equal to 1:
  2019. set {Pkmn::%loop-player%::DragonFlower} to true
  2020. delete {_flower}
  2021. else:
  2022. delete {Pkmn::%loop-player%::DragonFlower}
  2023. delete {_flower}
  2024.  
  2025.  
  2026. #Fire type water weakness#
  2027. every 2 seconds:
  2028. loop all players:
  2029. if {Pkmn::%loop-player%::Type} is "{@Fire}":
  2030. if {Pkmn::%loop-player%::TouchedWater} is set:
  2031. subtract 2 from {Pkmn::%loop-player%::TouchedWater}
  2032. if {Pkmn::%loop-player%::TouchedWater} is equal to 0:
  2033. delete {Pkmn::%loop-player%::TouchedWater}
  2034. send "{@P}Your water weakness has faded" to loop-player
  2035. if block above block below loop-player is water:
  2036. if {Pkmn::%loop-player%::TouchedWater} is not set:
  2037. send "{@P}Your resistance has been weakened by the water" to loop-player
  2038. set {Pkmn::%loop-player%::TouchedWater} to 60
  2039.  
  2040.  
  2041. #Dark type thief#
  2042. on right click on player:
  2043. if {Pkmn::%player%::Type} is "{@Dark}":
  2044. if player's tool is air:
  2045. if {Pkmn::%player%::ThiefCooldown} is not set:
  2046. if name of clicked player's tool contains "&8TNT Cannon":
  2047. stop trigger
  2048. if name of clicked player's tool contains "&9Water Gun":
  2049. stop trigger
  2050. if name of clicked player's tool contains "<dark aqua>Toggle IceWalk":
  2051. stop trigger
  2052. if name of clicked player's tool contains "&dWand":
  2053. stop trigger
  2054. if name of clicked player's tool contains "<yellow>Toggle Jump Boost":
  2055. stop trigger
  2056. if name of clicked player's tool contains "<white>Barrier":
  2057. stop trigger
  2058. if name of clicked player's tool contains "<brown>Dig":
  2059. stop trigger
  2060. if name of clicked player's tool contains "<bold>Stealth Rock":
  2061. stop trigger
  2062. set {_helditem} to clicked player's tool
  2063. set clicked player's tool to air
  2064. set player's tool to {_helditem}
  2065. set {Pkmn::%player%::ThiefCooldown} to 0
  2066. else:
  2067. message "{@P}You need to wait %(60-{Pkmn::%player%::ThiefCooldown})% more seconds before you can thieve again" to command sender
  2068.  
  2069. on shoot:
  2070. if shooter is a player:
  2071. if projectile is an arrow:
  2072. if {Pkmn::%shooter%::Slip} is set:
  2073. if {Pkmn::%shooter%::IsShooting} is not set:
  2074. cancel event
  2075. set {Pkmn::%shooter%::IsShooting} to true
  2076. chance of 10%:
  2077. shoot arrow from shooter at speed 0.1
  2078. wait 1 tick
  2079. delete {Pkmn::%shooter%::IsShooting}
  2080. stop trigger
  2081. shoot arrow from shooter at speed 1
  2082. wait 1 tick
  2083. delete {Pkmn::%shooter%::IsShooting}
  2084.  
  2085. # Rock Type Stealth Rock
  2086. on place of cobblestone:
  2087. if {Pkmn::%player%::Type} is "{@Rock}":
  2088. if name of player's tool contains "<bold>Stealth Rock":
  2089. cancel event
  2090. if {Pkmn::%player%::StealthRockCooldown} is set:
  2091. message "{@P}You must wait %(15-{Pkmn::%player%::StealthRockCooldown})% seconds to use this again!"
  2092. stop trigger
  2093. wait 1 tick
  2094. set event-block to cobblestone
  2095. set {_loc} to location of event-block
  2096. add {_loc} to {Pkmn::StealthRockLoc::*}
  2097. message "{@P}Stealth Rocks have been set at this location"
  2098. set {Pkmn::%player%::StealthRockCooldown} to 0
  2099. every second:
  2100. loop all players:
  2101. {Pkmn::%loop-player%::Type} is not "{@Rock}"
  2102. loop {Pkmn::StealthRockLoc::*}:
  2103. set {_dist} to distance between loop-player and loop-value-2
  2104. if {_dist} is less than 1:
  2105. set block at loop-value-2 to air
  2106. spawn a silverfish at loop-value-2
  2107. apply speed 4 to spawned silverfish for 9999 seconds
  2108. remove loop-value-2 from {Pkmn::StealthRockLoc::*}
  2109.  
  2110. # Ghost Type Barrier Blocks
  2111. on place of barrier block:
  2112. cancel event
  2113. if {Pkmn::%player%::Type} is "{@Ghost}":
  2114. if size of {Pkmn::%player%::BarrierLocs::*} is less than 10:
  2115. wait 1 tick
  2116. set event-block to barrier
  2117. set {_loc} to location of event-block
  2118. add {_loc} to {Pkmn::%player%::BarrierLocs::*}
  2119. wait 30 seconds
  2120. set block at {_loc} to air
  2121. remove {_loc} from {Pkmn::%player%::BarrierLocs::*}
  2122. else:
  2123. message "{@P}You already have 10 barriers deployed!"
  2124. on left click:
  2125. if {Pkmn::%player%::Type} is "{@Ghost}":
  2126. if name of player's tool contains "<white>Barrier":
  2127. loop {Pkmn::%player%::BarrierLocs::*}:
  2128. set block at loop-value to air
  2129. remove loop-value from {Pkmn::%player%::BarrierLocs::*}
  2130. message "{@P}Barriers withdrawn"
  2131.  
  2132. # Dragon Enderman weakness#
  2133. every 5 seconds:
  2134. loop all players:
  2135. if {Pkmn::%loop-player%::Type} is "{@Dragon}":
  2136. loop all entities in radius 5 around loop-player:
  2137. if loop-entity-2 is enderman:
  2138. remove slowness from loop-player
  2139. apply slowness 1 to loop-player for 5 seconds
  2140.  
  2141. # Bug Type String Shot#
  2142. on damage of player:
  2143. if attacker's tool is fishing rod:
  2144. if {Pkmn::%attacker%::Type} is "{@Bug}":
  2145. if attacker has 1 string:
  2146. {Pkmn::%attacker%::StringCooldown} is not set
  2147. victim is not attacker
  2148. remove 1 string from attacker's inventory
  2149. send "{@P}Target has been hit by String Shot" to attacker
  2150. send "{@P}You have been hit by String Shot and cannot switch items!" to victim
  2151. set {Pkmn::%attacker%::StringCooldown} to true
  2152. set {Pkmn::%victim%::StringShot} to true
  2153. set {Pkmn::%attacker%::StringCooldown} to 0
  2154. wait 10 seconds
  2155. delete {Pkmn::%victim%::StringShot}
  2156. send "{@P}You may switch items again" to victim
  2157. on tool change:
  2158. if {Pkmn::%player%::StringShot} is set:
  2159. cancel event
  2160. if {spamprotection::%player%} is not set:
  2161. set {spamprotection::%player%} to true
  2162. message "{@P}You may not currently switch items!"
  2163. wait 2 seconds
  2164. delete {spamprotection::%player%}
  2165.  
  2166. # Grass Type Razor Leaf#
  2167. on left click with bow:
  2168. if {Pkmn::%player%::Type} is "{@Grass}":
  2169. if {Pkmn::%player%::RazorLeaf} is not set:
  2170. if player has 8 oak_leaves:
  2171. set {Pkmn::%player%::RazorLeaf} to true
  2172. message "{@P}Razor Leaf activated. You will now do 10%% more bow damage"
  2173. else:
  2174. message "{@P}You do not have enough leaves!"
  2175. else if {Pkmn::%player%::RazorLeaf} is set:
  2176. delete {Pkmn::%player%::RazorLeaf}
  2177. message "{@P}Giga Drain activated"
  2178. on shoot:
  2179. if {Pkmn::%shooter%::Type} is "{@Grass}":
  2180. if {Pkmn::%shooter%::RazorLeaf} is set:
  2181. set {_spruceam} to amount of spruce_leaves in shooter's inventory
  2182. set {_bircham} to amount of birch_leaves in shooter's inventory
  2183. set {_jungleam} to amount of jungle_leaves in shooter's inventory
  2184. set {_acaciaam} to amount of acacia_leaves in shooter's inventory
  2185. set {_darkoakam} to amount of dark_oak_leaves in shooter's inventory
  2186. remove all spruce_leaves from shooter's inventory
  2187. remove all birch_leaves from shooter's inventory
  2188. remove all jungle_leaves from shooter's inventory
  2189. remove all acacia_leaves from shooter's inventory
  2190. remove all dark_oak_leaves from shooter's inventory
  2191. set {_oak} to {_spruceam}+{_bircham}+{_jungleam}+{_acaciaam}+{_darkoakam}
  2192. give {_oak} of oak_leaves to shooter
  2193. if shooter has 8 oak_leaves:
  2194. remove 8 oak_leaves from shooter's inventory
  2195. else:
  2196. send "{@P}You do not have enough leaves!" to shooter
  2197. send "{@P}Giga Drain reactivated" to shooter
  2198. delete {Pkmn::%shooter%::RazorLeaf}
  2199. stop trigger
  2200. if shooter does not have 8 oak_leaves:
  2201. send "{@P}You have run out of leaves!" to shooter
  2202. send "{@P}Giga Drain reactivated" to shooter
  2203. wait 1 second
  2204. delete {Pkmn::%shooter%::RazorLeaf}
  2205.  
  2206. # Fire Type Lava Plume#
  2207. on place of lava:
  2208. if {Pkmn::%player%::Type} is "{@Fire}":
  2209. if {Pkmn::%player%::LavaCoolDown} is not set:
  2210. loop blocks in radius 4 around event-block:
  2211. chance of 25%:
  2212. if loop-block is air:
  2213. block below loop-block is not air
  2214. block below loop-block is not lava
  2215. block below loop-block is not water
  2216. set loop-block to lava
  2217. set {_loc} to location of loop-block
  2218. add {_loc} to {Pkmn::%player%::LavaLocs::*}
  2219. set {Pkmn::%player%::LavaCoolDown} to true
  2220. wait 30 seconds
  2221. loop {Pkmn::%player%::LavaLocs::*}:
  2222. set block at loop-value to air
  2223. remove loop-value from {Pkmn::%player%::LavaLocs::*}
  2224. if event-block is lava:
  2225. set event-block to air
  2226. delete {Pkmn::%player%::LavaLocs::*}
  2227. wait 30 seconds
  2228. delete {Pkmn::%player%::LavaCoolDown}
  2229. message "{@P}You may use your Lava Plume again"
  2230. else:
  2231. message "{@P}You must wait to use Lava Plume"
  2232.  
  2233. #Flying Type Air Shot%
  2234. on shoot:
  2235. if block below shooter is air:
  2236. set {Pkmn::%shooter%::Airshot} to true
  2237.  
  2238. #On heal events#
  2239. on consume of golden apple:
  2240. if {Pkmn::%player%::Type} is "{@Normal}":
  2241. wait 1 tick
  2242. apply potion of regeneration of tier 2 to the player for 1 second
  2243. if {Pkmn::%player%::Type} is "{@Bug}":
  2244. wait 1 tick
  2245. remove regeneration from the player
  2246. wait 1 tick
  2247. apply potion of regeneration of tier 2 to the player for 3 seconds
  2248.  
  2249. #Ore drops modifications#
  2250. on mine of coal ore:
  2251. if {Pkmn::%player%::Type} is "{@Steel}":
  2252. cancel event
  2253. set event-block to air
  2254. damage player's tool by 1
  2255. chance of 85%:
  2256. if player can hold 1 coal:
  2257. give 1 coal to player
  2258. else:
  2259. drop 1 coal at event-block
  2260. else:
  2261. if player can hold 2 coal:
  2262. give 2 coal to player
  2263. else:
  2264. drop 2 coal at event-block
  2265. if {Pkmn::%player%::Particle} is set:
  2266. ParticleInstantSpell(player)
  2267. give 1 experience to player
  2268. if {Pkmn::%player%::Type} is "{@Dragon}":
  2269. cancel event
  2270. set event-block to air
  2271. damage player's tool by 1
  2272. chance of 75%:
  2273. if player can hold 1 coal:
  2274. give 1 coal to player
  2275. else:
  2276. drop 1 coal at event-block
  2277. else:
  2278. if player can hold 2 coal:
  2279. give 2 coal to player
  2280. else:
  2281. drop 2 coal at event-block
  2282. give 1 experience to player
  2283.  
  2284. on mine of iron ore:
  2285. if {Pkmn::%player%::Type} is "{@Steel}":
  2286. cancel event
  2287. set event-block to air
  2288. damage player's tool by 1
  2289. chance of 85%:
  2290. if player can hold 1 iron ingot:
  2291. give 1 iron ingot to player
  2292. else:
  2293. drop 1 iron ingot at event-block
  2294. else:
  2295. if player can hold 2 iron ingots:
  2296. give 2 iron ingots to player
  2297. else:
  2298. drop 2 iron ingots at event-block
  2299. if {Pkmn::%player%::Particle} is set:
  2300. ParticleInstantSpell(player)
  2301. give 1 experience to player
  2302. if {Pkmn::%player%::Type} is "{@Dragon}":
  2303. cancel event
  2304. set event-block to air
  2305. damage player's tool by 1
  2306. chance of 75%:
  2307. if player can hold 1 iron ingot:
  2308. give 1 iron ingot to player
  2309. else:
  2310. drop 1 iron ingot at event-block
  2311. else:
  2312. if player can hold 2 iron ingots:
  2313. give 2 iron ingots to player
  2314. else:
  2315. drop 2 iron ingots at event-block
  2316. give 1 experience to player
  2317. if {Pkmn::%player%::Type} is "{@Fire}":
  2318. cancel event
  2319. set event-block to air
  2320. damage player's tool by 1
  2321. if player can hold 1 iron ingot:
  2322. give 1 iron ingot to player
  2323. else:
  2324. drop 1 iron ingot at event-block
  2325. if {Pkmn::%player%::Particle} is set:
  2326. ParticleFireBlock(event-block)
  2327. give 1 experience to player
  2328.  
  2329. on mine of gold ore:
  2330. if {Pkmn::%player%::Type} is "{@Steel}":
  2331. cancel event
  2332. set event-block to air
  2333. damage player's tool by 1
  2334. chance of 85%:
  2335. if player can hold 1 gold ingot:
  2336. give 1 gold ingot to player
  2337. else:
  2338. drop 1 gold ingot at event-block
  2339. else:
  2340. if player can hold 2 gold ingots:
  2341. give 2 gold ingots to player
  2342. else:
  2343. drop 2 gold ingots at event-block
  2344. if {Pkmn::%player%::Particle} is set:
  2345. ParticleInstantSpell(player)
  2346. give 1 experience to player
  2347. if {Pkmn::%player%::Type} is "{@Dragon}":
  2348. cancel event
  2349. set event-block to air
  2350. damage player's tool by 1
  2351. chance of 90%:
  2352. if player can hold 1 gold ingot:
  2353. give 1 gold ingot to player
  2354. else:
  2355. drop 1 gold ingot at event-block
  2356. else:
  2357. if player can hold 2 gold ingots:
  2358. give 2 gold ingots to player
  2359. else:
  2360. drop 2 gold ingots at event-block
  2361. give 1 experience to player
  2362. if {Pkmn::%player%::Type} is "{@Fire}":
  2363. cancel event
  2364. set event-block to air
  2365. damage player's tool by 1
  2366. if player can hold 1 gold ingot:
  2367. give 1 gold ingot to player
  2368. else:
  2369. drop 1 gold ingot at event-block
  2370. if {Pkmn::%player%::Particle} is set:
  2371. ParticleFireBlock(event-block)
  2372. give 1 experience to player
  2373.  
  2374. on mine of diamond ore:
  2375. if {Pkmn::%player%::Type} is "{@Steel}":
  2376. cancel event
  2377. set event-block to air
  2378. damage player's tool by 1
  2379. chance of 85%:
  2380. if player can hold 1 diamond:
  2381. give 1 diamond to player
  2382. else:
  2383. drop 1 diamond at event-block
  2384. else:
  2385. if player can hold 2 diamonds:
  2386. give 2 diamonds to player
  2387. else:
  2388. drop 2 diamonds at event-block
  2389. if {Pkmn::%player%::Particle} is set:
  2390. ParticleInstantSpell(player)
  2391. give 5 experience to player
  2392. if {Pkmn::%player%::Type} is "{@Dragon}":
  2393. cancel event
  2394. set event-block to air
  2395. damage player's tool by 1
  2396. chance of 95%:
  2397. if player can hold 1 diamond:
  2398. give 1 diamond to player
  2399. else:
  2400. drop 1 diamond at event-block
  2401. else:
  2402. if player can hold 2 diamonds:
  2403. give 2 diamonds to player
  2404. else:
  2405. drop 2 diamonds at event-block
  2406. give 5 experience to player
  2407.  
  2408. on mine of emerald ore:
  2409. if {Pkmn::%player%::Type} is "{@Steel}":
  2410. cancel event
  2411. set event-block to air
  2412. damage player's tool by 1
  2413. chance of 85%:
  2414. if player can hold 1 emerald:
  2415. give 1 emerald to player
  2416. else:
  2417. drop 1 emerald at event-block
  2418. else:
  2419. if player can hold 2 emeralds:
  2420. give 2 emeralds to player
  2421. else:
  2422. drop 2 emeralds at event-block
  2423. if {Pkmn::%player%::Particle} is set:
  2424. ParticleInstantSpell(player)
  2425. give 5 experience to player
  2426. if {Pkmn::%player%::Type} is "{@Dragon}":
  2427. cancel event
  2428. set event-block to air
  2429. damage player's tool by 1
  2430. chance of 75%:
  2431. if player can hold 1 emerald:
  2432. give 1 emerald to player
  2433. else:
  2434. drop 1 emerald at event-block
  2435. else:
  2436. if player can hold 2 emeralds:
  2437. give 2 emeralds to player
  2438. else:
  2439. drop 2 emeralds at event-block
  2440. give 5 experience to player
  2441.  
  2442. #Changed apple/flint rates for dragon-type#
  2443. on mine of oak leaves:
  2444. if {Pkmn::%player%::Type} is "{@Dragon}":
  2445. cancel event
  2446. set event-block to air
  2447. damage player's tool by 1
  2448. chance of 30%:
  2449. give 1 apple to player
  2450.  
  2451. on mine of dark oak leaves:
  2452. if {Pkmn::%player%::Type} is "{@Dragon}":
  2453. cancel event
  2454. set event-block to air
  2455. damage player's tool by 1
  2456. chance of 30%:
  2457. give 1 apple to player
  2458.  
  2459. on mine of gravel:
  2460. if {Pkmn::%player%::Type} is "{@Dragon}":
  2461. cancel event
  2462. set event-block to air
  2463. damage player's tool by 1
  2464. chance of 50%:
  2465. give 1 flint to player
  2466. else:
  2467. give 1 gravel to player
  2468.  
  2469. #Blocking certain events#
  2470. on rightclick with snowball:
  2471. if {Pkmn::%player%::Type} is "{@Water}":
  2472. cancel event
  2473. if {Pkmn::%player%::Type} is "{@Ground}":
  2474. cancel event
  2475.  
  2476. on craft of beacon:
  2477. player's gamemode is not creative
  2478. cancel event
  2479.  
  2480. on place of wet sponge:
  2481. player's gamemode is not creative
  2482. cancel event
  2483.  
  2484. on place of sponge:
  2485. player's gamemode is not creative
  2486. cancel event
  2487.  
  2488. on place of packed ice:
  2489. player's gamemode is not creative
  2490. cancel event
  2491.  
  2492. on place of ore:
  2493. player's gamemode is not creative
  2494. cancel event
  2495.  
  2496. # Electric type zippy zap replacement
  2497. on shoot:
  2498. if {Pkmn::%shooter%::Type} is "{@Electric}":
  2499. remove slowness from shooter
  2500. remove speed from shooter
  2501. apply speed 3 to shooter for 6 seconds
  2502.  
  2503.  
  2504. # Cooldowns
  2505. every second:
  2506. loop all players:
  2507. if {Pkmn::%loop-player%::HealOrderCooldown} is set:
  2508. add 1 to {Pkmn::%loop-player%::HealOrderCooldown}
  2509. if {Pkmn::%loop-player%::HealOrderCooldown} is greater than 269:
  2510. delete {Pkmn::%loop-player%::HealOrderCooldown}
  2511. message "{@P}You can use Heal Order again" to loop-player
  2512. if {Pkmn::%loop-player%::FairyCooldown} is set:
  2513. add 1 to {Pkmn::%loop-player%::FairyCooldown}
  2514. if {Pkmn::%loop-player%::FairyCooldown} is greater than 19:
  2515. delete {Pkmn::%loop-player%::FairyCooldown}
  2516. message "{@P}You can use your wand again" to loop-player
  2517. if {Pkmn::%loop-player%::GroundCooldown} is set:
  2518. add 1 to {Pkmn::%loop-player%::GroundCooldown}
  2519. if loop-player has 640 dirt:
  2520. if {Pkmn::%loop-player%::GroundCooldown} is greater than 14:
  2521. delete {Pkmn::%loop-player%::GroundCooldown}
  2522. message "{@P}You can use your shovel again" to loop-player
  2523. else:
  2524. if {Pkmn::%loop-player%::GroundCooldown} is greater than 29:
  2525. delete {Pkmn::%loop-player%::GroundCooldown}
  2526. message "{@P}You can use your shovel again" to loop-player
  2527. if {Pkmn::%loop-player%::NearCooldown} is set:
  2528. add 1 to {Pkmn::%loop-player%::NearCooldown}
  2529. if {Pkmn::%loop-player%::NearCooldown} is greater than 299:
  2530. delete {Pkmn::%loop-player%::NearCooldown}
  2531. message "{@P}You can use /nearme again" to loop-player
  2532. if {Pkmn::%loop-player%::Mindread} is set:
  2533. add 1 to {Pkmn::%loop-player%::Mindread}
  2534. if {Pkmn::%loop-player%::Mindread} is greater than 299:
  2535. delete {Pkmn::%loop-player%::Mindread}
  2536. message "{@P}You can use /mindread again" to loop-player
  2537. if {Pkmn::%loop-player%::SubstituteCooldown} is set:
  2538. add 1 to {Pkmn::%loop-player%::SubstituteCooldown}
  2539. if {Pkmn::%loop-player%::SubstituteCooldown} is greater than 299:
  2540. delete {Pkmn::%loop-player%::SubstituteCooldown}
  2541. message "{@P}You can use /substitute again" to loop-player
  2542. if {Pkmn::%loop-player%::AuraCooldown} is set:
  2543. add 1 to {Pkmn::%loop-player%::AuraCooldown}
  2544. if {Pkmn::%loop-player%::AuraCooldown} is greater than 59:
  2545. delete {Pkmn::%loop-player%::AuraCooldown}
  2546. message "{@P}You can use /aura again" to loop-player
  2547. message "{@P}You can use your bow again" to loop-player
  2548. if {Pkmn::%loop-player%::ThiefCooldown} is set:
  2549. add 1 to {Pkmn::%loop-player%::ThiefCooldown}
  2550. if {Pkmn::%loop-player%::ThiefCooldown} is greater than 59:
  2551. delete {Pkmn::%loop-player%::ThiefCooldown}
  2552. message "{@P}You may now thieve again" to loop-player
  2553. if {Pkmn::%loop-player%::Slip} is set:
  2554. add 1 to {Pkmn::%loop-player%::Slip}
  2555. if {Pkmn::%loop-player%::Slip} is greater than 9:
  2556. delete {Pkmn::%loop-player%::Slip}
  2557. send "{@P}Your hands are no longer slippery!" to loop-player
  2558. if {Pkmn::%loop-player%::StealthRockCooldown} is set:
  2559. add 1 to {Pkmn::%loop-player%::StealthRockCooldown}
  2560. if {Pkmn::%loop-player%::StealthRockCooldown} is greater than 14:
  2561. delete {Pkmn::%loop-player%::StealthRockCooldown}
  2562. message "{@P}You may use Stealth Rock again!" to loop-player
  2563. if {Pkmn::%loop-player%::StringCooldown} is set:
  2564. add 1 to {Pkmn::%loop-player%::StringCooldown}
  2565. if {Pkmn::%loop-player%::StringCooldown} is greater than 59:
  2566. delete {Pkmn::%loop-player%::StringCooldown}
  2567. message "{@P}You may now use String Shot again" to loop-player
  2568. if {Pkmn::%loop-player%::NormalDamage} is set:
  2569. add 1 to {Pkmn::%loop-player%::NormalDamage}
  2570. if {Pkmn::%loop-player%::NormalDamage} is greater than 9:
  2571. delete {Pkmn::%loop-player%::NormalDamage}
  2572. message "{@P}You may now damage players normally again" to loop-player
  2573. if {Pkmn::%loop-player%::TNTCooldown} is set:
  2574. add 1 to {Pkmn::%loop-player%::TNTCooldown}
  2575. if {Pkmn::%loop-player%::TNTCooldown} is greater than 29:
  2576. delete {Pkmn::%loop-player%::TNTCooldown}
  2577. message "{@P}You can use your TNT Cannon again" to loop-player
  2578.  
  2579. #Evolution#
  2580. command /pkmnevolve <text>:
  2581. trigger:
  2582. if arg 1 is "enable":
  2583. player is an op
  2584. set {pkmnevolve} to true
  2585. broadcast "{@P}Evolving enabled"
  2586. if arg 1 is "disable":
  2587. player is an op
  2588. delete {pkmnevolve}
  2589. broadcast "{@P}Evolving disabled"
  2590. if arg 1 is "reset":
  2591. player is an op
  2592. loop all players:
  2593. delete {Pkmn::%loop-player%::Evolutions}
  2594. broadcast "{@P}Evolutions reset"
  2595. if arg 1 is "me":
  2596. {pkmnevolve} is true
  2597. {Pkmn::%command sender%::Type} is set
  2598. {Pkmn::%command sender%::Type} is not "Shadow"
  2599. if command sender's level is greater or equal to 25:
  2600. if {Pkmn::%command sender%::Evolutions} is not set:
  2601. set {Pkmn::%command sender%::Evolutions} to true
  2602. reduce command sender's level by 25
  2603. set health of player to 10
  2604. set max health of player to 15
  2605. message "{@P}Congrats on evolving"
  2606. else:
  2607. message "{@P}You cannot evolve anymore!"
  2608. else:
  2609. message "{@P}You cannot evolve until you are level 25"
  2610.  
  2611. #Environmental Effects#
  2612. on damage of player:
  2613. if {Pkmn::%victim%::Type} is "{@Flying}":
  2614. if damage is caused by fall:
  2615. cancel event
  2616. remove jump boost from victim
  2617. apply jump boost 6 to victim for 1 seconds
  2618. if {Pkmn::%victim%::Particle} is set:
  2619. ParticleExplode(victim)
  2620. ParticleCloud(victim)
  2621. if {Pkmn::%victim%::Type} is "{@Electric}":
  2622. weather in victim's world is rainy
  2623. damage is caused by entity explosion
  2624. cancel event
  2625. on damage of player:
  2626. if {Pkmn::%victim%::Type} is "{@Bug}":
  2627. if attacker is a spider:
  2628. cancel event
  2629. if attacker is a cave spider:
  2630. cancel event
  2631. if {PkmnTrainer::%victim%} is set:
  2632. if {Pkmn::%attacker%::Type} is not "{@Fighting}":
  2633. set {_damage} to damage
  2634. set damage to ({_damage}*{@Res1})
  2635.  
  2636. every 5 seconds:
  2637. loop all players:
  2638. if {Pkmn::%loop-player%::Type} is "{@Electric}":
  2639. if weather in loop-player's world is rainy:
  2640. loop all unpowered creepers in radius 50 of loop-player:
  2641. wait 1 tick
  2642. set health of loop-entity-2 to 0
  2643. wait 1 tick
  2644. spawn powered creeper at location of loop-entity-2
  2645. loop all pigs in radius 50 of loop-player:
  2646. wait 1 tick
  2647. set health of loop-entity-2 to 0
  2648. wait 1 tick
  2649. spawn zombie pigman at location of loop-entity-2
  2650. if {Pkmn::%loop-player%::Type} is "{@Rock}":
  2651. {Pkmn::%loop-player%::RockEffect} is not set
  2652. loop-player has 321 cobblestone
  2653. loop all items in the loop-player's inventory:
  2654. if loop-item is pickaxe:
  2655. repair loop-item
  2656. enchant loop-item with efficiency 3, unbreaking 3 and silk touch 1
  2657. enchant loop-item with efficiency 3, unbreaking 3 and silk touch 1
  2658. set {Pkmn::%loop-player%::RockEffect} to true
  2659. if {Pkmn::%loop-player%::RockEffect} is set:
  2660. remove 321 cobblestone from loop-player
  2661. give 320 stone to loop-player
  2662. remove all cobblestone named "<bold>Stealth Rock" from loop-player
  2663. give a cobblestone named "<bold>Stealth Rock" to loop-player
  2664.  
  2665.  
  2666. on break of iron ore:
  2667. if {Pkmn::%player%::Type} is "{@Steel}":
  2668. set {Pkmn::%player%::SteelIron} to 0
  2669.  
  2670. on right click on a flower:
  2671. if {Pkmn::%player%::Type} is "{@Fairy}":
  2672. set event-block to air
  2673. increase the player's hunger meter by 1
  2674. set {_x} to x coordinate of event-block
  2675. set {_y} to y coordinate of event-block
  2676. set {_z} to z coordinate of event-block
  2677. loop all players within 16 blocks of event-block:
  2678. command "/playsound random.eat %loop-player% %{_x}% %{_y}% %{_z}% 1 1 1"
  2679. chance of 5%:
  2680. send "{@P}You have gained increased damage for 2 minutes" to player
  2681. set {Pkmn::%player%::FairyFlower} to 0
  2682. while {Pkmn::%player%::FairyFlower} is set:
  2683. add 1 to {Pkmn::%player%::FairyFlower}
  2684. wait 1 second
  2685. if {Pkmn::%player%::FairyFlower} is 120:
  2686. delete {Pkmn::%player%::FairyFlower}
  2687. send "{@P}Your increased damage has run out" to player
  2688. else:
  2689. chance of 5%:
  2690. damage player by 1 heart
  2691. else:
  2692. chance of 10%:
  2693. heal player by .5 hearts
  2694.  
  2695. on left click:
  2696. if name of player's tool contains "<dark aqua>Toggle IceWalk":
  2697. if {Pkmn::%player%::Type} is "{@Ice}":
  2698. if block below player is snow:
  2699. make player shoot snowball at speed 1.5
  2700. else if block above block below player is snow layer:
  2701. make player shoot snowball at speed 1.5
  2702.  
  2703. # Fire Type Flame Charge#
  2704. every 1 tick:
  2705. loop all players:
  2706. if {Pkmn::%loop-player%::Type} is "{@Fire}":
  2707. if loop-player is on fire:
  2708. if block behind the loop-player is air:
  2709. if block below the block behind the loop-player is grass:
  2710. set {_loc} to the block behind the loop-player
  2711. set block at {_loc} to fire
  2712. wait 5 seconds
  2713. set block at {_loc} to air
  2714.  
  2715. #Visual Effects#
  2716. every 1 minute:
  2717. loop all players:
  2718. if {Pkmn::%loop-player%::Type} is "{@Fire}":
  2719. if {Pkmn::%loop-player%::Particle} is set:
  2720. ParticleDripLava(loop-player)
  2721. if {Pkmn::%loop-player%::Type} is "{@Water}":
  2722. if loop-player has 1 wet sponge:
  2723. if {Pkmn::%loop-player%::Particle} is set:
  2724. ParticleSplash(loop-player)
  2725.  
  2726. every 30 seconds:
  2727. loop all players:
  2728. if {Pkmn::%loop-player%::Type} is "{@Water}":
  2729. set {_loc} to location of loop-player
  2730. if block at {_loc} is water:
  2731. if block above {_loc} is water:
  2732. if {Pkmn::%loop-player%::Particle} is set:
  2733. ParticleBubble(loop-player)
  2734. if {Pkmn::%loop-player%::Type} is "{@Poison}":
  2735. loop blocks in radius 2 around the loop-player:
  2736. if loop-block is dirt:
  2737. if {Pkmn::%loop-player%::Particle} is set:
  2738. ParticleDepthSuspend(loop-player)
  2739. if {Pkmn::%loop-player%::Type} is "{@Fairy}":
  2740. if light level at loop-player is less than 8:
  2741. if {Pkmn::%loop-player%::Particle} is set:
  2742. ParticleTownAura(loop-player)
  2743. if {Pkmn::%loop-player%::Type} is "{@Fairy}":
  2744. if light level at loop-player is greater than 12:
  2745. if {Pkmn::%loop-player%::Particle} is set:
  2746. ParticleNote(loop-player)
  2747. on tool change:
  2748. if {Pkmn::%player%::Type} is "{@Fire}":
  2749. player's tool is bow
  2750. if {Pkmn::%player%::Particle} is set:
  2751. ParticleFlame(player)
  2752.  
  2753. on shoot:
  2754. if {Pkmn::%shooter%::Type} is "{@Fire}":
  2755. if {Pkmn::%shooter%::Particle} is set:
  2756. ParticleLava(shooter)
  2757.  
  2758. on death of cow or chicken or pig or sheep:
  2759. if {Pkmn::%player%::Type} is "{@Fire}":
  2760. if {Pkmn::%player%::Particle} is set:
  2761. ParticleLargeSmoke(player)
  2762.  
  2763. on consume of golden apple:
  2764. if {Pkmn::%player%::Type} is "{@Normal}":
  2765. if {Pkmn::%player%::Particle} is set:
  2766. ParticleRedDust(player)
  2767.  
  2768. #on player jump:
  2769. # if {Pkmn::%player%::Type} is "{@Flying}":
  2770. # if {Pkmn::%player%::FlyingJump} is true:
  2771. # if {Pkmn::%player%::Particle} is set:
  2772. # set {_xloc} to the player's x-coordinate
  2773. # set {_yloc} to the player's y-coordinate
  2774. # set {_zloc} to the player's z-coordinate
  2775. # loop all players:
  2776. # if loop-player has permission "skript.op":
  2777. # function ParticleExplode(loop-player)
  2778. # function ParticleCloud(loop-player)
  2779.  
  2780. on shoot:
  2781. if {Pkmn::%shooter%::Type} is "{@Flying}":
  2782. if {Pkmn::%shooter%::Particle} is set:
  2783. ParticleWake(shooter)
  2784. if {Pkmn::%shooter%::Type} is "{@Dark}":
  2785. if {Pkmn::%shooter%::Particle} is set:
  2786. ParticleDepthSuspend(shooter)
  2787. if {Pkmn::%shooter%::Type} is "{@Fairy}":
  2788. if {Pkmn::%shooter%::Particle} is set:
  2789. ParticleFireworksSpark(shooter)
  2790. ParticleHeart(shooter)
  2791. if {Pkmn::%shooter%::Type} is "{@Psychic}":
  2792. if {Pkmn::%shooter%::Particle} is set:
  2793. ParticlePortal(shooter)
  2794.  
  2795. on damage of player:
  2796. if {Pkmn::%attacker%::Type} is "{@Flying}":
  2797. if damage is caused by projectile:
  2798. if projectile is an arrow:
  2799. if {Pkmn::%victim%::Particle} is set:
  2800. ParticleLargeExplode(victim)
  2801. wait 1 tick
  2802. ParticleLargeExplode(victim)
  2803. if {Pkmn::%victim%::Type} is "{@Water}":
  2804. if damage is caused by fire:
  2805. if {Pkmn::%victim%::Particle} is set:
  2806. ParticleDroplet(victim)
  2807. ParticleDripWater(victim)
  2808. if {Pkmn::%attacker%::Type} is "{@Ice}":
  2809. if damage is caused by projectile:
  2810. if projectile is an arrow:
  2811. if {Pkmn::%victim%::Particle} is set:
  2812. ParticleSnow(victim)
  2813. every 5 seconds:
  2814. loop all players:
  2815. if {Pkmn::%loop-player%::Type} is "{@Rock}" or "{@Steel}":
  2816. if {Pkmn::%loop-player%::Particle} is set:
  2817. ParticleFootstep(loop-player)
  2818.  
  2819. on block damage:
  2820. chance of 5%
  2821. if {Pkmn::%player%::Type} is "{@Rock}":
  2822. if {Pkmn::%player%::Particle} is set:
  2823. ParticleBlockDamage(player)
  2824.  
  2825. every 30 second:
  2826. loop all players:
  2827. if {Pkmn::%loop-player%::Type} is "{@Ground}":
  2828. if {Pkmn::%loop-player%::Particle} is set:
  2829. ParticleTownAura(loop-player)
  2830.  
  2831. on sprint toggle:
  2832. if {Pkmn::%player%::Type} is "{@Bug}":
  2833. player is not sprinting
  2834. set {Pkmn::%player%::BugSprint} to true
  2835. if {Pkmn::%player%::Type} is "{@Bug}":
  2836. player is sprinting
  2837. set {Pkmn::%player%::BugSprint} to false
  2838. if {Pkmn::%player%::Type} is "{@Electric}":
  2839. player is not sprinting
  2840. set {Pkmn::%player%::ElecSprint} to true
  2841. if {Pkmn::%player%::Type} is "{@Electric}":
  2842. player is sprinting
  2843. set {Pkmn::%player%::ElecSprint} to false
  2844.  
  2845. on disconnect:
  2846. if {Pkmn::%player%::Type} is "{@Bug}":
  2847. delete {Pkmn::%player%::BugSprint}
  2848. if {Pkmn::%player%::Type} is "{@Electric}":
  2849. delete {Pkmn::%player%::ElecSprint}
  2850.  
  2851. every 30 second:
  2852. loop all players:
  2853. if {Pkmn::%loop-player%::Type} is "{@Bug}":
  2854. if {Pkmn::%loop-player%::BugSprint} is true:
  2855. if {Pkmn::%loop-player%::Particle} is set:
  2856. ParticleSlime(loop-player)
  2857. every 5 second:
  2858. loop all players:
  2859. if {Pkmn::%loop-player%::Type} is "{@Electric}":
  2860. if {Pkmn::%loop-player%::ElecSprint} is true:
  2861. if {Pkmn::%loop-player%::Particle} is set:
  2862. ParticleCrit(loop-player)
  2863.  
  2864. every 30 seconds:
  2865. loop all players:
  2866. if {Pkmn::%loop-player%::Type} is "{@Ghost}":
  2867. if light level at loop-player is greater than 12:
  2868. if {Pkmn::%loop-player%::Particle} is set:
  2869. ParticleLargeSmoke(loop-player)
  2870. if {Pkmn::%loop-player%::Type} is "{@Rock}":
  2871. if y coordinate of loop-player is less than 60:
  2872. if {Pkmn::%loop-player%::Particle} is set:
  2873. ParticleDepthSuspend(loop-player)
  2874.  
  2875. on block break:
  2876. if {Pkmn::%player%::Type} is "{@Rock}":
  2877. chance of 5%
  2878. if {Pkmn::%player%::Particle} is set:
  2879. ParticleDepthSuspend(player)
  2880.  
  2881. #Additional Commands and Misc.#
  2882. command /pkmntimer <text>:
  2883. trigger:
  2884. set {episode} to arg-1
  2885. if command sender is player:
  2886. broadcast "{@P}Episode %{episode}%"
  2887.  
  2888. command /health <player>:
  2889. trigger:
  2890. make player execute "/h %arg-1%"
  2891.  
  2892. on portal:
  2893. cancel event
  2894.  
  2895. on damage of player:
  2896. attacker is a player:
  2897. if damage was caused by a projectile:
  2898. wait 5 ticks
  2899. send "{@P}The player you have hit is now at <lime>%round(health of victim*10)%%%" to the attacker
  2900.  
  2901.  
  2902. #Custom Crafting#
  2903. # Leaf Blade
  2904. on load:
  2905. register new shaped recipe for diamond sword named "&2Leaf Blade" using air, oak_leaves, air, air, oak_leaves, air, air, stick, air
  2906. register new shaped recipe for diamond sword named "&2Leaf Blade" using air, spruce_leaves, air, air, spruce_leaves, air, air, stick, air
  2907. register new shaped recipe for diamond sword named "&2Leaf Blade" using air, birch_leaves, air, air, birch_leaves, air, air, stick, air
  2908. register new shaped recipe for diamond sword named "&2Leaf Blade" using air, jungle_leaves, air, air, jungle_leaves, air, air, stick, air
  2909. register new shaped recipe for diamond sword named "&2Leaf Blade" using air, acacia_leaves, air, air, acacia_leaves, air, air, stick, air
  2910. register new shaped recipe for diamond sword named "&2Leaf Blade" using air, dark oak leaves, air, air, dark oak leaves, air, air, stick, air
  2911.  
  2912. # Leaf Apple
  2913. on load:
  2914. register new shaped recipe for apple using oak_leaves, oak_leaves, oak_leaves, oak_leaves, oak_leaves, oak_leaves, oak_leaves, oak_leaves, oak_leaves
  2915. register new shaped recipe for apple using spruce_leaves, spruce_leaves, spruce_leaves, spruce_leaves, spruce_leaves, spruce_leaves, spruce_leaves, spruce_leaves, spruce_leaves
  2916. register new shaped recipe for apple using birch_leaves, birch_leaves, birch_leaves, birch_leaves, birch_leaves, birch_leaves, birch_leaves, birch_leaves, birch_leaves
  2917. register new shaped recipe for apple using jungle_leaves, jungle_leaves, jungle_leaves, jungle_leaves, jungle_leaves, jungle_leaves, jungle_leaves, jungle_leaves, jungle_leaves
  2918. register new shaped recipe for apple using acacia_leaves, acacia_leaves, acacia_leaves, acacia_leaves, acacia_leaves, acacia_leaves, acacia_leaves, acacia_leaves, acacia_leaves
  2919. register new shaped recipe for apple using dark oak leaves, dark oak leaves, dark oak leaves, dark oak leaves, dark oak leaves, dark oak leaves, dark oak leaves, dark oak leaves, dark oak leaves
  2920.  
  2921. on mine of spruce_leaves or birch_leaves or jungle_leaves or acacia_leaves or dark oak leaves:
  2922. if player's tool is shears:
  2923. cancel event
  2924. damage player's tool by 1
  2925. set event-block to air
  2926. drop 1 oak_leaves at event-block
  2927.  
  2928. on craft of diamond sword:
  2929. if name of event-item contains "&2Leaf Blade":
  2930. if {Pkmn::%player%::Type} is "{@Grass}":
  2931. if {Pkmn::%player%::LeafBlade} is not set:
  2932. set {Pkmn::%player%::LeafBlade} to true
  2933. else if {Pkmn::%player%::LeafBlade} is set:
  2934. cancel event
  2935. message "{@P}Already crafted!"
  2936. else:
  2937. cancel event
  2938.  
  2939. on craft of apple:
  2940. if {Pkmn::%player%::Type} is not equal to "{@Grass}":
  2941. cancel event
  2942.  
  2943. #on damage:
  2944. # if victim is a player:
  2945. # set {_damage} to damage
  2946. # broadcast "Dmg: %{_damage}%"
  2947. # wait 1 tick
  2948. # broadcast "Current Health: <lime>%round(health of victim*10)%%%"
  2949.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement