跳到正文

Butterfly API

作者:Moth_SKW

An API to simplify Math and Registries.

收藏

介绍

中文介绍正在准备中,下面暂时显示原文。

Butterfly API

Butterfly API is a simple helper API for my Fabric mods.

It mostly exists to make things easier for me and allow things that would normally take a lot of code in my projects to be more compact by leaving it to Butterfly API to handle instead.


What It Adds

Butterfly API adds helper systems for many mod features and systems, like registering items, blocks, sounds, entities, particles, enchantments, recipes, status effects, and other basic content.

There’s also a very in-depth Outline Library that heavily expands on the idea from the Glowing effect in vanilla, now allowing it to be applied to near-anything, and it also gives much more visual control to make things look exactly how you want them.

It also includes helper code for creative tabs, client setup, simple gameplay math, and reusable plush blocks.

Lastly there’s also a large system in place for Text features, for things like more color control, gradients, and rotations and mirroring on Text, and there’s also a simple system for tooltips aswell for expanding tooltips and such.


Plushes

Butterfly API includes a shared plush system used by some of my mods.

This makes it easier to add small placeable plush blocks with things like direction, waterlogging, honk sounds, squish behavior, and optional GeckoLib Animations.


For Developers

Butterfly API can be used by other Fabric mod developers who want access to the same helper systems I use in my own mods.

The GitHub page includes more information about the API, setup, usage, and examples for using it in your own project.

GitHub: https://github.com/Moth-SKW/Butterfly-API

常见问题

Butterfly API 支持哪些 Minecraft 版本?

Butterfly API 支持 Minecraft Java 版 1.20.1–26.3,共 6 个版本,可用的加载器:Fabric / Quilt。下载时注意选择和你游戏版本一致的文件。

Butterfly API 怎么安装?

先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric / Quilt,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。

评论

登录后评论和评分

Moth_SKW 的其他作品

查看全部 →