kollinkoko

Lethal Ores [SK]

Aug 31st, 2016
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.54 KB | None | 0 0
  1. options:
  2. Pre: &e[&bLethalOres&e]&f
  3.  
  4. command /lethalores [<text>]:
  5. permission: skript.op
  6. trigger:
  7. if arg-1 is "on":
  8. set {lethalores} to true
  9. message "{@Pre} Lethal Ores &6enabled&f!"
  10. stop
  11. if arg-1 is "off":
  12. delete {lethalores}
  13. message "{@Pre} Lethal Ores &6disabled&f!"
  14. stop
  15. if arg-1 is "help":
  16. message "{@Pre} /lethalores <&6on&f/&6off&f/&6help&f>"
  17. else:
  18. player command "lethalores help"
  19.  
  20. on mine of iron ore:
  21. if {lethalores} is true:
  22. set block to air
  23. cancel the event
  24. drop 3 experience point
  25. drop 3 iron ingot
  26. chance of 25%:
  27. stop trigger
  28. chance of 16%:
  29. message "{@Pre} You begin to fly in the air"
  30. loop 3 times:
  31. push the player upwards
  32. wait 30 ticks
  33. stop trigger
  34. chance of 18%:
  35. apply slow digging 2 to the player for 30 seconds
  36. message "{@Pre} You seem to feel slow"
  37. stop trigger
  38. chance of 10%:
  39. damage the player by 0.5 hearts
  40. message "{@Pre} Your iron hit you"
  41. stop trigger
  42. chance of 15%:
  43. spawn 1 zombie pigmen at the event-block
  44. message "{@Pre} A random pigman came to say hi"
  45. stop trigger
  46. chance of 3%:
  47. loop blocks in radius 2 of the player:
  48. set loop-block to stone
  49. message "{@Pre} The cave seemed to cave in on you"
  50. stop trigger
  51. chance of 13%:
  52. spawn 1 zombie at the event-block
  53. message "{@Pre} You mined the zombies' iron"
  54. stop trigger
  55.  
  56. on mine of gold ore:
  57. if {lethalores} is true:
  58. set block to air
  59. cancel the event
  60. drop 3 experience point
  61. drop 3 gold ingot
  62. chance of 25%:
  63. stop trigger
  64. chance of 8%:
  65. damage the player by 1 hearts
  66. message "{@Pre} Your gold slapped you"
  67. stop trigger
  68. chance of 5%:
  69. ignite the player for 8 seconds
  70. message "{@Pre} That gold was burning hot"
  71. stop trigger
  72. chance of 18%:
  73. set {_loc} to location of event-block
  74. loop blocks in radius 2 around {_loc}:
  75. if loop-block is gold ore:
  76. set loop-block to air
  77. message "{@Pre} The gold disappeared"
  78. stop trigger
  79. chance of 15%:
  80. apply slowness 30 to the player for 1 minute
  81. message "{@Pre} You seem to feel slow"
  82. stop trigger
  83. chance of 13%:
  84. disenchant the player's helmet
  85. disenchant the player's boots
  86. message "{@Pre} Your armor became un-enchanted"
  87. stop trigger
  88. chance of 8%:
  89. strike lightning at the player
  90. message "{@Pre} Where did that come from?"
  91. stop trigger
  92. chance of 8.5%:
  93. spawn 2 silverfish at the event-block
  94. message "{@Pre} There was silverfish hiding in the gold"
  95. stop trigger
  96. chance of 0.50%:
  97. spawn 1 cave spider at the event-block
  98. message "{@Pre} You stole the spider's gold"
  99. stop trigger
  100.  
  101. on mine of diamond ore:
  102. if {lethalores} is true:
  103. drop 2 diamond
  104. chance of 25%:
  105. stop trigger
  106. chance of 9%:
  107. damage the player by 1.5 hearts
  108. message "{@Pre} Your diamonds punched you"
  109. stop trigger
  110. chance of 7%:
  111. spawn a creeper at the event-block
  112. message "{@Pre} Creepers like diamonds too"
  113. stop trigger
  114. chance of 6%:
  115. spawn primed tnt at the block
  116. message "{@Pre} Boom"
  117. stop trigger
  118. chance of 15%:
  119. apply hunger 2 to the player for 1 minute
  120. message "{@Pre} You suddenly feel hungry"
  121. stop trigger
  122. chance of 10%:
  123. spawn 3 skeletons at the event-block
  124. message "{@Pre} Skeletons!"
  125. stop trigger
  126. chance of 15%:
  127. apply nausea 1 to the player for 2 minutes
  128. message "{@Pre} You feel nauseous"
  129. stop trigger
  130. chance of 13%:
  131. reduce player's level by 5
  132. message "{@Pre} Your levels disappeared"
  133. stop trigger
Advertisement
Add Comment
Please, Sign In to add comment