Skocz do zawartości
  • 0

SkQuery Wirtuale EQ


Shazad
 Udostępnij

Pytanie

Pluginy: Skript, SkQuery
Wersja silnika: Spigot 1.7.x
Wersja minecrafta: 1.7.2
Wersje dodatkow do skripta: Skript 2.1.2, WildSkript 1.8
Bledy/opis bledu: Nie wiem jak dodać 3 stronę do tego menu. Nie znajduje 3 argumentu!
Screeny: Brak
Kod skryptu:

Spoiler


command /craftingi [<text>]:
    trigger:
        arg 1 is not set:
            open chest with 3 rows named "&c&lCRAFTINGI" to player
            wait 5 ticks
            format slot 0 of player with diamond boots named "&3&lCloud Boots" to close then run "cboots"
            format slot 1 of player with ender pearl named "&3&lNieskoczona perla kresu" to close then run "ncperla %player% perla"
        arg 1 is "perla":
            open chest with 3 rows named "&c&lCRAFTING NIESKOCZONEJ PERLY" to player
            wait 5 ticks
            format slot 0 of player with ender pearl to be unstealable
            format slot 1 of player with ender pearl to be unstealable
            format slot 2 of player with ender pearl to be unstealable
            format slot 10 of player with diamond block to be unstealable
            format slot 9 of player with ender pearl to be unstealable
            format slot 11 of player with ender pearl to be unstealable
            format slot 18 of player with ender pearl to be unstealable
            format slot 19 of player with ender pearl to be unstealable
            format slot 20 of player with ender pearl to be unstealable
            format slot 12 of player with black glass to be unstealable
            format slot 13 of player with ender pearl named "&3&lNieskoczona perla kresu" to be unstealable
command /ncperla [<player>] [<text>]:
    executable by: console
    trigger:
        arg 2 is "perla":
            wait 5 ticks # 3 ticks are the minimum for this to work.
            make the player-arg execute command "craftingi perla"

 

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

1 odpowiedź na to pytanie

Rekomendowane odpowiedzi

  • 0

Niepotrzebnie kombinujesz ;p
 

command /craftingi:
	trigger:
		execute console command "openi %player% 1"
command /openi [<player>] [<text>]:
	trigger:
		if executor is not console:
			send "&cMusisz być konsolą"
		else:
			close inventory of arg 1
			if arg 2 is "1":
				open chest with 3 rows named "&c&lCRAFTINGI" to arg 1
				wait 3 tick
				format slot 0 of arg 1 with 1 of diamond boots named "&3&lCloud Boots" to run "openi %arg 1% 3"
				format slot 1 of arg 1 with 1 of ender pearl named "&3&lNieskonczona perla kresu" to run "openi %arg 1% 2
			if arg 2 is "2":
				open chest with 3 rows named "&c&lCRAFTING NIESKONCZONEJ PERLY" to arg 1
				wait 3 tick
				[Twój crafting]
			if arg 2 is "3":
				open chest with 3 rows named "&c&lCRAFTING CLOUD BOOTS'OW" to arg 1
				wait 3 tick
				[Twój crafting]

i pamiętaj, że w formatowaniu slotów w /openi używaj arg 1, a nie player

Odnośnik do komentarza
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

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

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