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

Description

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!