federico

A 1.21.1 neoforge mod that add 3 blocks: storage reader, read all adiacent inventoryes; storage block, a storage without GUI that can only be accessed with the storage reader and can hold up to 64000 items/blocks, id dosn't interact with hoppers or similar ; storage IO imput and output fore the storage block that interact with hoppers

Kodari AI
KodariNov 4 at 3:02 pm 3
StorageNetwork
Adds three interconnected storage blocks to Minecraft NeoForge 1.21.1. The Storage Reader scans and displays contents of all adjacent inventories. The Storage Block is a GUI-less bulk storage unit holding up to 64,000 items, immune to hopper interactions, accessible only via the Storage Reader. The Storage IO block provides input and output interfaces for the Storage Block, enabling hopper-based item transfer into and out of the massive storage system, creating a high-capacity automated storage network.

Should the storage IO block automatically accept and output any item, or should players be able to configure which items it outputs? Also, should it connect only to directly adjacent storage blocks?

federico

it can interact with multiple storage blpcks as long they are connected and the player is able to chose the output

Kodari AI
KodariNov 4 at 3:10 pm 4
  1. Add connected storage blocks and configurable hopper input/output.

  2. Add a reader interface for adjacent inventories and storage networks.

  3. Add textures, recipes, and survival drops for all three blocks.I couldn’t complete the mod in this session, so there’s no working build to download yet. The intended behavior is connected storage blocks, a reader for adjacent inventories, and an IO block with player-selected output.

federico

Continue

Kodari AI
KodariNov 5 at 10:43 am 2
  1. Build connected storage with a 64,000-item capacity per block.

  2. Add a reader for adjacent inventories and connected storage.

  3. Add hopper-compatible IO with player-selected output, plus recipes and textures.I couldn’t complete a working mod in this session. The connected storage, reader interface, and configurable hopper IO still need implementation; no files were created.

federico

Continue

Kodari AI
KodariNov 6 at 10:07 am 4
  1. Build connected storage with a 64,000-item capacity per block.

  2. Add the reader interface and configurable hopper IO.

  3. Add block textures, recipes, and survival drops.

[Generation stopped]

federico

Continue

Kodari AI
KodariNov 6 at 10:09 am 6
  1. Create connected storage blocks with a 64,000-item limit per block.

  2. Add a reader interface and configurable hopper-compatible IO.

  3. Add textures, recipes, and survival drops.

Created the NeoForge project configuration and textures for the reader and IO block.

The mod is not yet playable: block registration, storage logic, interfaces, hopper integration, and recipes still need implementation.

federico

Continue

Kodari AI
KodariNov 6 at 10:12 am 4
  1. Register the three blocks and add their survival resources.

  2. Implement connected storage, the reader, and configurable IO.

Registered and textured the three blocks, with crafting recipes and mining drops:

  • Storage Block: chest surrounded by eight iron ingots.

  • Storage Reader: glass, redstone, chest, and iron ingots.

  • Storage IO: hopper, redstone, and iron ingots.

The blocks are not functional yet. Connected storage, the reader interface, and configurable hopper IO still need implementation.

federico

Continue

Kodari AI
KodariNov 7 at 9:31 am 4
  1. Implement persistent, connected storage with a 64,000-item limit per block.

  2. Add the reader interface.

  3. Add hopper-compatible IO with selectable output.

Added persistent storage to each Storage Block, with a 64,000-item capacity. Stored items drop when the block is broken, and the block does not expose hopper access.

Still unfinished: connecting storage blocks, the reader interface, and configurable hopper IO. The mod is not yet usable for storage in survival.

federico

continue

Kodari AI
KodariNov 8 at 6:38 am 3
  1. Connect storage blocks into a network.

  2. Add the reader interface.

  3. Add configurable hopper-compatible IO.

Added connected-storage traversal and transfer helpers. They discover adjacent chains of loaded storage blocks and route item transfers across them.

Still unfinished: the reader interface and configurable hopper IO. The helpers aren’t connected to either block yet, so storage remains unusable in survival.

federico

Continue

Kodari AI
KodariNov 9 at 6:18 am 4

I’ll connect the IO block to storage first, including a saved output filter and hopper capability. The reader interface remains the next piece.

Added hopper-compatible Storage IO for connected storage blocks. Right-click it with an item to select the output; sneak-right-click with an empty hand to clear the filter.

The reader interface is still unfinished, so the full mod isn’t ready yet. The Storage IO can be crafted from a hopper, redstone, and iron ingots.

federico

Continue

Kodari AI
KodariNov 10 at 6:24 am 4

I’ll make the reader usable for direct deposits and withdrawals first. The browsable interface will still need work.

The Storage Reader now deposits a held stack on right-click and withdraws the first available stack on empty-hand right-click. It checks connected storage blocks and accessible adjacent inventories.

Still unfinished: a browsable reader interface for choosing items. The current withdrawal is first-available only.

federico

continue

Kodari AI
KodariNov 10 at 10:10 am 4

I’ll add a browsable reader using a server-backed inventory menu, with paging for larger networks and selection to withdraw items.

Added a browsable Storage Reader menu. Empty-hand right-click opens it; click an item to withdraw a stack, right-click for one item, and use the arrows to browse pages. Right-click with an item still deposits it.

The display shows up to one stack per item type, not the total stored count. The changes haven’t been compiled or tested yet.

federico

Continue

Kodari AI
KodariNov 11 at 12:08 am 4

I’ll make the reader’s inventory usable for deposits as well as withdrawals, then keep the existing held-item shortcut.

The reader now accepts shift-click deposits from your inventory, placing items in connected storage first, then adjacent inventories. You can still deposit a held stack by right-clicking the reader.

The reader is crafted from glass, redstone, a chest, and iron ingots. This change hasn’t been compiled or tested yet.

federico

Continue

Kodari AI
KodariNov 12 at 6:58 am 3

I’ll add total item counts to the reader’s tooltips while keeping withdrawals matched to the original items.

The reader now shows the total available count in each item’s tooltip, while preserving the original item data for withdrawals.

This change hasn’t been compiled or tested yet.

federico

Continue, if ther is notting left add a block called extender that let you connect the blocks even when distant

Kodari AI
KodariNov 13 at 6:27 am 8

I’ll add a craftable extender that links storage blocks through chains of adjacent extenders, so both readers and IO blocks can reach distant storage.

Added the Storage Extender. Place a continuous chain of extenders between storage blocks, readers, or IO blocks to connect them over a distance. Only loaded chunks are traversed.

Craft four extenders with four iron ingots in the corners and four redstone dust on the edges of a crafting grid.

The change hasn’t been compiled or tested yet.

federico

Add a cammo function to thr storage extender, by shift-right clicking with a block in hand the texture of the extender changes to that of the block you are holding

Kodari AI
KodariNov 13 at 6:35 am 4

I’ll add camouflage without consuming the held block. The extender will keep its network function and remember its appearance after a world reload.

Added camouflage to the Storage Extender. Shift-right-click it with a block to copy that block’s default appearance without consuming it. The appearance is saved, and the extender continues connecting storage.

The change hasn’t been compiled or tested yet. Custom block-entity appearances aren’t supported.

federico

Make the texture feel more vanilla and cleaner

Kodari AI
KodariNov 13 at 6:38 am 4

Updated the Storage Extender texture with a cleaner, vanilla-inspired iron and redstone style.

federico

Update all texture to make them feel more vanilla and cleaner and of a lighter color

Kodari AI
KodariNov 13 at 6:42 am 13

Updated all four block textures with lighter, cleaner, vanilla-inspired designs.

federico

Add a GUI to the storage reader to search for items, deposit and retrive them and add a GUI to the storage IO for a input and output filter

Kodari AI
KodariNov 15 at 12:14 am 8
  1. Add search, deposits, and retrieval to the storage reader GUI.

  2. Add separate input and output filters to the storage IO GUI.

Added both interfaces:

  • Reader: search by item name, click to retrieve items, and shift-click inventory stacks to deposit them.

  • Storage IO: set input and output filters by clicking each filter slot with an item on your cursor; click with an empty cursor to clear it. An empty input filter accepts everything; an empty output filter outputs nothing.

Existing crafting recipes are unchanged. These changes haven’t been compiled or tested yet.

federico

Add a GUI to the storage reader to visualize all item present in the connected storage blocks

Kodari AI
KodariMon at 6:42 am 2

The Storage Reader already has a GUI that displays items in connected storage blocks, with pagination and total counts in tooltips. Right-click the reader with an empty hand to open it; use the arrows to browse pages.

Only storage reachable through loaded chunks appears. The GUI hasn’t been tested in-game yet.

federico

The GUI of the storage reader dosn't open when i right click the bolck

Kodari AI
KodariTue at 6:21 am 5

The reader was depositing held items instead of opening its GUI. I’ll make normal right-click open the GUI whether or not you’re holding an item; deposits will remain available through the GUI.

Fixed the reader’s normal right-click behavior: it now opens the GUI even when you’re holding an item. Shift-click items in your inventory to deposit them.

The change hasn’t been tested in-game yet.

federico

Xhange the model of the storage reader to that of a vertical slab

Kodari AI
KodariWed at 6:25 am 4

Changed the Storage Reader’s model to a vertical half-block. Its collision and selection area remain a full block.

federico

Change the collision and selection area of the storage reader to match the model

Kodari AI
KodariWed at 6:26 am 2

Updated the Storage Reader’s collision and selection areas to match its vertical slab model.

federico

Change the textures of the storage reader to match it's new model

Kodari AI
KodariThu at 6:41 am 4

Updated the Storage Reader texture with a cleaner, light iron-panel design suited to its vertical slab shape.

federico

When placed the storage reader is flat against the surface it lays on

Kodari AI
KodariFri at 6:21 am 6

I’ll make the reader orient to the face it’s placed against, including floors and ceilings, and rotate its collision and selection shapes with it.

The Storage Reader now lies flat against the face it’s placed on, including walls, floors, and ceilings. Its collision and selection areas rotate with it.

This hasn’t been tested in-game yet.

federico

remove the gui of the storage IO and make it so that when right clicking with an item you add that item to the imput filter and when shift right clicking it add the item to the outpit filter. If the hand is empty the filter is cleared and you can put up to 5 items per filter

Kodari AI
KodariFri at 6:26 am 4

I’ll replace the IO menu with click-to-configure filters, keeping the existing behavior that an empty input accepts everything and an empty output exports nothing.

Removed the Storage IO GUI.

  • Right-click with an item to add it to the input filter; shift-right-click to add it to the output filter.

  • Use an empty hand to clear the corresponding filter.

  • Each filter holds up to five distinct items. Items aren’t consumed.

An empty input filter accepts everything; an empty output filter outputs nothing. Changes haven’t been tested in-game.

federico

Modify the Storage Extender block model into a modular, 6×6 pixel square pipe designed to connect to the Storage Block.

Square cross-section, no rounded edges.

Centered on the 16×16 block grid.

Connections extend to the block boundaries.

Connectable in all 6 directions (up, down, north, south, east, west).

Automatically connect to adjacent Storage Blocks and Storage Extenders.

Ensure seamless connections with no gaps or visible misalignment.

Purpose: Extend the Storage Block's storage system by connecting additional Storage Extenders.

Kodari AI
KodariFri at 6:34 am 3

I’ll make the extender a six-sided pipe with matching collision, while preserving camouflage and its existing network connections.

Changed the Storage Extender into a centered 6×6 pipe that connects in all six directions to storage blocks, other extenders, readers, and IO blocks. Its collision and selection shapes follow the connections, and camouflage remains available.

Craft four extenders with iron ingots in the corners and redstone dust on the edges of a crafting grid. The changes haven’t been tested in-game.

federico

fix the textures of the storage reader and the storage extender that dosent render correctly

Kodari AI
KodariFri at 12:56 pm 3

Updated the reader and extender models to map their full textures onto each face instead of cropping them to the model dimensions.

The changes haven’t been tested in-game.

federico
📎 1 file 1,066 chars
📄
pasted-code-1795180004169.txt
txt 25 lines
▶
Modify the Storage IO block.

Model & Texture

Replace the current model with a miniature hopper-like design.

Keep the block within a full 1×1×1 block space.

Adapt the existing texture to fit the new model geometry, preserving the mod's original visual style and color scheme.

Orientation & Behavior

Wide side facing an adjacent inventory: Input mode. Automatically pull items from that inventory into the mod's storage system.

Narrow outlet facing an adjacent inventory: Output mode. Automatically extract items from the mod's storage system and insert them into the connected inventory.

Determine input/output behavior exclusively from the block's orientation.

Support both vanilla inventories (chests, barrels, furnaces, hoppers, etc.) and inventories from this mod.

Transfers must work automatically without requiring external hoppers.

Prevent item duplication and invalid transfers.

Implement the model, texture adjustments, rotation, and automatic item transfer logic. Preserve existing storage connectivity and do not modify unrelated functionality.
Kodari AI
KodariFri at 1:12 pm 6

Updated the Storage IO with a light, hopper-like model and automatic transfers.

  • The narrow outlet points toward the face clicked during placement and outputs to that inventory.

  • The wide side, opposite the outlet, pulls from an adjacent inventory.

  • Existing input and output filters still apply. Transfers run every eight ticks and use sided inventory access.

The Storage IO recipe is unchanged. The changes haven’t been compiled or tested in-game.

federico

Fix the orientation-dependent texture alignment bug of the Storage Reader.

The model itself is correctly positioned. When placed horizontally, its texture appears to float or becomes misaligned relative to the supporting surface. When placed vertically, it works correctly.

Fix the texture UV mapping, face orientation, or rotation handling for horizontal placements.

Ensure the texture remains correctly aligned and flush with the model in every orientation.

Preserve the existing model geometry, dimensions, and placement.

Do not move or resize the model to compensate for the texture issue.

Also fix the Storage Extender texture alignment. Its pipe models connect correctly, but the textures are misplaced on the pipe segments. Ensure the UV mapping follows the geometry correctly, including connected pipes and all rotations.

Do not modify unrelated blocks or functionality.

Kodari AI
KodariFri at 1:25 pm 2

Updated the reader’s edge UVs and the extender’s pipe UVs to follow their geometry. Rotated extender arms now use UV locking to keep their textures aligned.

The model geometry and placement are unchanged. The fixes haven’t been verified in-game.

federico
📎 1 file 1,194 chars
📄
pasted-code-1795181336272.txt
txt 23 lines
▶
The previous fix did not solve the texture alignment issue. The problem still persists.

Perform a deeper investigation of the Storage Reader rendering and model implementation instead of applying another superficial UV adjustment.

Storage Reader

The model geometry and positioning are correct. Do not move, resize, or redesign it.

When placed horizontally, the texture appears detached or floating above the supporting surface.

When placed vertically, the texture appears correctly aligned.

Identify the actual cause of this orientation-dependent issue by inspecting the model definition, face coordinates, UV mapping, block rotation logic, and rendering offsets.

Fix the root cause so the texture remains correctly attached to the model in every orientation.

Storage Extender

The pipe geometry and connections are correct, but the textures remain misaligned with the pipe segments. Investigate and correct the actual texture mapping on every face and segment.

Do not repeat the previous failed fix. Verify the changes and test all block orientations before considering the issue resolved.

Preserve existing geometry, functionality, and visual design. Do not modify unrelated blocks.
Kodari AI
KodariFri at 1:30 pm 2

Fixed the reader’s horizontal orientations: its up/down model rotations were reversed relative to its collision shape, placing the rendered slab on the wrong half of the block. The geometry is unchanged.

The extender issue isn’t resolved yet. I found that camouflage renders the copied block’s full model rather than applying its appearance to the pipe geometry, but I haven’t corrected that behavior. Neither fix has been tested in-game.

federico

the extender camouflage is right that way

Kodari AI
KodariFri at 3:14 pm 2

I’ll leave the extender’s camouflage behavior as it is. The pipe texture alignment remains unresolved for uncamo­uflaged extenders.

federico

Solve it

Kodari AI
KodariFri at 3:17 pm 1

The uncamo­uflaged pipe models already use geometry-based UVs and UV locking on rotated arms, so another UV adjustment would be a guess.

Please send a screenshot of the misaligned extender, showing its connections and orientation. I’ll leave camouflage unchanged.

federico

The extender has the same problem the reader had you inverted the texture of the up and down connection so when it connects with something below the texture goes up and viceversa

