Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

Prośba o poprawienie skryptu na diament, który teleportuje na spawn.


CevaBikaGaming

Rekomendowane odpowiedzi

Opublikowano
Siema

Napisałem taki skrypt i gdy gracz kliknie na diament to teleportuje go na świat PrzeklętaKraina ale od razu spowrotem na spawn. Proszę o poprawienie.

 

on rightclick:

    if player's tool is diamond of unbreaking 10 named "&3&lMagiczny Diament" with lore "&2Swiat: &aZiemia":

        remove 1 diamond of unbreaking 10 named "&3&lMagiczny Diament" with lore "&2Swiat: &aZiemia" from player

        add 1 emerald of unbreaking 10 named "&3&lMagiczny Diament" with lore "&2Swiat: &9Przekleta Kraina" to player

        execute console command "mv tp %player% PrzekletaKraina"

        execute console command "tppos %player% 129 96 308"

        send "&9Zostales Teleportowany do Przekletej Krainy"

        stop

on rightclick:

    if player's tool is emerald of unbreaking 10 named "&3&lMagiczny Diament" with lore "&2Swiat: &9Przekleta Kraina":

        remove 1 emerald of unbreaking 10 named "&3&lMagiczny Diament" with lore "&2Swiat: &9Przekleta Kraina" from player

        add 1 diamond of unbreaking 10 named "&3&lMagiczny Diament" with lore "&2Swiat: &aZiemia" to player

        execute console command "mv tp %player% world"

        execute console command "spawn %player%"

        send "&aZostales Teleportowany na Ziemie!"

        stop

 

Opublikowano

@CevaBikaGaming
Polecam ci uzywać 

 

command /setwarparena [<text>]:
	permission: admin.sk
	trigger:
		if arg 1 is "red":
			set {arena.%arg 1%} to location of the player
			message "&7Warp o nazwie &c&l%arg 1% &7stworzony"
			stop
		if arg 1 is "blue":
			set {arena.%arg 1%} to location of the player
			message "&7Warp o nazwie &c&l%arg 1% &7stworzony"
			stop
		if arg 1 is "widownia":
			set {widownia} to location of the player
			message "&7Warp o nazwie &c&l%arg 1% &7stworzony"
			stop
		else:
			send "Uzyj red/blue/widownia"

Takiego typu zmiennych do teleportacji
wtedy zamiast 
3 linijek 

        execute console command "mv tp %player% world"
        wait 5 ticks
        execute console command "spawn %player%"

Masz jedna 
 

teleport player to {zmienna}
Opublikowano
on rightclick diamond named "&3&lMagiczny Diament" with lore "&2Swiat: &aZiemia":
    remove 1 diamond of unbreaking 10 named "&3&lMagiczny Diament" with lore "&2Swiat: &aZiemia" from player
    add 1 emerald of unbreaking 10 named "&3&lMagiczny Diament" with lore "&2Swiat: &9Przekleta Kraina" to player
    execute console command "mv tp %player% PrzekletaKraina"
    execute console command "tppos %player% 129 96 308"
    send "&9Zostales Teleportowany do Przekletej Krainy"
    stop
on rightclick emerald of unbreaking 10 named "&3&lMagiczny Diament" with lore "&2Swiat: &9Przekleta Kraina":
    remove 1 emerald of unbreaking 10 named "&3&lMagiczny Diament" with lore "&2Swiat: &9Przekleta Kraina" from player
    add 1 diamond of unbreaking 10 named "&3&lMagiczny Diament" with lore "&2Swiat: &aZiemia" to player
    execute console command "mv tp %player% world"
    execute console command "spawn %player%"
    send "&aZostales Teleportowany na Ziemie!"
    stop

Lub 

on rightclick on diamond named "&3&lMagiczny Diament" with lore "&2Swiat: &aZiemia":
    remove 1 diamond of unbreaking 10 named "&3&lMagiczny Diament" with lore "&2Swiat: &aZiemia" from player
    add 1 emerald of unbreaking 10 named "&3&lMagiczny Diament" with lore "&2Swiat: &9Przekleta Kraina" to player
    execute console command "mv tp %player% PrzekletaKraina"
    execute console command "tppos %player% 129 96 308"
    send "&9Zostales Teleportowany do Przekletej Krainy"
    stop
on rightclick on emerald of unbreaking 10 named "&3&lMagiczny Diament" with lore "&2Swiat: &9Przekleta Kraina":
    remove 1 emerald of unbreaking 10 named "&3&lMagiczny Diament" with lore "&2Swiat: &9Przekleta Kraina" from player
    add 1 diamond of unbreaking 10 named "&3&lMagiczny Diament" with lore "&2Swiat: &aZiemia" to player
    execute console command "mv tp %player% world"
    execute console command "spawn %player%"
    send "&aZostales Teleportowany na Ziemie!"
    stop
Opublikowano
command /ustawspawn [<text>]:
	trigger:
		if player is op:
			if arg 1 is "diament":
				set {diamentspawn} to player's position
				send "&4Ustawiles spawn dla &bdiamentu."
			if arg 1 is "emerald":
				set {emeraldspawn} to player's position
				send "&4Ustawiles spawn dla &2Emeraldu."
on rightclick:
	if player's tool is diamond named "&3&lMagiczny Diament" with lore "&2Swiat: &aZiemia":
		remove diamond named "&3&lMagiczny Diament" from player
		give 1 emerald of unbreaking 10 named "&3&lMagiczny Diament" with lore "&2Swiat: &9Przekleta Kraina" to player
		wait 2 ticks
		teleport player to {diamentspawn}
		send "&9Zostales Teleportowany do Przekletej Krainy"
on rightclick:
    if player's tool is emerald of unbreaking 10 named "&3&lMagiczny Diament" with lore "&2Swiat: &9Przekleta Kraina":
        remove emerald of unbreaking 10 named "&3&lMagiczny Diament" with lore "&2Swiat: &9Przekleta Kraina" from player
        give 1 diamond of unbreaking 10 named "&3&lMagiczny Diament" with lore "&2Swiat: &aZiemia" to player
		wait 2 ticks
		teleport player to {emeraldspawn}
        send "&aZostales Teleportowany na Ziemie!"

Ustań na spawnie, gdzie ma teleportować diament i wpisz "/ustawspawn diament".

Ustań na spawnie, gdzie ma teleportować emerald i wpisz "/ustawspawn emerald".

IP: mcity.com.pl | 1.16.3

https://mcity.com.pl > Strona serwera MCity

logo.png

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...