Skocz do zawartości
  • 0

wie ktos jak dodac placeholder na itemie w gui? bo jak proboje na nazwie itemku to wywala bledy


19 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
W dniu 9.09.2023 o 18:25, Fendi napisał:

pokaz kod jaki uzywasz

command /sektory [<text>]: trigger: open chest with 1 rows named "&6Sektory" to player set {_s} to 3 loop ("A", "B", "C"): if {sektor::%player%} is loop-value: set player's current inventory's slot {_s} to light green wool named "&6%loop-value%" with lore "&7Znajdujesz sie na tym sektorze" else: set player's current inventory's slot {_s} to red wool named "&6%loop-value%" with lore "&7Kliknij aby przeniesc sie na ten sektor" add 1 to {_s} on inventory click: if inventory name of current inventory of player is "&6Sektory": cancel event if clicked slot is 3: execute console command "Sektor A %player%" set {sektor::%player%} to "A" if clicked slot is 4: execute console command "Sektor B %player%" set {sektor::%player%} to "B" if clicked slot is 5: execute console command "Sektor C %player%" set {sektor::%player%} to "C

  • 0
48 minut temu, Pinczus napisał:

command /sektory [<text>]: trigger: open chest with 1 rows named "&6Sektory" to player set {_s} to 3 loop ("A", "B", "C"): if {sektor::%player%} is loop-value: set player's current inventory's slot {_s} to light green wool named "&6%loop-value%" with lore "&7Znajdujesz sie na tym sektorze" else: set player's current inventory's slot {_s} to red wool named "&6%loop-value%" with lore "&7Kliknij aby przeniesc sie na ten sektor" add 1 to {_s} on inventory click: if inventory name of current inventory of player is "&6Sektory": cancel event if clicked slot is 3: execute console command "Sektor A %player%" set {sektor::%player%} to "A" if clicked slot is 4: execute console command "Sektor B %player%" set {sektor::%player%} to "B" if clicked slot is 5: execute console command "Sektor C %player%" set {sektor::%player%} to "C

na litosc boska wklej to normalnie

  • 0
Godzinę temu, Fendi napisał:

na litosc boska wklej to normalnie

command /sektory [<text>]:
    trigger:
        open chest with 1 rows named "&6Sektory" to player
        set {_s} to 3
        loop ("A", "B", "C"):
            if {sektor::%player%} is loop-value:
                set player's current inventory's slot {_s} to light green wool named "&6%loop-value%" with lore "&7Znajdujesz sie na tym sektorze"
            else:
                set player's current inventory's slot {_s} to red wool named "&6%loop-value%" with lore "&7Kliknij aby przeniesc sie na ten sektor"
            add 1 to {_s}
on inventory click:
    if inventory name of current inventory of player is "&6Sektory":
        cancel event
        if clicked slot is 3:
            execute console command "Sektor A %player%"
            set {sektor::%player%} to "A"
        if clicked slot is 4:
            execute console command "Sektor B %player%"
            set {sektor::%player%} to "B"
        if clicked slot is 5:
            execute console command "Sektor C %player%"
            set {sektor::%player%} to "C"
 

 

dobrze jest?

  • 0
command /sektory [<text>]:
    trigger:
        set {_} to chest inventory with 1 rows named "&6Sektory" 
        set {_s} to 3
        loop ("A", "B", "C"):
            if {sektor::%player%} is loop-value:
                set slot {_s} of {_} to light green wool named "&6%loop-value%" with lore "&7Znajdujesz sie na tym sektorze"
            else:
                set slot {_s} of {_} to red wool named "&6%loop-value%" with lore "&7Kliknij aby przeniesc sie na ten sektor"
            add 1 to {_s}
        open {_} to player
on inventory click:
    event-inventory is not player's inventory
    if inventory name of event-inventory is "&6Sektory":
        cancel event
        if clicked slot is 3:
            execute console command "Sektor A %player%"
            set {sektor::%player%} to "A"
        if clicked slot is 4:
            execute console command "Sektor B %player%"
            set {sektor::%player%} to "B"
        if clicked slot is 5:
            execute console command "Sektor C %player%"
            set {sektor::%player%} to "C"

to mi bledu nie wywala

  • 0
Godzinę temu, Fendi napisał:
command /sektory [<text>]:
    trigger:
        set {_} to chest inventory with 1 rows named "&6Sektory" 
        set {_s} to 3
        loop ("A", "B", "C"):
            if {sektor::%player%} is loop-value:
                set slot {_s} of {_} to light green wool named "&6%loop-value%" with lore "&7Znajdujesz sie na tym sektorze"
            else:
                set slot {_s} of {_} to red wool named "&6%loop-value%" with lore "&7Kliknij aby przeniesc sie na ten sektor"
            add 1 to {_s}
        open {_} to player
