CC: Tweaked · Addon guide · Intermediate
CC:C Bridge Guide: How to Automate Create Mod Trains, Stress & Display Boards
Bridging the gap between Create's mechanical engineering and CC: Tweaked's Lua programming unlocks true smart-factory automation. By installing the CC:C Bridge addon, you can use a single Advanced Computer to dynamically adjust rotational speeds based on network stress, automate train schedules, and push real-time telemetry to Create's mechanical Display Boards. This guide walks you through setting up a wired peripheral network that prevents factory overstressed shutdowns while broadcasting live diagnostics.
What you need
- CC: Tweaked, Create, and the CC:C Bridge addon installed
- Advanced Computer (or standard Computer)
- Wired Modems and Networking Cables
- Source Block and Target Block (from CC:C Bridge) or direct peripheral connection depending on your version
- Create Display Link and Display Board (powered by a rotational source)
- Create Stressometer and Rotation Speed Controller
- Create Train Station (placed and linked to a track)
Step by step
1Connect the Mechanical Network via Wired Modems
Start by placing a Stressometer and a Rotation Speed Controller onto your active Create kinetic network. Shift-right-click a Wired Modem onto the flat face of the Stressometer, the Rotation Speed Controller, your Train Station, and your Advanced Computer. Run Networking Cables between all the modems, then right-click each modem affixed to a Create block so its border turns red; the chat will print the exact peripheral string name (such as create_stressometer_0).
Tip: Always write down or copy the peripheral names printed in chat, or use peripheral.getNames() in the Lua prompt to view all connected devices.
2Set Up the Target Block and Display Board
Construct a multi-block Create Display Board and provide it with rotational power so the flaps can spin. If your version of CC:C Bridge allows direct Display Board wrapping, attach a Wired Modem directly to it; otherwise, place a CC:C Bridge Source Block on your modem network, attach a Create Display Link onto the Source Block, and target your Display Board with the Display Link before placing it. Configure the Display Link interface to read from the computer source.
Tip: Display Boards require a tiny amount of continuous rotational speed (RPM) to update their text; if the board is not moving, check its cogwheel connection.
3Discover Methods in the Interactive Lua Shell
Right-click the Advanced Computer and type 'lua' to enter the interactive read-eval-print loop. Test your connections by typing peripheral.getMethods('peripheral_name') using one of the names you activated earlier. Because method names can vary slightly across mod versions, looking at the returned table in-game is the most reliable way to verify exact capitalization for functions like getStress() or setTargetSpeed().
Tip: Type exit() to leave the interactive Lua environment when you are ready to write your main script.
4Read Stress Network Telemetry
Create a new program by typing 'edit factory.lua' in the terminal. Wrap your Stressometer at the top of the script using local stressMeter = peripheral.find('create_stressometer') (check JEI or peripheral.getType() if the string identifier differs). Inside a while true do loop, call local currentStress = stressMeter.getStress() and local maxCapacity = stressMeter.getStressCapacity() to calculate your network load percentage.
Tip: Always include os.sleep(1) at the bottom of your while loop so your script yields and does not crash with a 'Too long without yielding' error.
5Program Dynamic Rotation Speed Control
In the same script, wrap your Rotation Speed Controller using local speedCtrl = peripheral.find('create_rotation_speed_controller'). Write an if-else statement inside your loop that checks if currentStress / maxCapacity is greater than 0.90 (90% load). If the network is near overstressing, call speedCtrl.setTargetSpeed(32) to throttle non-essential machinery down; if load drops below 0.70, call speedCtrl.setTargetSpeed(128) to restore full factory output.
Tip: Pass negative numbers into setTargetSpeed() if your contraption requires reverse rotational direction.
6Format and Push Text to the Display Board
Wrap your CC:C Bridge Target/Source block or Display Board peripheral in the script. Use the peripheral's line-writing methods (commonly setLine(lineNumber, text) followed by update() on a Source Block, or terminal redirection via term.redirect() depending on the block used) to format a clean string like 'Load: ' .. math.floor((currentStress/maxCapacity)*100) .. '%'. Every time your loop runs, the mechanical flaps on the Create Display Board will physically spin to show the updated stress values and current RPM target.
Tip: Pad or truncate your strings with string.sub() so text does not overflow the width of your physical Display Board.
7Automate Train Station Dispatch and Tracking
Wrap your connected Train Station using local station = peripheral.find('create_station'). Within your monitoring loop, check if a train is currently docked by calling station.isTrainPresent(). When true, you can pull the train's name with station.getTrainName(), broadcast its arrival onto line 3 of your Display Board, and even read or dynamically push a new timetable table using the station's schedule API methods.
Tip: You can pull os.pullEvent() in a parallel coroutine if you want instant event-driven notifications the exact tick a train arrives at the station.
How it works
CC: Tweaked treats external blocks as 'peripherals' when they expose a valid programmatic interface. By default, Create blocks only speak to other Create components via kinetic shafts or Display Links. CC:C Bridge acts as a translation layer that injects CC: Tweaked peripheral providers directly into Create's tile entities, turning mechanical properties like stress units (SU), rotational speed (RPM), and train schedules into callable Lua functions.
When your Lua script calls a method like setTargetSpeed(), CC:C Bridge intercepts that Lua value and safely queues a state change on the Minecraft server thread for the next game tick. Similarly, when using a Source Block with a Display Link, the computer writes string buffers into the Source Block's memory, and Create's native Display Link periodically polls that buffer to trigger the kinetic Flap Display update animation.
Common mistakes
- Forgetting to right-click the Wired Modem attached to the Create block: if the modem ring is grey instead of red, the computer cannot see the block on the network.
- Omitting os.sleep() in monitoring loops: polling a Stressometer or Train Station infinitely without pausing will cause CC: Tweaked to terminate your script for hogging server resources.
- Unpowered Display Boards: even if your Lua code executes without errors and the Display Link is flashing, the Flap Display will remain blank unless it is actively receiving kinetic rotation from a shaft or cogwheel.
- Guessing peripheral names or method signatures: different releases of CC:C Bridge and Create can slightly rename peripheral types; always verify using peripheral.getNames() and peripheral.getMethods() in the live Lua prompt.
FAQ
Can I connect the computer directly next to a Create block without Wired Modems?
Yes. Placing a Computer directly adjacent to a supported Create block like a Rotation Speed Controller allows you to wrap it using its relative side (e.g., peripheral.wrap('right')), though Wired Modems are much cleaner for managing multiple machines across a factory.
Why does my Display Board update slowly compared to a ComputerCraft Monitor?
Create Display Boards are kinetic machines governed by Create's tick rate and Display Link refresh intervals, meaning they update every few ticks or seconds rather than instantaneously like an electronic CC: Tweaked Advanced Monitor.
How do I keep my factory control script running after a server restart or chunk unload?
Rename your script to 'startup.lua' in the root directory of your computer so CC: Tweaked automatically boots and executes the program whenever the computer's chunk loads.
Can a Turtle interact with Create peripherals too?
Yes, if a Turtle pauses adjacent to a supported Create block, it can call peripheral.wrap() on that direction just like a stationary computer, which is great for mobile train-yard maintenance bots.
By linking Create's kinetic blocks and train stations to a CC: Tweaked computer via CC:C Bridge, you can run automated Lua scripts that dynamically balance network stress, control RPM, and broadcast live factory status onto mechanical Display Boards.