SHARE
TWEET

Untitled

a guest Jun 20th, 2019 57 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(&28minut&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 " &r &3Mc&bToday &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 "&r &3Mc&bToday &r&7» &cNie masz wystarczajaco emeraldow w ekwipunku" to {_p}
  34.     if {_t} is "2":
  35.         if {_p}'s command /efekty [<text>]:
  36.     aliases: efekt
  37.     trigger:
  38.         open chest with 4 rows named "&2&lEfekty" to player
  39.         wait 1 tick
  40.         loop 27+9 times:
  41.             if name of player's current inventory is "&2&lEfekty":
  42.                 set slot (loop-number)-1 of player's current inventory to 1 of Gray Stained Glass Pane named ""
  43.         if name of player's current inventory is "&2&lEfekty":     
  44.             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)]
  45.             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)]
  46.             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)]
  47.             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)]
  48.             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)]
  49.             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)]
  50.             format slot 23 of player with 1 of nether star named "&aSkok II &7(&28minut&7)" with lore "||&7Kliknij aby zakupic Skok II na 8 Minut.||&2Koszt: &a64 Emeraldy||" to close then run [skok("2", player)]        
  51.             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)]
  52.             format slot 35 of player with 1 of arrow named "&c&lZAMKNIJ" with lore "&7(Kliknij, aby zamknac)" to close 
  53.  
  54. on inventory click:
  55.     if name of player's current inventory is "&2&lEfekty":
  56.         cancel event
  57.        
  58. function speed(t: text, p: player):
  59.     if {_t} is "1":
  60.         if {_p}'s inventory contains 64 emerald:
  61.             remove speed from {_p}
  62.             wait 1 second
  63.             apply speed potion of tier 1 to {_p} for 480 second
  64.             broadcast " &r &6&LM&E&lS &r&7» &a Gracz &e%{_p}% &azakupil efekt &6Speeda I. &aEfekty mozesz zakupic pod komenda /efekty."
  65.             remove 64 emerald from {_p}
  66.         else:
  67.             send "&r &6&LM&E&lS &r&7» &cNie masz wystarczajaco emeraldow w ekwipunku" to {_p}
  68.     if {_t} is "2":
  69.         if {_p}'s inventory contains 128 emerald:
  70.             remove speed from {_p}
  71.             wait 1 second
  72.             apply speed potion of tier 2 to {_p} for 180 second
  73.             broadcast " &r &6&LM&E&lS»  &aGracz &e%{_p}% &azakupil efekt &6Speeda II. &aEfekty mozesz zakupic pod komenda /efekty."
  74.             remove 64 emerald from {_p}
  75.         else:
  76.             send "&r &6&LM&E&lS &r&7» &cNie masz wystarczajaco emeraldow w ekwipunku" to {_p}
  77. function haste(t: text, p: player):
  78.     if {_t} is "1":
  79.         if {_p}'s inventory contains 64 emerald:
  80.             remove haste from {_p}
  81.             wait 1 second
  82.             apply haste potion of tier 1 to {_p} for 480 second
  83.             broadcast " &r &6&LM&E&lS &r&7»  &aGracz &e%{_p}% &azakupil efekt &6Haste I. &aEfekty mozesz zakupic pod komenda /efekty."
  84.             remove 64 emerald from {_p}
  85.         else:
  86.             send "&r &6&LM&E&lS &r&7» &cNie masz wystarczajaco emeraldow w ekwipunku" to {_p}
  87.     if {_t} is "2":
  88.         if {_p}'s inventory contains 128 emerald:
  89.             remove haste from {_p}
  90.             wait 1 second
  91.             apply haste potion of tier 2 to {_p} for 180 second
  92.             broadcast " &r &6&LM&E&lS &r&7»  &aGracz &e%{_p}% &azakupil efekt &6Haste II. &aEfekty mozesz zakupic pod komenda /efekty."
  93.             remove 64 emerald from {_p}
  94.         else:
  95.             send "&r &6&LM&E&lS &r&7» &cNie masz wystarczajaco emeraldow w ekwipunku" to {_p}
  96. function sila(p: player):
  97.     if {_p}'s inventory contains 64 emerald:
  98.         remove strength from {_p}
  99.         wait 1 second
  100.         apply strength potion of tier 1 to {_p} for 480 second
  101.         broadcast " &r &6&LM&E&lS &r&7»  &aGracz &e%{_p}% &azakupil efekt &cSily I. &aEfekty mozesz zakupic pod komenda /efekty."
  102.         remove 64 emerald from {_p}
  103.     else:
  104.         send "&r &6&LM&E&lS &r&7» &cNie masz wystarczajaco emeraldow w ekwipunku" to {_p}
  105. function ogien(p: player):
  106.     if {_p}'s inventory contains 64 emerald:
  107.         remove fire resistance from {_p}
  108.         wait 1 second
  109.         apply fire resistance potion of tier 1 to {_p} for 480 second
  110.         broadcast " &r &6&LM&E&lS &r&7»  &aGracz &e%{_p}% &azakupil efekt &6Odpornosci na ogien. &aEfekty mozesz zakupic pod komenda /efekty."
  111.         remove 64 emerald from {_p}
  112.     else:
  113.         send "&r &6&LM&E&lS &r&7» &cNie masz wystarczajaco emeraldow w ekwipunku" to {_p}
  114. function skok(t: text, p: player):
  115.     if {_t} is "1":
  116.         if {_p}'s inventory contains 64 emerald:
  117.             remove jump boost from {_p}
  118.             wait 1 second
  119.             apply jump boost potion of tier 1 to {_p} for 480 second
  120.             broadcast " &r &6&LM&E&lS &r&7»  &aGracz &e%{_p}% &azakupil efekt &6JumpBoosta I. &aEfekty mozesz zakupic pod komenda /efekty."
  121.             remove 64 emerald from {_p}
  122.         else:
  123.             send "&r &6&LM&E&lS &r&7» &cNie masz wystarczajaco emeraldow w ekwipunku do zakupu efektu" to {_p}
  124.     if {_t} is "2":
  125.         if {_p}'s inventory contains 128 emerald:
  126.             remove jump boost from {_p}
  127.             wait 1 second
  128.             apply jump boost potion of tier 2 to {_p} for 480 second
  129.             broadcast " &r &6&LM&E&lS &r&7»  &aGracz &e%{_p}% &azakupil efekt &6JumpBoosta II. &aEfekty mozesz zakupic pod komenda /efekty."
  130.             remove 64 emerald from {_p}
  131.         else:
  132.             send "&r &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