Skocz do zawartości
  • 0

Problem ze sklepem na tabliczce


Pytanie

Cześć siemanko, mam problem ze sklepem na taliczkach na najnowszej wersji mc

mianowicie chce dodać item np  czerwone netherowe cegly ale ich nazwa czyli " red_nether_bricks " nie mieści się w linijce tabliczki

a id bloków nie dziala w nowych wersjach mc w jaki sposób mogę rozwiązać ten problem?

Odnośnik do komentarza
https://skript.pl/temat/42507-problem-ze-sklepem-na-tabliczce/
Udostępnij na innych stronach

8 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
1 godzinę temu, V1ceVersa napisał:

Cześć siemanko, mam problem ze sklepem na taliczkach na najnowszej wersji mc

mianowicie chce dodać item np  czerwone netherowe cegly ale ich nazwa czyli " red_nether_bricks " nie mieści się w linijce tabliczki

a id bloków nie dziala w nowych wersjach mc w jaki sposób mogę rozwiązać ten problem?

Te tabliczki zrobiłeś za pomocą Skripta czy jakiegoś innego pluginu?

Odnośnik do komentarza
https://skript.pl/temat/42507-problem-ze-sklepem-na-tabliczce/#findComment-266444
Udostępnij na innych stronach

  • 0

Wpisz ID, jeśli nie pomoże to łap.

/ustawtabliczke <numer linijki> <tekst linijki>
 

command /ustawtabliczke [<number>] [<text>]:
	permission: ustawtabliczke.*
	trigger:
		if the argument 1 is set:
  			if the argument 2 is set:
				if target-block is sign:
					set line number-argument of target-block to "%coloured text argument%"
					send coloured "&7Ustawiles linijke &6%number argument% &7na tekst &r%colouredtext argument%" to the player
					stop
				else:
					send coloured "&cMusisz patrzyc sie na tabliczke." to the player
					stop
			else:
				send coloured "&cMusisz podac tresc linijki." to the player
				stop
		else:
			send coloured "&cMusisz podac numer linijki." to the player
			stop

 

Odnośnik do komentarza
https://skript.pl/temat/42507-problem-ze-sklepem-na-tabliczce/#findComment-266453
Udostępnij na innych stronach

  • 0
18 minut temu, kapi. napisał:

Wpisz ID, jeśli nie pomoże to łap.

/ustawtabliczke <numer linijki> <tekst linijki>
 


command /ustawtabliczke [<number>] [<text>]:
	permission: ustawtabliczke.*
	trigger:
		if the argument 1 is set:
  			if the argument 2 is set:
				if target-block is sign:
					set line number-argument of target-block to "%coloured text argument%"
					send coloured "&7Ustawiles linijke &6%number argument% &7na tekst &r%colouredtext argument%" to the player
					stop
				else:
					send coloured "&cMusisz patrzyc sie na tabliczke." to the player
					stop
			else:
				send coloured "&cMusisz podac tresc linijki." to the player
				stop
		else:
			send coloured "&cMusisz podac numer linijki." to the player
			stop

 

Poprawiłem troche kod 


 

command /ustawtabliczke [<number>] [<text>]:
    permission: ustawtabliczke.*
    trigger:
        if the argument 1 is set:
            if the argument 2 is set:
                if targeted block is oak_sign:
                    set line number-argument of target-block to "%coloured text argument%"
                    send coloured "&7Ustawiles linijke &6%number argument% &7na tekst &r%colouredtext argument%" to the player
                    stop
                else:
                    send coloured "&cMusisz patrzyc sie na tabliczke." to the player
                    stop
            else:
                send coloured "&cMusisz podac tresc linijki." to the player
                stop
        else:
            send coloured "&cMusisz podac numer linijki." to the player
            stop

 

 

ale dalej sypie błędy 
 

[21:18:14 ERROR]: Can't understand this condition/effect: set line number-argument of target-block to "%coloured text argument%" (sklep.sk, line 7: set line number-argument of target-block to "%coloured text argument%"')
[21:18:14 ERROR]: Can't understand this expression: colouredtext argument (sklep.sk, line 8: send coloured "&7Ustawiles linijke &6%number argument% &7na tekst &r%colouredtext argument%" to the player')
Odnośnik do komentarza
https://skript.pl/temat/42507-problem-ze-sklepem-na-tabliczce/#findComment-266457
Udostępnij na innych stronach

  • 0
1 minutę temu, V1ceVersa napisał:

ale dalej sypie błędy 

W pierwszym błędzie należy poprawić 'target-block' na 'targeted block', natomiast w drugim błąd wynika z braku spacji pomiędzy 'coloured' i 'text'.

Odnośnik do komentarza
https://skript.pl/temat/42507-problem-ze-sklepem-na-tabliczce/#findComment-266458
Udostępnij na innych stronach

  • 0

Nie ma co kombinować, i poprawiać, nabijacie zbędne posty.

 

command /ustawtabliczke [<number>] [<text>]:
	permission: ustawtabliczke.*
	trigger:
		if the argument 1 is set:
  			if the argument 2 is set:
				if target-block is sign:
					set line number-argument of target block of player to "%coloured text argument%"
					send coloured "&7Ustawiles linijke &6%number argument% &7na tekst &r%coloured text argument%" to the player
					stop
				else:
					send coloured "&cMusisz patrzyc sie na tabliczke." to the player
					stop
			else:
				send coloured "&cMusisz podac tresc linijki." to the player
				stop
		else:
			send coloured "&cMusisz podac numer linijki." to the player
			stop

Żadne targeted block nie dałoby rady, ponieważ target-block też było poprawnie, ale czyj ten blok miało sprawdzać? Ano gracza. Pozdrawiam.

Odnośnik do komentarza
https://skript.pl/temat/42507-problem-ze-sklepem-na-tabliczce/#findComment-272161
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ę...