Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # # # # # # # # # # #
- # Options #
- # # # # # # # # # # #
- options:
- prefix: &8[&9Efekty&8]&7
- tlo: 160:15
- # # # # # # # # # # #
- # Command #
- # # # # # # # # # # #
- command /Efekt:
- aliases: efekty, efect
- permission: admin
- permission message: Juz niedlugo! :D
- trigger:
- wait 2 ticks
- open chest with 3 rows named "&8» &9&lEfekty &8«" to player
- wait a tick
- # # # # # #
- format slot 0 of player with 1 {@tlo} named "&7" with lore "" to close
- format slot 1 of player with 1 {@tlo} named "&7" with lore "" to close
- format slot 2 of player with 1 {@tlo} named "&7" with lore "" to close
- format slot 3 of player with 1 {@tlo} named "&7" with lore "" to close
- format slot 4 of player with 1 {@tlo} named "&7" with lore "" to close
- format slot 5 of player with 1 {@tlo} named "&7" with lore "" to close
- format slot 6 of player with 1 {@tlo} named "&7" with lore "" to close
- format slot 7 of player with 1 {@tlo} named "&7" with lore "" to close
- format slot 8 of player with 1 {@tlo} named "&7" with lore "" to close
- format slot 9 of player with 1 {@tlo} named "&7" with lore "" to close
- format slot 10 of player with 1 {@tlo} named "&7" with lore "" to close
- # # # # # # # # # #
- # Efekty GUI #
- # # # # # # # # # #
- format slot 11 of player with 1 water bottle named "&7Efekt &cSila I &7na &95 &7minut" with lore "&7Koszt &95 &7blokow emeraldow" to close then run "addefekt %player% 1"
- format slot 12 of player with 1 water bottle named "&7Efekt &cSila I &7na &915 &7minut" with lore "&7Koszt &915 &7blokow emeraldow" to close then run "addefekt %player% 2"
- format slot 13 of player with 1 {@tlo} named "&7" with lore "" to close
- format slot 14 of player with 1 water bottle named "&7Efekt na &9Niewidzialnosc I &7na &93 &7minuty" with lore "&7Koszt &94 &7bloki emeraldow" to close then run "addefekt %player% 3"
- format slot 15 of player with 1 water bottle named "&7Efekt na &9Niewidzialnosc I &7na &910 &7minut" with lore "&7Koszt &98 &7blokow emeraldow" to close then run "addefekt %player% 4"
- # # # # # #
- format slot 16 of player with 1 {@tlo} named "&7" with lore "" to close
- format slot 17 of player with 1 {@tlo} named "&7" with lore "" to close
- format slot 18 of player with 1 {@tlo} named "&7" with lore "" to close
- format slot 19 of player with 1 {@tlo} named "&7" with lore "" to close
- format slot 20 of player with 1 {@tlo} named "&7" with lore "" to close
- format slot 21 of player with 1 {@tlo} named "&7" with lore "" to close
- format slot 22 of player with 1 {@tlo} named "&7" with lore "" to close
- format slot 23 of player with 1 {@tlo} named "&7" with lore "" to close
- format slot 24 of player with 1 {@tlo} named "&7" with lore "" to close
- format slot 25 of player with 1 {@tlo} named "&7" with lore "" to close
- format slot 26 of player with 1 {@tlo} named "&7" with lore "" to close
- # # # # # # # # #
- # Koniec GUI #
- # # # # # # # # #
- # # # # # # # # # # #
- # Add Effect #
- # # # # # # # # # # #
- command /addefekt [<player>] [<text>]:
- trigger:
- if sender is console:
- if arg 2 is "1": # Sila I x1
- if player arg has 5 block of emerald:
- remove 5 emerald blocks from player arg's inventory
- remove strength from player
- wait a tick
- apply Strength to the player arg for 300 seconds
- send "{@prefix} &7Otrzymales &9Sile I &7na 5 minut !" to player arg
- broadcast "{@prefix} &7%player-arg% kupil efekt &cSila I&7 na 5 minut!"
- else:
- send "{@prefix} &cNie posiadasz 5 blokow emeraldu!" to player arg
- stop
- if arg 2 is "2": # Sila 1 x2
- if player arg has 15 block of emerald:
- remove 15 emerald blocks from player arg's inventory
- wait a tick
- remove strength from player
- apply Strength to the player arg for 900 seconds
- send "{@prefix} &7Otrzymales &9Sile I &7na 15 minut !" to player arg
- broadcast "{@prefix} &7%player-arg% kupil efekt &cSila I&7 na 15 minut!"
- else:
- send "{@prefix} &cNie posiadasz 15 blokow emeraldu" to player arg
- stop
- if arg 2 is "3": # Niewidzialnosc 1 x1
- if player arg has 4 block of emerald:
- remove 4 emerald blocks from player arg's inventory
- wait a tick
- remove invisibility from player
- apply Invisibility to the player arg for 180 seconds
- send "{@prefix} &7Otrzymales &9Niewidzialnosc I &7na 3 minuty !" to player arg
- broadcast "{@prefix} &7%player-arg% kupil efekt &9Niewidzialnosc I&7 na 3 minuty!"
- else:
- send "{@prefix} &cNie posiadasz 4 blokow emeraldu" to player arg
- stop
- if arg 2 is "4": # Niewidzialosc 1 x2
- if player arg has 12 block of emerald:
- remove 12 emerald blocks from player arg's inventory
- wait a tick
- remove invisibility from player
- apply Strength to the player arg for 600 seconds
- send "{@prefix} &7Otrzymales &9Niewidzialnosc I &7na 10 minut !" to player arg
- broadcast "{@prefix} &7%player-arg% kupil efekt &9Niewidzialnosc I&7 na 10 minut!"
- else:
- send "{@prefix} &cNie posiadasz 12 blokow emeraldu" to player arg
- stop
- else:
- send "{@prefix} &cTa komende moze wykonywac tylko konsola!" to player arg
- stop
- # # # # # # # # #
- # End Of Skript #
- # By #
- # Mroczny337 #
- # # # # # # # # #
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement