Skocz do zawartości
  • 0

Pytanie o 1.15.2


Uzi
 Udostępnij

Pytanie

Witam,
W consoli mam takie błędy:

[21:04:21] [Server thread/ERROR]: [Skript] In 1.13+ you cannot get the title name of an inventory outside of an InventoryClickEvent, Only if this inventory has an InventoryHolder may it be used in this state.
[21:04:21] [Server thread/ERROR]: [Skript] In 1.13+ you cannot get the title name of an inventory outside of an InventoryClickEvent, Only if this inventory has an InventoryHolder may it be used in this state.
I przez nie niestety nie pokazują się itemy w gui.
Edytowane przez HeezQ
HeezQ

Wstawiam w code

Notatka dodana przez HeezQ

Odnośnik do komentarza
Udostępnij na innych stronach

2 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

Ogólnie polecam język angielski...
W błędzie chodzi o to, że od wersji 1.13 została wycofana możliwość pobierania nazwy inventory.

Wklej tu kod skryptu, może uda się go przerobić w taki sposób aby działał poprawnie

 

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
5 minut temu, wiktorm12 napisał:

Ogólnie polecam język angielski...
W błędzie chodzi o to, że od wersji 1.13 została wycofana możliwość pobierania nazwy inventory.

Wklej tu kod skryptu, może uda się go przerobić w taki sposób aby działał poprawnie

 

options:
	Gui-Name-Menu: &eKity &8- &aMenu
	Gui-Name-Kit: &eKity &8- &aOdbierz
command /kit [<text>] [<player>]:
	trigger:
		if arg 1 is "reset":
			if player has permission "reset":
				if arg 2 is set:
					set {KIT::gracz::%arg 2%} to now
					remove 50 days from {KIT::gracz::%arg 2%}
				else:
					send "&7Podaj gracza!"
			else:
				send "&7Brak uprawnien!"
		if arg 1 is not set:
			open chest with 3 rows named "{@Gui-Name-Menu}" to player
			while inventory name of current inventory of player is "{@Gui-Name-Menu}":
				set {_i} to ("160:%random integer between 0 and 16%" parsed as item)
				loop 27 times:
					set player's current inventory's slot ((loop-number)-1) to {_i} named "&7Kity - Menu"
				set player's current inventory's slot 10 to wood sword named "&eKit: &7Gracz" with lore "&7Kliknij aby odebrac"
				wait 1.5 second
		if arg 1 is "Gracz":
			close player's inventory
			if arg 1 is "Gracz":
				if {KIT::gracz::%player%} is not set:
					set {KIT::gracz::%player%} to now
					remove 7 hours from {KIT::gracz::%player%}
				if difference between {KIT::gracz::%player%} and now >= 6 hours:
					set {KIT::gracz::%player%} to now
					execute console command "eco give %player% 30"
					open chest with 3 rows named "{@Gui-Name-Kit}" to player
					set player's current inventory's slot 0 to 16 steak
					set player's current inventory's slot 1 to 1 stone_sword of sharpness 1
					set player's current inventory's slot 2 to 1 stone_pickaxe of efficiency 2
					set player's current inventory's slot 3 to 1 stone_axe of efficiency 2
					set player's current inventory's slot 4 to 1 stone_shovel
					set player's current inventory's slot 5 to 8 grass
					set player's current inventory's slot 6 to 16 dirt
					set player's current inventory's slot 7 to 32 exp_bottle
				else:
					send "&6Nie mozesz juz tego odebrac!"

on inventory click:
	if inventory name of current inventory of player is "{@Gui-Name-Menu}":
		cancel event
		if clicked slot is 10:
			execute player command "/kit gracz"

Jeśli się da to byłbym mega wdzięczny jeśli się nie da to zrobię to po staremu w essentialsie.

Odnośnik do komentarza
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.

 Udostępnij

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

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