Skip to content

Instantly share code, notes, and snippets.

View Oct0bass's full-sized avatar

Rohan Rajagopal Oct0bass

View GitHub Profile
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.+'
@Oct0bass
Oct0bass / build.gradle
Created April 18, 2021 06:09
build.gradle
buildscript {
repositories {
maven { url = 'https://files.minecraftforge.net/maven' }
maven {
name = 'sponge'
url = 'https://repo.spongepowered.org/maven'
}
jcenter()
mavenCentral()
}
@Oct0bass
Oct0bass / reactor_control.lua
Last active March 8, 2021 22:30
Reactor Control Program
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