Skip to content

Zonk1987/CC-Tweaked-Programs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

255 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zonk's CC:Tweaked Automation Suite 🚀

CI Quality Checks License Last Commit Top Language Repo Size Open Issues

Lua CC:Tweaked Manifest Installer

A collection of professional-grade automation scripts for Minecraft CC:Tweaked, featuring a modular Feature-Core architecture, premium UI aesthetics, and a robust manifest-driven installer.

🌐 Languages: English | Deutsch | Español | Français | Português (Brasil) | 日本語 | 한국어 | Русский | 简体中文


🚀 Installation & CLI Options

Run this command on an Advanced Computer:

  1. Download the install.lua file:
wget https://raw.githubusercontent.com/Zonk1987/CC-Tweaked-Programs/main/install.lua
  1. Run the installer:
install.lua

Installer CLI Options

  • install.lua --validate: Checks the manifest structure and validates dependency trees.
  • install.lua --dry-run: Simulates the selected package installation without downloading or writing application files (ideal for testing updates).
  • install.lua --force or install.lua -f: Bypasses the local version-fingerprint cache and forces a full re-download of all system files.

📦 Available Packages

ID Name Description Key Features
mekanism_portal_hub Portal Dialer Hub Premium touch-screen dialer. Moveable UI, Accent Stripes, Page-Reset.
mekanism_recall_sender Portal Recall Sender Remote wireless trigger. Hardware diagnostics, Live status monitoring.
create_crafter Mechanical Crafter Grid crafting automation. Recording & Calibration, Multi-step recipes.
powah_orb Energizing Orb Parallel crafting automation. ME Bridge integration, Auto-recovery.
developer_suite CC Developer Suite Diagnostic toolkit. Event sniffer, Peripheral inspector.

🏗️ Architecture: Feature-Core Skeleton

This repository is built for maintainability and performance using a modular skeleton.

Core Modules (lib/core)

Generic utilities are extracted into hidden core packages to reduce duplication:

  • core.base: Fundamental logic like ConfigStore (JSON persistence).
  • core.logger: File-based structured logging (Logger).
  • core.peripherals: Safe peripheral discovery, wrapping, and hardware abstraction (PeripheralScanner, HAL).
  • core.network: Standardized communication protocols (RednetProtocol).
  • core.redstone: Redstone interaction helpers (RedstoneController).
  • core.ui: Reusable UI components (ButtonGrid, ConfigGUI).
  • core.ui.boot_assistant: Interactive startup diagnostics and boot guidance (boot_assistant).
  • core.inventory: Standardized inventory handling (InventoryAdapter, ItemMatcher).
  • core.recipes: JSON-backed recipe storage (RecipeStore).

Dependency Resolution

The installer automatically resolves dependencies recursively. For example, installing create_crafter will automatically pull the required core.inventory and core.redstone modules. Entry files are placed in the root directory as startup.lua, while app modules are installed into system/ and ui/. Core libraries remain in lib/core/ (accessible via adjusted package paths in the startup.lua).


🛠️ Development Guidelines

Adding a New App

  1. Create your app folder (e.g., My New App).
  2. Implement your logic, leveraging existing lib/core modules.
  3. Register your app in manifest.lua.
  4. Add dependencies if you use core modules.

Adding a Core Module

  1. Place the module in lib/core/<category>/ModuleName.lua.
  2. Register it as a hidden = true package in manifest.lua.

⚖️ Safety & Rules

All code in this repository is governed by AGENTS.md.

  • Strict Mode: Application scripts and entry files use a strict environment to prevent accidental globals (core libraries currently bypass this to reduce localization boilerplate).
  • Self-Update: The installer automatically checks whether a newer installer version is available on GitHub and upgrades itself transparently before continuing.
  • Rollback Safety: The installer creates temporary .bak copies of files being updated. If any download, connection, or size check fails mid-installation, it initiates an automatic transactional rollback to restore the system to its precise previous state.
  • Protected Files (Overwrite Protection): Critical user files such as config.json, crafter_mapping.json, .env, any *.local.json hardware overrides, and user_*.json configurations are never overwritten and will be preserved automatically.
  • No Deletion: The installer never deletes existing user files (except for cleaning up its own temporary files like manifest.lua and install.lua after completion, or replacing older versions during an update).
  • Install State Cache: The installer creates a hidden file .install_state.json to remember which file versions have been installed. This speeds up future runs by skipping files that haven't changed (shown as CACHED). It is safe to delete this file at any time — the next install will simply re-download everything.
  • No Auto-Reboot: The installer asks before running entry files and never reboots the system without permission.
  • Single App Policy: Only one application is supported per Advanced Computer. Installing multiple apps on the same computer will cause file collisions and overwrite critical files like startup.lua or Dashboard.lua.

📝 Credits & Troubleshooting

Developed by Antigravity as part of the Advanced Agentic Coding initiative. If you encounter issues:

  1. Ensure you are using an Advanced Computer.
  2. Run install.lua --validate to check for manifest errors.
  3. Check the README.md within each application's folder for hardware-specific setup.

LICENSE: MIT

About

Professional, modular, and high-performance CC:Tweaked automation scripts for Create & Powah and more in the future. Features interactive UI, strict-mode safety, and seamless AE2 integration.

Topics

Resources

License

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Contributors