Skocz do zawartości
  • 0

Problem z GUI


xEver1337

Pytanie

Witam napisalem skrypt na drop ktory wyglada tak: {to tylko jego fragment}

command /drop [<player>]:
    trigger:
        wait 1 tick
        open chest with 1 row named "&8&l[&7&lDrop&8&l]" to player
        wait 1 tick
        format slot 0 of player with stone named "&7&lDrop ze stone" to run "000712 stone %player%"
        format slot 1 of player with obsidian named "&7&lDrop z obsydianu" to run "000712 obsydian %player%"
        format slot 2 of player with leaves named "&7&lDrop z lisci" to run "000712 liscie %player%"
        format slot 8 of player with gold pickaxe named "&7&lStatystyki" to run "000713 statystyki %player%"
        stop
command /000712 [<text>] [<player>]:
    trigger:
        if arg 1 is "stone":
            open chest with 3 row named "&8&l[&7&lDrop&8&l]" to player-arg
            wait 1 tick
            format slot 0 of player-arg with diamond named "&b&lDiament" with lore "&9Szansa&7: &f1.50" to close
            format slot 1 of player-arg with emerald named "&2&lEmerald" with lore "&9Sznasa&7: &f2.75"  to close
            format slot 2 of player-arg with iron ingot named "&7&lZelazo" with lore "&9Szansa&7: &f5.0" to close
            format slot 3 of player-arg with gold ingot named "&6&lZloto" with lore "&9Szansa&7: &f2.0" to close
            format slot 4 of player-arg with Coal named "&8&lWegiel" with lore "&9Szansa&7: &f10.0" to close
            format slot 5 of player-arg with redstone named "&4&lRedstone" with lore "&9Szansa&7: &f8.50" to close
            format slot 6 of player-arg with book named "&5&lKsiazka" with lore "&9Szansa&7: &f1.5" to close
            format slot 7 of player-arg with ender pearl named "&3&lPerelka" with lore "&9Szansa&7: &f0.75" to close
            format slot 8 of player-arg with apple named "&c&lJablko" with lore "&9Szansa&7: &f1.85" to close
            format slot 18 of player-arg with xp bottle named "&f&lExp" with lore "&9Szansa&7: &f50.0" to close
            format slot 19 of player-arg with stone named "&7&lStone" with lore "&9Szansa&7: &f100.0" to close
            format slot 20 of player-arg with red wool named "&4&lPowrot" with lore "&7Kliknij aby powrocic do menu dropu" to run "drop %player%"

Problem tkwi tylko w ostatnim zdaniu:

   format slot 20 of player-arg with red wool named "&4&lPowrot" with lore "&7Kliknij aby powrocic do menu dropu" to run "drop %player%"

Gdy nacisne na czerwona welne to nie tepa mnie do glownego dropu tylko nic sie nie dzieje ;c

Pomozcie pls

 

Wstawiam kod do okienka z kodem, poprawiam tytuł //Michma1707

Edytowane przez Michma1707
Odnośnik do komentarza
Udostępnij na innych stronach

14 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

Widzisz... spróbuj to zmienić cały kawałek na:

