I needed to have one world (Homeland, where my players live) to rule the time in other world (Distant Lands, a dangerous world where beds are disabled). Because of that, I created this script.
Features:
- Passive Sync - Sync only when a player sleeps in a bed.
- Active Sync - Sync the world time every # minutes (editable).
- Disable beds - Disable beds in child world, making the sync smoother for the player (will be no desynchronizations).
Options:
Code (YAML):
# Set the name of the world that it's gonna to define the time of the Child's world.
ParentWorld
: world_island
# Set the name of the world that is gonna depend on Parent world's time.
ChildWorld
: world_distant_lands
# Enable a loop to set the Child's world time to the Parent's world time.
CheckConstantly
: false
# If CheckConstantly is true, how short the interval will be (WARNING: This could lag your server, please be cautious.)
CheckEvery
: 3
# Sync time when player enters a bed
SyncOnBed
: true
# For how many seconds will the script set the time of the child world to the parent's world time.
SyncOnBedSeconds
: 13
# Choose to disable beds in the Child World or not.
DisableBedsInChildWorld
: true