Riftx's Lib
No reviews yet
A modding library for Minecraft Forge 1.20.1. Features: Physics API (gravity, collision), Error Popup API (custom messages), Animation API (scaling, modifiers), Model Import API (OBJ, FBX, GLTF with bone support). Perfect for mod developers.
Provides a framework or library for other mods to use.
Forge is a popular mod loader for versions 1.1+ of Minecraft.
Community voices
Reviews
Click once to include, again to exclude, again to clear
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
Compatibility
Supported Environments
About
Project Details
For authors
Embed Badge
If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
Resources
External Links
About
Description
Riftxs Lib
Riftxs Lib is a library for Minecraft Forge 1.20.1 that helps developers make Minecraft mods. It gives them tools and systems that they can use to make their mods.
When you make a mod you do not have to start from scratch. Riftxs Lib has things that you can use, like physics and animations that you can just put into your mod. This saves you a lot of time and work.
Features
Physics API
You can make your physics for things in the game like entities and blocks. This means you can control how they move and react to things.
You can make your gravity
You can control how fast things move
You can apply forces to things
You can make things resist air and drag
You can make blocks feel heavy or light
You can make blocks bounce
You can make blocks that pull things towards them
You can make your collision detection
You can filter out collisions
Error Popup API
You can make your popups in the game to tell players things. These popups can have buttons that players can click.
Features include:
You can make popups that just give information
You can make popups that warn players about things
You can make popups that tell players about errors
You can make popups that tell players about bad errors
You can add buttons to your popups
You can make a queue of popups
You can make notifications that stay on the screen
You can use these buttons:
OK
Cancel
Yes
No
Retry
Ignore
Animation API
You can change how entities animate without having to write a lot of code. This means you can make them move and act in ways.
Features:
You can make all animations go faster or slower
You can make individual animations go faster or slower
You can make entities bigger or smaller
You can make parts of entities smaller
You can add your animation effects
There are some built-in effects that you can use:
Slow Motion
Fast Forward
Reverse
Freeze
Model Import API
You can bring models from outside the game into Minecraft. This means you can use models that you made or found elsewhere.
Riftxs Lib supports these formats:
OBJ
FBX
glTF
It includes:
A full parser for OBJ files
Support for meshes
Support for materials
Support for UV mapping
Support for normals
A bone system
animation
A model registry
Installation
To use Riftxs Lib you need:
Minecraft 1.20.1
Minecraft Forge. Newer
Java 17
You need to add Riftxs Lib to your project.
Build.gradle
dependencies {
implementation fg.deobf("com.riftx.lib:riftxlib:1.0.0")
}
mods.toml
[[dependencies.yourmodid]]
modId="riftxlib"
mandatory=true
versionRange="[1.0.0,)"
ordering="AFTER"
side="BOTH"
Here is an example of how you can use Riftxs Lib:
import com.riftx.lib.RiftxLib;
// Physics
Riftxs Lib PHYSICS API sets the gravity of an entity to 0.5
Riftxs Lib PHYSICS API applies a force to an entity
// Error Popup
Riftxs Lib ERROR_POPUP_API shows an error popup
// Animation
Riftxs Lib ANIMATION_API sets the animation speed of a zombie to 2.0
// Model Import
Riftxs Lib MODEL_IMPORT_API imports a model from a file
Frequently Asked Questions
Does Riftxs Lib add gameplay to Minecraft?
No Riftxs Lib does not add gameplay to Minecraft. It is a library that helps developers make mods.
Can I use Riftxs Lib in my mod?
Yes you can use Riftxs Lib in your mod. You are free to use it in both public projects.
Can I include Riftxs Lib in a modpack?
Yes you can include Riftxs Lib in a modpack. You can use it in private modpacks.
Does Riftxs Lib support NeoForge, Fabric or Quilt?
No Riftxs Lib does not support NeoForge, Fabric or Quilt now. It only works with Minecraft Forge 1.20.1.
Where do I report bugs in Riftxs Lib?
If you find a bug in Riftxs Lib please tell us about it. We need to know:
What version of Minecraft you are using
What version of Forge you are using
What version of Riftxs Lib you are using
What the crash report says
What the latest.log says
How to make the bug happen again
Terms of Use
When you use Riftxs Lib you have to agree to these rules:
Do not say that you made Riftxs Lib
You can use Riftxs Lib in private mods
You can include Riftxs Lib in modpacks
You can change the source code of Riftxs Lib for your use
If you share a changed version of Riftxs Lib you have to say that it has been changed
You have to keep all the copyright and license notices
Riftxs Lib is provided "as is" without any warranty
Credits
Riftx is the creator and lead developer of Riftxs Lib.
Loldog helped with scripting.
The Minecraft Modding Community gave us feedback and inspiration.
License
Riftxs Lib is licensed under the MIT License. You can find the license information, in the LICENSE.txt file.
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.
Screenshots
Gallery
Versions
Files
Relations
Project Relations
More like this
Similar Mods
Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.
On ModDex
Community snapshot
By the numbers
Statistics
Want to reach Minecraft players?
We're looking for a server hosting partner to feature here and other parts of the site. Interested? Send us a message!
Get in touchGet it on
Available Platforms
On ModDex
Community snapshot
By the numbers
Statistics
Resources
