Go to file
DBotThePony b7b2b8095c
Revert "Remove otmRandom"
This reverts commit 5a016bef

The way OTM uses random generator in its code will quickly cause LCG used in Minecraft to show its bias
because LCG in minecraft samples its highest 48 bits, which gives us at best 2^16 period in the lowest bit returned by LCG.
Which it doesn't sound bad, it quickly causes RNG become biased the quicker/more it is sampled on each tick, especially considering
some may use `level.random.nextInt(chance) == 0` to determine chance of something happening,
which will get extremely biased on heavy RNG congested environment
If we avoid sampling Level's generator this much, we won't suffer from bias in our own code, as well as avoid biasing other mods this much.

The "2^16 period" problem is also might be the reason why Entities get their own instance of RandomSource, and Mob Goals use random exactly the way described above (`nextInt(chance)`), which can and will suffer from bias the moment mob exists in world for more than 2^16 ticks (but actual bias will happen sooner because RNG is not sampled only once per tick, obviously)
2025-03-15 10:04:16 +07:00
color datagen regen essence storage colored textures 2025-02-26 15:41:57 +05:00
gradle/wrapper Bump to Minecraft 1.21, Forge to 58, JEI, KFF, Kotlin to 2.0.0 2024-06-29 14:06:52 +07:00
src Revert "Remove otmRandom" 2025-03-15 10:04:16 +07:00
.editorconfig Hook directly into Inventory#add using coremod 2022-10-01 19:43:22 +07:00
.gitattributes Hook directly into Inventory#add using coremod 2022-10-01 19:43:22 +07:00
.gitignore Ignore /runs whole 2024-08-27 21:38:35 +07:00
build.gradle.kts Add Caffeine Cache dependency 2025-03-05 10:51:30 +07:00
changelog.txt начальный коммит 2021-08-07 14:42:03 +07:00
colomposer.js Update striped tritanium block texture 2023-06-20 18:08:54 +07:00
colorizer.js tritanium d00r, painted 2022-11-27 00:16:27 +07:00
gradle.properties Provide GJRAND64RandomSource 2025-03-09 21:26:44 +07:00
gradlew Bump to Minecraft 1.21, Forge to 58, JEI, KFF, Kotlin to 2.0.0 2024-06-29 14:06:52 +07:00
gradlew.bat Bump minecraft version to 1.20.2 2023-09-29 15:40:13 +07:00
LICENSE.txt README and LICENSE 2022-10-05 18:12:55 +07:00
machine_colorizer.js Colored machines test, update creative menu order 2024-01-03 18:36:06 +07:00
NOTICE.md забыл 2023-05-07 16:02:28 +03:00
README.md Add better random to recommended mods 2025-03-11 17:53:18 +07:00
settings.gradle.kts Resolve most of simple enough compilation errors 2024-08-10 01:24:15 +07:00
shapegen.js Recolorer script 2022-05-16 18:08:28 +07:00

Overdrive That Matters

Minecraft tech-oriented mod with science fiction style, about matter, and energy, combined.

Required mods

  • Kotlin for Forge or have Kotlin standard library in classpath (at least 2.0.0 is required)
  • Ferrite Core, reduces memory usage
    • In case of Overdrive That Matters, greatly reduces JVM heap bloat caused by model data being duplicated
  • Better Random

Mods with special compatibility code


Building

Bash/Shell:

./gradlew runData
./gradlew build

Windows command prompt:

gradlew runData
gradlew build

Building data is required before building the mod Jar because it is not commited to avoid bloating git history with generated blobs.


License

Unless otherwise stated in NOTICE, assets in mod are licensed under 2-Clause BSD

Copyright 2021-Present DBotThePony, GearShocky, YuRaNnNzZZ, Overdrive That Matters Contributors

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE