I am sending a teleport packet to the player but there is a parameter that I am having trouble with.
Code:
command /test:
trigger:
#/tp Player ~ ~ ~ 10 10 //the command that i type to recieve these packets
#0, 0, 0, 10, 10, [X, Y, Z], 38, false //these are the values that are returned when i teleport the player
set {_testpacket} to new play_server_position packet
set field 0 of {_testpacket} to 0
set field 1 of {_testpacket} to 0
set field 2 of {_testpacket} to 0
set field 3 of {_testpacket} to 10
set field 4 of {_testpacket} to 10
#set field 5 of {_testpacket} to "[X, Y, Z]" //this is what is causing my problems, it doesn't like that it is a string
#set field 6 of {_testpacket} to ? //this number increases by 1 every time i teleport the player, not sure why
set field 7 of {_testpacket} to false
send packet {_testpacket} to player
I'm not sure what to change field 5 to, it gives me errors because it isn't supposed toe be a string.
Last edited: