Minecraft.How
加载中...
跳至内容

Bundle API

作者 TheRedBrain

Bundle API gives mod authors a ready-made CustomBundleItem class so they can add bundles that hold multiple item stacks filtered by a tag. Works on Fabric, Forge, and Neoforge for Minecraft 1.20.1, 1.21, 1.21.1, 26.1, 26.1.1, 26.1.2, and 26.2.

我们的介绍

这个项目能做什么

What Bundle API does for mod authors Bundle API is a library mod that gives other mods a clean way to add custom bundle items. Instead of writing bundle logic from scratch, a mod author calls the CustomBundleItem constructor, registers the item, and supplies models and textures. The bundle can hold more than one stack of items, and the allowed items are defined by an item tag. This keeps the implementation consistent with how vanilla bundles behave while letting each mod set its own capacity and filter rules. ## Who this is for The mod is aimed at developers who want to ship bundle-like items in their own projects. Players don't interact with Bundle API directly; they only see the custom bundles that other mods create using it. If you are a player looking for new storage options, you need a content mod that depends on this API. If you're a mod author, the API removes the boilerplate of inventory handling, rendering, and network sync for bundle-style items. ## Verified capabilities - Provides a CustomBundleItem class that handles multi-stack storage and tag-based filtering. - Requires both client and server installation so the bundle works in singleplayer and on dedicated servers. - Distributed under the MIT license, so it can be included in modpacks and derivative works without restriction. - The repository includes a minimal usage example and Gradle snippets for adding the dependency via Modrinth's Maven repository. ## Compatibility and version details Bundle API supports three mod loaders: Fabric, Forge, and Neoforge. The declared Minecraft versions are 1.20.1, 1.21, 1.21.1, and the 26.x series (26.1, 26.1.1, 26.1.2, 26.2). These are discrete entries; don't assume every point release between them is supported. The latest repository build targets 26.3, but that version isn't listed in the project's official game_versions array, so it isn't covered by this description. ## Installation note for developers Add the Modrinth Maven repository to your build.gradle, then declare a modImplementation dependency on maven.modrinth:bundle-api with the version you need. The repository's gradle.properties example uses 1.0.0 as a placeholder; replace it with the actual version you intend to compile against.

反应

登录后即可做出反应。

兼容性

版本与加载器

已记录 8 个版本

1.2.0+1.20.1-fabric

release

下载 (85 KB)

1.2.0+1.20.1-forge

release

下载 (85 KB)

4.0.0+26.2-fabric

release

下载 (107 KB)

4.0.0+26.2-neoforge

release

下载 (107 KB)

3.0.0+26.1.2-neoforge

release

下载 (107 KB)

3.0.0+26.1.2-fabric

release

下载 (107 KB)

图库

Bundle API icon

我们使用 Cookie 来改善您的体验。继续使用本网站即表示您同意我们使用 Cookie。 阅读我们的隐私政策