Skip to content

Tile3

class Tile3
constructor(
x: Int,
z: Int,
height: Int = 0
)
constructor(other: Tile3)
Example
val gate = Tile3(3222, 3218)
on_login { player ->
val here = player.tile4.tile
if (here.getDistance(gate) > 50) player.teleport(gate)
player.message("You are on plane ${here.height}.")
}
val x: Int
val z: Int
val height: Int
val packed: Int
val as30BitInteger: Int
fun transform(
x: Int,
z: Int,
height: Int
): Tile3
fun transform(
x: Int,
z: Int
): Tile3
fun transform(height: Int): Tile3
fun getDistance(other: Tile3): Int
fun hashMultiplier(packed: Int): Int