
Fabridash Mod
This mod allows you to perform rapid dashes across the game world using three special items! Additionally, developers can use Fabridash as an API to integrate the dashing system into their own projects.
Dash Items
Unlike other mods, to use dashes you first need to find a special artifact - the Dash Globe. This valuable item can be found in treasure chests in ancient cities, mineshafts, and other treasure locations. The discovery chance ranges from 12% in mineshafts to 30% in End cities.
After obtaining the core component, you can craft various dash devices:
Iron Dasher
A basic but effective tool for quick movement. Crafting recipe:
(Required: Dash Globe, 4 iron blocks, 4 redstone blocks)
Provides standard acceleration (multiplier 1) with an 80-tick cooldown.
Diamond Dasher
An enhanced version of the iron dasher with greater power:
(Required: Dash Globe, 4 diamond blocks, 4 redstone blocks)
Provides enhanced acceleration (multiplier 2) with a 120-tick cooldown.
Obsidian Dasher
An unusual version that allows performing backward dashes:
(Required: Diamond Dasher, 4 obsidian)
This item enables movement in the reverse direction with a multiplier of 2 and a 120-tick cooldown.
Activation of any device is accompanied by sound effects and particles!
Settings and Game Rules
To increase dash power, you can use the dashMultiplier
game rule. This value will be multiplied by the standard item parameters.
A configuration file is also available where you can completely disable items and use the mod exclusively as an API.
For Developers
After connecting the mod to your project, simply call the method Fabridash.dash(Entity entity, float power, boolean reversed)
, where:
entity
- the entity performing the dashpower
- dash strength (distance)reversed
- when set totrue
, the entity moves backward
Future Plans
Future plans include expanding dash usage methods - from key press activation to passive abilities and commands. All functions will be configurable. The mod was originally created as an API for projects requiring dash mechanics.
Installation
For Players
Place the downloaded .jar file in the mods folder.
For Developers
To use the API module, add to build.gradle:
repositories {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
content {
includeGroup "maven.modrinth"
}
}
}
dependencies {
modImplementation "maven.modrinth:fabridash:<version>"
}
You can also extract the API module separately, but don't forget to register the client receiver!
License
The mod is distributed under the MIT license.