Tile4
class Tile4( val tile: Tile3, val shard: Int)
constructor( x: Int, z: Int, height: Int, shard: Int)on_login { player -> val castle = Tile4.global(3222, 3218) val sameSpotHere = Tile4(castle.tile, player.shardId) player.teleport(if (player.shardId == WorldSpatialIndex.GLOBAL) castle else sameSpotHere)}val tile: Tile3val shard: Intglobal
Section titled “global”fun global( x: Int, z: Int, height: Int = 0): Tile4
fun global(tile: Tile3): Tile4