Guest User

skrypt

a guest
Jan 31st, 2015
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.02 KB | None | 0 0
  1. options: <!--- Linijka dodaje nam opcje do skryptu.-------!>
  2. CobbleX: smooth bricks
  3. wymagane_cmd: 576 cobblestone
  4. obrazenia: 10
  5. enchant: thorns 3
  6. nazwa: "&7Cobble&aX"
  7. cWiad: &aPostawiles &7&lCobble&a&lX&f!
  8. # Zelazo:
  9. dIron: 20
  10. # Zloto:
  11. dGold: 15
  12. # Diamenty:
  13. dDiax: 10
  14. # Emeraldy:
  15. dEmer: 10
  16. #Perly kresu:
  17. dPerla: 10
  18. #Biblioteczki:
  19. dBiblio: 10
  20. #Obsydian:
  21. dObsy: 50
  22. #Wegiel:
  23. dWegiel: 70
  24. mIron: &bTwoja niespodzianka to: &7Zelazo
  25. mGold: &bTwoja niespodzianka to: &6Zloto
  26. mDiax: &bTwoja niespodzianka to: &bDiament
  27. mEmer: &bTwoja niespodzianka to: &aEmerald
  28. mPerla: &bTwoja niespodzianka to: &9Perla Kresu
  29. mBiblio: &bTwoja niespodzianka to: &cBiblioteczka
  30. mObsy: &bTwoja niespodzianka to: &3Obsydian
  31. mWegiel: &bTwoja niespodzianka to: &0Wegiel
  32. tag: &b[&7Cobble&aX&b]
  33. on load:
  34. set {_nazwa} to "&7Cobble&aX"
  35. Recipe.new{ {_nazwa} }
  36. {_nazwa}.Recipe.registerIngredient{1, 64 cobblestone}
  37. {_nazwa}.Recipe.registerIngredient{2, 64 cobblestone}
  38. {_nazwa}.Recipe.registerIngredient{3, 64 cobblestone}
  39. {_nazwa}.Recipe.registerIngredient{4, 64 cobblestone}
  40. {_nazwa}.Recipe.registerIngredient{5, 64 cobblestone}
  41. {_nazwa}.Recipe.registerIngredient{6, 64 cobblestone}
  42. {_nazwa}.Recipe.registerIngredient{7, 64 cobblestone}
  43. {_nazwa}.Recipe.registerIngredient{8, 64 cobblestone}
  44. {_nazwa}.Recipe.registerIngredient{9, 64 cobblestone}
  45. {_nazwa}.Recipe.registerResult{4 decorated bricks of thorns 3 named "&7Cobble&aX"}
  46. {_nazwa}.Recipe.register
  47.  
  48. on place of decorated bricks:
  49. send "{@cWiad}"
  50.  
  51. on break decorated bricks:
  52. if player's tool is pickaxe:
  53. cancel event
  54. set event-block to air
  55. chance of {@dIron}%:
  56. give 1 iron ingot to the player
  57. send "{@tag} {@mIron}"
  58. chance of {@dGold}%:
  59. give 1 gold ingot to the player
  60. send "{@tag} {@mGold}"
  61. chance of {@dDiax}%:
  62. give 1 diamond to the player
  63. send "{@tag} {@mDiax}"
  64. chance of {@dEmer}%:
  65. give 1 emerald to the player
  66. send "{@tag} {@mEmer}"
  67. chance of {@dPerla}%:
  68. give 1 ender pearl to the player
  69. send "{@tag} {@mPerla}"
  70. chance of {@dBiblio}%:
  71. give 1 bookshelf to the player
  72. send "{@tag} {@mBiblio}"
  73. chance of {@dObsy}%:
  74. give 1 obsidian to the player
  75. send "{@tag} {@mObsy}"
  76. chance of {@dWegiel}%:
  77. give 1 coal to the player
  78. send "{@tag} {@mWegiel}"
Advertisement
Add Comment
Please, Sign In to add comment