This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildscript { | |
repositories { | |
maven { url = 'https://files.minecraftforge.net/maven' } | |
maven { url = 'https://maven.parchmentmc.org' } | |
maven { url = 'https://repo.spongepowered.org/repository/maven-public/' } | |
mavenCentral() | |
} | |
dependencies { | |
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '5.1.+', changing: true | |
classpath 'org.parchmentmc:librarian:1.+' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildscript { | |
repositories { | |
maven { url = 'https://files.minecraftforge.net/maven' } | |
maven { | |
name = 'sponge' | |
url = 'https://repo.spongepowered.org/maven' | |
} | |
jcenter() | |
mavenCentral() | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local reactor = peripheral.find("fissionReactorLogicAdapter") | |
-- Settings | |
local reset_side = "front" -- Side the reset button is on | |
local alarm_side = "left" -- Side the Alarm is on | |
local coolant_pipe_side = "right" -- Side a redstone torch powering the pipe with emergency coolant is on | |
function emergency_shutdown() | |
if reactor.getStatus() then reactor.scram() end | |
redstone.setAnalogOutput(alarm_side, 15) | |
end |