on inventory click:
    event-inventory is not player's inventory
    if inventory name of event-inventory is "&6Sektory":
        cancel event
        if clicked slot is 3:
            execute console command "Sektor A %player%"
            set {sektor::%player%} to "A"
        if clicked slot is 4:
            execute console command "Sektor B %player%"
            set {sektor::%player%} to "B"
        if clicked slot is 5:
            execute console command "Sektor C %player%"
            set {sektor::%player%} to "C"

to mi bledu nie wywala

W sensie chciałbym dodać do itemku placeholder, online players który wywala bledy

  • 0
17 minut temu, Pinczus napisał:

W sensie chciałbym dodać do itemku placeholder, online players który wywala bledy

to pokaz ten placeholder, do niego również musisz miec skript-placholders jak i papi

  • 0
9 godzin temu, Fendi napisał:

to pokaz ten placeholder, do niego również musisz miec skript-placholders jak i papi

%online_players%

  • 0
6 godzin temu, Pinczus napisał:

%online_players%

w skrypcie można to normalnie pobrać

number of all players

 

  • 0
21 minut temu, CoFFeIN04 napisał:

w skrypcie można to normalnie pobrać

number of all players

 

command /sektory [<text>]:
    trigger:
        set {_} to chest inventory with 1 rows named "&6Sektory" 
        set {_s} to 3
        loop ("A", "B", "C"):
            if {sektor::%player%} is loop-value:
                set slot {_s} of {_} to light green wool named "&6%loop-value%" with lore "&7Znajdujesz sie na tym sektorze"
            else:
                set slot {_s} of {_} to red wool named "&6%loop-value%" with lore "&7Kliknij aby przeniesc sie na ten sektor" and &e%online_players%"
            add 1 to {_s}
        open {_} to player
on inventory click:
    event-inventory is not player's inventory
    if inventory name of event-inventory is "&6Sektory":
        cancel event
        if clicked slot is 3:
            execute console command "Sektor A %player%"
            set {sektor::%player%} to "A"
        if clicked slot is 4:
            execute console command "Sektor B %player%"
            set {sektor::%player%} to "B"
        if clicked slot is 5:
            execute console command "Sektor C %player%"
            set {sektor::%player%} to "C"

 

ja chce dodac do itemku to co jest podkreslone na niebiesko a nie zrobic swoj placeholder

  • 0
20 minut temu, Pinczus napisał:

command /sektory [<text>]:
    trigger:
        set {_} to chest inventory with 1 rows named "&6Sektory" 
        set {_s} to 3
        loop ("A", "B", "C"):
            if {sektor::%player%} is loop-value:
                set slot {_s} of {_} to light green wool named "&6%loop-value%" with lore "&7Znajdujesz sie na tym sektorze"
            else:
                set slot {_s} of {_} to red wool named "&6%loop-value%" with lore "&7Kliknij aby przeniesc sie na ten sektor" and &e%online_players%"
            add 1 to {_s}
        open {_} to player
on inventory click:
    event-inventory is not player's inventory
    if inventory name of event-inventory is "&6Sektory":
        cancel event
        if clicked slot is 3:
            execute console command "Sektor A %player%"
            set {sektor::%player%} to "A"
        if clicked slot is 4:
            execute console command "Sektor B %player%"
            set {sektor::%player%} to "B"
        if clicked slot is 5:
            execute console command "Sektor C %player%"
            set {sektor::%player%} to "C"

 

ja chce dodac do itemku to co jest podkreslone na niebiesko a nie zrobic swoj placeholder

command /sektory [<text>]:
    trigger:
        set {_} to chest inventory with 1 rows named "&6Sektory" 
        set {_s} to 3
        loop ("A", "B", "C"):
            if {sektor::%player%} is loop-value:
                set slot {_s} of {_} to light green wool named "&6%loop-value%" with lore "&7Znajdujesz sie na tym sektorze"
            else:
                set slot {_s} of {_} to red wool named "&6%loop-value%" with lore "&7Kliknij aby przeniesc sie na ten sektor" and "&a Gracze: %number of all players%"
            add 1 to {_s}
        open {_} to player
on inventory click:
    event-inventory is not player's inventory
    if inventory name of event-inventory is "&6Sektory":
        cancel event
        if clicked slot is 3:
            execute console command "Sektor A %player%"
            set {sektor::%player%} to "A"
        if clicked slot is 4:
            execute console command "Sektor B %player%"
            set {sektor::%player%} to "B"
        if clicked slot is 5:
            execute console command "Sektor C %player%"
            set {sektor::%player%} to "C"

 

  • 0
24 minuty temu, Fendi napisał:
command /sektory [<text>]:
    trigger:
        set {_} to chest inventory with 1 rows named "&6Sektory" 
        set {_s} to 3
        loop ("A", "B", "C"):
            if {sektor::%player%} is loop-value:
                set slot {_s} of {_} to light green wool named "&6%loop-value%" with lore "&7Znajdujesz sie na tym sektorze"
            else:
                set slot {_s} of {_} to red wool named "&6%loop-value%" with lore "&7Kliknij aby przeniesc sie na ten sektor" and "&a Gracze: %number of all players%"
            add 1 to {_s}
        open {_} to player
on inventory click:
    event-inventory is not player's inventory
    if inventory name of event-inventory is "&6Sektory":
        cancel event
        if clicked slot is 3:
            execute console command "Sektor A %player%"
            set {sektor::%player%} to "A"
        if clicked slot is 4:
            execute console command "Sektor B %player%"
            set {sektor::%player%} to "B"
        if clicked slot is 5:
            execute console command "Sektor C %player%"
            set {sektor::%player%} to "C"

 

dobra dzieki, a jak bym chcial 

%world_players_<world>% to co zrobic?

 

  • 0
33 minuty temu, Pinczus napisał:

dobra dzieki, a jak bym chcial 

%world_players_<world>% to co zrobic?

 

command /sektory [<text>]:
    trigger:
        set {_} to chest inventory with 1 rows named "&6Sektory" 
        set {_s} to 3
        loop ("A", "B", "C"):
            if {sektor::%player%} is loop-value:
                set slot {_s} of {_} to light green wool named "&6%loop-value%" with lore "&7Znajdujesz sie na tym sektorze"
            else:
                set slot {_s} of {_} to red wool named "&6%loop-value%" with lore "&7Kliknij aby przeniesc sie na ten sektor" and "&a Gracze: %world_players_<world>%"
            add 1 to {_s}
        open {_} to player
on inventory click:
    event-inventory is not player's inventory
    if inventory name of event-inventory is "&6Sektory":
        cancel event
        if clicked slot is 3:
            execute console command "Sektor A %player%"
            set {sektor::%player%} to "A"
        if clicked slot is 4:
            execute console command "Sektor B %player%"
            set {sektor::%player%} to "B"
        if clicked slot is 5:
            execute console command "Sektor C %player%"
            set {sektor::%player%} to "C"

potrzebujesz do tego papi i skript-placeholders

  • 0
40 minut temu, Fendi napisał:
command /sektory [<text>]:
    trigger:
        set {_} to chest inventory with 1 rows named "&6Sektory" 
        set {_s} to 3
        loop ("A", "B", "C"):
            if {sektor::%player%} is loop-value:
                set slot {_s} of {_} to light green wool named "&6%loop-value%" with lore "&7Znajdujesz sie na tym sektorze"
            else:
                set slot {_s} of {_} to red wool named "&6%loop-value%" with lore "&7Kliknij aby przeniesc sie na ten sektor" and "&a Gracze: %world_players_<world>%"
            add 1 to {_s}
        open {_} to player
on inventory click:
    event-inventory is not player's inventory
    if inventory name of event-inventory is "&6Sektory":
        cancel event
        if clicked slot is 3:
            execute console command "Sektor A %player%"
            set {sektor::%player%} to "A"
        if clicked slot is 4:
            execute console command "Sektor B %player%"
            set {sektor::%player%} to "B"
        if clicked slot is 5:
            execute console command "Sektor C %player%"
            set {sektor::%player%} to "C"

potrzebujesz do tego papi i skript-placeholders

https://imgur.com/a/G4itqnT

  • 0
3 minuty temu, Pinczus napisał:

bo pewnie nie masz jednego z pluginu/dodatku ktory napisalem wyżej, w papi musisz miec rowniez doinstalowany dodatek z pluginu jaki oferuje ten placeholder

  • 0
8 godzin temu, CoFFeIN04 napisał:

mozesz dac

amount of all players in world "world"

 

♥️ A umiesz dodać cooldown do tej komendy? 

Dołącz do dyskusji

Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.

Nieaktywny
Odpowiedz na pytanie...

×   Wklejono zawartość z formatowaniem.   Usuń formatowanie

  Dozwolonych jest tylko 75 emoji.

×   Odnośnik został automatycznie osadzony.   Przywróć wyświetlanie jako odnośnik

×   Przywrócono poprzednią zawartość.   Wyczyść edytor

×   Nie możesz bezpośrednio wkleić grafiki. Dodaj lub załącz grafiki z adresu URL.

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...