SHARE
TWEET

Untitled

a guest Jun 20th, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. command /efekty [<text>]:
  2.     aliases: efekt
  3.     trigger:
  4.         open chest with 4 rows named "&2&lEfekty" to player
  5.         wait 1 tick
  6.         loop 27+9 times:
  7.             if name of player's current inventory is "&2&lEfekty":
  8.                 set slot (loop-number)-1 of player's current inventory to 1 of Gray Stained Glass Pane named ""
  9.         if name of player's current inventory is "&2&lEfekty":    
  10.             format slot 10 of player with 1 of diamond pickaxe named "&aHaste I &7(&28minut&7)" with lore "||&7Kliknij aby zakupic Haste I na 8 Minut.||&2Koszt: &a64 Emeraldy||" to close then run [haste("1", player)]
  11.             format slot 12 of player with 1 of feather named "&aSpeed I &7(&28minut&7)" with lore "||&7Kliknij aby zakupic Speed I na 8 Minuty.||&2Koszt: &a64 Emeraldy||" to close then run [speed("1", player)]
  12.             format slot 14 of player with 1 of nether star named "&aSkok I &7(&28minut&7)" with lore "||&7Kliknij aby zakupic Skok I na 8 Minut.||&2Koszt: &a64 Emeraldy||" to close then run [skok("1", player)]
  13.             format slot 16 of player with 1 of diamond sword named "&aSila I &7(&28minut&7)" with lore "||&7Kliknij aby zakupic Sile I na 8 Minut.||&2Koszt: &a64 Emeraldy||" to close then run [sila(player)]
  14.             format slot 19 of player with 1 of diamond pickaxe named "&aHaste II &7(&23minuty&7)" with lore "||&7Kliknij aby zakupic Haste II na 3 Minuty.||&2Koszt: &a128 Emeraldow||" to close then run [haste("2", player)]
  15.             format slot 21 of player with 1 of feather named "&aSpeed II &7(&23minuty&7)" with lore "||&7Kliknij aby zakupic Speed II na 3 Minuty.||&2Koszt: &a128 Emeraldow" to close then run [speed("2", player)]
  16.             format slot 23 of player with 1 of nether star named "&aSkok II &7(&23minuty&7)" with lore "||&7Kliknij aby zakupic Skok II na 8 Minut.||&2Koszt: &a64 Emeraldy||" to close then run [skok("2", player)]        
  17.             format slot 25 of player with 1 of fire charge named "&aFire Resistance I &7(&28minut&7)" with lore "||&7Kliknij aby zakupic Fire Resistance I na 8 Minut.||&2Koszt: &a64 Emeraldy||" to close then run [ogien(player)]
  18.             format slot 35 of player with 1 of arrow named "&c&lZAMKNIJ" with lore "&7(Kliknij, aby zamknac)" to close
  19.  
  20. on inventory click:
  21.     if name of player's current inventory is "&2&lEfekty":
  22.         cancel event
  23.        
  24. function speed(t: text, p: player):
  25.     if {_t} is "1":
  26.         if {_p}'s inventory contains 64 emerald:
  27.             remove speed from {_p}
  28.             wait 1 second
  29.             apply speed potion of tier 1 to {_p} for 480 second
  30.             broadcast "&6&LM&E&lS &r&7» &a Gracz &e%{_p}% &azakupil efekt &6Speeda I. &aEfekty mozesz zakupic pod komenda /efekty."
  31.             remove 64 emerald from {_p}
  32.         else:
  33.             send "&6&LM&E&lS &r&7» &cNie masz wystarczajaco emeraldow w ekwipunku" to {_p}
  34.     if {_t} is "2":
  35.         if {_p}'s inventory contains 128 emerald:
  36.             remove speed from {_p}
  37.             wait 1 second
  38.             apply speed potion of tier 2 to {_p} for 180 second
  39.             broadcast "&6&LM&E&lS»  &aGracz &e%{_p}% &azakupil efekt &6Speeda II. &aEfekty mozesz zakupic pod komenda /efekty."
  40.             remove 128 emerald from {_p}
  41.         else:
  42.             send "&6&LM&E&lS &r&7» &cNie masz wystarczajaco emeraldow w ekwipunku" to {_p}
  43. function haste(t: text, p: player):
  44.     if {_t} is "1":
  45.         if {_p}'s inventory contains 64 emerald:
  46.             remove haste from {_p}
  47.             wait 1 second
  48.             apply haste potion of tier 1 to {_p} for 480 second
  49.             broadcast "&6&LM&E&lS &r&7»  &aGracz &e%{_p}% &azakupil efekt &6Haste I. &aEfekty mozesz zakupic pod komenda /efekty."
  50.             remove 64 emerald from {_p}
  51.         else:
  52.             send "&6&LM&E&lS &r&7» &cNie masz wystarczajaco emeraldow w ekwipunku" to {_p}
  53.     if {_t} is "2":
  54.         if {_p}'s inventory contains 128 emerald:
  55.             remove haste from {_p}
  56.             wait 1 second
  57.             apply haste potion of tier 2 to {_p} for 180 second
  58.             broadcast "&6&LM&E&lS &r&7»  &aGracz &e%{_p}% &azakupil efekt &6Haste II. &aEfekty mozesz zakupic pod komenda /efekty."
  59.             remove 128 emerald from {_p}
  60.         else:
  61.             send "&6&LM&E&lS &r&7» &cNie masz wystarczajaco emeraldow w ekwipunku" to {_p}
  62. function sila(p: player):
  63.     if {_p}'s inventory contains 64 emerald:
  64.         remove strength from {_p}
  65.         wait 1 second
  66.         apply strength potion of tier 1 to {_p} for 480 second
  67.         broadcast "&6&LM&E&lS &r&7»  &aGracz &e%{_p}% &azakupil efekt &cSily I. &aEfekty mozesz zakupic pod komenda /efekty."
  68.         remove 64 emerald from {_p}
  69.     else:
  70.         send "&6&LM&E&lS &r&7» &cNie masz wystarczajaco emeraldow w ekwipunku" to {_p}
  71. function ogien(p: player):
  72.     if {_p}'s inventory contains 64 emerald:
  73.         remove fire resistance from {_p}
  74.         wait 1 second
  75.         apply fire resistance potion of tier 1 to {_p} for 480 second
  76.         broadcast "&6&LM&E&lS &r&7»  &aGracz &e%{_p}% &azakupil efekt &6Odpornosci na ogien. &aEfekty mozesz zakupic pod komenda /efekty."
  77.         remove 64 emerald from {_p}
  78.     else:
  79.         send "&6&LM&E&lS &r&7» &cNie masz wystarczajaco emeraldow w ekwipunku" to {_p}
  80. function skok(t: text, p: player):
  81.     if {_t} is "1":
  82.         if {_p}'s inventory contains 64 emerald:
  83.             remove jump boost from {_p}
  84.             wait 1 second
  85.             apply jump boost potion of tier 1 to {_p} for 480 second
  86.             broadcast "&6&LM&E&lS &r&7»  &aGracz &e%{_p}% &azakupil efekt &6JumpBoosta I. &aEfekty mozesz zakupic pod komenda /efekty."
  87.             remove 64 emerald from {_p}
  88.         else:
  89.             send "&6&LM&E&lS &r&7» &cNie masz wystarczajaco emeraldow w ekwipunku do zakupu efektu" to {_p}
  90.     if {_t} is "2":
  91.         if {_p}'s inventory contains 64 emerald:
  92.             remove jump boost from {_p}
  93.             wait 1 second
  94.             apply jump boost potion of tier 2 to {_p} for 190 second
  95.             broadcast "&6&LM&E&lS &r&7»  &aGracz &e%{_p}% &azakupil efekt &6JumpBoosta II. &aEfekty mozesz zakupic pod komenda /efekty."
  96.             remove 64 emerald from {_p}
  97.         else:
  98.             send "&6&LM&E&lS &r&7» &cNie masz wystarczajaco emeraldow w ekwipunku" to {_p}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top