Advertisement
Guest User

FIRST! v1.3

a guest
Mar 17th, 2016
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.73 KB | None | 0 0
  1. #Skript by IndecisivePig
  2.  
  3. options:
  4. P: &f[&bFIRST!&f]
  5.  
  6. command /first <text>:
  7. usage: /first <on/off/reset>
  8. permission: first.op
  9. trigger:
  10. if arg-1 is "on":
  11. send "{@P} &aEnabled!"
  12. set {first} to true
  13. if arg-1 is "off":
  14. send "{@P} &cDisabled!"
  15. set {first} to false
  16. if arg-1 is "reset":
  17. send "{@P} Reset all actions/rewards"
  18. delete {firstdamage}
  19. delete {firstctable}
  20. delete {firstiron}
  21. delete {firstgold}
  22. delete {firstdia}
  23. delete {firstemerald}
  24. delete {firstgapple}
  25. delete {firstbow}
  26. delete {firstrod}
  27. delete {firstnether}
  28. delete {firstblaze}
  29. delete {firstbrew}
  30. delete {firstpoison}
  31. delete {firstgoldstack}
  32. delete {firstenchant}
  33. delete {firstanvil}
  34. delete {firstmeleekill}
  35. delete {firstbowkill}
  36. delete {firstkillthree}
  37. delete {firstkillfive}
  38. delete {ironreward}
  39. set {ironlimit} to 0
  40. loop all players:
  41. set {fkills.%loop-player%} to 0
  42. set {goldstack.%loop-player%} to 0
  43.  
  44. command /fl:
  45. trigger:
  46. send "Skript by &bIndecisivePig" to player
  47. send "Version 1.3" to player
  48. if {firstdamage} is true:
  49. send "&c&mFirst Damage: 1 Iron Ingot" to player
  50. else:
  51. send "&aFirst Damage: 1 Iron Ingot" to player
  52. if {firstctable} is true:
  53. send "&c&mFirst Workbench crafted: 63 Workbenches" to player
  54. else:
  55. send "&aFirst Workbench crafted: 63 Workbenches" to player
  56. if {firstiron} is true:
  57. send "&c&mFirst Iron mined: Next 10 Iron is smelted" to player
  58. else:
  59. send "&aFirst Iron mined: Next 10 Iron is smelted" to player
  60. if {firstgold} is true:
  61. send "&c&mFirst Gold mined: 2 Apples" to player
  62. else:
  63. send "&aFirst Gold Mined: 2 Apples" to player
  64. if {firstdia} is true:
  65. send "&c&mFirst Diamond mined: 1 Golden Apple" to player
  66. else:
  67. send "&aFirst Diamond mined: 1 Golden Apple" to player
  68. if {firstemerald} is true:
  69. send "&c&mFirst Emerald mined: 1 Villager Spawn Egg" to player
  70. else:
  71. send "&aFirst Emerald mined: 1 Villager Spawn Egg" to player
  72. if {firstgapple} is true:
  73. send "&c&mFirst Golden Apple crafted: 1 Golden Apple" to player
  74. else:
  75. send "&aFirst Golden Apple crafted: 1 Golden Apple" to player
  76. if {firstbow} is true:
  77. send "&c&mFirst Bow crafted: 8 Feathers" to player
  78. else:
  79. send "&aFirst Bow crafted: 8 Feathers" to player
  80. if {firstrod} is true:
  81. send "&c&mFirst Rod crafted: Lure 1 Book" to player
  82. else:
  83. send "&aFirst Rod crafted: Lure 1 Book" to player
  84. if {firstnether} is true:
  85. send "&c&mFirst Nether enter: 1 Portal Block" to player
  86. else:
  87. send "&aFirst Nether enter: 1 Portal Block" to player
  88. if {firstblaze} is true:
  89. send "&c&mFirst Blaze killed: 1 Fire resistance potion" to player
  90. else:
  91. send "&aFirst Blaze killed: 1 Fire resistance potion" to player
  92. if {firstbrew} is true:
  93. send "&c&mFirst Brewing Stand crafted: 3 Water Bottles" to player
  94. else:
  95. send "&aFirst Brewing Stand crafted: 3 Water Bottles" to player
  96. if {firstpoison} is true:
  97. send "&c&mFirst Poisoned: Heal potion I" to player
  98. else:
  99. send "&aFirst Poisoned: Heal potion I" to player
  100. if {firstgoldstack} is true:
  101. send "&c&mFirst Stack of Gold smelted: Diamond Sword" to player
  102. else:
  103. send "&aFirst Stack of Gold smelted: Diamond Sword" to player
  104. if {firstenchant} is true:
  105. send "&c&mFirst Enchant Table crafted: 10 Books" to player
  106. else:
  107. send "&aFirst Enchant Table crafted: 10 Books" to player
  108. if {firstanvil} is true:
  109. send "&c&mFirst Anvil crafted: 5 String" to player
  110. else:
  111. send "&aFirst Anvil crafted: 5 String" to player
  112. if {firstmeleekill} is true:
  113. send "&c&mFirst Melee Kill: 8 Gold" to player
  114. else:
  115. send "&aFirst Melee Kill: 8 Gold" to player
  116. if {firstbowkill} is true:
  117. send "&c&mFirst Bow Kill: 8 Gold" to player
  118. else:
  119. send "&aFirst Bow Kill: 8 Gold" to player
  120. if {firstkillthree} is true:
  121. send "&c&mFirst to 3 Kills: Power 2 Book" to player
  122. else:
  123. send "&aFirst to 3 Kills: Power 2 Book" to player
  124. if {firstkillfive} is true:
  125. send "&c&mFirst to 5 Kills: Sharpness 2 Book" to player
  126. else:
  127. send "&aFirst to 5 Kills: Sharpness 2 Book" to player
  128.  
  129. on damage of player:
  130. {first} is true
  131. {firstdamage} is not set
  132. give victim 1 iron ingot
  133. broadcast "{@P} %victim% took first &cdamage&f!"
  134. set {firstdamage} to true
  135.  
  136. on craft of crafting table:
  137. {first} is true
  138. {firstctable} is not set
  139. give player 63 crafting tables
  140. broadcast "{@P} %player% crafted the first &8crafting table&f!"
  141. set {firstctable} to true
  142.  
  143. on leftclick on iron ore:
  144. {first} is true
  145. player is holding stone pickaxe, iron pickaxe, or diamond pickaxe
  146. {ironreward} is "%player%":
  147. {ironlimit} is less than 10
  148. cancel event
  149. set the block at event-location to air
  150. drop 1 iron ingot at event-location
  151. drop 1 experience at event-location
  152. add 1 to {ironlimit}
  153. stop
  154. {firstiron} is not set:
  155. wait 2 seconds
  156. event-block is not iron ore
  157. set {ironreward} to "%player%"
  158. set {ironlimit} to 0
  159. broadcast "{@P} %player% mined the first &7iron&f!"
  160. set {firstiron} to true
  161.  
  162. on break of gold ore:
  163. {first} is true
  164. player is holding a iron pickaxe or diamond pickaxe
  165. {firstgold} is not set
  166. give player 2 apples
  167. broadcast "{@P} %player% mined the first &6gold&f!"
  168. set {firstgold} to true
  169.  
  170. on mine of diamond ore:
  171. {first} is true
  172. player is holding iron pickaxe or diamond pickaxe
  173. {firstdia} is not set
  174. give player 1 golden apple
  175. broadcast "{@P} %player% mined the first &bdiamond&f!"
  176. set {firstdia} to true
  177.  
  178. on mine of emerald ore:
  179. {first} is true
  180. player is holding iron pickaxe or diamond pickaxe
  181. {firstemerald} is not set
  182. give player 1 villager spawn egg
  183. broadcast "{@P} %player% mined the first &aemerald&f!"
  184. set {firstemerald} to true
  185.  
  186. on craft of golden apple:
  187. {first} is true
  188. {firstgapple} is not set
  189. give player 1 golden apple
  190. broadcast "{@P} %player% crafted the first &6golden apple&f!"
  191. set {firstgapple} to true
  192.  
  193. on craft of bow:
  194. {first} is true
  195. {firstbow} is not set
  196. give player 8 feathers
  197. broadcast "{@P} %player% crafted the first &8bow&f!"
  198. set {firstbow} to true
  199.  
  200. on craft of fishing rod:
  201. {first} is true
  202. {firstrod} is not set
  203. execute console command "/minecraft:give %player% minecraft:enchanted_book 1 0 {StoredEnchantments:[{id:62,lvl:1}]}"
  204. broadcast "{@P} %player% crafted the first &8rod&f!"
  205. set {firstrod} to true
  206.  
  207. on player portal:
  208. {first} is true
  209. wait 2 seconds
  210. biome at the player is hell
  211. {firstnether} is not set
  212. give player purple stained glass named "&rPortal" with lore "&5Place to spawn a portal block"
  213. broadcast "{@P} %player% was the first to enter the &4nether&f!"
  214. set {firstnether} to true
  215. on place of purple stained glass:
  216. player is holding purple stained glass named "&rPortal"
  217. set the block at event-location to portal block
  218.  
  219. on damage of blaze:
  220. {first} is true
  221. {firstblaze} is not set
  222. attacker is player
  223. wait 1 tick
  224. victim is dead
  225. set {firstblaze} to true
  226. give attacker a fire resistance potion
  227. broadcast "{@P} %attacker% killed the first &6blaze&f!"
  228.  
  229. on craft of brewing stand:
  230. {first} is true
  231. {firstbrew} is not set
  232. give player 3 water bottles
  233. broadcast "{@P} %player% crafted the first &ebrewing stand&f!"
  234. set {firstbrew} to true
  235.  
  236. on damage of player:
  237. {first} is true
  238. damage is caused by poison or wither
  239. {firstpoison} is not set
  240. give victim 1 potion of healing
  241. broadcast "{@P} %victim% was the first &2poisoned&f!"
  242. set {firstpoison} to true
  243.  
  244. on place of furnace:
  245. {first} is true
  246. set {furnace.%event-block%} to "%player%"
  247. on smelt of ore:
  248. {first} is true
  249. the result of the event-block is gold ingot
  250. {firstgoldstack} is not set
  251. add 1 to {goldstack.%{furnace.%event-block%}%}
  252. if {goldstack.%{furnace.%event-block%}%} is greater than 63:
  253. broadcast "{@P} %{furnace.%event-block%}% smelted the first &6stack of gold&f!"
  254. give player 1 diamond sword
  255. loop all players:
  256. set {goldstack.%loop-player%} to 0
  257. set {firstgoldstack} to true
  258.  
  259. on craft of enchantment table:
  260. {first} is true
  261. {firstenchant} is not set
  262. give player 10 books
  263. broadcast "{@P} %player% crafted the first &5enchant table&f!"
  264. set {firstenchant} to true
  265.  
  266. on craft of anvil:
  267. {first} is true
  268. {firstanvil} is not set
  269. give player 5 string
  270. broadcast "{@P} %player% crafted the first &7anvil&f!"
  271. set {firstanvil} to true
  272.  
  273. on damage of player:
  274. {first} is true
  275. attacker is player
  276. damage was caused by attack
  277. wait 1 tick
  278. victim is dead
  279. {firstmeleekill} is not set
  280. set {firstmeleekill} to true
  281. give attacker 8 gold ingot
  282. broadcast "{@P} %attacker% got the first &cmelee kill&f!"
  283.  
  284. on damage of player:
  285. {first} is true
  286. attacker is player
  287. attacker is not victim
  288. projectile is arrow
  289. {firstbowkill} is not set
  290. wait 1 tick
  291. victim is dead
  292. set {firstbowkill} to true
  293. give attacker 8 gold ingots
  294. broadcast "{@P} %attacker% got the first &cbow kill&f!"
  295.  
  296. on damage of player:
  297. {first} is true
  298. attacker is player
  299. attacker is not victim
  300. {firstkillfive} is not set
  301. wait 1 tick
  302. victim is dead
  303. add 1 to {fkills.%attacker%}
  304. if {fkills.%attacker%} is greater than 2:
  305. {firstkillthree} is not set
  306. broadcast "{@P} %attacker% was the first to &43 kills&f!"
  307. execute console command "/minecraft:give %attacker% minecraft:enchanted_book 1 0 {StoredEnchantments:[{id:48,lvl:2}]}"
  308. set {firstkillthree} to true
  309. if {fkills.%attacker%} is greater than 4:
  310. {firstkillfive} is not set
  311. broadcast "{@P} %attacker% was the first to &45 kills&f!"
  312. execute console command "/minecraft:give %attacker% minecraft:enchanted_book 1 0 {StoredEnchantments:[{id:16,lvl:2}]}"
  313. set {firstkillfive} to true
  314. loop all players:
  315. set {fkills.%loop-player%} to 0
  316.  
  317. on death of player:
  318. {first} is true
  319. set {fkills.%victim%} to 0
  320. set {goldstack.%victim%} to 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement