promotional bannermobile promotional banner

Custom Loading Screen

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

[1.12.2] 1.5.1

File nameCustomLoadingScreen-1.12.2-1.5.1.jar
Uploader
AlexIILAlexIIL
Uploaded
Mar 11, 2021
Downloads
37.9K
Size
933.9 KB
Mod Loaders
Forge
File ID
3235316
Type
B
Beta
Supported game versions
  • 1.12.2

Curse Maven Snippet

Forge

implementation fg.deobf("curse.maven:better-loading-screen-229302:3235316")

Learn more about Curse Maven

What's new

  • 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.

This mod has no additional files