modify(e, 'spawn_point')

View on GitHub

Syntax

modify(entity, 'spawn_point')
modify(entity, 'spawn_point', pos)
modify(entity, 'spawn_point', pos, dimension)
modify(entity, 'spawn_point', pos, dimension, angle)
modify(entity, 'spawn_point', pos, dimension, angle, forced)

Changes player respawn position to given position, optional dimension (defaults to current player dimension), angle (defaults to current player facing) and spawn forced/fixed (defaults to false). If none or nothing is passed, the respawn point will be reset (as removed) instead.