promotional bannermobile promotional banner

Custom Loading Screen

Allows you to completly customise the loading screen with json files. (Formally Better Loading Screen)

File Details

[1.12.2] 1.5.1

  • B
  • Mar 11, 2021
  • 933.86 KB
  • 37.8K
  • 1.12.2
  • Forge

File Name

CustomLoadingScreen-1.12.2-1.5.1.jar

Supported Versions

  • 1.12.2

Curse Maven Snippet

Forge

implementation fg.deobf("curse.maven:better-loading-screen-229302:3235316")
Curse Maven does not yet support mods that have disabled 3rd party sharing

Learn more about Curse Maven

  • Added various random number functions:
    • generate_seed(): Generates a new (48 bit integer) seed for use in other functions. (This should be saved in constants).
    • random(seed): calls random_seeded(seed, 0)
    • random(seed, index): returns a random number (between 0 and 1) based on both the seed and index - the idea being that you'd keep the seed the same, and pass an ever-increasing index to grab the next value for that seed.
    • randomint(seed, max): calls randomint(seed, 0, max)
    • random_int(seed, index, max): returns a random integer between 0 and max-1. Internally this is just min(max - 1, random(seed, index) * max), but it's a lot easier to type this way.
  • Added "constants" as a root object to config.json
    • Unlike "variables" these are evaluated once only rather than once per frame.
    • These are ideal for storing random number seeds
  • Added "functions":
    • These are in the form "name(ArgType1 arg1, ArgType2 arg2)": "arg1 + arg2".
  • Updated "sample/slideshow" to use all 3 of the above features. In particular a few variables have been extracted out to the top of the file:
    • "image_interval", the number of seconds to display each slide for
    • "transition_duration", the number of seconds to transition from one slide to another.
    • "tip_interval", the number of seconds to wait between changing what tip is displayed.
    • "randomslideorder", This should be "true" to use a random slide each time rather than going sequentially.