BloodHead2001

Untitled

Oct 27th, 2014
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.32 KB | None | 0 0
  1. command /efekt:
  2. aliases: efekty, effect, Efekt
  3. trigger:
  4. open chest with 3 rows named "&2&m----&e&l Efekty &2&m----" to player
  5. #SILA
  6. format slot 1 of player with 1 of diamond sword named "&6&o&lSila I" with lore "&3Czas: 10 minut||&3Koszt: 16 Diametowych blok||&3Moc: I" to close then run "efektadd %player% Strength1"
  7. format slot 2 of player with 1 of diamond sword named "&6&o&lSila II" with lore "&3Czas: 15 minut||&3Koszt: 32 Diametowych blok||&3Moc: 2" to close then run "efektadd %player% Strength2"
  8. format slot 3 of player with 1 of diamond sword named "&6&o&lSila II" with lore "&3Czas: 20 minut||&3Koszt: 64 Diametowych blok||&3Moc: 2" to close then run "efektadd %player% Strength3"
  9. #SPEED
  10. format slot 5 of player with 1 of diamond boots named "&6&o&lSzybkosc I" with lore "&3Czas: 10 minut||&3Koszt: 16 Diametowych blok||&3Moc: I" to close then run "efektadd %player% Speed1"
  11. format slot 6 of player with 1 of diamond boots named "&6&o&lSzybkosc II" with lore "&3Czas: 15 minut||&3Koszt: 32 Diametowych blok||&3Moc: 2" to close then run "efektadd %player% Speed2"
  12. format slot 7 of player with 1 of diamond boots named "&6&o&lSzybkosc II" with lore "&3Czas: 20 minut||&3Koszt: 64 Diametowych blok||&3Moc: 2" to close then run "efektadd %player% Speed3"
  13. #anty fire
  14. format slot 4 of player with 1 of fire named "&6&o&lFire Resistance" with lore "&3Czas: 15 minut||&3Koszt: 16 Diametowych blok" to close then run "efektadd %player% FireR1"
  15. format slot 13 of player with 1 of fire named "&6&o&lFire Resistance" with lore "&3Czas: 30 minut||&3Koszt: 32 Diametowych blok" to close then run "efektadd %player% FireR2"
  16. #HASTE
  17. format slot 21 of player with 1 of beacon named "&6&o&lHaste I" with lore "&3Czas: 10 minut||&3Koszt: 16 Emeraldowych blok||&3Moc: I" to close then run "efektadd %player% Haste1"
  18. format slot 22 of player with 1 of beacon named "&6&o&lHaste II" with lore "&3Czas: 10 minut||&3Koszt: 32 Emeraldowych blok||&3Moc: II" to close then run "efektadd %player% Haste2"
  19. format slot 23 of player with 1 of beacon named "&6&o&lHaste II" with lore "&3Czas: 10 minut||&3Koszt: 64 Emeraldowych blok||&3Moc: II" to close then run "efektadd %player% Haste3"
  20.  
  21.  
  22. command /efektadd [<player>] [<text>]:
  23. executable by: console
  24. trigger:
  25. #----------------------------------------------------------------------------------------------------> FIRE RESISTANCE
  26. if arg 2 is "FireR1":
  27. if player-arg has 16 diamond block:
  28. subtract 16 diamond block from player-arg's inventory
  29. apply fire resistance 1 to the player-arg for 10 minutes
  30. send "&7GRACZ &6%arg 1% &7KUPIL &6FIRE RESISTANCE &7NA 10 MINUT!" to all players
  31. else:
  32. send "&6Aby to kupic muszisz posiadac &b16 Diametowych blokow!" to player-arg
  33. if arg 2 is "2":
  34. if player-arg has 32 diamond block:
  35. subtract 32 diamond block from player-arg's inventory
  36. apply fire resistance 1 to the player-arg for 30 minutes
  37. send "&7GRACZ &6%arg 1% &7KUPIL &6FIRE RESISTANCE &7NA 30 MINUT!" to all players
  38. else:
  39. send "&6Aby to kupic muszisz posiadac &b32 Diametowych blokow!" to player-arg
  40. #----------------------------------------------------------------------------------------------------> STRENGTH
  41. if arg 2 is "Strength1":
  42. if player-arg has 16 diamond block:
  43. subtract 16 diamond block from player-arg's inventory
  44. apply strength 1 to the player-arg for 10 minutes
  45. send "&7GRACZ &6%arg 1% &7KUPIL &6SILE 1 &7NA 10 MINUT!" to all players
  46. else:
  47. send "&6Aby to kupic muszisz posiadac &b64 Diametowych blokow!" to player-arg
  48. if arg 2 is "Strength2":
  49. if player-arg has 32 diamond block:
  50. subtract 32 diamond block from player-arg's inventory
  51. apply strength 2 to the player-arg for 15 minutes
  52. send "&7GRACZ &6%arg 1% &7KUPIL &6SILE 2 &7NA 15 MINUT!" to all players
  53. else:
  54. send "&6Aby to kupic muszisz posiadac &b32 Diametowych blokow!" to player-arg
  55. if arg 2 is "Strength3":
  56. if player-arg has 64 diamond block:
  57. subtract 64 diamond block from player-arg's inventory
  58. apply strength 2 to the player-arg for 20 minutes
  59. send "&7GRACZ &6%arg 1% &7KUPIL &6SILE 2 &7NA 20 MINUT!" to all players
  60. else:
  61. send "&6Aby to kupic muszisz posiadac &b64 Diametowych blokow!" to player-arg
  62. #----------------------------------------------------------------------------------------------------> SPEED
  63. if arg 2 is "Speed1":
  64. if player-arg has 16 diamond block:
  65. subtract 16 diamond block from player-arg's inventory
  66. apply SPEED 1 to the player-arg for 10 minutes
  67. send "&7GRACZ &6%arg 1% &7KUPIL &6SPEED 1 &7NA 10 MINUT!" to all players
  68. else:
  69. send "&6Aby to kupic muszisz posiadac &b16 diametowych blokow!" to player-arg
  70. if arg 2 is "Speed2":
  71. if player-arg has 32 diamond block:
  72. subtract 32 diamond block from player-arg's inventory
  73. apply SPEED 2 to the player-arg for 15 minutes
  74. send "&7GRACZ &6%arg 1% &7KUPIL &6SPEED 2 &7NA 15 MINUT!" to all players
  75. else:
  76. send "&6Aby to kupic muszisz posiadac &b32 diametowych blokow!" to player-arg
  77. if arg 2 is "Speed3":
  78. if player-arg has 64 diamond block:
  79. subtract 64 diamond block from player-arg's inventory
  80. apply SPEED 2 to the player-arg for 20 minutes
  81. send "&7GRACZ &6%arg 1% &7KUPIL &6SPEED 2 &7NA 20 MINUT!" to all players
  82. else:
  83. send "&6Aby to kupic muszisz posiadac &b64 diametowych blokow!" to player-arg
  84. #----------------------------------------------------------------------------------------------------> HASTE
  85. if arg 2 is "Haste1":
  86. if player-arg has 16 emerald block:
  87. subtract 16 emerald block from player-arg's inventory
  88. apply haste 1 to the player-arg for 10 minutes
  89. send "&7GRACZ &6%arg 1% &7KUPIL &6HASTE 1 &7NA 10 MINUT!" to all players
  90. else:
  91. send "&6Aby to kupic muszisz posiadac &a16 emeraldowych blokow!" to player-arg
  92. if arg 2 is "Haste2":
  93. if player-arg has 32 emerald block:
  94. subtract 32 emerald block from player-arg's inventory
  95. apply haste 2 to the player-arg for 15 minutes
  96. send "&7GRACZ &6%arg 1% &7KUPIL &6HASTE 2 &7NA 15 MINUT!!" to all players
  97. else:
  98. send "&6Aby to kupic muszisz posiadac &a32 emeraldowych blokow!" to player-arg
  99. if arg 2 is "Haste3":
  100. if player-arg has 64 emerald block:
  101. subtract 64 emerald block from player-arg's inventory
  102. apply haste 2 to the player-arg for 30 minutes
  103. send "&7GRACZ &6%arg 1% &7KUPIL &6HASTE 2 &7NA 30 MINUT!!!" to all players
  104. else:
  105. send "&6Aby to kupic muszisz posiadac &a64 emeraldowych blokow!" to player-arg
Advertisement
Add Comment
Please, Sign In to add comment