D
Deleted member
Hello!
I am trying to figure out how to teleport an entity or a player to a location which has a yaw and a pitch set as well.
With Method 1 the following error is returned: "Can't understand this condition/effect: teleport player to location at (0, 64, 0) in world "world" with pitch 0 and yaw 0"
With Method 2 no errors are returned, but when issuing the /spawn command it teleports me to the location without adjusting the yaw and pitch to 0.
Skript Version: 2.2 by Bensku
Minecraft Version: 1.12.2
Have you tried searching the docs? Yes
Have you tried searching the forums? Yes
I am trying to figure out how to teleport an entity or a player to a location which has a yaw and a pitch set as well.
code_language.skript:
command /spawn:
permission: spawn.spawn
permission message: &cNo permission.
trigger:
# Method 1
teleport player to location at (0, 64, 0) in world "world" with pitch 0 and yaw 0
# Method 2
set {_spawn} to location at (0, 64, 0) in world "world"
set pitch of {_spawn}'s pitch to 0
set yaw of {_spawn}'s yaw to 0
teleport player to {_spawn}
With Method 1 the following error is returned: "Can't understand this condition/effect: teleport player to location at (0, 64, 0) in world "world" with pitch 0 and yaw 0"
With Method 2 no errors are returned, but when issuing the /spawn command it teleports me to the location without adjusting the yaw and pitch to 0.
Skript Version: 2.2 by Bensku
Minecraft Version: 1.12.2
Have you tried searching the docs? Yes
Have you tried searching the forums? Yes