Simple Origin Changer

A simple way to give players the chance to change their origin within a certain time limit after joining

435

Simple Origin Changer

An image of the origin changer command. The game tells the player that they can change their origin a total of 1 time, that they have not yet changed their origin, and that they must change their origin within the next 29 minutes and 33 seconds, if at all. It then provides a button to change their origin.

A chat message telling the player that the Origin Selection Gui has just been opened for them. It informs the player that this is their 1st origin change, out of a total of 1 origin changes.

An image of the origin changer command. The game tells the player that they have changed their origin 1 time, out of a total of 1 time. It also tells the player they have passed the playtime deadline, and they cannot change their origin any further.

A very simple datapack to allow players to change their origin a configurable amount of times (default 1) within a certain period of time since joining (default 30 minutes).

To access their origin change, players must run `/trigger origin-change`.

Time players spend in the origin selection gui is not counted towards the time limit for changing their origin.

The time limit and maximum number of origin changes a player can have can be easily adjusted by changing the following scores:

```

36000 is 30 minutes in ticks (30 * 60 * 20)

/scoreboard players set #maxTime origin-change-timer 36000

1 max change per person

/scoreboard players set #maxChanges origin-change-used 1 ```

For example, if you wanted to change the time limit to 45 minutes, and the maximum number of changes to 2, you'd run the following commands:

``` /scoreboard players set #maxTime origin-change-timer 54000 /scoreboard players set #maxChanges origin-change-used 2 ```

Feel free to use in all modpacks and servers, as long as you don't remove the credit!

ADS