Compatibility
Minecraft: Java Edition
Platforms
Supported environments
Links
Tags
Creators
Details
Riftxs Lib
Riftxs Lib is a library for Minecraft Forge 1.20.1 that helps developers make mods. It has a lot of tools that make it easy to create things. Of writing the same code over and over you can use Riftxs Lib and focus on making your mod fun.
Whether you are making a mod or a big one Riftxs Lib has powerful tools that are easy to use. You can make your mod do lots of things.
Features
Physics API
You can make custom physics for entities and blocks. This means you can control how they move and interact with the world.
Entity Physics
-
You can change the gravity for entities
-
You can apply forces to entities
-
You can control the velocity of entities
-
You can add drag and air resistance
-
You can change these things at any time
Block Physics
-
You can change the friction for blocks
-
You can make blocks bounce
-
You can simulate mass for blocks
-
You can make blocks affected by gravity
Collision System
-
Entities can collide with each other
-
Entities can collide with blocks
-
You can make custom collision filters
-
You can handle collision events
Error Popup API
You can show custom popups and notifications in Minecraft.
This includes:
-
Information messages
-
Warning dialogs
-
Error dialogs
-
Fatal error dialogs
-
Action buttons like OK Cancel, Yes No, Retry and Ignore
-
A popup queue system
-
Persistent notifications
Animation API
You can change entity animations without rewriting the animation code.
This includes:
-
animation speed
-
Per-animation speed
-
Entity animation scaling
-
Body part scaling
-
Custom animation modifiers
There're built-in modifiers like:
-
Slow Motion
-
Fast Forward
-
Reverse
-
Freeze
-
You can also make your custom modifiers
Model Import API
You can import external 3D models into Minecraft.
This supports:
-
OBJ files
-
FBX files
-
files
This includes:
-
OBJ parser
-
Vertex support
-
UV support
-
Normals
-
Materials
-
Mesh registry
-
Bone system
-
Skeletal animation support
-
Model registry
Installation
Requirements
-
You need Minecraft 1.20.1
-
You need Minecraft Forge 47.4.21 or newer
-
You need Java 17
Developer Setup
You need to add Riftxs Lib to your build.gradle.
dependencies {
implementation fg.deobf("com.riftx.lib:riftxlib:1.0.0")
}
You need to add the dependency to mods.toml.
[[dependencies.yourmodid]]
modId="riftxlib"
mandatory=true
versionRange="[1.0.0,)"
ordering="AFTER"
side="BOTH"
Here is an example of how to use Riftxs Lib:
import com.riftx.lib.RiftxLib;
// Physics
Riftxs Lib PHYSICS_API.setEntityGravity(entity, 0.5);
Riftxs Lib PHYSICS_API.applyForce(entity, Vec3(0 0.5 0));
// Error Popup
Riftxs Lib ERROR_POPUP_API.showError("Error" "Something went wrong!");
Riftxs Lib ERROR_POPUP_API.showInfo("Welcome" "Library loaded successfully");
// Animation
Riftxs Lib ANIMATION_API.setAnimationSpeed(EntityType.ZOMBIE, 2.0f);
Riftxs Lib ANIMATION_API.setEntityAnimationScale(entity, 1.5f);
// Model Import
ModelData model = Riftxs Lib MODEL_IMPORT_API.importModel(file, ModelFormat.OBJ);
Frequently Asked Questions
Does Riftxs Lib add gameplay?
No Riftxs Lib does not add gameplay. It is a library for developers to make mods.
Can I include Riftxs Lib in my modpack?
Yes you can include Riftxs Lib in your modpack. Just make sure to respect the license.
Can I use Riftxs Lib in commercial or open-source projects?
Yes you can use Riftxs Lib in commercial or open-source projects. It is released under the MIT License.
Will Riftxs Lib support Fabric, NeoForge or Quilt?
Now Riftxs Lib only supports Minecraft Forge 1.20.1. Maybe in the future it will support platforms.
Where can I report bugs?
You can report bugs on the projects issue tracker or repository. Please include:
-
Your Minecraft version
-
Your Forge version
-
Your Riftxs Lib version
-
Your crash report or latest.log
-
Steps to reproduce the bug
Is Riftxs Lib stable?
The public APIs are designed for production use. Some features may change between major versions. Always check the changelog before updating.
Terms of Use
By using Riftxs Lib you agree to these terms:
-
Do not claim Riftxs Lib as your work
-
You can use Riftxs Lib in public projects
-
You can include Riftxs Lib in modpacks
-
You can modify the source code for use
-
If you redistribute versions you must say that you made changes
-
Do not remove copyright or license notices
-
Riftxs Lib is provided "as is" without warranty
-
The developers are not responsible, for any damage caused by using Riftxs Lib
For the legal terms see the MIT License.
Credits
-
Riftx: Creator and lead developer
-
Loldog: Scripting assistance
-
Minecraft Modding Community: Feedback, inspiration and community resources
License
Riftxs Lib is licensed under the MIT License. See LICENSE.txt for the license text.



