Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /efekty:
- trigger:
- open chest with 4 rows named "&2&lEfekty do zakupu!" to player
- 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"
- 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"
- 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"
- 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"
- 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"
- 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"
- 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"
- format slot 22 of player with 1 of fire named "&c&lKliknij aby wyjsc!" wiht lore "&f(Zamknij i wyjdz)"to close
- command /dajefekt [<player>] [<text>]:
- executable by: console
- trigger:
- if arg 2 is "haste1":
- if {haste1.%player-arg%} is true:
- message "&cJuz masz ten efekt!" to player-arg
- else:
- if number of emeralds in the player-arg's inventory is more or equal to 64:
- set {haste1.%player-arg%} to true
- message "&2Efekt Zabojcy zostal zakupiony!" to player-arg
- remove 32 of emerald from player-arg's inventory
- apply haste 1 to player-arg for 300 seconds
- delete {haste.%player-arg%}
- else:
- message "&cNie masz tyle emeraldow!" to player-arg
- else if arg 2 is "haste2":
- if {haste2.%player-arg%} is true:
- message "&cJuz masz ten efekt!" to player-arg
- else:
- if number of emeralds in the player-arg's inventory is more or equal to 128:
- set {haste2.%player-arg%} to true
- message "&2Efekt Haste II zostal zakupiony!" to player-arg
- remove 128 of emerald from player-arg's inventory
- apply haste 2 to player-arg for 600 seconds
- delete {haste2.%player-arg%}
- else:
- message "&cNie masz tyle emeraldow!" to player-arg
- else if arg 2 is "sila":
- if {sila.%player-arg%} is true:
- message "&cJuz masz ten efekt!" to player-arg
- else:
- if number of emeralds in the player-arg's inventory is more or equal to 256:
- message "&2Efekt Sily zostal zakupiony!" to player-arg
- set {sila.%player-arg%} to true
- remove 256 of emerald from player-arg's inventory
- apply strength to player-arg for 300 seconds
- delete {sila.%player-arg%}
- else:
- message "&cNie masz tyle emeraldow!" to player-arg
- else if arg 2 is "skok":
- if {skok.%player-arg%} is true:
- message "&cJuz masz ten efekt!" to player-arg
- else:
- if number of emeralds in the player-arg's inventory is more or equal to 32:
- message "&2Efekt Wysokiego skakania zostal zakupiony!" to player-arg
- set {sila.%player-arg%} to true
- remove 32 of emerald from player-arg's inventory
- apply jump boost 2 to player-arg for 300 seconds
- delete {sila.%player-arg%}
- else:
- message "&cNie masz tyle emeraldow!" to player-arg
- else if arg 2 is "speed1":
- if {speed1.%player-arg%} is true:
- message "&cJuz masz ten efekt!" to player-arg
- else:
- if number of emeralds in the player-arg's inventory is more or equal to 32:
- message "&3Efekt Speed'a zostal zakupiony!" to player-arg
- set {speed1.%player-arg%} to true
- remove 32 of emerald from player-arg's inventory
- apply speed 1 to player-arg for 300 seconds
- delete {speed1.%player-arg%}
- else:
- message "&cNie masz tyle emeraldow!" to player-arg
- else if arg 2 is "speed2":
- if {speed2.%player-arg%} is true:
- message "&cJuz masz ten efekt!" to player-arg
- else:
- if number of emeralds in the player-arg's inventory is more or equal to 64:
- message "&3Efekt Speed'a zostal zakupiony!" to player-arg
- set {speed2.%player-arg%} to true
- remove 64 of emerald from player-arg's inventory
- apply speed 2 to player-arg for 300 seconds
- delete {speed2.%player-arg%}
- else:
- message "&cNie masz tyle emeraldow!" to player-arg
- else if arg 2 is "fire":
- if {fire.%player-arg%} is true:
- message "&cJuz masz ten efekt!" to player-arg
- else:
- if number of emeralds in the player-arg's inventory is more or equal to 192:
- message "&3Efekt Odpornosci na ogien zostal zakupiony!" to player-arg
- set {fire.%player-arg%} to true
- remove 192 of emerald from player-arg's inventory
- apply fire resistance to player-arg for 300 seconds
- delete {fire.%player-arg%}
- else:
- message "&cNie masz tyle emeraldow!" to player-arg
Advertisement
Add Comment
Please, Sign In to add comment