Files
brass-and-sigil/pack/overrides/kubejs/server_scripts/cc_recipes.js
T

283 lines
9.9 KiB
JavaScript

// Brass & Sigil — ComputerCraft recipe overhaul (full coverage)
//
// Replaces every craftable CC: Tweaked recipe with a Create + TFMG -gated
// version. Designed as a 5-tier progression that maps onto pack-wide
// industrial advancement:
//
// T1 - Cabling: copper_wire + andesite_casing. Mid-game accessible.
// T2 - Basic CC: brass_casing, electron_tube, precision_mechanism,
// nixie_tube, plastic + steel. Players need Create's tier-2
// production set and TFMG's coke oven + distillation tower.
// T3 - Networking + Robotics: electromagnetic_coil (TFMG late) +
// mechanical_arm/bearing/gantry_shaft (Create kinetic), plus
// constantan_wire (TFMG mid-late metal).
// T4 - Advanced computing: silicon_ingot (TFMG electrolysis chain =
// late game), rose_quartz, display_link, railway_casing, gold.
// T5 - Mobile: pocket computers, miniaturised forms of T2/T4.
//
// Wires are deliberately the connective thread: copper_wire shows up
// EVERYWHERE in early recipes (cables, modems), aluminum_wire is mid,
// constantan_wire is high-tier. TFMG's electrical production becomes
// genuinely useful for CC progression.
ServerEvents.recipes(event => {
// ─── T1 - CABLING ──────────────────────────────────────────────────
// Cable: 8-output craft to make laying networks viable. Heavy
// copper_wire usage so players bulk-produce wire to support CC.
event.remove({ output: 'computercraft:cable' });
event.shaped(Item.of('computercraft:cable', 8), [
'WWW',
'CRC',
'WWW',
], {
W: 'tfmg:copper_wire',
C: 'create:andesite_casing',
R: 'minecraft:redstone',
});
// ─── T2 - BASIC COMPUTING ──────────────────────────────────────────
// Computer (Basic): brass_casing core (the "industrial computer"
// chassis), electron_tube above/below (the retro CPU), steel side
// armour, precision_mech in the heart.
event.remove({ output: 'computercraft:computer_normal' });
event.shaped('computercraft:computer_normal', [
'PEP',
'SBS',
'PMP',
], {
P: 'tfmg:plastic_sheet',
E: 'create:electron_tube',
S: 'tfmg:steel_ingot',
B: 'create:brass_casing',
M: 'create:precision_mechanism',
});
// Monitor (Basic): nixie_tube top + bottom for retro display feel,
// glass pane window, copper sheet trim.
event.remove({ output: 'computercraft:monitor_normal' });
event.shaped('computercraft:monitor_normal', [
'CNC',
'GGG',
'CNC',
], {
C: 'create:copper_sheet',
N: 'create:nixie_tube',
G: 'minecraft:glass_pane',
});
// Disk Drive: cogwheel for the spinning read head, precision_mech
// for the data IO, rose_quartz for the data medium.
event.remove({ output: 'computercraft:disk_drive' });
event.shaped('computercraft:disk_drive', [
'SOS',
'RQR',
'SMS',
], {
S: 'tfmg:steel_ingot',
O: 'create:cogwheel',
R: 'minecraft:redstone',
Q: 'create:rose_quartz',
M: 'create:precision_mechanism',
});
// Floppy Disk: 2 plastic + redstone, shapeless, cheap consumable.
event.remove({ output: 'computercraft:disk' });
event.shapeless('computercraft:disk', [
'tfmg:plastic_sheet',
'tfmg:plastic_sheet',
'minecraft:redstone',
]);
// Wired Modem: copper_wire signal pickup wrapped around a brass
// casing with an electron tube amplifier.
event.remove({ output: 'computercraft:wired_modem' });
event.shaped('computercraft:wired_modem', [
'WBW',
'WEW',
'WBW',
], {
W: 'tfmg:copper_wire',
B: 'create:brass_casing',
E: 'create:electron_tube',
});
// Wired Modem Full: just the block-form. Same recipe but yields the
// full-block variant; CC's default chains them via shapeless.
event.remove({ output: 'computercraft:wired_modem_full' });
event.shapeless('computercraft:wired_modem_full',
['computercraft:wired_modem']);
// Speaker: electron_tube amplifier feeding a note_block, in a
// brass_casing chassis.
event.remove({ output: 'computercraft:speaker' });
event.shaped('computercraft:speaker', [
'CEC',
'PBP',
'CNC',
], {
C: 'create:copper_sheet',
E: 'create:electron_tube',
P: 'tfmg:plastic_sheet',
B: 'create:brass_casing',
N: 'minecraft:note_block',
});
// Printer: ink + precision_mech + cogwheels.
event.remove({ output: 'computercraft:printer' });
event.shaped('computercraft:printer', [
'SSS',
'IMI',
'SOS',
], {
S: 'tfmg:steel_ingot',
I: 'minecraft:ink_sac',
M: 'create:precision_mechanism',
O: 'create:cogwheel',
});
// ─── T3 - NETWORKING + ROBOTICS ────────────────────────────────────
// Wireless Modem (Basic): TFMG electromagnetic_coil is the antenna,
// copper_wire signal lines, brass_casing chassis.
event.remove({ output: 'computercraft:wireless_modem_normal' });
event.shaped('computercraft:wireless_modem_normal', [
'WAW',
'PLP',
'WBW',
], {
W: 'tfmg:copper_wire',
A: 'tfmg:aluminum_wire',
P: 'tfmg:plastic_sheet',
L: 'tfmg:electromagnetic_coil',
B: 'create:brass_casing',
});
// Redstone Relay: brass casing, electron tubes for switching, copper
// wire signal. The CC equivalent of "smart redstone repeater".
event.remove({ output: 'computercraft:redstone_relay' });
event.shaped('computercraft:redstone_relay', [
'WEW',
'RBR',
'WEW',
], {
W: 'tfmg:copper_wire',
E: 'create:electron_tube',
R: 'minecraft:redstone',
B: 'create:brass_casing',
});
// Turtle (Basic): the computer as the brain, mechanical_bearing for
// movement axis, gantry_shaft as the "arms", chest for storage.
// Industrial robot vibe.
event.remove({ output: 'computercraft:turtle_normal' });
event.shaped('computercraft:turtle_normal', [
'SBS',
'GCG',
'SHS',
], {
S: 'tfmg:steel_ingot',
B: 'create:mechanical_bearing',
G: 'create:gantry_shaft',
C: 'computercraft:computer_normal',
H: 'minecraft:chest',
});
// ─── T4 - ADVANCED ─────────────────────────────────────────────────
// Computer (Advanced): silicon + rose_quartz + railway_casing for
// the "premium" chassis. Gold trim.
event.remove({ output: 'computercraft:computer_advanced' });
event.shaped('computercraft:computer_advanced', [
'GQG',
'SMS',
'GRG',
], {
G: 'minecraft:gold_ingot',
Q: 'create:rose_quartz',
S: 'tfmg:silicon_ingot',
M: 'create:precision_mechanism',
R: 'create:railway_casing',
});
// Monitor (Advanced): display_link is Create's literal data-binding
// block - perfect to pair with a CC monitor for showing data.
event.remove({ output: 'computercraft:monitor_advanced' });
event.shaped('computercraft:monitor_advanced', [
'GNG',
'gDg',
'GNG',
], {
G: 'minecraft:gold_ingot',
N: 'create:nixie_tube',
g: 'minecraft:glass_pane',
D: 'create:display_link',
});
// Wireless Modem (Advanced): constantan_spool for high-Q antenna
// tuning, transmitter-style central component.
event.remove({ output: 'computercraft:wireless_modem_advanced' });
event.shaped('computercraft:wireless_modem_advanced', [
'WCW',
'QLQ',
'GBG',
], {
W: 'tfmg:constantan_wire',
C: 'tfmg:constantan_spool',
Q: 'create:rose_quartz',
L: 'tfmg:large_coil',
G: 'minecraft:gold_ingot',
B: 'create:brass_casing',
});
// Turtle (Advanced): gold-trim turtle with computer_advanced brain
// and mechanical_arm for actual robotic manipulation.
event.remove({ output: 'computercraft:turtle_advanced' });
event.shaped('computercraft:turtle_advanced', [
'GAG',
'GCG',
'GHG',
], {
G: 'minecraft:gold_ingot',
A: 'create:mechanical_arm',
C: 'computercraft:computer_advanced',
H: 'minecraft:chest',
});
// ─── T5 - MOBILE (POCKET COMPUTERS) ────────────────────────────────
// Pocket Computer (Normal): miniaturised T2 computer. Electron tube
// brain, silicon for the compact CPU, precision_mech, plastic shell.
event.remove({ output: 'computercraft:pocket_computer_normal' });
event.shaped('computercraft:pocket_computer_normal', [
'PEP',
'SMS',
'PgP',
], {
P: 'tfmg:plastic_sheet',
E: 'create:electron_tube',
S: 'tfmg:silicon_ingot',
M: 'create:precision_mechanism',
g: 'minecraft:glass_pane',
});
// Pocket Computer (Advanced) - the gold variant.
event.remove({ output: 'computercraft:pocket_computer_advanced' });
event.shaped('computercraft:pocket_computer_advanced', [
'PQP',
'SMS',
'PGP',
], {
P: 'tfmg:plastic_sheet',
Q: 'create:rose_quartz',
S: 'tfmg:silicon_ingot',
M: 'create:precision_mechanism',
G: 'minecraft:gold_ingot',
});
// Note: computercraft:pocket_computer_colour appears in the model
// assets but is not a separately-registered item in CC: Tweaked --
// it's a colour-state variant of the advanced pocket computer.
// Don't try to define a recipe for it (KubeJS warns at startup).
});