Skocz do zawartości
  • 0

Różdżka tp na spawn


Pytanie

Witam mam problem.

Jak dodać do tego :

on script load:        register new shaped recipe for stick of knockback 2 named "&4Rozdzka teleportujaca" using air, ender pearl, air, air, stick, air, air, gold block, air       on rightclick:        if name of player's tool is "&4Rozdzka teleportujaca":                remove 1 stick named "&4Rozdzka teleportujaca" from player                apply nausea 2 to the player for 10 seconds                wait 3 second                teleport the player to spawn                remove nausea from player                send "&6Teleportuje na spawn"

takie coś, aby dany gracz nie mógł sie ruszać ?

Prosze o szybką odpowiedź i nie chce jakiś skopiowanych linijek z skryptu SuperWand bo nie działa.

Plugin : skript

Addon do pluginu jest.

Ogólnie cały skrypt działa, ale nie mam pojęcia jak dodać anulowanie teleportu po ruszeniu sie :/

Odnośnik do komentarza
https://skript.pl/temat/3396-r%C3%B3%C5%BCd%C5%BCka-tp-na-spawn/
Udostępnij na innych stronach

12 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

Skorzystaj ze skriptu pirata na spawn i tam to masz

Masz w tym skrypcie odczekanie w bezruchu

Link do raw skriptu pirata

https://raw.githubusercontent.com/piratjsk/Skript/master/spawn-wait.sk

Edytowane przez Tokarek
Odnośnik do komentarza
https://skript.pl/temat/3396-r%C3%B3%C5%BCd%C5%BCka-tp-na-spawn/#findComment-29773
Udostępnij na innych stronach

  • 0
on script load:        register new shaped recipe for stick of knockback 2 named "&4Rozdzka teleportujaca" using air, ender pearl, air, air, stick, air, air, gold block, air        on rightclick:        if name of player's tool is "&4Rozdzka teleportujaca":                remove 1 stick named "&4Rozdzka teleportujaca" from player                apply nausea 2 to the player for 10 seconds                set {chodze.%player%} to 1                wait 3 second                teleport the player to spawn                remove nausea from player                set {chodze.%player%} to 0                send "&6Teleportuje na spawn"on any movement:    trigger:        if {chodze.%player%} is 1            cancel event            send "&6Nie mozesz sie ruszac w czasie teleportacji!"        if {chodze.%player%} is 0            stop
Edytowane przez WiczekPG
Odnośnik do komentarza
https://skript.pl/temat/3396-r%C3%B3%C5%BCd%C5%BCka-tp-na-spawn/#findComment-29775
Udostępnij na innych stronach

  • 0
on script load:        register new shaped recipe for stick of knockback 2 named "&4Rozdzka teleportujaca" using air, ender pearl, air, air, stick, air, air, gold block, air         on rightclick:        if name of player's tool is "&4Rozdzka teleportujaca":                remove 1 stick named "&4Rozdzka teleportujaca" from player                apply nausea 2 to the player for 10 seconds                set {chodze.%player%} to 1                wait 3 second                teleport the player to spawn                remove nausea from player                set {chodze.%player%} to 0                send "&6Teleportuje na spawn" on any movement:    trigger:        if {chodze.%player%} is 1        cancel event        send "&6Nie mozesz sie ruszac w czasie teleportacji!"        if {chodze.%player%} is 0        stop
Powinno działać
Edytowane przez WiczekPG
Odnośnik do komentarza
https://skript.pl/temat/3396-r%C3%B3%C5%BCd%C5%BCka-tp-na-spawn/#findComment-29778
Udostępnij na innych stronach

  • 0
set {_posx} to x-location of player		set {_posz} to z-location of player		set {_posy} to y-location of player		set {_time} to 5		apply nausea to player for 3 minutes		send "&eZostaniesz przeniesiony na spawn za &7%{_time}% sek&e. Nie ruszaj sie!"		wait 1 second		loop 5 times:			difference between x-location of player and {_posx} is bigger than 0.5:				send "&eTeleportacja przerwana."				remove nausea from the player				stop			difference between z-location of player and {_posz} is bigger than 0.5:				send "&eTeleportacja przerwana."				remove nausea from the player				stop			difference between y-location of player and {_posy} is bigger than 0.5:				send "&eTeleportacja przerwana."				remove nausea from the player				stop			add -1 to {_time}			{_time} is 0:				set {tp.%player%} to "true"				make player execute command "spawn"				remove nausea from the player				send "&eZostales przeniesiony na spawn."				wait 1 second				stop			send "&eTeleportacja nastapi za &7%{_time}% sek&e."			wait 1 second
Dodaj po 1 ifie
Odnośnik do komentarza
https://skript.pl/temat/3396-r%C3%B3%C5%BCd%C5%BCka-tp-na-spawn/#findComment-29790
Udostępnij na innych stronach

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ę...