Spawnpoint constructor
Sets the respawn point of a player to a certain position.
constructor | |
---|---|
entity | the Entity selector for your player |
position | the Location of the spawnpoint(optional) |
Example:
Spawnpoint(
entity: Entity.Player(),
position: Location.rel(y: -10),
)
⇒ spawnpoint @p ~ ~-10 ~
Implementation
Spawnpoint({this.entity, this.position});