Skocz do zawartości
  • 0

Jak wywołać komendę tylko przez konsolę?


Pytanie

Gość dudimsp2

zrobcie zeby tylko consola moze wywolac komende i aby dzialalo  poprostu jak klikne to nie tepa nikogo a jak wpisze urzadtp to tepa.

command /urzadtp [<text>]:
    trigger:
        execute console command "eco take %player% -5" 
        send player title "" with subtitle "&a&lZakupiono Bilet do Urzedu pracy!"  
        wait 35 tick
        send player title "" with subtitle "&a&lJestes wlasnie w metrze."  
        wait 20 tick
        execute console command "tp %player% 213 60 285" 
        send player title "&a&l" with subtitle "&a&lMetro juz jedzie do urzedu pracy."     
        apply nausea 1 to the player for 10 seconds
        wait 120 tick
        send player title "" with subtitle "&a&lKoniec Podrozy!"  
        execute console command "tp %player% 100 70 100"


 

on rightclick on entity:
	if entity's name is "&eKup Bilet":
		wait 1 ticks
		open chest with 2 rows named "&6&LKup bilet do " to player
		wait 1 ticks
		format slot 0 of player with 1 of emerald named "&8  &7&lBanku" to close then run "banktp %player%"
		format slot 1 of player with 1 of end stone named "&8  &7&lUrzad pracy" to close then run "urzadtp %player%"
		format slot 2 of player with 1 of end stone named "&8  &7&lKosciola" to close then run "koscioltp %player%"
		format slot 3 of player with 1 of end stone named "&8  &7&lKopalnii" to close then run "kopalniatp %player%"
		format slot 4 of player with 1 of name tag named "&8  &7&lSchroniska" to close then run "schronisko %player%"
		format slot 5 of player with 1 of end stone named "&8  &7&lDiler samochodow" to close then run "diler %player%"
		format slot 6 of player with 1 of end stone named "&8  &7&lMcDonalda" to close then run "mcd %player%"
		format slot 7 of player with 1 of end stone named "&8  &7&lKina" to close then run "kino %player%"
		format slot 8 of player with 1 of bookshelf named "&8  &7&lBibliteki" to close then run "biblioteka %player%"
		format slot 9 of player with 1 of red flower named "&8  &7&lSklep roslinego" to close then run "sklepr %player%"
		format slot 10 of player with 1 of end stone named "&8  &7&lTesco" to close then run "tesco %player%"
		format slot 11 of player with 1 of end stone named "&8  &7&lApteki " to close then run "apteka %player%"
		format slot 12 of player with 1 of dirt named "&8  &7&lPodlasia " to close then run "podlasie %player%"

 

Edytowane przez dudimsp2
Odnośnik do komentarza
https://skript.pl/temat/32102-jak-wywo%C5%82a%C4%87-komend%C4%99-tylko-przez-konsol%C4%99/
Udostępnij na innych stronach

2 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

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