2025-02-08 01:57:53 +01:00

85 lines
3.1 KiB
JavaScript
Executable File

// This File has been authored by AllTheMods Staff, or a Community contributor for use in AllTheMods - AllTheMods 9.
// As all AllTheMods packs are licensed under All Rights Reserved, this file is not allowed to be used in any public packs not released by the AllTheMods Team, without explicit permission.
Ponder.registry((allthemods) => {
allthemods.create([
'mekanismgenerators:fusion_reactor_frame',
'mekanismgenerators:fusion_reactor_port',
'mekanismgenerators:fusion_reactor_controller',
'mekanismgenerators:fusion_reactor_logic_adapter'
])
.scene('fusion_reactor','Mekanism Fusion Reactor', 'kubejs:fusion_mek',
(scene, util) => {
scene.world.showSection([0, 0, 0, 4, 4, 4], Facing.down);
scene.idle(10);
scene.text(60, 'The Fusion Reactor can be used to generate millions of RF per tick.', [0, 2.5, 4.5]).placeNearTarget().attachKeyFrame();
scene.idle(80)
scene.text(60, 'Ports Can Be Changed Using A Configurator', [1.5, 2.5, 0]).placeNearTarget().attachKeyFrame();
scene.showControls(60, [1.5, 3.5, 0], 'down').rightClick().withItem('mekanism:configurator').whileSneaking();
scene.idle(10);
scene.world.modifyBlock([1, 2, 0], (curState) => curState.with("active", "true"), true);
scene.idle(20);
scene.world.modifyBlock([1, 2, 0], (curState) => curState.with("active", "false"), true);
scene.idle(40);
//hide front
scene.world.hideSection([0, 0, 0, 4, 4, 3], Facing.up);
scene.idle(10);
scene.text(80, 'The Fusion Reactor is built using this pattern for each face.', [2.5, 2, 4.5]).attachKeyFrame();
scene.idle(90);
//east face
scene.world.showSection([4, 0, 0, 4, 4, 3], Facing.down);
scene.idle(10);
//power port
scene.text(60, 'You will need a port for exporting power.', [4, 2.5, 2.5]).placeNearTarget().attachKeyFrame();
scene.idle(70);
//west face
scene.world.showSection([0, 0, 0, 0, 4, 3], Facing.down);
scene.idle(30);
//Laser
scene.text(60, 'The Laser Matrix is used to kickstart the reactor.', [0, 2.5, 2.5]).placeNearTarget().attachKeyFrame();
scene.idle(70);
//bottom face
scene.world.showSection([1, 0, 0, 3, 0, 3], Facing.down);
scene.idle(30);
//top face
scene.world.showSection([0, 4, 0, 3, 4, 3], Facing.down);
scene.idle(30);
//controller
scene.text(60, 'The Fusion Reactor Controller must be placed in the middle of the top face.', [2.5, 4.5, 3.5]).placeNearTarget().attachKeyFrame();
scene.idle(70);
//north face
scene.world.showSection([1, 1, 0, 3, 3, 0], Facing.down);
scene.idle(30);
//fuel input
scene.text(30, 'You will need two ports for inputting Deuterium', [3.5, 2.5, 0]).placeNearTarget().attachKeyFrame();
scene.idle(40);
scene.text(40, 'and Tritium.', [1.5, 2.5, 0]).placeNearTarget().attachKeyFrame();
scene.idle(50);
});
});
// This File has been authored by AllTheMods Staff, or a Community contributor for use in AllTheMods - AllTheMods 9.
// As all AllTheMods packs are licensed under All Rights Reserved, this file is not allowed to be used in any public packs not released by the AllTheMods Team, without explicit permission.