Skocz do zawartości
  • 0

Gdzie zapisać arg


Misio12320
 Udostępnij

Pytanie

Witam, gdzie mogę zapisać lokalizacje?

command target <text>:
    trigger:
        if arg 1 is not set:
            send "Target must have name!"
        else:
            set {Target.%arg%} to location of player's target block
            send "%{Target.%arg%}%" to player

Chciałbym by później playsound na tej lokalizacji działał..

Odnośnik do komentarza
Udostępnij na innych stronach

3 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
function rd2(n: number) :: number:
	return (round down ({_n}*100))/100
function setYamlLoc(l: location, value: string, file: string):
	set yaml value "%{_value}%.x" from file "%{_file}%" to rd2(x-coord of {_l})
	set yaml value "%{_value}%.y" from file "%{_file}%" to rd2(y-coord of {_l})
	set yaml value "%{_value}%.z" from file "%{_file}%" to rd2(z-coord of {_l})
	set yaml value "%{_value}%.world" from file "%{_file}%" to "%world of {_l}%"
function getYamlLoc(value: string, file: string) :: location:
	set {_x} to yaml value "%{_value}%.x" from file "%{_file}%"
	set {_y} to yaml value "%{_value}%.y" from file "%{_file}%"
	set {_z} to yaml value "%{_value}%.z" from file "%{_file}%"
	set {_world} to yaml value "%{_value}%.world" from file "%{_file}%"
	return location({_x}, {_y}, {_z}, world({_world}))
command /save:
	trigger:
		setYamlLoc(player's location, "nie", "cos.yml")
command /get:
	trigger:
		teleport player to getYamlLoc("nie", "cos.yml")

 

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