Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ dependencies {
modExtraLocalRuntime(forge.trenzalore)
modExtraLocalRuntime(forge.curios)
// modExtraLocalRuntime(forge.worldstripper)
// modExtraLocalRuntime(forge.cc.tweaked.forge.impl) for some reason this breaks create
modExtraLocalRuntime(forge.cc.tweaked.forge.impl)

modExtraLocalRuntime(forge.bundles.kjs)

Expand Down
2 changes: 1 addition & 1 deletion gradle/forge.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ ftblibrary = "2001.2.4"
ftbteams = "2001.3.0"
ftbquests = "2001.4.11"
ftbchunks = "2001.3.4"
ccTweaked = "1.114.3"
ccTweaked = "1.120.0"
create = "6.0.6-150"
ponder = "1.0.80"
flywheel = "1.0.4"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ public class FusionReactorMachine extends WorkableElectricMultiblockMachine impl
private final int tier;
@Nullable
protected EnergyContainerList inputEnergyContainers;
@Getter
@SaveField
protected long heat = 0;
@SaveField
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public static void init() {
ComputerCraftAPI.registerGenericSource(new WorkablePeripheral());
ComputerCraftAPI.registerGenericSource(new CoverHolderPeripheral());
ComputerCraftAPI.registerGenericSource(new CentralMonitorPeripheral());
ComputerCraftAPI.registerGenericSource(new FusionReactorMachinePeripheral());
ForgeComputerCraftAPI.registerGenericCapability(GTCapability.CAPABILITY_CONTROLLABLE);
ForgeComputerCraftAPI.registerGenericCapability(GTCapability.CAPABILITY_ENERGY_INFO_PROVIDER);
ForgeComputerCraftAPI.registerGenericCapability(GTCapability.CAPABILITY_WORKABLE);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package com.gregtechceu.gtceu.integration.cctweaked.peripherals;

import com.gregtechceu.gtceu.common.machine.multiblock.electric.FusionReactorMachine;
import dan200.computercraft.api.lua.LuaFunction;
import dan200.computercraft.api.lua.MethodResult;
import dan200.computercraft.api.peripheral.GenericPeripheral;

public class FusionReactorMachinePeripheral implements GenericPeripheral {

public String id() { return "gtceu:fusion_reactor"; }

@LuaFunction
public static MethodResult getHeat(FusionReactorMachine reactor) {
return MethodResult.of(reactor.getHeat());
}

}
Loading