npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@bdsx/realtimedaycycle

v1.0.0

Published

Minecraft Bedrock Server with an almost lifelike day/night cycle (requires bdsx)

Downloads

7

Readme

Real Time Day Cycle Plugin

Minecraft Bedrock Server with an almost lifelike day/night cycle (requires bdsx)

Configuration

When the plugin is run, it will try to read (or create if it doesn't yet exist), the config.json file, loading all the plugin's configuration.

This file is created relative to the current executing process: ../config/RealTimeDayCycle.

This executing process is expected to be bedrock_server or bedrock_server.exe running with bdsx, thus you can expect to find config/RealTimeDayCycle relative to the root of bdsx.

The config options are described as follows:

  • recalculation-interval

    How often (in ms) to calculate the ingame time.

    Setting this too LOW will reduce performance (more recalculations).

    Setting this too HIGH will result in "jerkiness" of day/night cycles.

    Default: 1000 (1 second).

  • timecycle-multiplier

    Multiplier to which real days relate to Minecraft days.

    Setting this too low or high will possibly have unexpected effects.

    Default: 1.0 (1 real day = 1 Minecraft day).

    Recommended minimum: 0.10.

    Recommended maximum: 72.0 (minecraft default).

    Examples:

    • 0.25 means 1 real day = 6 Minecraft hours
    • 0.5 means 1 real day = 12 Minecraft hours
    • 1.0 means 1 real day = 1 Minecraft day
    • 2.0 means 1 real day = 2 Minecraft days
    • 3.0 means 1 real day = 3 Minecraft days
  • reference-date

    Epoch date which the ingame time will be referenced from.

    Since minecraft 24000 is equal to 06:00:00, it is most realistic to set this to the same time, e.g: 2022-07-16T05:00:00.000Z

    The day is less relevant, but the daytime will be based on this date.

    Setting this too far in the past could have unexpected effects.

    Setting this to a future date could have unexpected effects.

    There are no ill effects of bringing this date closer to the current time even in previous worlds.

    Date parsing is done by built-in JS Date constructor. While you can use any format supported by the Date constructor, but only the documented formats here are officially supported.

    Default: based on the current date when config.json was generated

    Examples (assuming all other settings are their default):

    | reference-date | Current real time | Minecraft daytime | | -------------------------- | -------------------------- | ---------------------------- | | 2022-07-16T05:00:00.000Z | 2022-07-16T05:00:00.000Z | 0 | | 2022-07-16T05:00:00.000Z | 2022-07-17T05:00:00.000Z | 24000 (1 Minecraft day) | | 2022-07-16T05:00:00.000Z | 2022-07-17T00:00:00.000Z | 18000 (Minecraft midnight) | | 2022-07-16T06:00:00.000Z | 2022-07-16T05:08:00.000Z | 1000 (1 Minecraft hour) |