Guest User

KOD

a guest
Oct 19th, 2016
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.96 KB | None | 0 0
  1. options:
  2. #Procenty
  3. 1: 10
  4. 2: 0.5
  5. 3: 0.1
  6. 4: 0.1
  7. 5: 15
  8. 6: 23
  9. 7: 50
  10. #Itemy
  11. 1i: 1 of apple
  12. 2i: 2 of golden apple
  13. 3i: 1 of gold block
  14. 4i: 1 of ender pearl
  15. 5i: 5 of log
  16. 6i: 3 of gold nugget
  17. #Komunikaty
  18. 1k: &a 1 &cjablko
  19. 2k: &a 2 &6zlote jablka!
  20. 3k: &a 1 &6zloty blok!
  21. 4k: &a 1 &1ender perle!
  22. 5k: &a 5 &7sztuk drewna!
  23. 6k: &a 3 &6samorodki zlota!
  24. 7exp: &a 500 &bpunktow doswiadczenia
  25. tag: &aDostales
  26. #Komenda
  27. cl: "Zamknij"
  28. n1: "&cGracz"
  29. n2: "&6VIP"
  30. n3: "&3Crafting"
  31. l1: "Normal DROP"
  32. l2: "Extra DROP"
  33. c1: "coblex 0001gracz"
  34. c2: "coblex 0010craft"
  35. c3: "coblex 0011vip"
  36. ch1: " &f>>>&e&l INFO CobbleX &f<<<"
  37. ch2: " &f>>>&e&1DROP &cGracza &f<<<"
  38.  
  39. command /cobblex <text>:
  40. usage: /cobblex menu
  41. trigger:
  42. if argument 1 is "menu":
  43. open chest with 1 rows named {@ch1} to player
  44. wait 1 tick
  45. format slot 0 of player with 1 doors named "&a&l>> &4&lClose! &a&l<<" to close
  46. format slot 2 of player with 1 of iron bar named {@n1} with lore {@l1} to close then run {@c1}
  47. format slot 4 of player with 1 of crafting table named {@n3} to close then run {@c2}
  48. format slot 6 of player with 1 of gold bar named {@n2} with lore {@l2} to close then run {@c3}
  49. format slot 0 of player with 1 doors named "&a&l>> &4&lClose! &a&l<<" to close
  50. if argument 1 is "0001gracz":
  51. open chest with 1 rows named {@ch2} to player
  52. wait 1 tick
  53. format slot 0 of player with 1 apple named {@1k} with lore "Szansa" {@2}"%" to close
  54. format slot 2 of player with 2 of golden apple named {@2k} with lore "Szansa" {@2}"%" to be unstealable
  55. format slot 3 of player with 1 of gold block named {@3k} with lore "Szansa" {@3}"%" to be unstealable
  56. format slot 4 of player with 1 of ender pearl named {@4k} with lore "Szansa" {@4}"%" to be unstealable
  57. format slot 5 of player with 5 of log named {@5k} with lore "Szansa" {@5}"%" to be unstealable
  58. format slot 6 of player with 3 of gold nugget named {@6k} with lore "Szansa" {@6}"%" to be unstealable
  59. format slot 7 of player with 1 of exp bottle named {@7exp} with lore "Szansa" {@7}"%" to be unstealable
  60. on skript load:
  61. new Recipe "1";
  62. "1".Recipe.registerIngredient{1, 64 cobblestone};
  63. "1".Recipe.registerIngredient{2, 64 cobblestone};
  64. "1".Recipe.registerIngredient{3, 64 cobblestone};
  65. "1".Recipe.registerIngredient{4, 64 cobblestone};
  66. "1".Recipe.registerIngredient{5, 64 cobblestone};
  67. "1".Recipe.registerIngredient{6, 64 cobblestone};
  68. "1".Recipe.registerIngredient{7, 64 cobblestone};
  69. "1".Recipe.registerIngredient{8, 64 cobblestone};
  70. "1".Recipe.registerIngredient{9, 64 cobblestone};
  71. "1".Recipe.registerResult{wolf spawn egg named "&bCobbleX" with lore "Zobaczymy co jest w srodku"}
  72. "1".Recipe.register{};
  73.  
  74. on rightclick holding wolf spawn egg:
  75. chance of {@1}%:
  76. give player {@1i}
  77. remove 1 wolf spawn egg from player
  78. send "{@tag}{@1k}"
  79. set {kolejka} to 1
  80. wait 1 tick
  81. if {kolejka} is 0:
  82. chance of {@2}%:
  83. give player {@2i}
  84. remove 1 wolf spawn egg from player
  85. send "{@tag}{@2k}"
  86. set {kolejka} to 1
  87. wait 1 tick
  88. if {kolejka} is 0:
  89. chance of {@3}%:
  90. give player {@3i}
  91. remove 1 wolf spawn egg from player
  92. send "{@tag}{@3k}"
  93. set {kolejka} to 1
  94. wait 1 tick
  95. if {kolejka} is 0:
  96. chance of {@4}%:
  97. give player {@4i}
  98. remove 1 wolf spawn egg from player
  99. send "{@tag}{@4k}"
  100. set {kolejka} to 1
  101. wait 1 tick
  102. if {kolejka} is 0:
  103. chance of {@5}%:
  104. give player {@5i}
  105. remove 1 wolf spawn egg from player
  106. send "{@tag}{@5k}"
  107. set {kolejka} to 1
  108. wait 1 tick
  109. if {kolejka} is 0:
  110. chance of {@6}%:
  111. give player {@6i}
  112. remove 1 wolf spawn egg from player
  113. send "{@tag}{@6k}"
  114. wait 1 tick
  115. if {kolejka} is 0:
  116. chance of {@7}%:
  117. execute server command "exp 500 player"
  118. remove 1 wolf spawn egg from player
  119. send "{@tag}{@7exp}"
  120. wait 1 tick
  121. set {kolejka} to 0
  122. stop
Advertisement
Add Comment
Please, Sign In to add comment