Witam
Odpalam skrypt i wszystko działa. Jednak po wpisaniu komendy to wyskakuje błąd...
Wersja 1.14.4
command /fsethome:
trigger:
set {_x} to player's x-coordinate
set {_y} to player's y-coordinate
set {_z} to player's z-coordinate
set yaml value "position.x" from file "plugins/LPHome/%player%.yml" to "%{_x}%"
set yaml value "position.y" from file "plugins/LPHome/%player%.yml" to "%{_y}%"
set yaml value "position.z" from file "plugins/LPHome/%player%.yml" to "%{_z}%"
command /fhome:
trigger:
existance of "plugins/LPHome/%player%.yml" is true:
set {_x} to yaml value "position.x" from file "plugins/LPHome/%player%.yml"
set {_y} to yaml value "position.y" from file "plugins/LPHome/%player%.yml"
set {_z} to yaml value "position.z" from file "plugins/LPHome/%player%.yml"
set {_tp} to "%{_x}%, %{_y}%, %{_z}%"
teleport player to {_tp}
else:
send "&cNie masz home!"
Pytanie
uiuin 10
Witam

Odpalam skrypt i wszystko działa. Jednak po wpisaniu komendy to wyskakuje błąd...
Wersja 1.14.4
command /fsethome: trigger: set {_x} to player's x-coordinate set {_y} to player's y-coordinate set {_z} to player's z-coordinate set yaml value "position.x" from file "plugins/LPHome/%player%.yml" to "%{_x}%" set yaml value "position.y" from file "plugins/LPHome/%player%.yml" to "%{_y}%" set yaml value "position.z" from file "plugins/LPHome/%player%.yml" to "%{_z}%" command /fhome: trigger: existance of "plugins/LPHome/%player%.yml" is true: set {_x} to yaml value "position.x" from file "plugins/LPHome/%player%.yml" set {_y} to yaml value "position.y" from file "plugins/LPHome/%player%.yml" set {_z} to yaml value "position.z" from file "plugins/LPHome/%player%.yml" set {_tp} to "%{_x}%, %{_y}%, %{_z}%" teleport player to {_tp} else: send "&cNie masz home!"Plik
position: x: '129.05' y: '63' z: '123.41'Odnośnik do komentarza
https://skript.pl/temat/34632-b%C5%82%C4%85d-kt%C3%B3rego-nie-ma/Udostępnij na innych stronach
10 odpowiedzi na to pytanie
Rekomendowane odpowiedzi
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ą.