command /drop [<player>] [<text>]:
    trigger:
        if arg 2 is not set:
            wait 1 tick
            open chest with 1 row named "&8&l[&7&lDrop&8&l]" to player
            wait 1 tick
            format slot 0 of player with stone named "&7&lDrop ze stone" to run "drop %player% stone"
            format slot 1 of player with obsidian named "&7&lDrop z obsydianu" to run "000712 obsydian %player%"
            format slot 2 of player with leaves named "&7&lDrop z lisci" to run "000712 liscie %player%"
            format slot 8 of player with gold pickaxe named "&7&lStatystyki" to run "000713 statystyki %player%"
            stop
        if arg 2 is "stone":
            open chest with 3 row named "&8&l[&7&lDrop&8&l]" to player-arg
            wait 1 tick
            format slot 0 of player with diamond named "&b&lDiament" with lore "&9Szansa&7: &f1.50" to close
            format slot 1 of player with emerald named "&2&lEmerald" with lore "&9Sznasa&7: &f2.75"  to close
            format slot 2 of player with iron ingot named "&7&lZelazo" with lore "&9Szansa&7: &f5.0" to close
            format slot 3 of player with gold ingot named "&6&lZloto" with lore "&9Szansa&7: &f2.0" to close
            format slot 4 of player with Coal named "&8&lWegiel" with lore "&9Szansa&7: &f10.0" to close
            format slot 5 of player with redstone named "&4&lRedstone" with lore "&9Szansa&7: &f8.50" to close
            format slot 6 of player with book named "&5&lKsiazka" with lore "&9Szansa&7: &f1.5" to close
            format slot 7 of player with ender pearl named "&3&lPerelka" with lore "&9Szansa&7: &f0.75" to close
            format slot 8 of player with apple named "&c&lJablko" with lore "&9Szansa&7: &f1.85" to close
            format slot 18 of player with xp bottle named "&f&lExp" with lore "&9Szansa&7: &f50.0" to close
            format slot 19 of player with stone named "&7&lStone" with lore "&9Szansa&7: &f100.0" to close
            format slot 20 of player with red wool named "&4&lPowrot" with lore "&7Kliknij aby powrocic do menu dropu" to close then run "drop %player%"

Jak nie zadziała to podaj Errory, jak są.

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0

Ale to dobrze wytabowane.. pisze 12spacji jest 3taby sa....

 

command /drop [<player>] [<text>]:
    trigger:
        if arg 2 is not set:
            wait 1 tick
            open chest with 1 row named "&8&l[&7&lDrop&8&l]" to player
            wait 1 tick
            format slot 0 of player with stone named "&7&lDrop ze stone" to run "drop %player% stone"
            format slot 1 of player with obsidian named "&7&lDrop z obsydianu" to run "000712 obsydian %player%"
            format slot 2 of player with leaves named "&7&lDrop z lisci" to run "000712 liscie %player%"
            format slot 8 of player with gold pickaxe named "&7&lStatystyki" to run "000713 statystyki %player%"
            stop
        if arg 2 is "stone":
            open chest with 3 row named "&8&l[&7&lDrop&8&l]" to player-arg
            wait 1 tick
            format slot 0 of player with diamond named "&b&lDiament" with lore "&9Szansa&7: &f1.50" to close
            format slot 1 of player with emerald named "&2&lEmerald" with lore "&9Sznasa&7: &f2.75"  to close
            format slot 2 of player with iron ingot named "&7&lZelazo" with lore "&9Szansa&7: &f5.0" to close
            format slot 3 of player with gold ingot named "&6&lZloto" with lore "&9Szansa&7: &f2.0" to close
            format slot 4 of player with Coal named "&8&lWegiel" with lore "&9Szansa&7: &f10.0" to close
            format slot 5 of player with redstone named "&4&lRedstone" with lore "&9Szansa&7: &f8.50" to close
            format slot 6 of player with book named "&5&lKsiazka" with lore "&9Szansa&7: &f1.5" to close
            format slot 7 of player with ender pearl named "&3&lPerelka" with lore "&9Szansa&7: &f0.75" to close
            format slot 8 of player with apple named "&c&lJablko" with lore "&9Szansa&7: &f1.85" to close
            format slot 18 of player with xp bottle named "&f&lExp" with lore "&9Szansa&7: &f50.0" to close
            format slot 19 of player with stone named "&7&lStone" with lore "&9Szansa&7: &f100.0" to close
            format slot 20 of player with red wool named "&4&lPowrot" with lore "&7Kliknij aby powrocic do menu dropu" to close then run "drop %player%"

Edytowane przez xEver1337
Odnośnik do komentarza
Udostępnij na innych stronach

  • 0

a po wytabowaniu, jakie masz errory?

@edit by nie nabijać postów:

1 minutę temu, xEver1337 napisał:

narazie nie wytabowalem ;c

to wytabuj :> i editnij  z moim cytatem (by też nie nabijać postów), chyba że chcesz mieć łączenie xd

od @Michma1707'y

Edytowane przez heyn
Odnośnik do komentarza
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

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