Location to Text

Convert location into text. This fixes issues with location storage in skript.

Overview and Example

The location to text and text to location functions are used for a better way to store locations. This fixes issues between worlds and other weird issues in skript. You can store locations as text instead of a location variable.

sklib_locationToText({_location}, {_world})

A commented version of the function is below. The return type for this function is text.

# This function returns text.
sklib_locationToText({_location}, {_world})

# You need to input a location and world in this order.
# Location, World
sklib_locationToText({_location}, {_world})

# An example return value is this.
# "123.45^678.9^12.3^world"

Last updated