Location
Syntax¶
Locations are created using the loc
constructor. Like all constructors in Terracotta, the values passed into the constructor are Expressions and can take full advantage of their features.
Pitch
and Yaw
are optional and will default to 0
if omitted.
Operations¶
+ (Addition)¶
loc
+ vec
: loc
¶
Adds the XYZ coordinates of the right Vector to the XYZ coordinates of the left Location, leaving Pitch and Yaw untouched.
loc
+ txt
: txt
¶
Converts the left Location into a String then adds it at the beginning of the right Styled Text.
txt
+ loc
: txt
¶
Converts the right Location into a String then adds it at the end of the left Styled Text.
- (Subtraction)¶
loc
- vec
: loc
¶
Subtracts the XYZ coordinates of the right Vector from the XYZ coordinates of the left Location, leaving Pitch and Yaw untouched.