Kodari AI
KodariYesterday at 7:15 am 2

I’ll swap the vertical arm rotations so each rendered connection matches the block below or above, without changing camouflage.

Swapped the extender’s up and down arm rotations. Camouflage is unchanged.

The fix hasn’t been verified in-game yet.

federico

Make the extender model thinner insted of 6x6 a 4x4 mantein everything else

Kodari AI
KodariYesterday at 7:17 am 1

I’ll narrow the pipe’s center, arms, and matching collision shape to 4×4, keeping its connections and camouflage unchanged.

Made the Storage Extender pipe 4×4 pixels and adjusted its collision and selection shape to match. Connections and camouflage are unchanged.

federico

Make the extender texture more like a pipe

Kodari AI
KodariYesterday at 7:19 am 4

Updated the Storage Extender texture with subtle metal seams and connector details for a more pipe-like appearance.

federico

The storage io if placed in the rifht orientation automatically imput or output items into or from the sistem, without the need of an hopper. For the output to worck it need to have items in its filter

Kodari AI
KodariToday at 7:43 am 2

The Storage IO already works this way in the code, without an external hopper:

  • The wide side pulls from an adjacent inventory. An empty input filter accepts any item.

  • The narrow outlet pushes into an adjacent inventory, but only for items in the output filter.

  • Shift-right-click the IO with an item to add it to the output filter. Shift-right-click with an empty hand clears that filter.

Transfers run every eight ticks. This behavior hasn’t been verified in-game.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
44 1,249
src/main/java/com/kodari/storagenetwork/StorageNetwork.java
package com.kodari.storagenetwork;

import net.minecraft.core.registries.BuiltInRegistries;
import net.minecraft.world.item.CreativeModeTab;
import net.minecraft.world.item.CreativeModeTabs;
import net.minecraft.world.item.Item;
import net.minecraft.world.item.BlockItem;
import net.minecraft.world.level.block.Block;
import net.minecraft.world.level.block.entity.BlockEntityType;
import net.minecraft.world.level.block.state.BlockBehaviour;
import net.minecraft.world.inventory.MenuType;
import net.neoforged.neoforge.common.extensions.IMenuTypeExtension;
import net.neoforged.neoforge.network.event.RegisterPayloadHandlersEvent;
import net.neoforged.bus.api.IEventBus;
import net.neoforged.fml.common.Mod;
import net.neoforged.neoforge.event.BuildCreativeModeTabContentsEvent;
import net.neoforged.neoforge.capabilities.Capabilities;
import net.neoforged.neoforge.capabilities.RegisterCapabilitiesEvent;
import net.neoforged.neoforge.registries.DeferredBlock;
import net.neoforged.neoforge.registries.DeferredItem;
import net.neoforged.neoforge.registries.DeferredHolder;
import net.neoforged.neoforge.registries.DeferredRegister;

@Mod(StorageNetwork.MOD_ID)
public final class StorageNetwork {
    public static final String MOD_ID = "storagenetwork";
    public static final DeferredRegister.Blocks BLOCKS = DeferredRegister.createBlocks(MOD_ID);
    public static final DeferredRegister.Items ITEMS = DeferredRegister.createItems(MOD_ID);
    public static final DeferredRegister<BlockEntityType<?>> BLOCK_ENTITIES = DeferredRegister.create(BuiltInRegistries.BLOCK_ENTITY_TYPE, MOD_ID);
    public static final DeferredRegister<MenuType<?>> MENUS = DeferredRegister.create(BuiltInRegistries.MENU, MOD_ID);
    public static final DeferredHolder<MenuType<?>, MenuType<StorageReaderMenu>> READER_MENU = MENUS.register("reader", () -> IMenuTypeExtension.create(StorageReaderMenu::new));

    public static final DeferredBlock<StorageBlock> STORAGE_BLOCK = BLOCKS.registerBlock("storage_block", StorageBlock::new, BlockBehaviour.Properties.of().strength(3.5F).requiresCorrectToolForDrops());
    public static final DeferredBlock<StorageReaderBlock> STORAGE_READER = BLOCKS.registerBlock("storage_reader", StorageReaderBlock::new, BlockBehaviour.Properties.of().strength(3.5F).requiresCorrectToolForDrops());
    public static final DeferredBlock<StorageIOBlock> STORAGE_IO = BLOCKS.registerBlock("storage_io", StorageIOBlock::new, BlockBehaviour.Properties.of().strength(3.5F).requiresCorrectToolForDrops().noOcclusion());
    public static final DeferredBlock<StorageExtenderBlock> STORAGE_EXTENDER = BLOCKS.registerBlock("storage_extender", StorageExtenderBlock::new, BlockBehaviour.Properties.of().strength(3.5F).requiresCorrectToolForDrops().noOcclusion());

    public static final DeferredItem<BlockItem> STORAGE_BLOCK_ITEM = ITEMS.registerSimpleBlockItem(STORAGE_BLOCK, new Item.Properties());
    public static final DeferredItem<BlockItem> STORAGE_READER_ITEM = ITEMS.registerSimpleBlockItem(STORAGE_READER, new Item.Properties());
    public static final DeferredItem<BlockItem> STORAGE_IO_ITEM = ITEMS.registerSimpleBlockItem(STORAGE_IO, new Item.Properties());
    public static final DeferredItem<BlockItem> STORAGE_EXTENDER_ITEM = ITEMS.registerSimpleBlockItem(STORAGE_EXTENDER, new Item.Properties());
    public static final DeferredHolder<BlockEntityType<?>, BlockEntityType<StorageBlockEntity>> STORAGE_ENTITY = BLOCK_ENTITIES.register("storage_block", () -> BlockEntityType.Builder.of(StorageBlockEntity::new, STORAGE_BLOCK.get()).build(null));
    public static final DeferredHolder<BlockEntityType<?>, BlockEntityType<StorageIOBlockEntity>> IO_ENTITY = BLOCK_ENTITIES.register("storage_io", () -> BlockEntityType.Builder.of(StorageIOBlockEntity::new, STORAGE_IO.get()).build(null));
    public static final DeferredHolder<BlockEntityType<?>, BlockEntityType<StorageExtenderBlockEntity>> EXTENDER_ENTITY = BLOCK_ENTITIES.register("storage_extender", () -> BlockEntityType.Builder.of(StorageExtenderBlockEntity::new, STORAGE_EXTENDER.get()).build(null));

    public StorageNetwork(IEventBus modBus) {
        BLOCKS.register(modBus);
        ITEMS.register(modBus);
        BLOCK_ENTITIES.register(modBus);
        MENUS.register(modBus);
        modBus.addListener(this::buildCreativeTab);
        modBus.addListener(this::registerCapabilities);
        modBus.addListener(this::registerPayloads);
    }

    private void registerPayloads(RegisterPayloadHandlersEvent event) {
        event.registrar("1").playToServer(ReaderSearchPayload.TYPE, ReaderSearchPayload.CODEC, (payload, context) -> {
            if (context.player().containerMenu instanceof StorageReaderMenu menu && menu.containerId == payload.containerId()) {
                menu.setSearch(payload.query());
            }
        });
    }

    private void registerCapabilities(RegisterCapabilitiesEvent event) {
        event.registerBlockEntity(Capabilities.ItemHandler.BLOCK, IO_ENTITY.get(), (entity, side) -> entity.handler);
    }

    private void buildCreativeTab(BuildCreativeModeTabContentsEvent event) {
        if (event.getTabKey().equals(CreativeModeTabs.FUNCTIONAL_BLOCKS)) {
            event.accept(STORAGE_BLOCK_ITEM.get().getDefaultInstance(), CreativeModeTab.TabVisibility.PARENT_AND_SEARCH_TABS);
            event.accept(STORAGE_READER_ITEM.get().getDefaultInstance(), CreativeModeTab.TabVisibility.PARENT_AND_SEARCH_TABS);
            event.accept(STORAGE_IO_ITEM.get().getDefaultInstance(), CreativeModeTab.TabVisibility.PARENT_AND_SEARCH_TABS);
            event.accept(STORAGE_EXTENDER_ITEM.get().getDefaultInstance(), CreativeModeTab.TabVisibility.PARENT_AND_SEARCH_TABS);
        }
    }
}