TheMrkoia

Untitled

Oct 10th, 2014
681
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.83 KB | None | 0 0
  1. #Skrypt na Marmur (Cobblex/Cobbley)
  2. #Niektore skladnie naleza do Lizak3 - Udzielil mi praw do tego kodu na pw :)
  3. #Reszta kodu nalezy do mnie.
  4.  
  5. #By TheMrkoia ;)
  6.  
  7. options:
  8. marmur: cracked brick
  9. wymagane_cmd: 1728 cobblestone
  10. obrazenia: 10
  11. enchant: thorns 10
  12. nazwa: "&7&lMarmur"
  13. wiadomosc_polozenie: "&aPostawiles &7&lMarmur&a!"
  14. sk: Marmur
  15. #wersja
  16. version: 1.3
  17. #Sk = nazwa skryptu, wpisz tu swoja nazwe skryptu (np. nazwa.sk) (bez .sk)
  18.  
  19.  
  20. on load:
  21. set {_nazwa} to "Marmur"
  22. Recipe.new{ {_nazwa} }
  23. {_nazwa}.Recipe.registerIngredient{1, 64 cobblestone}
  24. {_nazwa}.Recipe.registerIngredient{2, 64 cobblestone}
  25. {_nazwa}.Recipe.registerIngredient{3, 64 cobblestone}
  26. {_nazwa}.Recipe.registerIngredient{4, 64 cobblestone}
  27. {_nazwa}.Recipe.registerIngredient{5, 64 cobblestone}
  28. {_nazwa}.Recipe.registerIngredient{6, 64 cobblestone}
  29. {_nazwa}.Recipe.registerIngredient{7, 64 cobblestone}
  30. {_nazwa}.Recipe.registerIngredient{8, 64 cobblestone}
  31. {_nazwa}.Recipe.registerIngredient{9, 64 cobblestone}
  32. {_nazwa}.Recipe.registerResult{1 cracked brick of thorns 10 named "&7&lMarmur"}
  33. {_nazwa}.Recipe.register
  34.  
  35. #Komenda na tworzenie Marmuru
  36. command /marmur:
  37. permission: marmur.use.command
  38. trigger:
  39. player has {@wymagane_cmd}:
  40. remove {@wymagane_cmd} from player
  41. clear {marmur.%player%}
  42. wait a tick
  43. set {marmur.%player%} to a random integer from 1 to 6
  44. if {marmur.%player%} is 1:
  45. send "&aWylosowales 1 sztuke marmuru!"
  46. give a {@marmur} of {@enchant} named {@nazwa} to the player
  47. if {marmur.%player%} is 2:
  48. send "&aWylosowales 2 sztuki marmuru!"
  49. give a {@marmur} of {@enchant} named {@nazwa} to the player
  50. give a {@marmur} of {@enchant} named {@nazwa} to the player
  51. if {marmur.%player%} is 3:
  52. send "&aWylosowales 3 sztuki marmuru!"
  53. give a {@marmur} of {@enchant} named {@nazwa} to the player
  54. give a {@marmur} of {@enchant} named {@nazwa} to the player
  55. give a {@marmur} of {@enchant} named {@nazwa} to the player
  56. if {marmur.%player%} is 4:
  57. send "&aWylosowales 4 sztuki marmuru!"
  58. give a {@marmur} of {@enchant} named {@nazwa} to the player
  59. give a {@marmur} of {@enchant} named {@nazwa} to the player
  60. give a {@marmur} of {@enchant} named {@nazwa} to the player
  61. give a {@marmur} of {@enchant} named {@nazwa} to the player
  62. else:
  63. send "&4Blad:&c Nie posiadasz 27 stakow cobblestone"
  64. #Panel admina
  65. command /marmuradm [<text="pomoc">] [<items>]:
  66. permission: marmur.admin
  67. trigger:
  68. argument 1 is not "pomoc", "dodaj", "usun" or "usunall":
  69. send "&4Blad: &cBrak takiej komendy, lub zla nazwa przedmiotu!"
  70. stop
  71. argument 1 is "pomoc":
  72. send "&7 >> &6Marmur Admin Panel &7<< "
  73. send "&6/marmuradm dodaj <item> - &7Dodanie nowego itemu do listy"
  74. send "&6/marmuradm usun <item> - &7Usuwanie itemu z listy"
  75. send "&6/marmuradm usunall - &7Usuwa wszystkie itemy z listy &7(&6*TEST*&"
  76. send "&7Lista:&c %{cobblelose::*}%"
  77. send "&7Skrypt stworzony przez &6AdamGrzegorz &7:)"
  78. argument 1 is "dodaj":
  79. if argument 2 is not set:
  80. send "&4Blad: &cWpisz nazwe przedmiotu!"
  81. else:
  82. add argument 2 to {cobblelose::*}
  83. send "&6>> &7Dodano &6'%arg 2%'&7 do z listy marmuru"
  84. argument 1 is "usun":
  85. if argument 2 is not set:
  86. send "&4Blad: &cWpisz nazwe przedmiotu!"
  87. else:
  88. remove argument 2 from {cobblelose::*}
  89. send "&6>> &7Usunieto &6'%arg 2%' &7z listy marmuru"
  90. argument 1 is "usunall"
  91. clear {cobblelose::*}
  92. send "&6>> &7Usunieto &6cala liste &7marmuru bezpowrotnie!"
  93. on place of {@marmur}:
  94. send {@wiadomosc_polozenie} to player
  95.  
  96.  
  97. on break of {@marmur}:
  98. cancel event
  99. set event-block to air
  100. damage player's tool by {@obrazenia}
  101. drop a random item of {cobblelose::*} at event-block
  102.  
  103. command /marmurdrop:
  104. permission: marmur.drop
  105. trigger:
  106. send "&6Lista dropu z marmuru:"
  107. send "&7%{cobblelose::*}%"
Advertisement
Add Comment
Please, Sign In to add comment