Перейти к содержимому

CC: Bundles

Allows CC: Tweaked turtles to equip and use vanilla Minecraft bundles.

Fabric
Загрузчики
Fabric
Скачиваний на Modrinth
62
Подписчиков на Modrinth
0
версия
1
Обновлён
10 августа 202610 авг.
Опубликован
в 2026

Коротко о моде

Работает на Fabric
Для Minecraft 26.2
Нужен и в игре, и на сервере
Последняя версия — 1.0 от 10 августа 2026
Лицензия MIT — бесплатно
Где нужен
В игреобязателенНа сервереобязателен

Нужен и в игре, и на сервере

Версии игры26.2
Перевода пока нет — показываем оригинал на английском

CC:Bundles

CC:Bundles allows CC:Tweaked turtles to equip and use vanilla Minecraft bundles as inventory peripherals.

  • Regular bundles + all 16 dyed variants
  • Preserves bundle color and contents when equipped/unequipped
  • CC:Tweaked-style inventory API
  • Bundle capacity utilities
  • bundleCost item information
  • Direct access to the turtle's inventory
  • Dump bundle contents into the world

API

MethodDescription
size()Number of unique item variants
list()List bundle contents
getItemDetail(slot)Detailed item info, including bundleCost
getItemLimit(slot)Item limit for a virtual slot
pushItems(toName, fromSlot [, limit [, toSlot]])Move items out of the bundle
pullItems(fromName, fromSlot [, limit [, toSlot]])Move items into the bundle
slotsFull()Used capacity out of 64
slotsFree()Remaining capacity out of 64
dump()Dump all contents in front of the turtle

Inventory methods follow the conventions of CC:Tweaked's generic inventory peripheral.

Using a Bundle

Once equipped, wrap the bundle as a peripheral:

local bundle = peripheral.wrap("left")

or:

local bundle = peripheral.wrap("right")

Virtual Slots

Bundles do not have fixed inventory slots.

Each unique stored item variant is exposed as a virtual slot:

{
    [1] = {
        name = "minecraft:oak_planks",
        count = 12
    },

    [2] = {
        name = "minecraft:diamond",
        count = 3
    }
}

Items with different components or stored data are separate variants.

Virtual slot numbers may change when contents change.

size() returns the number of current virtual slots, not a fixed inventory size.

bundleCost

getItemDetail(slot) includes:

bundleCost

Capacity used by one item:

64-stackable item  = 1
16-stackable item  = 4
non-stackable item = 64

Example:

local item = bundle.getItemDetail(1)

print(item.name)
print(item.count)
print(item.bundleCost)

CC:Bundles also adds bundleCost to:

turtle.getItemDetail(slot, true)

The second argument must be true.

local item = turtle.getItemDetail(4, true)

if item then
    print(item.bundleCost)
end

This can be used with slotsFree() to determine how many items will fit:

local item = turtle.getItemDetail(4, true)

if item then
    local maxFit = math.floor(bundle.slotsFree() / item.bundleCost)

    bundle.pullItems(
        "turtle",
        4,
        math.min(item.count, maxFit)
    )
end

Moving Items

pullItems() moves items into the bundle:

bundle.pullItems(fromName, fromSlot [, limit [, toSlot]])

pushItems() moves items out of the bundle:

bundle.pushItems(toName, fromSlot [, limit [, toSlot]])

Both return the number of items moved.

Turtle Inventory

Turtle slot 4 → bundle:

bundle.pullItems("turtle", 4)

At most 8 items:

bundle.pullItems("turtle", 4, 8)

Bundle slot 1 → turtle:

bundle.pushItems("turtle", 1)

Into turtle slot 6:

bundle.pushItems("turtle", 1, 8, 6)

Other inventories use their normal peripheral names.

Bundle Capacity

bundle.slotsFull()
bundle.slotsFree()

Both use Minecraft's actual bundle capacity rules.

bundle.slotsFull() + bundle.slotsFree()

always equals:

64

Dumping Contents

local count = bundle.dump()

dump():

  • Dumps the entire bundle in front of the turtle

Example: Find an Item

for slot, item in pairs(bundle.list()) do
    if item.name == "minecraft:diamond" then
        print(slot, item.count)
    end
end

Documentation

Частые вопросы

Как установить CC: Bundles?

Установите Fabric под свою версию Minecraft, скачайте CC: Bundles под ту же версию и загрузчик, положите файл в папку mods и запустите игру с профилем загрузчика.

Для каких версий Minecraft есть CC: Bundles?

У CC: Bundles есть сборки для Minecraft 26.2.

Нужен ли CC: Bundles на сервере?

Нужен и в игре, и на сервере

Лицензия и источник
MIT Licenseможно свободно использовать и распространять с указанием автора
Оригинал — Modrinth↗Файлы — без изменений, проверены по SHA-512Это ваш мод? Правообладателям

Сайт использует cookie: необходимые — для входа и темы, а также счётчики посещений Яндекс Метрика и LiveInternet — по ним мы видим, как пользуются сайтом. Рекламных cookie у нас нет. Подробнее