Caelus API

Caelus API

热度 1029481914
最近更新11 个月前
一个核心模组和 API,通过实体属性为开发者提供对鞘翅飞行机制的访问权限。 A coremod and API ...

Caelus是一个小型实用模组,它将硬编码的原版鞘翅行为抽象为更通用的鞘翅飞行属性,并将其提供给那些希望为自己的模组实现鞘翅飞行功能的模组开发者。

模组开发者只需在希望对飞行属性应用修改器的任何地方调用CaelusApi.getInstance().getFallFlyingAttribute() 。该属性的默认值为0,这将禁止任何鞘翅飞行。属性值大于或等于1将启用鞘翅飞行。原版鞘翅物品也已被修改为使用此属性,保持其行为与正常情况相同。

有关如何与该属性进行交互的更多信息,请参阅Minecraft维基百科。

添加到您的项目中:

将以下内容添加到您的build.gradle文件中:

repositories { maven { name = 'C4的Maven库' url = 'https://maven.theillusivec4.top/' } }

Forge

dependencies { runtimeOnly "com.illusivesoulworks.caelus:caelus-forge:${version}" compileOnly "com.illusivesoulworks.caelus:caelus-forge:${version}:api" }

NeoForge

dependencies { runtimeOnly "com.illusivesoulworks.caelus:caelus-neoforge:${version}" compileOnly "com.illusivesoulworks.caelus:caelus-neoforge:${version}:api" }

将 ${version} 替换为您想要使用的Caelus版本。

支持

请将所有错误、问题和功能请求报告到问题跟踪器。

如需非技术支持和咨询,请加入开发者的Discord服务器。

许可证

所有源代码和资源均根据LGPL - 3.0或更高版本进行许可。

捐赠

可以通过Ko-fi向开发者进行捐赠。

附属机构


Caelus is a small utility mod that abstracts the hardcoded vanilla elytra behavior into a more generic elytra flight attribute and exposes this to mod developers seeking to implement elytra flight for their own mods.

All modders have to do is call CaelusApi.getInstance().getFallFlyingAttribute() wherever they want to apply a modifier to the flight attribute. The attribute has a default value of 0, which forbids any elytra flight. Attribute values greater than or equal to 1 will enable elytra flight. The vanilla elytra item has also been changed to use this attribute, keeping its behavior the same as normal.

For more information on how to interact with the attribute, see the Minecraft wiki.

Adding to Your Project:

Add the following to your build.gradle file:

repositories { maven { name = 'C4's Maven' url = 'https://maven.theillusivec4.top/' } }

Forge

dependencies { runtimeOnly "com.illusivesoulworks.caelus:caelus-forge:${version}" compileOnly "com.illusivesoulworks.caelus:caelus-forge:${version}:api" }

NeoForge

dependencies { runtimeOnly "com.illusivesoulworks.caelus:caelus-neoforge:${version}" compileOnly "com.illusivesoulworks.caelus:caelus-neoforge:${version}:api" }

Replace ${version} with the version of Caelus that you want to use.

Support

Please report all bugs, issues, and feature requests to the issue tracker.

For non-technical support and questions, join the developer's Discord.

License

All source code and assets are licensed under LGPL-3.0-or-later.

Donations

Donations to the developer can be sent through Ko-fi.

Affiliates

本站是资源分享站,资源均来自于互联网和用户自发分享,仅供学习和交流使用。如有版权问题,请联系管理员删除。

评论区 (0)

登录 后才能发表评论

暂无评论

快来发表第一条评论吧!