Advertisement
Guest User

Untitled

a guest
Jun 7th, 2015
882
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.29 KB | None | 0 0
  1. # Autor MinigameShoot/EndDragos
  2. # 1 ulepszenie [potrzeba] coal, charcoal
  3. # 2 -||- diamond, iron ingot
  4. # 3 -||- stick, bow
  5. # 4 -||- string, feather
  6. # 5 -||- gunpowder, seends
  7. # 6 -||- wheat, flint
  8. # 7 -||- leather, brick
  9. # 8 -||- 2x clay, 2x cocoa
  10. # 9 -||- 3x egg, 3x lapis lazuli
  11. on pick up diamond sword:
  12. if name of event-item is "Dlugi Miecz":
  13. if player's level >= 10:
  14. set {_lvl} to 0 or 1 or 2
  15. set item's name to "Dlugi Miecz +%{_lvl}%"
  16. set {lvl.miecz.%player%} to {_lvl}
  17. set {1.%player%} to false
  18. set {2.%player%} to false
  19. set {3.%player%} to false
  20. set {4.%player%} to false
  21. set {5.%player%} to false
  22. set {6.%player%} to false
  23. set {7.%player%} to false
  24. set {8.%player%} to false
  25. set {9.%player%} to false
  26. else:
  27. cancel event
  28. if {spam.%player%} is false:
  29. send "&cAby podniesc ten item musisz miec 10 lvl"
  30. set {spam.%player%} to true
  31. wait 5 second
  32. set {spam.%player%} to false
  33. on right click on villager:
  34. if name of clicked entity is "Kowal":
  35. if player is holding diamond sword:
  36. cancel event
  37. open chest with 1 rows named "&eUlepszenie Miecza" to player
  38. wait 2 tick
  39. format slot 4 of player with diamond sword named "Ulepsz" with lore "Kliknij, aby ulepszyc" to close then run "ulepsz %player% miecz"
  40. format slot 6 of player with red wool named "Zamknij" with lore "Kliknij, aby zamknac" to close
  41. command /miecze [<text>] [<text>]:
  42. permissions: miecze.*
  43. trigger:
  44. if arg 1 is "setnpc":
  45. spawn villager at location of player
  46. set the name of spawned entity to "Kowal"
  47. apply slowness 100 to spawned entity
  48.  
  49. on left click on villager:
  50. if name of clicked entity is "Kowal":
  51. cancel event
  52.  
  53. on death of Skeleton:
  54. chance of 5%:
  55. drop diamond sword with name "Dlugi Miecz" at location of victim
  56. on death of zombie:
  57. chance of 5%:
  58. drop diamond sword with name "Dlugi Miecz" at location of victim
  59.  
  60. variables:
  61. {1.%player%} = false
  62. {2.%player%} = false
  63. {3.%player%} = false
  64. {4.%player%} = false
  65. {5.%player%} = false
  66. {6.%player%} = false
  67. {7.%player%} = false
  68. {8.%player%} = false
  69. {9.%player%} = false
  70. {spam.%player%} = false
  71. command /reset:
  72. trigger:
  73. set {1.%player%} to false
  74. set {2.%player%} to false
  75. set {3.%player%} to false
  76. set {4.%player%} to false
  77. set {5.%player%} to false
  78. set {6.%player%} to false
  79. set {7.%player%} to false
  80. set {8.%player%} to false
  81. set {9.%player%} to false
  82. command /ulepsz [<player>] [<text>]:
  83. trigger:
  84. if arg 2 is "miecz":
  85. if {1.%player-arg%} is false:
  86. if player-arg have 1 coal:
  87. if player-arg have 1 charcoal:
  88. set {_ile} to 1
  89. set {_lvl1} to {lvl.miecz.%player-arg%} + 1
  90. if {_lvl1} <= 9:
  91. remove diamond sword from player-arg
  92. remove 1 coal from player-arg
  93. remove 1 charcoal from player-arg
  94. give diamond sword named "Dlugi Miecz +%{_lvl1}%" to player-arg
  95. set {lvl.miecz.%player-arg%} to {_lvl1}
  96. set {1.%player-arg%} to true
  97. else:
  98. if {2.%player-arg%} is false:
  99. if player-arg have 1 diamond:
  100. if player-arg have 1 of iron ingot:
  101. set {_ile} to 1
  102. set {_lvl1} to {lvl.miecz.%player-arg%} + 1
  103. if {_lvl1} <= 9:
  104. remove diamond sword from player-arg
  105. remove 1 diamond from player-arg
  106. remove 1 iron ingot from player-arg
  107. give diamond sword named "Dlugi Miecz +%{_lvl1}%" to player-arg
  108. set {lvl.miecz.%player-arg%} to {_lvl1}
  109. set {2.%player-arg%} to true
  110. else:
  111. if {3.%player-arg%} is false:
  112. if player-arg have 1 stick:
  113. if player-arg have bowl:
  114. set {_ile} to 1
  115. set {_lvl1} to {lvl.miecz.%player-arg%} + 1
  116. if {_lvl1} <= 9:
  117. remove diamond sword from player-arg
  118. remove 1 stick from player-arg
  119. remove bow from player-arg
  120. give diamond sword named "Dlugi Miecz +%{_lvl1}%" to player-arg
  121. set {lvl.miecz.%player-arg%} to {_lvl1}
  122. set {3.%player-arg%} to true
  123. else:
  124. if {4.%player-arg%} is false:
  125. if player-arg have 1 string:
  126. if player-arg have 1 feather:
  127. set {_ile} to 1
  128. set {_lvl1} to {lvl.miecz.%player-arg%} + 1
  129. if {_lvl1} <= 9:
  130. remove 1 string from player-arg
  131. remove 1 feather from player-arg
  132. remove bow from player-arg
  133. give diamond sword named "Dlugi Miecz +%{_lvl1}%" to player-arg
  134. set {lvl.miecz.%player-arg%} to {_lvl1}
  135. set {4.%player-arg%} to true
  136. else:
  137. if {5.%player-arg%} is false:
  138. if player-arg have 1 gunpowder:
  139. if player-arg have 1 seeds:
  140. set {_ile} to 1
  141. set {_lvl1} to {lvl.miecz.%player-arg%} + 1
  142. if {_lvl1} <= 9:
  143. remove diamond sword from player-arg
  144. remove 1 gunpowder from player-arg
  145. remove 1 seeds from player-arg
  146. give diamond sword named "Dlugi Miecz +%{_lvl1}%" to player-arg
  147. set {lvl.miecz.%player-arg%} to {_lvl1}
  148. set {5.%player-arg%} to true
  149. else:
  150. if {6.%player-arg%} is false:
  151. if player-arg have 1 wheat:
  152. if player-arg have flint:
  153. set {_ile} to 1
  154. set {_lvl1} to {lvl.miecz.%player-arg%} + 1
  155. if {_lvl1} <= 9:
  156. remove diamond sword from player-arg
  157. remove 1 wheat from player-arg
  158. remove 1 flint from player-arg
  159. give diamond sword named "Dlugi Miecz +%{_lvl1}%" to player-arg
  160. set {lvl.miecz.%player-arg%} to {_lvl1}
  161. set {6.%player-arg%} to true
  162. else:
  163. if {7.%player-arg%} is false:
  164. if player-arg have 1 leather:
  165. if player-arg have 1 brick:
  166. chance of 75%:
  167. set {_ile} to 1
  168. replace all "<none>" with "0" in {_ile}
  169. set {_lvl1} to {lvl.miecz.%player-arg%} + {_ile}
  170. if {_lvl1} <= 9:
  171. remove diamond sword from player-arg
  172. remove 1 leather from player-arg
  173. remove 1 brick from player-arg
  174. give diamond sword named "Dlugi Miecz +%{_lvl1}%" to player-arg
  175. set {lvl.miecz.%player-arg%} to {_lvl1}
  176. set {7.%player-arg%} to true
  177. else:
  178. if {8.%player-arg%} is false:
  179. if player-arg have 2 clay:
  180. if player-arg have 2 cocoa beans:
  181. chance of 50%:
  182. set {_ile} to 1
  183. replace all "<none>" with "0" in {_ile}
  184. set {_lvl1} to {lvl.miecz.%player-arg%} + {_ile}
  185. if {_lvl1} <= 9:
  186. remove diamond sword from player-arg
  187. remove 2 clay from player-arg
  188. remove 2 cocoa beans from player-arg
  189. give diamond sword named "Dlugi Miecz +%{_lvl1}%" to player-arg
  190. set {lvl.miecz.%player-arg%} to {_lvl1}
  191. set {8.%player-arg%} to true
  192. else:
  193. if {9.%player-arg%} is false:
  194. if player-arg have 3 lapis lazuli:
  195. if player-arg have 3 egg:
  196. chance of 25%:
  197. set {_ile} to 1
  198. replace all "<none>" with "0" in {_ile}
  199. set {_lvl1} to {lvl.miecz.%player-arg%} + {_ile}
  200. if {_lvl1} <= 9:
  201. remove diamond sword from player-arg
  202. remove 3 lapis lazuli from player-arg
  203. remove 3 egg from player-arg
  204. give diamond sword named "Dlugi Miecz +%{_lvl1}%" to player-arg
  205. set {lvl.miecz.%player-arg%} to {_lvl1}
  206. set {9.%player-arg%} to true
  207.  
  208. on damage:
  209. if attacker is holding diamond sword:
  210. cancel event
  211. if {lvl.miecz.%attacker%} = 0:
  212. damage victim by 0.5 hearts
  213. if {lvl.miecz.%attacker%} = 1:
  214. damage victim by 1 hearts
  215. if {lvl.miecz.%attacker%} = 2:
  216. damage victim by 1.5 hearts
  217. if {lvl.miecz.%attacker%} = 3:
  218. damage victim by 2 hearts
  219. if {lvl.miecz.%attacker%} = 4:
  220. damage victim by 2.5 hearts
  221. if {lvl.miecz.%attacker%} = 5:
  222. damage victim by 3 hearts
  223. if {lvl.miecz.%attacker%} = 6:
  224. damage victim by 3.5 hearts
  225. if {lvl.miecz.%attacker%} = 7:
  226. damage victim by 4 hearts
  227. if {lvl.miecz.%attacker%} = 8:
  228. damage victim by 4.5 hearts
  229. if {lvl.miecz.%attacker%} = 9:
  230. damage victim by 5 hearts
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement