CC: Tweaked · Late game
AE2 / Refined Storage Automated Stock-Keeper & Dashboard
This late-game CC: Tweaked setup acts as a centralized automated stock-keeper and visual command center for your Applied Energistics 2 or Refined Storage digital network. Using an Advanced Peripherals bridge, an Advanced Computer continuously compares current item quantities against a configurable list of thresholds, queuing up background crafting jobs whenever reserves dip too low. Simultaneously, it drives a massive wall of Advanced Monitors to render real-time inventory metrics, active crafting CPUs, and live throughput graphs without lagging your server.
- Footprint
- 6x3x5 blocks
- Power
- Moderate continuous FE/AE draw (check JEI for exact bridge idle cost)
- Throughput
- Polls 100+ items per scan cycle every 2-5 seconds
- Difficulty
- advanced
Flow diagram
How items, fluids and energy move through the setup, left to right.
Swipe sideways to see the whole diagram
Materials
| Item | Count |
|---|---|
| Advanced Computer | 1 |
| Advanced Monitor | 15 |
| ME Bridge (or RS Bridge) | 1 |
| Wired Modem | 5 |
| Networking Cable | 16 |
| Speaker | 1 |
| Redstone Integrator | 1 |
| Disk Drive | 1 |
| Floppy Disk | 1 |
| ME Glass Cable (or Refined Storage Cable) | 4 |
Build it step by step
1Construct the Wall Monitor
Place 15 Advanced Monitors in a 5-wide by 3-tall vertical rectangle on your control room wall. They will automatically merge into a single large display screen. Make sure the front face is unobstructed so you can interact with touchscreen buttons later.
2Connect the Storage Bridge
Place your ME Bridge or RS Bridge behind the monitor wall and connect it directly to your digital storage network using ME Glass Cable or Refined Storage Cable. Verify that your storage network has adequate power and an available channel if using Applied Energistics 2.
3Set Up the Control Station
Place the Advanced Computer and Disk Drive on a desk near the monitor wall, and tuck the Speaker and Redstone Integrator behind the wall. The Disk Drive will allow you to back up your stock threshold configuration file onto a Floppy Disk.
4Wire the CC: Tweaked Network
Attach Wired Modems to the back of the Advanced Computer, the monitor array, the storage bridge, the Speaker, and the Redstone Integrator. Connect all five modems together using Networking Cable, then right-click each modem so its outer ring turns red, printing the peripheral names in your chat.
5Write the Stock Configuration File
Boot up the Advanced Computer and create a table file named 'stock_config.lua' using the built-in edit program. List the exact registry names of items you want to maintain (such as 'minecraft:iron_ingot' or 'ae2:fluix_crystal'), along with their minimum threshold quantity and desired crafting batch size.
6Install the Stock-Keeper & Dashboard Script
Create a 'startup.lua' script that wraps the bridge peripheral and enters a parallel loop: one coroutine handles touchscreen clicks and draws the live GUI, while the second polls item counts every few seconds. When an item falls below its threshold and is not already being crafted, the script calls the bridge's craftItem function and logs the throughput change for the graph.
How it works
Traditional automated stocking in AE2 or Refined Storage requires dozens of individual ME Level Emitters, Crafting Cards, and Interfaces, which quickly drains channels, power, and physical space. By replacing that hardware with a single Advanced Peripherals ME Bridge or RS Bridge, the Advanced Computer can query the entire digital storage database directly through Lua tables. During each polling cycle, the script checks two conditions before ordering a craft: whether the current stored count is less than the configured target, and whether the bridge reports that the item is currently crafting. This prevents the computer from spamming duplicate jobs across all of your Crafting CPUs.
To render the dashboard smoothly without freezing the stock-keeping logic, the computer runs CC: Tweaked's parallel API or an event-driven timer loop. As item counts are polled, the computer stores a rolling history of total network items and net changes per minute in memory. It then scales the 5x3 Advanced Monitor text size down to 0.5, giving a massive pixel canvas to draw color-coded bar charts, CPU utilization percentages, and a scrolling log of active crafting tasks using the paintutils or window APIs. If a crafting job remains stuck for too long due to missing raw ingredients, the computer fires an alert tone through the Speaker and toggles the Redstone Integrator to light up a warning lamp.
Upgrades and scaling
- Attach an Ender Modem to the Advanced Computer and craft a Pocket Computer so you can view your storage dashboard and trigger manual crafting jobs wirelessly from anywhere in the world.
- Add a Chat Box peripheral from Advanced Peripherals to broadcast low-resource warnings directly to your player chat or allow you to request crafting batches via chat commands.
- Connect an Energy Detector inline with your main base power line and wire it into the Networking Cable so your dashboard also plots real-time FE/t generation and consumption alongside item counts.
Common mistakes
- Forgetting to right-click the Wired Modems to activate them; if the modem ring is not glowing red, the Advanced Computer will return 'nil' when trying to wrap the bridge or monitor.
- Polling the ME or RS Bridge in an unthrottled 'while true do' loop without a sleep timer, which can flood the peripheral queue, cause server tick lag, or trigger a 'too long without yielding' script crash.
- Ordering the exact deficit amount instead of a sensible batch size, or failing to check 'isItemCrafting' first, which immediately locks up every Crafting CPU in your network with tiny overlapping jobs.
- Using display names instead of exact registry IDs (like 'minecraft:redstone') in your Lua configuration table, causing the bridge query to return zero items and endlessly request crafts.
FAQ
Why does my bridge say it cannot craft an item even though I have the materials?
The bridge only triggers existing network patterns; you must first encode a crafting or processing pattern for that item and place it inside an ME Pattern Provider or RS Crafter, and ensure you have at least one free Crafting CPU with enough storage bytes.
How do I stop the monitor from flickering every time the graph updates?
Use CC: Tweaked's built-in 'window' API to create an off-screen buffer window on the monitor, set its visibility to false while drawing your text and bars, and then set visibility back to true at the end of the frame to flush all changes at once.
Does the ME Bridge require an AE2 channel and network power to function?
Yes, when connected to Applied Energistics 2, the ME Bridge acts as a standard network node that consumes one channel and draws a small amount of passive AE power from the network, plus additional power when executing peripheral calls (check JEI or the in-game guide for your modpack's exact power multiplier).