Spawnport Class

Class For Spawnport Interface

Return To Previous Page


API list

Class:apiName(parameters) Return Description
Spawnport:getSpawnPoint() ErrorCode.OK , x:number, y:number, z:number Get the default birth point
Spawnport:setSpawnPoint(x:number, y:number, z:number) ErrorCode.OK Set the birth point position
Spawnport:getChunkValidSpawnPos(x:number, y:number, z:number) ErrorCode.OK , x:number, y:number, z:number Get the effective refresh point of the block, which can be used as the birth point