Guest User

Untitled

a guest
Apr 29th, 2014
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.06 KB | None | 0 0
  1. on script load:
  2. register new shaped recipe for stick named "&b&LSnowStole" using snow, diamond, snow, diamond, stick, diamond, snow, diamond, snow
  3. register new shaped recipe for blaze rod named "&b&LBlazeStole" using block of gold, diamond, block of gold, diamond, blaze rod, diamond, block of gold, diamond, block of gold
  4. register new shaped recipe for bone named "&b&LBone ShotGun" using block of iron, diamond, block of iron, diamond, bone, diamond, block of iron, diamond, block of iron
  5. register new shaped recipe for arrow named "&b&LPistolet Cold 45" using arrow, diamond, arrow, diamond, arrow, diamond, arrow, diamond, arrow
  6. register new shaped recipe for wood hoe named "&b&LBazooka" using fish, diamond, fish, diamond, diamond hoe, diamond, fish, diamond, fish
  7. register new shaped recipe for shears named "&b&LNóz Zwykly" using none, none, none, none, shears, diamond, none, none, none
  8. register new shaped recipe for egg named "&b&LGranad Ogluszajacy" using none, diamond, none, diamond, egg, diamond, none, diamond, none
  9.  
  10. register new shaped recipe for snowball named "&aAmunicja do SnowStole" using none, none, none, diamond, snowball, diamond, none, none, none
  11. register new shaped recipe for glowstone dust named "&aAmunicja do BlazeStole" using none, none, none, diamond, glowstone dust, diamond, none, none, none
  12. register new shaped recipe for bone meal named "&aAmunicja do Bone ShotGun" using none, none, none, diamond, bone meal, diamond, none, none, none
  13. register new shaped recipe for redstone named "&aAmunicja do pistoletu Cold 45" using none, none, none, diamond, redstone, diamond, none, none, none
  14. register new shaped recipe for fish named "&aAmunicja do Bazooka" using none, none, none, diamond, fish, diamond, none, none, none
  15.  
  16. register new shaped recipe for block of emerald named "&aApteczka" using none, none, none, water bottle, block of emerald, water bottle, none, none, none
  17. register new shaped recipe for wooden pressure plate named "&aMina" using none, none, none, tnt, wooden pressure plate, tnt, none, none, none
  18. register new shaped recipe for paper named "&4Bandaz" using none, none, none, redstone, paper, redstone, none, none, none
  19.  
  20. options:
  21. tag: &5Bronie
  22. on right click using stick:
  23. player have permission "IWeaponWar.snowstole"
  24. if player has snowball named "&aAmunicja do SnowStole":
  25. set {czas} to difference between {opoznieniesnow.%player%} and now
  26. if {czas} is less than 0.6 seconds:
  27. set name of the player's tool to "&ePrzeladowywanie..."
  28. execute console command "/playsound random.door_close %player% ~0 ~0 ~0 10 5"
  29. stop
  30. else:
  31. shoot snowball with speed 15
  32. damage targeted entity by 2 hearts
  33. remove 1 snowball from the player
  34. set name of the player's tool to "&6[ &b%number of snowball in the player's inventory% &6]"
  35. execute console command "/playsound random.explode %player% ~0 ~0 ~0 10 10"
  36. wait 3 tick
  37. shoot snowball with speed 15
  38. execute command "/playsound mob.chicken.plop %name of player% ~0 ~0 ~0 10 5"
  39. damage targeted entity by 2 hearts
  40. remove 1 snowball from the player
  41. set name of the player's tool to "&6[ &b%number of snowball in the player's inventory% &6]"
  42. wait 3 tick
  43. shoot snowball with speed 15
  44. execute console command "/playsound random.explode %player% ~0 ~0 ~0 10 10"
  45. damage targeted entity by 2 hearts
  46. remove 1 snowball from the player
  47. set name of the player's tool to "&6[ &b%number of snowball in the player's inventory% &6]"
  48. push the player backwards at speed 0.09
  49. player is sprinting
  50. set {_a} to a random integer between 1 and 3
  51. if {_a} is 1:
  52. damage targeted entity by 1 hearts
  53. execute console command "/playsound random.explode %player% ~0 ~0 ~0 10 10"
  54. if {_a} is 2:
  55. damage targeted entity by 2 hearts
  56. execute console command "/playsound random.explode %player% ~0 ~0 ~0 10 10"
  57. player is sneaking
  58. set {_b} to a random integer between 1 and 3
  59. if {_b} is 1:
  60. damage targeted entity by 5 hearts
  61. execute console command "/playsound random.explode %player% ~0 ~0 ~0 10 10"
  62. if {_b} is 2:
  63. damage targeted entity by 6 hearts
  64. execute console command "/playsound random.explode %player% ~0 ~0 ~0 10 10"
  65. if {_b} is 3:
  66. damage targeted entity by 7 hearts
  67. execute console command "/playsound random.explode %player% ~0 ~0 ~0 10 10"
  68. if {_b} is 4:
  69. damage targeted entity by 8 hearts
  70. execute console command "/playsound random.explode %player% ~0 ~0 ~0 10 10"
  71. set {opoznieniesnow.%player%} to now
  72. stop
  73. else:
  74. send "&c&LBrak amunicji! Musisz ja kupic w sklepie."
  75. execute console command "/playsound random.door_close %player% ~0 ~0 ~0 10 5"
  76. stop
  77.  
  78. on right click using blaze rod:
  79. player have permission "IWeaponWar.blazestole"
  80. if player has 1 glowstone dust named "&aAmunicja do BlazeStole":
  81. set {czasblaze} to difference between {opoznienieblaze.%player%} and now
  82. if {czasblaze} is less than 0.4 seconds:
  83. set name of the player's tool to "&ePrzeladowywanie..."
  84. execute console command "/playsound random.door_close %player% ~0 ~0 ~0 10 5"
  85. stop
  86. else:
  87. push the player backwards at speed 1.5
  88. execute command "/playsound mob.wither.shoot %name of player% ~0 ~0 ~0 0.3"
  89. shoot an snowball at speed 16
  90. damage targeted entity by 3 hearts
  91. remove 1 glowstone dust from the player
  92. set name of the player's tool to "&6[ &b%number of glowstone dust in the player's inventory% &6]"
  93. player is sprinting
  94. set {_c} to a random integer between 1 and 3
  95. if {_c} is 1:
  96. damage targeted entity by 1 hearts
  97. execute command "/playsound mob.wither.shoot %player% ~0 ~0 ~0 20 10"
  98. if {_c} is 2:
  99. damage targeted entity by 2 hearts
  100. execute command "/playsound mob.wither.shoot %player% ~0 ~0 ~0 20 10"
  101. if {_c} is 3:
  102. damage targeted entity by 3 hearts
  103. execute command "/playsound mob.wither.shoot %player% ~0 ~0 ~0 20 10"
  104. player is sneaking
  105. set {_d} to a random integer between 1 and 2
  106. if {_d} is 1:
  107. damage targeted entity by 7 hearts
  108. execute command "/playsound mob.wither.shoot %player% ~0 ~0 ~0 20 10"
  109. if {_d} is 2:
  110. damage targeted entity by 8 hearts
  111. execute command "/playsound mob.wither.shoot %player% ~0 ~0 ~0 20 10"
  112. set {opoznienieblaze.%player%} to now
  113. stop
  114. else:
  115. send "&c&LBrak amunicji! Musisz ja kupic w sklepie."
  116. execute console command "/playsound random.door_close %player% ~0 ~0 ~0 10 5"
  117. stop
  118.  
  119. on right click using bone:
  120. player have permission "IWeaponWar.boneshotgun"
  121. if player has 5 bone meal named "&aAmunicja do Bone ShotGun":
  122. set {czasbone} to difference between {opoznieniebone.%player%} and now
  123. if {czasbone} is less than 1.6 seconds:
  124. set name of the player's tool to "&ePrzeladowywanie..."
  125. execute console command "/playsound random.door_close %player% ~0 ~0 ~0 10 5"
  126. stop
  127. else:
  128. shoot an snowball at speed 15
  129. remove 5 bone meal from the player
  130. damage targeted entity by 4 hearts
  131. execute command "/playsound tile.piston.out %name of player% ~0 ~0 ~0 10 0.01"
  132. set name of the player's tool to "&6[ &b%number of bone meal in the player's inventory% &6]"
  133. wait 1.5 tick
  134. shoot snowball with speed 1.5
  135. execute command "/playsound tile.piston.out %name of player% ~0 ~0 ~0 10 0.01"
  136. set name of the player's tool to "&6[ &b%number of bone meal in the player's inventory% &6]"
  137. wait 1.5 tick
  138. shoot snowball with speed 1.5
  139. execute command "/playsound tile.piston.out %name of player% ~0 ~0 ~0 10 0.01"
  140. set name of the player's tool to "&6[ &b%number of bone meal in the player's inventory% &6]"
  141. wait 1.5 tick
  142. shoot snowball with speed 1.5
  143. execute command "/playsound tile.piston.out %name of player% ~0 ~0 ~0 10 0.01"
  144. set name of the player's tool to "&6[ &b%number of bone meal in the player's inventory% &6]"
  145. wait 1.5 tick
  146. shoot snowball with speed 1.5
  147. execute command "/playsound tile.piston.out %name of player% ~0 ~0 ~0 10 0.01"
  148. set name of the player's tool to "&6[ &b%number of bone meal in the player's inventory% &6]"
  149. push the player backwards at speed 0.5
  150. player is sprinting
  151. set {_d} to a random integer between 1 and 3
  152. if {_d} is 1:
  153. damage targeted entity by 1 hearts
  154. execute command "/playsound tile.piston.out %player% ~0 ~0 ~0 20 10"
  155. if {_d} is 2:
  156. damage targeted entity by 2 hearts
  157. execute command "/playsound tile.piston.out %player% ~0 ~0 ~0 20 10"
  158. if {_d} is 3:
  159. damage targeted entity by 3 hearts
  160. execute command "/playsound tile.piston.out %player% ~0 ~0 ~0 20 10"
  161. player is sneaking
  162. set {_e} to a random integer between 1 and 3
  163. if {_e} is 1:
  164. damage targeted entity by 6 hearts
  165. execute command "/playsound tile.piston.out %player% ~0 ~0 ~0 20 10"
  166. if {_e} is 2:
  167. damage targeted entity by 7 hearts
  168. execute command "/playsound tile.piston.out %player% ~0 ~0 ~0 20 10"
  169. if {_e} is 3:
  170. damage targeted entity by 8 hearts
  171. execute command "/playsound tile.piston.out %player% ~0 ~0 ~0 20 10"
  172. set {opoznieniebone.%player%} to now
  173. stop
  174. else:
  175. send "&c&LBrak amunicji! Musisz ja kupic w sklepie."
  176. execute console command "/playsound random.door_close %player% ~0 ~0 ~0 10 5"
  177. stop
  178.  
  179.  
  180. on right click using arrow:
  181. player have permission "IWeaponWar.Cold45"
  182. if player has 2 redstone named "&aAmunicja do Pistoletu Cold 45":
  183. set {czasarrow} to difference between {opoznieniearrow.%player%} and now
  184. if {czasarrow} is less than 1 seconds:
  185. set name of the player's tool to "&ePrzeladowywanie..."
  186. execute console command "/playsound random.door_close %player% ~0 ~0 ~0 10 5"
  187. stop
  188. else:
  189. shoot an snowball at speed 15
  190. damage targeted entity by 4 hearts
  191. remove 1 redstone from the player
  192. set name of the player's tool to "&6[ &b%number of redstone in the player's inventory% &6]"
  193. execute console command "/playsound random.explode %player% ~0 ~0 ~0 10 12"
  194. push the player backwards at speed 0.4
  195. set {_f} to a random integer between 1 and 2
  196. if {_f} is 1:
  197. damage targeted entity by 1 hearts
  198. execute console command "/playsound random.explode %player% ~0 ~0 ~0 10 12"
  199. if {_f} is 2:
  200. damage targeted entity by 2 hearts
  201. execute console command "/playsound random.explode %player% ~0 ~0 ~0 10 12"
  202. player is sneaking
  203. set {_g} to a random integer between 1 and 2
  204. if {_g} is 1:
  205. damage targeted entity by 7 hearts
  206. execute console command "/playsound random.explode %player% ~0 ~0 ~0 10 12"
  207. if {_g} is 2:
  208. damage targeted entity by 8 hearts
  209. execute console command "/playsound random.explode %player% ~0 ~0 ~0 10 12"
  210. set {opoznieniearrow.%player%} to now
  211. stop
  212. else:
  213. send "&c&LBrak amunicji! Musisz ja kupic w sklepie."
  214. execute console command "/playsound random.door_close %player% ~0 ~0 ~0 10 5"
  215. stop
  216.  
  217. on right click using wooden hoe:
  218. player have permission "IWeaponWar.bazooka"
  219. cancel event
  220. if player has 1 fish named "&aAmunicja do Bazooki":
  221. set {czasabazuka} to difference between {opoznieniebazuka.%player%} and now
  222. if {czasabazuka} is less than 10 seconds:
  223. set name of the player's tool to "&ePrzeladowywanie..."
  224. execute console command "/playsound random.door_close %player% ~0 ~0 ~0 10 5"
  225. stop
  226. else:
  227. shoot an small fireball at speed 2.5
  228. damage targeted entity by 8 hearts
  229. remove 1 raw fish named "&aAmunicja do Bazooki" from the player
  230. execute console command "/playsound random.explode %player% ~0 ~0 ~0 10 1"
  231. set name of the player's tool to "&6[ &b%number of fish in the player's inventory% &6]"
  232. push the player backwards at speed 0.1
  233. set {opoznieniebazuka.%player%} to now
  234. stop
  235. else:
  236. send "&c&LBrak amunicji! Musisz ja kupic w sklepie."
  237. execute console command "/playsound random.door_close %player% ~0 ~0 ~0 10 5"
  238. stop
  239. on projectile hit:
  240. if projectile is small fireball:
  241. projectile is small fireball
  242. create a fake explosion at projectile
  243. loop all players in radius 7 around projectile:
  244. damage loop-player by 7 hearts
  245. apply confusion 200 to loop-player for 20 seconds
  246. apply blindness 200 to loop-player for 8 seconds
  247. send "{@tag} &2Otrzymales obrazenia od Bazooki." to the loop-player
  248. if chance of 10%:
  249. damage loop-player by 1 hearts
  250. apply confusion 200 to loop-player for 3 seconds
  251. apply blindness 200 to loop-player for 2 seconds
  252. send "{@tag} &2Oberwales!" to the loop-player
  253. stop
  254. if chance of 40%:
  255. damage loop-player by 5 hearts
  256. apply confusion 200 to loop-player for 18 seconds
  257. apply blindness 200 to loop-player for 6 seconds
  258. send "{@tag} &2Otrzymales obrazenia od Bazooki!" to the loop-player
  259. stop
  260.  
  261.  
  262. on rightclick with shears:
  263. player have permission "IWeaponWar.noz"
  264. if player is holding a shears named "&b&lNóz Zwykly":
  265. shoot an arrow
  266. remove 1 shears from the player
  267. set {_h} to a random integer between 1 and 3
  268. if {_h} is 1:
  269. damage targeted entity by 1 hearts
  270. execute command "/playsound random.anvil_land %player% ~0 ~0 ~0 20 10"
  271. if {_h} is 2:
  272. damage targeted entity by 2 hearts
  273. execute command "/playsound random.anvil_land %player% ~0 ~0 ~0 20 10"
  274. if {_h} is 3:
  275. damage targeted entity by 3 hearts
  276. execute command "/playsound random.anvil_land %player% ~0 ~0 ~0 20 10"
  277. player is sneaking
  278. set {_i} to a random integer between 1 and 3
  279. if {_i} is 1:
  280. damage targeted entity by 8 hearts
  281. execute command "/playsound random.anvil_land %player% ~0 ~0 ~0 20 10"
  282. if {_i} is 2:
  283. damage targeted entity by 9 hearts
  284. execute command "/playsound random.anvil_land %player% ~0 ~0 ~0 20 10"
  285. if {_i} is 3:
  286. damage targeted entity by 10 hearts
  287. execute command "/playsound random.anvil_land %player% ~0 ~0 ~0 20 10"
  288. player is sprinting
  289. set {_j} to a random integer between 1 and 3
  290. if {_j} is 1:
  291. damage targeted entity by 1 hearts
  292. execute command "/playsound random.anvil_land %player% ~0 ~0 ~0 20 10"
  293. if {_j} is 2:
  294. damage targeted entity by 2 hearts
  295. execute command "/playsound random.anvil_land %player% ~0 ~0 ~0 20 10"
  296. if {_j} is 3:
  297. damage targeted entity by 3 hearts
  298. execute command "/playsound random.anvil_land %player% ~0 ~0 ~0 20 10"
  299. stop
  300.  
  301. on rightclick with egg:
  302. player have permission "IWeaponWar.granatogluszajacy"
  303. if player is holding a egg named "&b&lGranat Ogluszajacy":
  304. cancel event
  305. remove 1 egg named "&b&lGranat Ogluszajacy" from the player
  306. shoot an egg at speed 0.7
  307. stop
  308.  
  309.  
  310. on projectile hit:
  311. projectile is egg named "&b&LGranat Ogluszajacy"
  312. create a fake explosion at projectile
  313. loop all players in radius 6 around projectile:
  314. damage loop-player by 4 hearts
  315. apply confusion 200 to loop-player for 20 seconds
  316. apply blindness 200 to loop-player for 8 seconds
  317. send "{@tag} &2Zostales ogluszony granatem." to the loop-player
  318. if chance of 40%:
  319. damage loop-player by 1 hearts
  320. apply confusion 200 to loop-player for 4 seconds
  321. apply blindness 200 to loop-player for 3 seconds
  322. send "{@tag} &2Dostales odlamkiem!" to the loop-player
  323. if chance of 10%:
  324. damage loop-player by 10 hearts
  325. if chance of 20%:
  326. damage loop-player by 5 hearts
  327. apply confusion 200 to loop-player for 15 seconds
  328. apply blindness 200 to loop-player for 6 seconds
  329. send "{@tag} &2Oberwales!" to the loop-player
  330. stop
  331.  
  332. On Pressure Plate:
  333. create a fake explosion at event-block
  334. loop all players in radius 4 around event-block:
  335. if chance of 50%:
  336. damage loop-player by 7 hearts
  337. if chance of 20%:
  338. damage loop-player by 3 hearts
  339. if chance of 30%:
  340. damage loop-player by 5 hearts
  341. delete event-block
  342.  
  343.  
  344. every 1 seconds:
  345. loop all players:
  346. set {_a} to location of loop-player
  347. loop blocks in radius 4 around {_a}:
  348. if loop-block is emerald block:
  349. if loop-player's health is 10:
  350. stop
  351. else:
  352. heal the loop-player by 1 heart
  353. send "&8Uleczenie &a+1" to loop-player
  354. stop
  355.  
  356. on place of emerald block:
  357. wait 30 seconds
  358. set event-block to air
  359.  
  360. on leftclick:
  361. player have permission "IWeaponWar.zoom.snowstole"
  362. player is holding stick:
  363. {zoom.%player%} is 1:
  364. set {zoom.%player%} to 2
  365. apply slowness 5 to player for 300 seconds
  366. set {zoomowanie.%player%} to true
  367. stop
  368. {zoom.%player%} is 2:
  369. set {zoom.%player%} to 1
  370. remove slowness from player
  371. set {zoomowanie.%player%} to false
  372. stop
  373. {zoom.%player%} is not set:
  374. set {zoom.%player%} to 2
  375. apply slowness 5 to player for 300 seconds
  376. set {zoomowanie.%player%} to true
  377. stop
  378.  
  379. on leftclick:
  380. player have permission "IWeaponWar.zoom.balzestole"
  381. player is holding blaze rod:
  382. {zoom.%player%.blaze} is 1:
  383. set {zoom.%player%.blaze} to 2
  384. apply slowness 5 to player for 300 seconds
  385. set {zoomowanie.%player%.blaze} to true
  386. stop
  387. {zoom.%player%.blaze} is 2:
  388. set {zoom.%player%.blaze} to 1
  389. remove slowness from player
  390. set {zoomowanie.%player%.blaze} to false
  391. stop
  392. {zoom.%player%.blaze} is not set:
  393. set {zoom.%player%.blaze} to 2
  394. apply slowness 5 to player for 300 seconds
  395. set {zoomowanie.%player%.blaze} to true
  396. stop
  397.  
  398. on leftclick:
  399. player have permission "IWeaponWar.zoom.shotgun"
  400. player is holding bone:
  401. {zoom.%player%.bone} is 1:
  402. set {zoom.%player%.bone} to 2
  403. apply slowness 5 to player for 300 seconds
  404. set {zoomowanie.%player%.bone} to true
  405. stop
  406. {zoom.%player%.blaze} is 2:
  407. set {zoom.%player%.bone} to 1
  408. remove slowness from player
  409. set {zoomowanie.%player%.bone} to false
  410. stop
  411. {zoom.%player%.bone} is not set:
  412. set {zoom.%player%.bone} to 2
  413. apply slowness 5 to player for 300 seconds
  414. set {zoomowanie.%player%.bone} to true
  415. stop
  416.  
  417. every 0.01 tick:
  418. loop players:
  419. if {zoomowanie.%loop-player%} is true:
  420. loop-player is holding stick:
  421. set {zoomowanie.%loop-player%} to true
  422. else:
  423. set {zoomowanie.%loop-player%} to false
  424. remove slowness from loop-player
  425.  
  426. on rightclick with paper:
  427. player have permission "IWeaponWar.bandaz"
  428. if player is holding a paper named "&b&lBandaz":
  429. if player's health is 10:
  430. send "&7Masz full &4HP"
  431. stop
  432. else:
  433. heal the player by 4 heart
  434. send "&8Uleczenie &a+4 "
  435. remove 1 paper from the player
  436. stop
  437.  
  438.  
  439.  
  440. command /daj:
  441. trigger:
  442. give 1 egg named "&b&LGranat Ogluszajacy" to the player
  443. give 1 emerald block named "&aApteczka" to the player
  444. give 1 shears named "&b&lNóz Zwykly" to the player
  445. give 1 stick named "&b&lStickStole" to the player
  446. give 1 blaze rod named "&b&lBlazeStole" to the player
  447. give 1 bone named "&b&lBone ShotGun" to the player
  448. give 1 arrow named "&b&lPistolet Cold 45" to the player
  449. give 1 wooden pressure plate named "Mina" to the player
  450. give 1 wooden hoe named "&b&lBazooka" to the player
  451. give 64 fish named "&aAmunicja do Bazooki" to the player
  452. give 64 snowball named "&aAmunicja do SnowStole" to the player
  453. give 64 glowstone dust named "&aAmunicja do BlazeStole" to the player
  454. give 64 bone meal named "&aAmunicja do Bone ShotGun" to the player
  455. give 54 redstone named "&aAmunicja do Pistoletu Cold 45" to the player
  456. give 1 paper named "&b&lBandaz" to the player
Add Comment
Please, Sign In to add comment