Feature Request: [Integration] Reinforced Chests, Shulker Boxes, Barrels
perlytiara opened this issue · 5 comments
Feature Request: [Integration] Reinforced Chests, Shulker Boxes, Barrels
Description
I propose adding integration support in CC:Tweaked for the following mods to allow turtles (and potentially other computers) to interact with their storage blocks as inventories, similar to how they handle vanilla chests, barrels, and shulker boxes:
- Reinforced Chests - Adds upgraded chests (e.g., iron, gold, diamond, netherite) with increased storage capacity (up to 108 slots for a single chest, 216 for large variants) and enhanced durability, including blast, fire, and lava resistance.
- Reinforced Barrels - Similar upgrades for barrels, providing larger inventory sizes and improved resilience.
- Reinforced Shulker Boxes - Enhanced shulker boxes with expanded storage and durability features.
Currently, assuming these modded storage blocks do not fully expose their inventories in a way that CC:Tweaked recognizes (based on common mod compatibility patterns seen in similar mods like Iron Chests), turtles cannot reliably input or output items using methods like turtle.suck(), turtle.drop(), or peripheral wrapping. This limits automation in modpacks where these storage options are popular for their efficiency.
How the Feature Should Work
- Interaction Mechanics: Turtles should treat these reinforced blocks as standard inventories when adjacent. For example:
turtle.suck()should pull items from the reinforced chest/barrel/shulker box into the turtle's inventory, respecting slot limits and item stacking.turtle.drop()should insert items from the turtle into the reinforced storage, again handling stacking and available space.- If wrapped as a peripheral (e.g., via
peripheral.wrap("front")), methods likepushItems()andpullItems()should function identically to vanilla equivalents. - Support for inspecting inventory contents (e.g.,
list()orgetItemDetail()) to allow programmatic inventory management.
- Placement and Orientation: Interactions should work regardless of the turtle's facing direction relative to the block, as long as it's adjacent, mirroring vanilla behavior.
- Compatibility Details: This should be implemented for both Fabric and Forge versions of CC:Tweaked, targeting Minecraft 1.19+ (as these mods support those versions). No changes to the mods themselves should be required; instead, CC:Tweaked could detect these blocks via their registry names or inventory capabilities (e.g., using Forge's
IItemHandleror equivalent Fabric APIs). - Edge Cases: Handle large capacities properly without overflows, and ensure shulker boxes work both placed and in-item form if applicable (though primary focus on placed blocks for turtle interaction).
Rationale and Use Case
What issue are we trying to solve?
In modded Minecraft environments, players often replace vanilla storage with upgraded alternatives like those from the Reinforced series for better capacity, organization, and protection against explosions or environmental hazards. However, without native support in CC:Tweaked, turtles— a core tool for automation—cannot access these storages. This breaks common workflows, such as automated farming, mining, or sorting systems, forcing players to either avoid these mods, use less efficient vanilla storage, or rely on workaround mods/pipes from other tech mods (e.g., Create or Mekanism). This incompatibility reduces the appeal of CC:Tweaked in popular modpacks where storage upgrades are standard.
Is this the best way to solve this issue?
Yes, integrating directly into CC:Tweaked is optimal because:
- It centralizes compatibility in the mod that handles the automation logic, avoiding the need for patches or addons in the storage mods (which are lightweight and not focused on tech integration).
- Similar integrations already exist or have been requested for other storage mods (e.g., Iron Chests discussions in related communities), proving this approach works without overcomplicating things.
- Alternatives like custom Lua scripts or peripheral addons would be brittle and user-dependent, whereas built-in support ensures reliability across updates.
- It's a low-impact change: Likely just adding block mappings or capability checks, without altering core CC:Tweaked mechanics.
This would greatly enhance CC:Tweaked's interoperability, making it more versatile in the modding ecosystem.
If this feature already exists or there's an existing workaround (e.g., via a config or third-party addon), please let me know— I couldn't find any references in searches or docs. Thanks for considering!
Please don't use AI to write feature requests.
I'm fairly sure this is a bug with these mods, as none of them register an item storage implementation. We could probably fall back to detecting vanilla Containers, will have a look.
This should be implemented for both Fabric and Forge versions of CC:Tweaked, targeting Minecraft 1.19+ (as these mods support those versions).
All these mods are Fabric only as far as I can tell.
Yes Thank you for your reply i did not use ai you don't know that i am just a very happy user of the backpack mod sir
When are you guys going to release / work on it i would love to see the work live in the commits thank you for your patience
Sorry, just sat down to test this with the "Reinforced Chests", and as far as I can tell, everything appears to work already.
Just to clarify, tested with the following:
- Minecraft 1.20.1
- Fabric API 0.86.1
- Reinforced Chests 2.4.2
And, to reproduce:
- Placed down a deepslate chest in front of a turtle.
- Wrapped the peripheral and listed items inside it (
peripheral.wrap("front").list()). - Pushed and pulled items via the
turtleAPI (turtle.drop(),turtle.suck()).
Do you get something different? If so, are you able to upload your logs?