Tile3
class Tile3
constructor( x: Int, z: Int, height: Int = 0)
constructor(other: Tile3)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: Intval z: Intheight
Section titled “height”val height: Intpacked
Section titled “packed”val packed: Intas30BitInteger
Section titled “as30BitInteger”val as30BitInteger: Inttransform
Section titled “transform”fun transform( x: Int, z: Int, height: Int): Tile3
fun transform( x: Int, z: Int): Tile3
fun transform(height: Int): Tile3getDistance
Section titled “getDistance”fun getDistance(other: Tile3): InthashMultiplier
Section titled “hashMultiplier”fun hashMultiplier(packed: Int): Int