Advertisement
Haon

Conviction s3

May 8th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.22 KB | None | 0 0
  1. options:
  2. prefix: §aConviction §8»§7
  3.  
  4. on right click:
  5. if {Conviction::%player%} is not set:
  6. if event-block is a dispenser:
  7. delete {_num}
  8. delete {_diap}
  9. set {_num} to number of golden apple in player's inventory
  10. set {_num2} to number of gold ingot in player's inventory
  11. set {_num3} to number of diamond in player's inventory
  12. if helmet slot of player is a diamond helmet:
  13. add 1 to {_diap}
  14. if chestplate slot of player is a diamond chestplate:
  15. add 1 to {_diap}
  16. if legging slot of player is a diamond leggings:
  17. add 1 to {_diap}
  18. if boots slot of player is a diamond boots:
  19. add 1 to {_diap}
  20. if player is holding a diamond:
  21. set {Conviction::%player%} to true
  22. remove 1 diamond from player
  23. send "{@prefix} §c3§8..."
  24. wait 1 second
  25. send "{@prefix} §e2§8..."
  26. wait 1 second
  27. send "{@prefix} §a1§8..."
  28. wait 1 second
  29. delete {Conviction::%player%}
  30. set {_diachance} to a random number between 0 and 100
  31. if {_diachance} is between 0 and 30:
  32. send "{@prefix} §cYou got nothing"
  33. chance of 30%:
  34. broadcast "{@prefix} §a%player% §7got §cnothing §8(§7%x-coordinate of player%, %z-coordinate of player% §8/ §a%{_num}% §eGap(s) §8/ §a%{_num2}% §eGold(s) §8/ §a%{_num3}% §bDiamond(s)§8)"
  35. launch ball large firework colored red at player timed 1
  36. if {_diachance} is between 30 and 65:
  37. send "{@prefix} §2You got §a1 §bdiamond§7!"
  38. chance of 30%:
  39. broadcast "{@prefix} §a%player% §7got §a1 diamond §8(§7%x-coordinate of player%, %z-coordinate of player% §8/ §a%{_num}% §eGap(s) §8/ §a%{_num2}% §eGold(s) §8/ §a%{_num3}% §bDiamond(s)§8)"
  40. launch ball large firework colored yellow at player timed 1
  41. give 1 diamond to player
  42. if {_diachance} is between 65 and 85:
  43. send "{@prefix} §2You got §a2 §bdiamond§7!"
  44. chance of 30%:
  45. broadcast "{@prefix} §a%player% §7got §a2 diamond §8(§7%x-coordinate of player%, %z-coordinate of player% §8/ §a%{_num}% §eGap(s) §8/ §a%{_num2}% §eGold(s) §8/ §a%{_num3}% §bDiamond(s)§8)"
  46. launch ball large firework colored orange at player timed 1
  47. give 2 diamond to player
  48. if {_diachance} is between 85 and 100:
  49. send "{@prefix} §2You got §a3 §bdiamond§7!"
  50. chance of 30%:
  51. broadcast "{@prefix} §a%player% §7got §a3 diamond §8(§7%x-coordinate of player%, %z-coordinate of player% §8/ §a%{_num}% §eGap(s) §8/ §a%{_num2}% §eGold(s) §8/ §a%{_num3}% §bDiamond(s)§8)"
  52. launch ball large firework colored green at player timed 1
  53. give 3 diamond to player
  54.  
  55. if player is holding a gold ingot:
  56. set {Conviction::%player%} to true
  57. remove 1 gold ingot from player
  58. send "{@prefix} §c3§8..."
  59. wait 1 second
  60. send "{@prefix} §e2§8..."
  61. wait 1 second
  62. send "{@prefix} §a1§8..."
  63. wait 1 second
  64. delete {Conviction::%player%}
  65. set {_goldchance} to a random number between 0 and 100
  66. if {_goldchance} is between 0 and 30:
  67. send "{@prefix} §cYou got nothing"
  68. chance of 30%:
  69. broadcast "{@prefix} §a%player% §7got §cnothing §8(§7%x-coordinate of player%, %z-coordinate of player% §8/ §a%{_num}% §eGap(s) §8/ §a%{_num2}% §eGold(s) §8/ §a%{_num3}% §bDiamond(s)§8)"
  70. launch ball large firework colored red at player timed 1
  71. if {_goldchance} is between 30 and 65:
  72. send "{@prefix} §2You got §a1 §6gold§7!"
  73. chance of 30%:
  74. broadcast "{@prefix} §a%player% §7got §a1 gold §8(§7%x-coordinate of player%, %z-coordinate of player% §8/ §a%{_num}% §eGap(s) §8/ §a%{_num2}% §eGold(s) §8/ §a%{_num3}% §bDiamond(s)§8)"
  75. launch ball large firework colored yellow at player timed 1
  76. give 1 gold ingot to player
  77. if {_goldchance} is between 65 and 85:
  78. send "{@prefix} §2You got §a2 §6gold§7!"
  79. chance of 30%:
  80. broadcast "{@prefix} §a%player% §7got §a2 gold §8(§7%x-coordinate of player%, %z-coordinate of player% §8/ §a%{_num}% §eGap(s) §8/ §a%{_num2}% §eGold(s) §8/ §a%{_num3}% §bDiamond(s)§8)"
  81. launch ball large firework colored orange at player timed 1
  82. give 2 gold ingot to player
  83. if {_goldchance} is between 85 and 100:
  84. send "{@prefix} §2You got §a3 §6gold§7!"
  85. chance of 30%:
  86. broadcast "{@prefix} §a%player% §7got §a3 gold §8(§7%x-coordinate of player%, %z-coordinate of player% §8/ §a%{_num}% §eGap(s) §8/ §a%{_num2}% §eGold(s) §8/ §a%{_num3}% §bDiamond(s)§8)"
  87. launch ball large firework colored green at player timed 1
  88. give 3 gold ingot to player
  89.  
  90. if player is holding a iron ingot:
  91. set {Conviction::%player%} to true
  92. remove 1 iron ingot from player
  93. send "{@prefix} §c3§8..."
  94. wait 1 second
  95. send "{@prefix} §e2§8..."
  96. wait 1 second
  97. send "{@prefix} §a1§8..."
  98. wait 1 second
  99. delete {Conviction::%player%}
  100. set {_ironchance} to a random number between 0 and 100
  101. if {_ironchance} is between 0 and 30:
  102. send "{@prefix} §cYou got nothing"
  103. chance of 30%:
  104. broadcast "{@prefix} §a%player% §7got §cnothing §8(§7%x-coordinate of player%, %z-coordinate of player% §8/ §a%{_num}% §eGap(s) §8/ §a%{_num2}% §eGold(s) §8/ §a%{_num3}% §bDiamond(s)§8)"
  105. launch ball large firework colored red at player timed 1
  106. if {_ironchance} is between 30 and 65:
  107. send "{@prefix} §2You got §a1 §7iron§7!"
  108. chance of 30%:
  109. broadcast "{@prefix} §a%player% §7got §a1 iron §8(§7%x-coordinate of player%, %z-coordinate of player% §8/ §a%{_num}% §eGap(s) §8/ §a%{_num2}% §eGold(s) §8/ §a%{_num3}% §bDiamond(s)§8)"
  110. launch ball large firework colored yellow at player timed 1
  111. give 1 iron ingot to player
  112. if {_ironchance} is between 65 and 85:
  113. send "{@prefix} §2You got §a2 §7iron§7!"
  114. chance of 30%:
  115. broadcast "{@prefix} §a%player% §7got §a1 iron §8(§7%x-coordinate of player%, %z-coordinate of player% §8/ §a%{_num}% §eGap(s) §8/ §a%{_num2}% §eGold(s) §8/ §a%{_num3}% §bDiamond(s)§8)"
  116. launch ball large firework colored orange at player timed 1
  117. give 2 iron ingot to player
  118. if {_ironchance} is between 85 and 100:
  119. send "{@prefix} §2You got §a3 §7iron§7!"
  120. chance of 30%:
  121. broadcast "{@prefix} §a%player% §7got §a1 iron §8(§7%x-coordinate of player%, %z-coordinate of player% §8/ §a%{_num}% §eGap(s) §8/ §a%{_num2}% §eGold(s) §8/ §a%{_num3}% §bDiamond(s)§8)"
  122. launch ball large firework colored green at player timed 1
  123. give 3 iron ingot to player
  124.  
  125. on skript load:
  126. delete {Conviction::*}
  127.  
  128. on craft of dispenser:
  129. cancel event
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement