Guest User

Untitled

a guest
Aug 19th, 2015
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.90 KB | None | 0 0
  1. command /efekty:
  2. trigger:
  3. open chest with 4 rows named "&2&lEfekty do zakupu!" to player
  4. format slot 10 of player with 1 of beacon named "&2Haste I" with lore "&f&cCzas trwania: 5 minut||&fKoszt: 32 emerlady" to close then run "dajefekt %player-arg% haste1"
  5. format slot 11 of player with 1 of beacon named "&2Haste II" with lore "&f&cCzas trwania: 10 minut||&fKoszt: 2x64 emeraldow" to close then run "dajefekt %player-arg% haste2"
  6. format slot 12 of player with 1 of diamond sword named "&cSila I" with lore "&f&cCzas trwania: 5 minut||&fKoszt: 4x64 emeraldow" to close then run "dajefekt %player-arg% sila"
  7. format slot 13 of player with 1 of nether star named "&fWysokie skakanie" with lore "&f&cCzas trwania: 5 minut||&fKoszt: 32 emeraldy" to close then run "dajefekt %player-arg% skok"
  8. format slot 14 of player with 1 of 353 named "&3Speed I" with lore "&f&cCzas trwania: 10 minut||&fKoszt: 32 emerlady" to close then run "dajefekt %player-arg% speed1"
  9. format slot 15 of player with 1 of 353 named "&3Speed II" with lore "&f&cCzas trwania: 10 minut||&fKoszt: 64 emerlady" to close then run "dajefekt %player-arg% speed2"
  10. format slot 16 of player with 1 of 377 named "&6Odpornosc na ogien" with lore "&f&cCzas trwania: 10 minut||&fKoszt: 3x64 emeraldow" to close then run "dajefekt %player-arg% fire"
  11. format slot 22 of player with 1 of 324 named "&c&lKliknij aby wyjsc!" to close
  12.  
  13. command /dajefekt [<player>] [<text>]:
  14. trigger:
  15. if arg 2 is "haste1":
  16. if {haste1.%player-arg%} is true:
  17. message "&cJuz masz ten efekt!" to player-arg
  18. else:
  19. if number of emeralds in the player-arg's inventory is more or equal to 64:
  20. set {haste1.%player-arg%} to true
  21. message "&2Efekt Zabojcy zostal zakupiony!" to player-arg
  22. remove 32 of emerald from player-arg's inventory
  23. apply haste 1 to player-arg for 300 seconds
  24. delete {haste.%player-arg%}
  25. else:
  26. message "&cNie masz tyle emeraldow!" to player-arg
  27.  
  28. else if arg 2 is "haste2":
  29. if {haste2.%player-arg%} is true:
  30. message "&cJuz masz ten efekt!" to player-arg
  31. else:
  32. if number of emeralds in the player-arg's inventory is more or equal to 128:
  33. set {haste2.%player-arg%} to true
  34. message "&2Efekt Haste II zostal zakupiony!" to player-arg
  35. remove 128 of emerald from player-arg's inventory
  36. apply haste 2 to player-arg for 600 seconds
  37. delete {haste2.%player-arg%}
  38. else:
  39. message "&cNie masz tyle emeraldow!" to player-arg
  40.  
  41. else if arg 2 is "sila":
  42. if {sila.%player-arg%} is true:
  43. message "&cJuz masz ten efekt!" to player-arg
  44. else:
  45. if number of emeralds in the player-arg's inventory is more or equal to 256:
  46. message "&2Efekt Sily zostal zakupiony!" to player-arg
  47. set {sila.%player-arg%} to true
  48. remove 256 of emerald from player-arg's inventory
  49. apply strength to player-arg for 300 seconds
  50. delete {sila.%player-arg%}
  51. else:
  52. message "&cNie masz tyle emeraldow!" to player-arg
  53.  
  54. else if arg 2 is "skok":
  55. if {skok.%player-arg%} is true:
  56. message "&cJuz masz ten efekt!" to player-arg
  57. else:
  58. if number of emeralds in the player-arg's inventory is more or equal to 32:
  59. message "&2Efekt Wysokiego skakania zostal zakupiony!" to player-arg
  60. set {sila.%player-arg%} to true
  61. remove 32 of emerald from player-arg's inventory
  62. apply jump boost 2 to player-arg for 300 seconds
  63. delete {sila.%player-arg%}
  64. else:
  65. message "&cNie masz tyle emeraldow!" to player-arg
  66.  
  67. else if arg 2 is "speed1":
  68. if {speed1.%player-arg%} is true:
  69. message "&cJuz masz ten efekt!" to player-arg
  70. else:
  71. if number of emeralds in the player-arg's inventory is more or equal to 32:
  72. message "&3Efekt Speed'a zostal zakupiony!" to player-arg
  73. set {speed1.%player-arg%} to true
  74. remove 32 of emerald from player-arg's inventory
  75. apply speed 1 to player-arg for 300 seconds
  76. delete {speed1.%player-arg%}
  77. else:
  78. message "&cNie masz tyle emeraldow!" to player-arg
  79.  
  80. else if arg 2 is "speed2":
  81. if {speed2.%player-arg%} is true:
  82. message "&cJuz masz ten efekt!" to player-arg
  83. else:
  84. if number of emeralds in the player-arg's inventory is more or equal to 64:
  85. message "&3Efekt Speed'a zostal zakupiony!" to player-arg
  86. set {speed2.%player-arg%} to true
  87. remove 64 of emerald from player-arg's inventory
  88. apply speed 2 to player-arg for 300 seconds
  89. delete {speed2.%player-arg%}
  90. else:
  91. message "&cNie masz tyle emeraldow!" to player-arg
  92.  
  93. else if arg 2 is "fire":
  94. if {fire.%player-arg%} is true:
  95. message "&cJuz masz ten efekt!" to player-arg
  96. else:
  97. if number of emeralds in the player-arg's inventory is more or equal to 192:
  98. message "&3Efekt Odpornosci na ogien zostal zakupiony!" to player-arg
  99. set {fire.%player-arg%} to true
  100. remove 192 of emerald from player-arg's inventory
  101. apply fire resistance to player-arg for 300 seconds
  102. delete {fire.%player-arg%}
  103. else:
  104. message "&cNie masz tyle emeraldow!" to player-arg
Advertisement
Add Comment
Please, Sign In to add comment