Evening Star Lib
A Minecraft modding library created from code that had to be constantly rewritten in different projects.
Evening Star Lib offers a set of tools to speed up mod development, including utilities for ensuring compatibility between modifications, working with graphics, and processing positional data.
The library is actively developed and regularly updated with new features!
Main Features
Documentation in progress
Adding to Project
Repository:
repositories {
maven { url = "https://api.modrinth.com/maven"}
}
Dependency:
Replace
dependencies {
modImplementation ("maven.modrinth:eveningstarlib:<VERSION>")
}
Mod Checks
ESLModChecks.isIris():
Returns a boolean value indicating the presence of Iris on the client side.
ESLModChecks.isShaders():
Returns a boolean value showing whether a shaderpack is currently in use (executes isIris() internally, no need to duplicate). Requires compilation with Iris at minimum.
ESLModChecks.isSodium(): Returns a boolean value indicating the presence of Sodium on the client side.
Rendering Utilities
ESLRenderUtils.getCamera(): Returns a Camera of the game instance camera.
ESLRenderUtils.getCameraPos(): Returns a Vec3d of the game instance camera position.
Position Utilities
ESLPositionUtils.posAtRanScreenEdge(): Returns a Vec2f of a random position along the edge of the game window.