@minecraft/server
    Preparing search index...

    Class WorldClockRegistryBeta

    Provides the functionality for registering custom world clocks. World clocks can only be registered during the system startup event.

    Index

    Methods

    • Beta

      Parameters

      • name: string

        The name that represents this world clock. Must have a namespace and use only valid identifier characters. (e.g., 'mypack:my_clock').

      Returns void

      Registers a new custom world clock. Must be called during the system startup event.

      early-execution-allowed - This function can be called in early-execution mode.