Skocz do zawartości
  • 0

Błąd skript


Syntetik008

Pytanie

5 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
1 godzinę temu, xAxee napisał:

podaj kod.

command /itemy:
	trigger:
		if player has permissions "vip.itemy":
			open chest with 1 row named "&8» &4&lITEMY NA GILDIE" to player
			format slot 0 of player with 32 diamond block named "&8» &9&lBLOKI DIAX" with lore "&cPosiadasz:||&2● &7Enderchest: &a%amount of diamond block in player's enderchest%&8/&a32||&2● &7Ekwipunek: &a%amount of diamond block in player's inventory%&8/&a32" to be unstealable
			format slot 1 of player with 32 iron block named "&8» &9&lBLOKI ZELAZA" with lore "&cPosiadasz:||&2● &7Enderchest: &a%amount of iron block in player's enderchest%&8/&a32||&2● &7Ekwipunek: &a%amount of iron block in player's inventory%&8/&a32" to be unstealable
			format slot 2 of player with 32 tnt named "&8» &9&lTNT" with lore "&cPosiadasz:||&2● &7Enderchest: &a%amount of tnt in player's enderchest%&8/&a32||&2● &7Ekwipunek: &a%amount of tnt in player's inventory%&8/&a32" to be unstealable
			format slot 3 of player with 32 bookshelf named "&8» &9&lBIBLIOTECZKI" with lore "&cPosiadasz:||&2● &7Enderchest: &a%amount of bookshelf in player's enderchest%&8/&a32||&2● &7Ekwipunek: &a%amount of bookshelf in player's inventory%&8/&a32" to be unstealable
			format slot 4 of player with 32 obsidian named "&8» &9&lOBSYDIAN" with lore "&cPosiadasz:||&2● &7Enderchest: &a%amount of obsidian in player's enderchest%&8/&a32||&2● &7Ekwipunek: &a%amount of obsidian in player's inventory%&8/&a32" to be unstealable
			format slot 5 of player with 32 ender pearl named "&8» &9&LPERLY" with lore "&cPosiadasz:||&2● &7Enderchest: &a%amount of ender pearl in player's enderchest%&8/&a32||&2● &7Ekwipunek: &a%amount of ender pearl in player's inventory%&8/&a32" to be unstealable
			format slot 6 of player with 32 golden apple named "&8» &9&LREFY" with lore "&cPosiadasz:||&2● &7Enderchest: &a%amount of golden apple in player's enderchest%&8/&a32 ||&2● &7Ekwipunek: &a%amount of golden apple in player's inventory%&8/&a32" to be unstealable
			format slot 6 of player with 32 emerald block named "&8» &9&LBLOKI EME" with lore "&cPosiadasz:||&2● &7Enderchest: &a%amount of emerald block in player's enderchest%&8/&a32 ||&2● &7Ekwipunek: &a%amount of emerald block in player's inventory%&8/&a32" to be unstealable
			else:
			if player has permissions "g.itemy":
				open chest with 1 row named "&8» &4&lITEMY NA GILDIE" to player
				format slot 0 of player with 64 diamond block named "&8» &9&lBLOKI DIAX" with lore "&cPosiadasz:||&2● &7Enderchest: &a%amount of diamond block in player's enderchest%&8/&a64||&2● &7Ekwipunek: &a%amount of diamond block in player's inventory%&8/&a64" to be unstealable
				format slot 1 of player with 64 iron block named "&8» &9&lBLOKI ZELAZA" with lore "&cPosiadasz:||&2● &7Enderchest: &a%amount of iron block in player's enderchest%&8/&a64||&2● &7Ekwipunek: &a%amount of iron block in player's inventory%&8/&a64" to be unstealable
				format slot 2 of player with 64 tnt named "&8» &9&lTNT" with lore "&cPosiadasz:||&2● &7Enderchest: &a%amount of tnt in player's enderchest%&8/&a64||&2● &7Ekwipunek: &a%amount of tnt in player's inventory%&8/&a64" to be unstealable
				format slot 3 of player with 64 bookshelf named "&8» &9&lBIBLIOTECZKI" with lore "&cPosiadasz:||&2● &7Enderchest: &a%amount of bookshelf in player's enderchest%&8/&a64||&2● &7Ekwipunek: &a%amount of bookshelf in player's inventory%&8/&a64" to be unstealable
				format slot 4 of player with 64 obsidian named "&8» &9&lOBSYDIAN" with lore "&cPosiadasz:||&2● &7Enderchest: &a%amount of obsidian in player's enderchest%&8/&a64||&2● &7Ekwipunek: &a%amount of obsidian in player's inventory%&8/&a64" to be unstealable
				format slot 5 of player with 64 ender pearl named "&8» &9&LPERLY" with lore "&cPosiadasz:||&2● &7Enderchest: &a%amount of ender pearl in player's enderchest%&8/&a64||&2● &7Ekwipunek: &a%amount of ender pearl in player's inventory%&8/&a64" to be unstealable
				format slot 6 of player with 64 golden apple named "&8» &9&LREFY" with lore "&cPosiadasz:||&2● &7Enderchest: &a%amount of golden apple in player's enderchest%&8/&a64 ||&2● &7Ekwipunek: &a%amount of golden apple in player's inventory%&8/&a64" to be unstealable
				format slot 6 of player with 64 emerald block named "&8» &9&LBLOKI EME" with lore "&cPosiadasz:||&2● &7Enderchest: &a%amount of emerald block in player's enderchest%&8/&a32 ||&2● &7Ekwipunek: &a%amount of emerald block in player's inventory%&8/&a32" to be unstealable
			else:
				send "&cnie masz permisji g.itemy"

ale zauważyłem że podobnie jest napisany skrypt na pomoc a tam nie mogę brać itemów

 

Edytowane przez HeezQ
HeezQ

Poprawiam błąd :(

Notatka dodana przez HeezQ

Odnośnik do komentarza
https://skript.pl/temat/34600-b%C5%82%C4%85d-skript/#findComment-222596
Udostępnij na innych stronach

  • 0

Dodaj

On inventory click:
    If inventory name of current inventory of player is "Nazwa twojego gui":
        Cancel event #tylko zmień nazwę gui

I najlepiej też zamień format slot na set player's current inventory's slot... 

Odnośnik do komentarza
https://skript.pl/temat/34600-b%C5%82%C4%85d-skript/#findComment-222597
Udostępnij na innych stronach

  • 0
3 godziny temu, xAxee napisał:

Dodaj


On inventory click:
    If inventory name of current inventory of player is "Nazwa twojego gui":
        Cancel event #tylko zmień nazwę gui

I najlepiej też zamień format slot na set player's current inventory's slot... 

nie działa ale najprawdopodobniej po prostu chyba dałem we złe miejsce

 

Edytowane przez Syntetik008
Odnośnik do komentarza
https://skript.pl/temat/34600-b%C5%82%C4%85d-skript/#findComment-222628
Udostępnij na innych stronach

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ę...