Skocz do zawartości
  • 0

Gui szkło


Jamnior

Pytanie

7 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

Możesz zrobić coś takiego:

set {_o::*} to 0 and 4 and 5 and 6 and 7 and 8 and 9 and 13 and 15 and 17 and 18 and 22 and 23 and 24 and 25 and 26
loop {_o::*}:
	set player's current inventory's slot loop-value to red stained glass pane

Ustawiasz jakąś zmienną np {_o::*} to ... i tutaj dajesz sloty które chcesz wypełnić, potem musisz je zapętlić i po tym ustawiasz jaki przedmiot chcesz na tym slocie

Odnośnik do komentarza
https://skript.pl/temat/38814-gui-szk%C5%82o/#findComment-244472
Udostępnij na innych stronach

  • 0
loop X(o 1 większa niż ilość slotów w ekwipunku) times:
	set {_slot} to (loop-value)-1
	set slot ({_slot} parsed as integer) of player to Y

Coś takiego chyba, dawno nie pisałem skryptów i zapomniałem kompletnie składni, ale raczej to powinno działać

Odnośnik do komentarza
https://skript.pl/temat/38814-gui-szk%C5%82o/#findComment-244473
Udostępnij na innych stronach

  • 0
loop 54 times:
                set player's current inventory's slot loop-number -1 to black glass pane named "&8&l"

Tam gdzie 54 to liczba calkowitej ilosc miejsc w gui jak masz open chest with 5 rows to maz 45 miejsc itd:D

Edytowane przez TheEvil1337
Odnośnik do komentarza
https://skript.pl/temat/38814-gui-szk%C5%82o/#findComment-244482
Udostępnij na innych stronach

  • 0
command /craftingi:
    trigger:
        open chest with 6 row named "&9&lCrafting przemiotow" to player
        wait 2 tick
        loop 54 times:
                set player's current inventory's slot loop-number -1 to black glass pane named "&8&l"
        format slot 48 of player with 1 of ender portal frame named "&9&lBOYFARMER" to run [execute player command "/c1"]
        format slot 47 of player with 1 of 	Sandstone named "&9&lSANDFARMER" to run [execute player command "/c2"]
        format slot 50 of player with 1 of Enchantment Table named "&9&lKOPACZ FOSY" to run [execute player command "/c3"]
        format slot 51 of player with 1 of ender chest named "&9&lENDERCHEST" to run [execute player command "/c4"]
        format slot 46 of player with 1 of end stone named "&6&lSTONIARKA" to run [execute player command "/c5"]
        format slot 52 of player with 1 of tnt named "&4&lRzucane TNT" to run [execute player command "/c6"]
        format slot 10 of player with 1 of redstone to be unstealable
        format slot 11 of player with 1 of iron ingot to be unstealable
        format slot 12 of player with 1 of redstone to be unstealable
        format slot 19 of player with 1 of iron ingot to be unstealable
        format slot 20 of player with 1 of stone to be unstealable
        format slot 21 of player with 1 of iron ingot to be unstealable
        format slot 28 of player with 1 of redstone to be unstealable
        format slot 29 of player with 1 of piston to be unstealable
        format slot 30 of player with 1 of redstone to be unstealable
        format slot 23 of player with 1 of Nether Star to be unstealable
        format slot 25 of player with 1 of end stone named "&6&lSTONIARKA" to be unstealable
        format slot 0 of player with 1 of  to be unstealable

Nie działa :(((((

 

Odnośnik do komentarza
https://skript.pl/temat/38814-gui-szk%C5%82o/#findComment-244490
Udostępnij na innych stronach

  • 0
command /craftingi [<text>]:
	trigger:
		open chest with 6 row named "&9&lCrafting przemiotow" to player
		loop 6*9 times:
			set player's current inventory's slot (loop-number - 1) to black glass pane named "&8&l_"
		set player's current inventory's slot 0 to 
		set player's current inventory's slot 48 to ender portal frame named "&9&lBOYFARMER"
		set player's current inventory's slot 47 to Sandstone named "&9&lSANDFARMER"
		set player's current inventory's slot 50 to Enchantment Table named "&9&lKOPACZ FOSY"
		set player's current inventory's slot 51 to ender chest named "&9&lENDERCHEST"
		set player's current inventory's slot 46 to end stone named "&6&lSTONIARKA"
		set player's current inventory's slot 52 to tnt named "&4&lRzucane TNT"
		set player's current inventory's slot 10 to redstone 
		set player's current inventory's slot 11 to iron ingot 
		set player's current inventory's slot 12 to redstone 
		set player's current inventory's slot 19 to iron ingot 
		set player's current inventory's slot 20 to stone 
		set player's current inventory's slot 21 to iron ingot 
		set player's current inventory's slot 28 to redstone 
		set player's current inventory's slot 29 to piston 
		set player's current inventory's slot 30 to redstone 
		set player's current inventory's slot 23 to Nether Star 
		set player's current inventory's slot 25 to end stone named "&6&lSTONIARKA"
on inventory click:
	if inventory name of current inventory of player is "&9&lCrafting przemiotow":
		cancel event
		if clicked slot is 48:
			execute player command "c1"
		if clicked slot is 47:
			execute player command "c2"
		if clicked slot is 50:
			execute player command "c3"
		if clicked slot is 51:
			execute player command "c4"
		if clicked slot is 46:
			execute player command "c5"
		if clicked slot is 52:
			execute player command "c6"

 

Odnośnik do komentarza
https://skript.pl/temat/38814-gui-szk%C5%82o/#findComment-244530
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ę...