Fabridash 模组
使用此模组,你将能够借助 3 种不同的物品在世界中冲刺!此外,如果你是开发者,还可以将此模组作为 API,将冲刺功能(懂吧?嘿嘿)集成到你的项目中!
冲刺物品
与其他模组不同,要使用此模组进行冲刺,你需要先找到一些宝藏!具体来说是一个冲刺球(Dash Globe),它可以在古代城市、矿洞等结构的宝箱中找到!(掉落率从矿洞的最低 12% 到末地城的最高 30% 不等)。
一旦获得核心物品,你就可以制作真正的“冲刺器”(是的,我挺喜欢玩谐音梗):
你可以右键点击冲刺器物品来进行冲刺。
铁制冲刺器 (Iron Dasher)
最基础(但也很强力)的物品,能让你踏上下一段旅程,合成方式如下:
(需要消耗:1 个冲刺球、4 个铁块、4 个红石块)
它将提供不错的加速效果(倍率为 1),冷却时间为 80 刻。

钻石冲刺器 (Diamond Dasher)
铁制冲刺器的进阶版本,合成方式如下:
(需要消耗:1 个冲刺球、4 个钻石块、4 个红石块)(是的,相当昂贵)
它将提供更大的加速效果(倍率为 2),冷却时间为 120 刻。

黑曜石冲刺器 (Obsidian Dasher)
钻石冲刺器的奇特且“反向”版本,合成方式如下:
(需要消耗:1 个钻石冲刺器、4 个黑曜石)
此物品允许你进行向后冲刺,倍率为 2,冷却时间为 120 刻(与钻石冲刺器相同,但方向相反)。

当激活上述任一物品时,你会听到冲刺音效并看到粒子效果!
赞助
如果你喜欢这个模组,随时可以通过 Ko-fi 请我喝杯咖啡。
配置与游戏规则
为了获得更高的冲刺加速效果,你可以使用 dashMultiplier 游戏规则。该值将乘以物品的默认值。
还有一个配置文件,你可以在其中完全禁用物品,仅将其用作 API。
面向开发者
一旦将模组集成到你的项目中(参见设置部分),你只需调用 Fabridash.dash(Entity entity, float power, boolean reversed)。
entity 是执行冲刺的主体,power 决定冲刺的距离,而 reversed 设为 true 将使实体向后移动而不是向前。就这样。
即将推出
我可能会扩展冲刺的方式,从按键触发扩展到可能的“被动”技能或命令。所有这些选项都将可切换。此模组的诞生是为了为未来需要冲刺能力的其他项目创建 API。就像我的另一个(算是“主要”)项目 LightWithin!(实际上,它也是因为这个项目以及我的其他几个库而诞生的)
安装设置
普通用户
将你从 CurseForge 或 Modrinth 下载的 .jar 文件拖放到你的 mods 文件夹中即可!
开发者
如果你想使用模组的 API 模块,请在 build.gradle 中添加它,使用 Modrinth 的仓库,如下所示:
repositories {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
content {
includeGroup "maven.modrinth"
}
}
}
dependencies {
modImplementation "maven.modrinth:fabridash:<version>"
}
你甚至可以直接提取 API 模块并按原样使用,但请记住注册客户端接收器!
许可证
本模组遵循 MIT 许可证开源。
Fabridash Mod
With this mod you will be able to dash across your world, using 3 different items! And also, if you are a developer you may use this mod as an API to integrate dashing (get it? eheh) into your project!
The Dash items
Unlike other mods, to perform a dash with this mod you will need to find some treasure first! A Dash Globe to be precise, and it can be found inside treasure chests from ancienty cities, mineshafts and such! (with a chance that goes from a minimum of 12% in mineshafts to 30% in the end city).
Once you obtain the core item, you may craft the actual "dashers" (yeah, I kinda like making puns):
You can dash by right clicking the dasher item.
Iron Dasher
The most basic (yet powerful) item that will let you dash to your next journey, you can craft it like this:
(It will require a Dash Globe, 4 Iron Blocks, 4 Redstone Blocks)
It will provide a decent boost (multiplier of 1) and it has a cooldown of 80 ticks.

Diamond Dasher
The advanced version of the iron dasher, which you can craft like this:
(It will require a Dash Globe, 4 Diamond Blocks, 4 Redstone Blocks) (yes pretty expensive)
It will provide a bigger boost (multiplier 2) with a cooldown of 120 ticks.

Obsidian Dasher
The weird and "reversed" version of the diamond dasher, craftable like so:
(It will require a Diamond Dasher, 4 Obisidian)
This item will let you do a backwards dash, with a multiplier of 2 and a cooldown of 120 ticks (just like the diamond one, but reversed in direction)

Whenever one of this gets activated you will hear a dash sound effect, and see some particles!
Sponsor
If you like the mod you can always buy me a kofi
Config & gamerule
To have a higher boost for the dash you can use the dashMultiplier gamerule. This value will be multiplied by the default value of the items.
There is also a config file, where you can disable the items entirely and only use this as an API
For developers
Once you've got the mod implemented into you project (See setup), you will simply need to call Fabridash.dash(Entity entity, float power, boolean reversed)
The entity is the one that will perform the dash, the power is how far it will go and the reversed on true will make the entity go backwards instead of forward. And that's it.
Coming soon-ish
I will probably expand the ways in which you will be able to dash, going from a key press to maybe a "passive" ability, or a command. All of which will be togglable. This mod was born to create an API for future projects in need of a dash ability. Like my other (kind of "main") project LightWithin! (actually it was born because of that project like a few of my other libs)
Setup
Users
Drag and drop the .jar file you have downloaded from curseforge/modrinth and drop it into your mods folder!
Developers
If you want to use the api module of the mod, add it in your build.gradle, using modrnith's repo like this:
repositories {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
content {
includeGroup "maven.modrinth"
}
}
}
dependencies {
modImplementation "maven.modrinth:fabridash:<version>"
}
You could even extract the API module and use it as is, but remember to register the client reciver!
License
This mod is available under the MIT license.
评论 0
登录后参与评分
还没有评论,来抢沙发吧