xBetter

Untitled

Feb 22nd, 2016
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.93 KB | None | 0 0
  1. #- - - - - - - - - - - - - - - - - - - - - - -#
  2. #-Autor skryptu: xBetter #
  3. #-WERSJA: 2.0 #
  4. #-Komendy: #
  5. #-/obsydian - Informacje o Obsydianarce #
  6. #- - - - - -Licencja skryptu- - - - - - - - - #
  7. #-Zakaz podszywania sie pod autora. #
  8. #-Zakaz usuwania autora oraz licencji. #
  9. #-Zabraniam sprzedazy skryptu. #
  10. #- - - - - - - - - - - - - - - - - - - - - - -#
  11. # Opcje
  12. #- - - - - - - - - - - - - - - - - - - - - - -#
  13.  
  14. options:
  15.  
  16. obsydian: 80.0% # Szansa Na Wypadniecie Obsydianu
  17.  
  18. czas: 30 # Czas Regeneracj Obsydianarki
  19.  
  20. exp: 5% # Drop Expa Z Obsydianu
  21.  
  22. crafting_1: obsidian
  23. crafting_2: obsidian
  24. crafting_3: obsidian
  25. crafting_4: obsidian
  26. crafting_5: obsidian
  27. crafting_6: obsidian
  28. crafting_7: obsidian
  29. crafting_8: obsidian
  30. crafting_9: obsidian
  31.  
  32. on script load:
  33. register new shaped recipe for sponge named "&8######## &c&LGENERATOR OBSYDIANU &8########" using {@crafting_1}, {@crafting_2}, {@crafting_3}, {@crafting_4}, {@crafting_5}, {@crafting_6}, {@crafting_7}, {@crafting_8}, {@crafting_9}
  34. stop
  35. variables:
  36. {moss.wlaczone} = true
  37. on place a mossy cobblestone:
  38. {moss.wlaczone} is true:
  39. cancel event
  40. on mine of mossy cobblestone:
  41. chance of {@exp}
  42. add 300 xp to the player
  43. on mine of mossy cobblestone:
  44. if player is holding diamond pickaxe of fortune 0:
  45. chance of {@obsydian}:
  46. give a random number between 5 and 5 of obsidian to the player
  47. stop
  48. on mine of mossy cobblestone:
  49. if player is holding diamond pickaxe of fortune 1:
  50. chance of {@obsydian}:
  51. give a random number between 10 and 5 of obsidian to the player
  52. stop
  53. on mine of mossy cobblestone:
  54. if player is holding diamond pickaxe of fortune 2:
  55. chance of {@obsydian}:
  56. give a random number between 13 and 5 of obsidian to the player
  57. stop
  58. on mine of mossy cobblestone:
  59. if player is holding diamond pickaxe of fortune 3:
  60. chance of {@obsydian}:
  61. give a random number between 15 and 5 of obsidian to the player
  62. stop
  63. on place of sponge:
  64. if name of the player's tool is "&8######## &c&LGENERATOR OBSYDIANU &8########":
  65. set {s.%event-block%} to true
  66. wait 1 second
  67. set event-block to mossy cobblestone
  68. stop
  69. on break of mossy cobblestone:
  70. if {s.%event-block%} is true:
  71. if player is holding gold pickaxe:
  72. cancel event
  73. set block to air
  74. if player can hold 1 sponge named "&8######## &c&LGENERATOR OBSYDIANU &8########":
  75. give 1 sponge named "&8######## &c&LGENERATOR OBSYDIANU &8########" to the player
  76. stop
  77. else:
  78. drop 1 sponge named "&8######## &c&LGENERATOR OBSYDIANU &8########"
  79. stop
  80. else:
  81. set {s.%event-block%} to true
  82. if player is pickaxe:
  83. cancel event
  84. set block to air
  85. wait {@czas} second
  86. set event-block to mossy cobblestone
  87. stop
  88. command /obsydian [<text>]:
  89. trigger:
  90. if arg 1 is not set:
  91. send "&7-----------------------------------"
  92. send "&9Crafting obsydianarki pod komenda /crafting"
  93. send "&9Obsydianarka regenruje sie co 30 sek"
  94. send "&9Obsydian z obsydianarki dropi tylko diamentowym kilofem!"
  95. send "&7-----------------------------------"
  96. stop
Advertisement
Add Comment
Please, Sign In to add comment