mirror of
https://github.com/GTNewHorizons/Electro-Magic-Tools.git
synced 2026-11-26 06:43:01 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5e1a996798 | ||
|
|
29144cfe3e | ||
|
|
78b68dec47 | ||
|
|
5053be782b | ||
|
|
c5a72c0dff |
No files matched your search
@@ -1,51 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
# bashsupport disable=BP5006 # Global environment variables
|
|
||||||
RUNDIR="run" \
|
|
||||||
CRASH="crash-reports" \
|
|
||||||
SERVERLOG="server.log"
|
|
||||||
|
|
||||||
# enable nullglob to get 0 results when no match rather than the pattern
|
|
||||||
shopt -s nullglob
|
|
||||||
|
|
||||||
# store matches in array
|
|
||||||
crash_reports=("$RUNDIR/$CRASH/crash"*.txt)
|
|
||||||
|
|
||||||
# if array not empty there are crash_reports
|
|
||||||
if [ "${#crash_reports[@]}" -gt 0 ]; then
|
|
||||||
# get the latest crash_report from array
|
|
||||||
latest_crash_report="${crash_reports[-1]}"
|
|
||||||
{
|
|
||||||
printf 'Latest crash report detected %s:\n' "${latest_crash_report##*/}"
|
|
||||||
cat "$latest_crash_report"
|
|
||||||
} >&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if grep --quiet --fixed-strings 'Fatal errors were detected' "$SERVERLOG"; then
|
|
||||||
{
|
|
||||||
printf 'Fatal errors detected:\n'
|
|
||||||
cat server.log
|
|
||||||
} >&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if grep --quiet --fixed-strings 'The state engine was in incorrect state ERRORED and forced into state SERVER_STOPPED' \
|
|
||||||
"$SERVERLOG"; then
|
|
||||||
{
|
|
||||||
printf 'Server force stopped:'
|
|
||||||
cat server.log
|
|
||||||
} >&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! grep --quiet --perl-regexp --only-matching '.+Done \(.+\)\! For help, type "help" or "\?"' "$SERVERLOG"; then
|
|
||||||
{
|
|
||||||
printf 'Server did not finish startup:'
|
|
||||||
cat server.log
|
|
||||||
} >&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
printf 'No crash reports detected'
|
|
||||||
exit 0
|
|
||||||
+226
-79
@@ -1,4 +1,4 @@
|
|||||||
//version: 1682616243
|
//version: 1696952014
|
||||||
/*
|
/*
|
||||||
DO NOT CHANGE THIS FILE!
|
DO NOT CHANGE THIS FILE!
|
||||||
Also, you may replace this file at any time if there is an update available.
|
Also, you may replace this file at any time if there is an update available.
|
||||||
@@ -69,8 +69,11 @@ plugins {
|
|||||||
id 'com.diffplug.spotless' version '6.13.0' apply false // 6.13.0 is the last jvm8 supporting version
|
id 'com.diffplug.spotless' version '6.13.0' apply false // 6.13.0 is the last jvm8 supporting version
|
||||||
id 'com.modrinth.minotaur' version '2.+' apply false
|
id 'com.modrinth.minotaur' version '2.+' apply false
|
||||||
id 'com.matthewprenger.cursegradle' version '1.4.0' apply false
|
id 'com.matthewprenger.cursegradle' version '1.4.0' apply false
|
||||||
id 'com.gtnewhorizons.retrofuturagradle' version '1.3.7'
|
id 'com.gtnewhorizons.retrofuturagradle' version '1.3.24'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
print("You might want to check out './gradlew :faq' if your build fails.\n")
|
||||||
|
|
||||||
boolean settingsupdated = verifySettingsGradle()
|
boolean settingsupdated = verifySettingsGradle()
|
||||||
settingsupdated = verifyGitAttributes() || settingsupdated
|
settingsupdated = verifyGitAttributes() || settingsupdated
|
||||||
if (settingsupdated)
|
if (settingsupdated)
|
||||||
@@ -86,6 +89,23 @@ def out = services.get(StyledTextOutputFactory).create('an-output')
|
|||||||
def projectJavaVersion = JavaLanguageVersion.of(8)
|
def projectJavaVersion = JavaLanguageVersion.of(8)
|
||||||
|
|
||||||
boolean disableSpotless = project.hasProperty("disableSpotless") ? project.disableSpotless.toBoolean() : false
|
boolean disableSpotless = project.hasProperty("disableSpotless") ? project.disableSpotless.toBoolean() : false
|
||||||
|
boolean disableCheckstyle = project.hasProperty("disableCheckstyle") ? project.disableCheckstyle.toBoolean() : false
|
||||||
|
|
||||||
|
final String CHECKSTYLE_CONFIG = """
|
||||||
|
<!DOCTYPE module PUBLIC
|
||||||
|
"-//Puppy Crawl//DTD Check Configuration 1.3//EN"
|
||||||
|
"http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
|
||||||
|
<module name="Checker">
|
||||||
|
<module name="TreeWalker">
|
||||||
|
<!-- Use CHECKSTYLE:OFF and CHECKSTYLE:ON comments to suppress checkstyle lints in a block -->
|
||||||
|
<module name="SuppressionCommentFilter"/>
|
||||||
|
<module name="AvoidStarImport">
|
||||||
|
<!-- Allow static wildcard imports for cases like Opcodes and LWJGL classes, these don't get created accidentally by the IDE -->
|
||||||
|
<property name="allowStaticMemberImports" value="true"/>
|
||||||
|
</module>
|
||||||
|
</module>
|
||||||
|
</module>
|
||||||
|
"""
|
||||||
|
|
||||||
checkPropertyExists("modName")
|
checkPropertyExists("modName")
|
||||||
checkPropertyExists("modId")
|
checkPropertyExists("modId")
|
||||||
@@ -112,6 +132,8 @@ propertyDefaultIfUnset("usesMixinDebug", project.usesMixins)
|
|||||||
propertyDefaultIfUnset("forceEnableMixins", false)
|
propertyDefaultIfUnset("forceEnableMixins", false)
|
||||||
propertyDefaultIfUnset("channel", "stable")
|
propertyDefaultIfUnset("channel", "stable")
|
||||||
propertyDefaultIfUnset("mappingsVersion", "12")
|
propertyDefaultIfUnset("mappingsVersion", "12")
|
||||||
|
propertyDefaultIfUnset("usesMavenPublishing", true)
|
||||||
|
propertyDefaultIfUnset("mavenPublishUrl", "http://jenkins.usrv.eu:8081/nexus/content/repositories/releases")
|
||||||
propertyDefaultIfUnset("modrinthProjectId", "")
|
propertyDefaultIfUnset("modrinthProjectId", "")
|
||||||
propertyDefaultIfUnset("modrinthRelations", "")
|
propertyDefaultIfUnset("modrinthRelations", "")
|
||||||
propertyDefaultIfUnset("curseForgeProjectId", "")
|
propertyDefaultIfUnset("curseForgeProjectId", "")
|
||||||
@@ -135,6 +157,17 @@ if (!disableSpotless) {
|
|||||||
apply from: Blowdryer.file('spotless.gradle')
|
apply from: Blowdryer.file('spotless.gradle')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!disableCheckstyle) {
|
||||||
|
apply plugin: 'checkstyle'
|
||||||
|
tasks.named("checkstylePatchedMc") { enabled = false }
|
||||||
|
tasks.named("checkstyleMcLauncher") { enabled = false }
|
||||||
|
tasks.named("checkstyleIdeVirtualMain") { enabled = false }
|
||||||
|
tasks.named("checkstyleInjectedTags") { enabled = false }
|
||||||
|
checkstyle {
|
||||||
|
config = resources.text.fromString(CHECKSTYLE_CONFIG)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
String javaSourceDir = "src/main/java/"
|
String javaSourceDir = "src/main/java/"
|
||||||
String scalaSourceDir = "src/main/scala/"
|
String scalaSourceDir = "src/main/scala/"
|
||||||
String kotlinSourceDir = "src/main/kotlin/"
|
String kotlinSourceDir = "src/main/kotlin/"
|
||||||
@@ -219,6 +252,8 @@ if (enableModernJavaSyntax.toBoolean()) {
|
|||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
annotationProcessor 'com.github.bsideup.jabel:jabel-javac-plugin:1.0.0'
|
annotationProcessor 'com.github.bsideup.jabel:jabel-javac-plugin:1.0.0'
|
||||||
|
// workaround for https://github.com/bsideup/jabel/issues/174
|
||||||
|
annotationProcessor 'net.java.dev.jna:jna-platform:5.13.0'
|
||||||
compileOnly('com.github.bsideup.jabel:jabel-javac-plugin:1.0.0') {
|
compileOnly('com.github.bsideup.jabel:jabel-javac-plugin:1.0.0') {
|
||||||
transitive = false // We only care about the 1 annotation class
|
transitive = false // We only care about the 1 annotation class
|
||||||
}
|
}
|
||||||
@@ -352,7 +387,27 @@ catch (Exception ignored) {
|
|||||||
String identifiedVersion
|
String identifiedVersion
|
||||||
String versionOverride = System.getenv("VERSION") ?: null
|
String versionOverride = System.getenv("VERSION") ?: null
|
||||||
try {
|
try {
|
||||||
identifiedVersion = versionOverride == null ? gitVersion() : versionOverride
|
// Produce a version based on the tag, or for branches something like 0.2.2-configurable-maven-and-extras.38+43090270b6-dirty
|
||||||
|
if (versionOverride == null) {
|
||||||
|
def gitDetails = versionDetails()
|
||||||
|
def isDirty = gitVersion().endsWith(".dirty") // No public API for this, isCleanTag has a different meaning
|
||||||
|
String branchName = gitDetails.branchName ?: (System.getenv('GIT_BRANCH') ?: 'git')
|
||||||
|
if (branchName.startsWith('origin/')) {
|
||||||
|
branchName = branchName.minus('origin/')
|
||||||
|
}
|
||||||
|
branchName = branchName.replaceAll("[^a-zA-Z0-9-]+", "-") // sanitize branch names for semver
|
||||||
|
identifiedVersion = gitDetails.lastTag ?: '${gitDetails.gitHash}'
|
||||||
|
if (gitDetails.commitDistance > 0) {
|
||||||
|
identifiedVersion += "-${branchName}.${gitDetails.commitDistance}+${gitDetails.gitHash}"
|
||||||
|
if (isDirty) {
|
||||||
|
identifiedVersion += "-dirty"
|
||||||
|
}
|
||||||
|
} else if (isDirty) {
|
||||||
|
identifiedVersion += "-${branchName}+${gitDetails.gitHash}-dirty"
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
identifiedVersion = versionOverride
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch (Exception ignored) {
|
catch (Exception ignored) {
|
||||||
out.style(Style.Failure).text(
|
out.style(Style.Failure).text(
|
||||||
@@ -374,9 +429,13 @@ if (identifiedVersion == versionOverride) {
|
|||||||
|
|
||||||
group = "com.github.GTNewHorizons"
|
group = "com.github.GTNewHorizons"
|
||||||
if (project.hasProperty("customArchiveBaseName") && customArchiveBaseName) {
|
if (project.hasProperty("customArchiveBaseName") && customArchiveBaseName) {
|
||||||
archivesBaseName = customArchiveBaseName
|
base {
|
||||||
|
archivesName = customArchiveBaseName
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
archivesBaseName = modId
|
base {
|
||||||
|
archivesName = modId
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -460,10 +519,19 @@ sourceSets {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (file('addon.gradle').exists()) {
|
if (file('addon.gradle.kts').exists()) {
|
||||||
|
apply from: 'addon.gradle.kts'
|
||||||
|
} else if (file('addon.gradle').exists()) {
|
||||||
apply from: 'addon.gradle'
|
apply from: 'addon.gradle'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// File for local tweaks not commited to Git
|
||||||
|
if (file('addon.local.gradle.kts').exists()) {
|
||||||
|
apply from: 'addon.local.gradle.kts'
|
||||||
|
} else if (file('addon.local.gradle').exists()) {
|
||||||
|
apply from: 'addon.local.gradle'
|
||||||
|
}
|
||||||
|
|
||||||
// Allow unsafe repos but warn
|
// Allow unsafe repos but warn
|
||||||
repositories.configureEach { repo ->
|
repositories.configureEach { repo ->
|
||||||
if (repo instanceof org.gradle.api.artifacts.repositories.UrlArtifactRepository) {
|
if (repo instanceof org.gradle.api.artifacts.repositories.UrlArtifactRepository) {
|
||||||
@@ -474,7 +542,14 @@ repositories.configureEach { repo ->
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
apply from: 'repositories.gradle'
|
if (file('repositories.gradle.kts').exists()) {
|
||||||
|
apply from: 'repositories.gradle.kts'
|
||||||
|
} else if (file('repositories.gradle').exists()) {
|
||||||
|
apply from: 'repositories.gradle'
|
||||||
|
} else {
|
||||||
|
logger.error("Neither repositories.gradle.kts nor repositories.gradle was found, make sure you extracted the full ExampleMod template.")
|
||||||
|
throw new RuntimeException("Missing repositories.gradle[.kts]")
|
||||||
|
}
|
||||||
|
|
||||||
configurations {
|
configurations {
|
||||||
runtimeClasspath.extendsFrom(runtimeOnlyNonPublishable)
|
runtimeClasspath.extendsFrom(runtimeOnlyNonPublishable)
|
||||||
@@ -515,9 +590,6 @@ repositories {
|
|||||||
maven {
|
maven {
|
||||||
name 'Overmind forge repo mirror'
|
name 'Overmind forge repo mirror'
|
||||||
url 'https://gregtech.overminddl1.com/'
|
url 'https://gregtech.overminddl1.com/'
|
||||||
mavenContent {
|
|
||||||
excludeGroup("net.minecraftforge") // missing the `universal` artefact
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
maven {
|
maven {
|
||||||
name = "GTNH Maven"
|
name = "GTNH Maven"
|
||||||
@@ -532,24 +604,34 @@ repositories {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (includeWellKnownRepositories.toBoolean()) {
|
if (includeWellKnownRepositories.toBoolean()) {
|
||||||
maven {
|
exclusiveContent {
|
||||||
name "CurseMaven"
|
forRepository {
|
||||||
url "https://cursemaven.com"
|
maven {
|
||||||
content {
|
name "CurseMaven"
|
||||||
|
url "https://cursemaven.com"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
filter {
|
||||||
includeGroup "curse.maven"
|
includeGroup "curse.maven"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
exclusiveContent {
|
||||||
|
forRepository {
|
||||||
|
maven {
|
||||||
|
name = "Modrinth"
|
||||||
|
url = "https://api.modrinth.com/maven"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
filter {
|
||||||
|
includeGroup "maven.modrinth"
|
||||||
|
}
|
||||||
|
}
|
||||||
maven {
|
maven {
|
||||||
name = "ic2"
|
name = "ic2"
|
||||||
url = "https://maven.ic2.player.to/"
|
url = getURL("https://maven.ic2.player.to/", "https://maven2.ic2.player.to/")
|
||||||
metadataSources {
|
content {
|
||||||
mavenPom()
|
includeGroup "net.industrial-craft"
|
||||||
artifact()
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
maven {
|
|
||||||
name = "ic2-mirror"
|
|
||||||
url = "https://maven2.ic2.player.to/"
|
|
||||||
metadataSources {
|
metadataSources {
|
||||||
mavenPom()
|
mavenPom()
|
||||||
artifact()
|
artifact()
|
||||||
@@ -564,9 +646,12 @@ repositories {
|
|||||||
|
|
||||||
def mixinProviderGroup = "io.github.legacymoddingmc"
|
def mixinProviderGroup = "io.github.legacymoddingmc"
|
||||||
def mixinProviderModule = "unimixins"
|
def mixinProviderModule = "unimixins"
|
||||||
def mixinProviderVersion = "0.1.6"
|
def mixinProviderVersion = "0.1.7.1"
|
||||||
def mixinProviderSpecNoClassifer = "${mixinProviderGroup}:${mixinProviderModule}:${mixinProviderVersion}"
|
def mixinProviderSpecNoClassifer = "${mixinProviderGroup}:${mixinProviderModule}:${mixinProviderVersion}"
|
||||||
def mixinProviderSpec = "${mixinProviderSpecNoClassifer}:dev"
|
def mixinProviderSpec = "${mixinProviderSpecNoClassifer}:dev"
|
||||||
|
ext.mixinProviderSpec = mixinProviderSpec
|
||||||
|
|
||||||
|
def mixingConfigRefMap = 'mixins.' + modId + '.refmap.json'
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
if (usesMixins.toBoolean()) {
|
if (usesMixins.toBoolean()) {
|
||||||
@@ -579,7 +664,7 @@ dependencies {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (usesMixins.toBoolean()) {
|
if (usesMixins.toBoolean()) {
|
||||||
implementation(mixinProviderSpec)
|
implementation(modUtils.enableMixins(mixinProviderSpec, mixingConfigRefMap))
|
||||||
} else if (forceEnableMixins.toBoolean()) {
|
} else if (forceEnableMixins.toBoolean()) {
|
||||||
runtimeOnlyNonPublishable(mixinProviderSpec)
|
runtimeOnlyNonPublishable(mixinProviderSpec)
|
||||||
}
|
}
|
||||||
@@ -605,12 +690,32 @@ configurations.all {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
apply from: 'dependencies.gradle'
|
dependencies {
|
||||||
|
constraints {
|
||||||
|
def minGtnhLibVersion = "0.0.13"
|
||||||
|
implementation("com.github.GTNewHorizons:GTNHLib:${minGtnhLibVersion}") {
|
||||||
|
because("fixes duplicate mod errors in java 17 configurations using old gtnhlib")
|
||||||
|
}
|
||||||
|
runtimeOnly("com.github.GTNewHorizons:GTNHLib:${minGtnhLibVersion}") {
|
||||||
|
because("fixes duplicate mod errors in java 17 configurations using old gtnhlib")
|
||||||
|
}
|
||||||
|
devOnlyNonPublishable("com.github.GTNewHorizons:GTNHLib:${minGtnhLibVersion}") {
|
||||||
|
because("fixes duplicate mod errors in java 17 configurations using old gtnhlib")
|
||||||
|
}
|
||||||
|
runtimeOnlyNonPublishable("com.github.GTNewHorizons:GTNHLib:${minGtnhLibVersion}") {
|
||||||
|
because("fixes duplicate mod errors in java 17 configurations using old gtnhlib")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
def mixingConfigRefMap = 'mixins.' + modId + '.refmap.json'
|
if (file('dependencies.gradle.kts').exists()) {
|
||||||
def mixinTmpDir = buildDir.path + File.separator + 'tmp' + File.separator + 'mixins'
|
apply from: 'dependencies.gradle.kts'
|
||||||
def refMap = "${mixinTmpDir}" + File.separator + mixingConfigRefMap
|
} else if (file('dependencies.gradle').exists()) {
|
||||||
def mixinSrg = "${mixinTmpDir}" + File.separator + "mixins.srg"
|
apply from: 'dependencies.gradle'
|
||||||
|
} else {
|
||||||
|
logger.error("Neither dependencies.gradle.kts nor dependencies.gradle was found, make sure you extracted the full ExampleMod template.")
|
||||||
|
throw new RuntimeException("Missing dependencies.gradle[.kts]")
|
||||||
|
}
|
||||||
|
|
||||||
tasks.register('generateAssets') {
|
tasks.register('generateAssets') {
|
||||||
group = "GTNH Buildscript"
|
group = "GTNH Buildscript"
|
||||||
@@ -642,46 +747,17 @@ tasks.register('generateAssets') {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (usesMixins.toBoolean()) {
|
if (usesMixins.toBoolean()) {
|
||||||
tasks.named("reobfJar", ReobfuscatedJar).configure {
|
|
||||||
extraSrgFiles.from(mixinSrg)
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.named("processResources").configure {
|
tasks.named("processResources").configure {
|
||||||
dependsOn("generateAssets")
|
dependsOn("generateAssets")
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.named("compileJava", JavaCompile).configure {
|
tasks.named("compileJava", JavaCompile).configure {
|
||||||
doFirst {
|
|
||||||
new File(mixinTmpDir).mkdirs()
|
|
||||||
}
|
|
||||||
options.compilerArgs += [
|
options.compilerArgs += [
|
||||||
"-AreobfSrgFile=${tasks.reobfJar.srg.get().asFile}",
|
|
||||||
"-AoutSrgFile=${mixinSrg}",
|
|
||||||
"-AoutRefMapFile=${refMap}",
|
|
||||||
// Elan: from what I understand they are just some linter configs so you get some warning on how to properly code
|
// Elan: from what I understand they are just some linter configs so you get some warning on how to properly code
|
||||||
"-XDenableSunApiLintControl",
|
"-XDenableSunApiLintControl",
|
||||||
"-XDignore.symbol.file"
|
"-XDignore.symbol.file"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
pluginManager.withPlugin('org.jetbrains.kotlin.kapt') {
|
|
||||||
kapt {
|
|
||||||
correctErrorTypes = true
|
|
||||||
javacOptions {
|
|
||||||
option("-AreobfSrgFile=${tasks.reobfJar.srg.get().asFile}")
|
|
||||||
option("-AoutSrgFile=$mixinSrg")
|
|
||||||
option("-AoutRefMapFile=$refMap")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
tasks.configureEach { task ->
|
|
||||||
if (task.name == "kaptKotlin") {
|
|
||||||
task.doFirst {
|
|
||||||
new File(mixinTmpDir).mkdirs()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.named("processResources", ProcessResources).configure {
|
tasks.named("processResources", ProcessResources).configure {
|
||||||
@@ -699,7 +775,6 @@ tasks.named("processResources", ProcessResources).configure {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (usesMixins.toBoolean()) {
|
if (usesMixins.toBoolean()) {
|
||||||
from refMap
|
|
||||||
dependsOn("compileJava", "compileScala")
|
dependsOn("compileJava", "compileScala")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -718,23 +793,14 @@ ext.java17PatchDependenciesCfg = configurations.create("java17PatchDependencies"
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
def lwjgl3ifyVersion = '1.3.5'
|
def lwjgl3ifyVersion = '1.5.1'
|
||||||
def asmVersion = '9.4'
|
|
||||||
if (modId != 'lwjgl3ify') {
|
if (modId != 'lwjgl3ify') {
|
||||||
java17Dependencies("com.github.GTNewHorizons:lwjgl3ify:${lwjgl3ifyVersion}")
|
java17Dependencies("com.github.GTNewHorizons:lwjgl3ify:${lwjgl3ifyVersion}")
|
||||||
}
|
}
|
||||||
if (modId != 'hodgepodge') {
|
if (modId != 'hodgepodge') {
|
||||||
java17Dependencies('com.github.GTNewHorizons:Hodgepodge:2.2.8')
|
java17Dependencies('com.github.GTNewHorizons:Hodgepodge:2.3.7')
|
||||||
}
|
}
|
||||||
|
|
||||||
java17PatchDependencies('net.minecraft:launchwrapper:1.15') {transitive = false}
|
|
||||||
java17PatchDependencies("org.ow2.asm:asm:${asmVersion}")
|
|
||||||
java17PatchDependencies("org.ow2.asm:asm-commons:${asmVersion}")
|
|
||||||
java17PatchDependencies("org.ow2.asm:asm-tree:${asmVersion}")
|
|
||||||
java17PatchDependencies("org.ow2.asm:asm-analysis:${asmVersion}")
|
|
||||||
java17PatchDependencies("org.ow2.asm:asm-util:${asmVersion}")
|
|
||||||
java17PatchDependencies('org.ow2.asm:asm-deprecated:7.1')
|
|
||||||
java17PatchDependencies("org.apache.commons:commons-lang3:3.12.0")
|
|
||||||
java17PatchDependencies("com.github.GTNewHorizons:lwjgl3ify:${lwjgl3ifyVersion}:forgePatches") {transitive = false}
|
java17PatchDependencies("com.github.GTNewHorizons:lwjgl3ify:${lwjgl3ifyVersion}:forgePatches") {transitive = false}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -817,6 +883,18 @@ public abstract class RunHotswappableMinecraftTask extends RunMinecraftTask {
|
|||||||
}
|
}
|
||||||
this.classpath(project.java17DependenciesCfg)
|
this.classpath(project.java17DependenciesCfg)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setup(Project project) {
|
||||||
|
super.setup(project)
|
||||||
|
if (project.usesMixins.toBoolean()) {
|
||||||
|
this.extraJvmArgs.addAll(project.provider(() -> {
|
||||||
|
def mixinCfg = project.configurations.detachedConfiguration(project.dependencies.create(project.mixinProviderSpec))
|
||||||
|
mixinCfg.canBeConsumed = false
|
||||||
|
mixinCfg.transitive = false
|
||||||
|
enableHotswap ? ["-javaagent:" + mixinCfg.singleFile.absolutePath] : []
|
||||||
|
}))
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
def runClient17Task = tasks.register("runClient17", RunHotswappableMinecraftTask, Distribution.CLIENT, "runClient")
|
def runClient17Task = tasks.register("runClient17", RunHotswappableMinecraftTask, Distribution.CLIENT, "runClient")
|
||||||
@@ -961,6 +1039,9 @@ idea {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
runConfigurations {
|
runConfigurations {
|
||||||
|
"0. Build and Test"(Gradle) {
|
||||||
|
taskNames = ["build"]
|
||||||
|
}
|
||||||
"1. Run Client"(Gradle) {
|
"1. Run Client"(Gradle) {
|
||||||
taskNames = ["runClient"]
|
taskNames = ["runClient"]
|
||||||
}
|
}
|
||||||
@@ -1080,6 +1161,14 @@ tasks.named("processIdeaSettings").configure {
|
|||||||
dependsOn("injectTags")
|
dependsOn("injectTags")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tasks.named("ideVirtualMainClasses").configure {
|
||||||
|
// Make IntelliJ "Build project" build the mod jars
|
||||||
|
dependsOn("jar", "reobfJar")
|
||||||
|
if (!disableSpotless) {
|
||||||
|
dependsOn("spotlessCheck")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// workaround variable hiding in pom processing
|
// workaround variable hiding in pom processing
|
||||||
def projectConfigs = project.configurations
|
def projectConfigs = project.configurations
|
||||||
|
|
||||||
@@ -1100,12 +1189,14 @@ publishing {
|
|||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
maven {
|
if (usesMavenPublishing.toBoolean()) {
|
||||||
url = "http://jenkins.usrv.eu:8081/nexus/content/repositories/releases"
|
maven {
|
||||||
allowInsecureProtocol = true
|
url = mavenPublishUrl
|
||||||
credentials {
|
allowInsecureProtocol = mavenPublishUrl.startsWith("http://") // Mostly for the GTNH maven
|
||||||
username = System.getenv("MAVEN_USER") ?: "NONE"
|
credentials {
|
||||||
password = System.getenv("MAVEN_PASSWORD") ?: "NONE"
|
username = System.getenv("MAVEN_USER") ?: "NONE"
|
||||||
|
password = System.getenv("MAVEN_PASSWORD") ?: "NONE"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1220,7 +1311,7 @@ def addCurseForgeRelation(String type, String name) {
|
|||||||
|
|
||||||
// Updating
|
// Updating
|
||||||
|
|
||||||
def buildscriptGradleVersion = "8.1.1"
|
def buildscriptGradleVersion = "8.2.1"
|
||||||
|
|
||||||
tasks.named('wrapper', Wrapper).configure {
|
tasks.named('wrapper', Wrapper).configure {
|
||||||
gradleVersion = buildscriptGradleVersion
|
gradleVersion = buildscriptGradleVersion
|
||||||
@@ -1252,6 +1343,23 @@ if (!project.getGradle().startParameter.isOffline() && !Boolean.getBoolean('DISA
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If you want to add more cases to this task, implement them as arguments if total amount to print gets too large
|
||||||
|
tasks.register('faq') {
|
||||||
|
group = 'GTNH Buildscript'
|
||||||
|
description = 'Prints frequently asked questions about building a project'
|
||||||
|
|
||||||
|
doLast {
|
||||||
|
print("If your build fails to fetch dependencies, run './gradlew updateDependencies'. " +
|
||||||
|
"Or you can manually check if the versions are still on the distributing sites - " +
|
||||||
|
"the links can be found in repositories.gradle and build.gradle:repositories, " +
|
||||||
|
"but not build.gradle:buildscript.repositories - those ones are for gradle plugin metadata.\n\n" +
|
||||||
|
"If your build fails to recognize the syntax of new Java versions, enable Jabel in your " +
|
||||||
|
"gradle.properties. See how it's done in GTNH ExampleMod/gradle.properties. " +
|
||||||
|
"However, keep in mind that Jabel enables only syntax features, but not APIs that were introduced in " +
|
||||||
|
"Java 9 or later.")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static URL availableBuildScriptUrl() {
|
static URL availableBuildScriptUrl() {
|
||||||
new URL("https://raw.githubusercontent.com/GTNewHorizons/ExampleMod1.7.10/master/build.gradle")
|
new URL("https://raw.githubusercontent.com/GTNewHorizons/ExampleMod1.7.10/master/build.gradle")
|
||||||
}
|
}
|
||||||
@@ -1309,8 +1417,14 @@ boolean isNewBuildScriptVersionAvailable() {
|
|||||||
|
|
||||||
String currentBuildScript = getFile("build.gradle").getText()
|
String currentBuildScript = getFile("build.gradle").getText()
|
||||||
String currentBuildScriptHash = getVersionHash(currentBuildScript)
|
String currentBuildScriptHash = getVersionHash(currentBuildScript)
|
||||||
String availableBuildScript = availableBuildScriptUrl().newInputStream(parameters).getText()
|
String availableBuildScriptHash
|
||||||
String availableBuildScriptHash = getVersionHash(availableBuildScript)
|
try {
|
||||||
|
String availableBuildScript = availableBuildScriptUrl().newInputStream(parameters).getText()
|
||||||
|
availableBuildScriptHash = getVersionHash(availableBuildScript)
|
||||||
|
} catch (IOException e) {
|
||||||
|
logger.warn("Could not check for buildscript update availability: {}", e.message)
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
boolean isUpToDate = currentBuildScriptHash.empty || availableBuildScriptHash.empty || currentBuildScriptHash == availableBuildScriptHash
|
boolean isUpToDate = currentBuildScriptHash.empty || availableBuildScriptHash.empty || currentBuildScriptHash == availableBuildScriptHash
|
||||||
return !isUpToDate
|
return !isUpToDate
|
||||||
@@ -1475,3 +1589,36 @@ def getSecondaryArtifacts() {
|
|||||||
if (apiPackage) secondaryArtifacts += [apiJar]
|
if (apiPackage) secondaryArtifacts += [apiJar]
|
||||||
return secondaryArtifacts
|
return secondaryArtifacts
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def getURL(String main, String fallback) {
|
||||||
|
return pingURL(main, 10000) ? main : fallback
|
||||||
|
}
|
||||||
|
|
||||||
|
// credit: https://stackoverflow.com/a/3584332
|
||||||
|
def pingURL(String url, int timeout) {
|
||||||
|
url = url.replaceFirst("^https", "http") // Otherwise an exception may be thrown on invalid SSL certificates.
|
||||||
|
try {
|
||||||
|
HttpURLConnection connection = (HttpURLConnection) new URL(url).openConnection()
|
||||||
|
connection.setConnectTimeout(timeout)
|
||||||
|
connection.setReadTimeout(timeout)
|
||||||
|
connection.setRequestMethod("HEAD")
|
||||||
|
int responseCode = connection.getResponseCode()
|
||||||
|
return 200 <= responseCode && responseCode <= 399
|
||||||
|
} catch (IOException ignored) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// For easier scripting of things that require variables defined earlier in the buildscript
|
||||||
|
if (file('addon.late.gradle.kts').exists()) {
|
||||||
|
apply from: 'addon.late.gradle.kts'
|
||||||
|
} else if (file('addon.late.gradle').exists()) {
|
||||||
|
apply from: 'addon.late.gradle'
|
||||||
|
}
|
||||||
|
|
||||||
|
// File for local tweaks not commited to Git
|
||||||
|
if (file('addon.late.local.gradle.kts').exists()) {
|
||||||
|
apply from: 'addon.late.local.gradle.kts'
|
||||||
|
} else if (file('addon.late.local.gradle').exists()) {
|
||||||
|
apply from: 'addon.late.local.gradle'
|
||||||
|
}
|
||||||
+4
-4
@@ -1,9 +1,9 @@
|
|||||||
// Add your dependencies here
|
// Add your dependencies here
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile 'com.github.GTNewHorizons:GT5-Unofficial:5.09.43.07:dev'
|
api 'com.github.GTNewHorizons:GT5-Unofficial:5.09.44.35:dev'
|
||||||
compile 'com.github.GTNewHorizons:Baubles:1.0.1.16:dev'
|
api 'com.github.GTNewHorizons:Baubles:1.0.1.16:dev'
|
||||||
|
|
||||||
compile 'net.industrial-craft:industrialcraft-2:2.2.828-experimental:dev'
|
api 'net.industrial-craft:industrialcraft-2:2.2.828-experimental:dev'
|
||||||
compile 'thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev'
|
api 'thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev'
|
||||||
}
|
}
|
||||||
Vendored
BIN
Binary file not shown.
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-bin.zip
|
||||||
networkTimeout=10000
|
networkTimeout=10000
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
@@ -85,9 +85,6 @@ done
|
|||||||
APP_BASE_NAME=${0##*/}
|
APP_BASE_NAME=${0##*/}
|
||||||
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
|
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
|
||||||
|
|
||||||
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
|
||||||
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
|
||||||
|
|
||||||
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
||||||
MAX_FD=maximum
|
MAX_FD=maximum
|
||||||
|
|
||||||
@@ -197,6 +194,10 @@ if "$cygwin" || "$msys" ; then
|
|||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||||
|
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
||||||
|
|
||||||
# Collect all arguments for the java command;
|
# Collect all arguments for the java command;
|
||||||
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
|
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
|
||||||
# shell script including quotes and variable substitutions, so put them in
|
# shell script including quotes and variable substitutions, so put them in
|
||||||
|
|||||||
+1
-25
@@ -1,28 +1,4 @@
|
|||||||
// Add any additional repositiroes for your dependencies here
|
// Add any additional repositories for your dependencies here
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
maven {
|
|
||||||
name 'GTNH Maven'
|
|
||||||
url 'http://jenkins.usrv.eu:8081/nexus/content/groups/public/'
|
|
||||||
allowInsecureProtocol
|
|
||||||
}
|
|
||||||
mavenCentral()
|
|
||||||
maven {
|
|
||||||
name 'ic2'
|
|
||||||
url 'https://maven.ic2.player.to/'
|
|
||||||
metadataSources {
|
|
||||||
mavenPom()
|
|
||||||
artifact()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
maven {
|
|
||||||
url 'https://cursemaven.com'
|
|
||||||
content {
|
|
||||||
includeGroup "curse.maven"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
maven {
|
|
||||||
url 'https://jitpack.io'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
@@ -24,7 +24,12 @@ import emt.network.PacketEMTKeys;
|
|||||||
import emt.network.PacketNodeInfo;
|
import emt.network.PacketNodeInfo;
|
||||||
import emt.proxy.CommonProxy;
|
import emt.proxy.CommonProxy;
|
||||||
import emt.tile.solar.Solars;
|
import emt.tile.solar.Solars;
|
||||||
import emt.util.*;
|
import emt.util.EMTClientEventHandler;
|
||||||
|
import emt.util.EMTConfigHandler;
|
||||||
|
import emt.util.EMTCreativeTab;
|
||||||
|
import emt.util.EMTDungeonChestGenerator;
|
||||||
|
import emt.util.EMTEssentiasOutputs;
|
||||||
|
import emt.util.EMTEventHandler;
|
||||||
|
|
||||||
@Mod(
|
@Mod(
|
||||||
modid = EMT.MOD_ID,
|
modid = EMT.MOD_ID,
|
||||||
|
|||||||
@@ -39,15 +39,15 @@ public class EMT_GT_Loader implements Runnable {
|
|||||||
for (int i = 0; i < TIERS; i++) {
|
for (int i = 0; i < TIERS; i++) {
|
||||||
EHatch[i] = new EssentiaHatch(
|
EHatch[i] = new EssentiaHatch(
|
||||||
aIDoffset + i,
|
aIDoffset + i,
|
||||||
"Essentia Hatch " + GT_Values.VN[i],
|
"Essentia Hatch" + GT_Values.VN[i] + " - Marked for Deprecation",
|
||||||
"Essentia Hatch " + GT_Values.VN[i],
|
"Essentia Hatch " + GT_Values.VN[i] + " - Marked for Deprecation",
|
||||||
i).getStackForm(1L);
|
i).getStackForm(1L);
|
||||||
}
|
}
|
||||||
|
|
||||||
LEG = new EMT_Large_Essentia_Gen(
|
LEG = new EMT_Large_Essentia_Gen(
|
||||||
aIDoffset + GT_Values.VN.length + 1,
|
aIDoffset + GT_Values.VN.length + 1,
|
||||||
"Large Essentia Generator",
|
"Large Essentia Generator - Marked for Deprecation",
|
||||||
"Large Essentia Generator").getStackForm(1L);
|
"Large Essentia Generator - Marked for Deprecation").getStackForm(1L);
|
||||||
|
|
||||||
// Dragonblood recipe for magics haters
|
// Dragonblood recipe for magics haters
|
||||||
if (Loader.isModLoaded("miscutils")) {
|
if (Loader.isModLoaded("miscutils")) {
|
||||||
|
|||||||
@@ -13,7 +13,11 @@ import net.minecraftforge.fluids.FluidStack;
|
|||||||
import cpw.mods.fml.common.Loader;
|
import cpw.mods.fml.common.Loader;
|
||||||
import emt.client.gui.EMT_UITextures;
|
import emt.client.gui.EMT_UITextures;
|
||||||
import emt.init.EMTItems;
|
import emt.init.EMTItems;
|
||||||
import gregtech.api.enums.*;
|
import gregtech.api.enums.GT_Values;
|
||||||
|
import gregtech.api.enums.ItemList;
|
||||||
|
import gregtech.api.enums.Materials;
|
||||||
|
import gregtech.api.enums.MaterialsUEVplus;
|
||||||
|
import gregtech.api.enums.OrePrefixes;
|
||||||
import gregtech.api.util.GT_ModHandler;
|
import gregtech.api.util.GT_ModHandler;
|
||||||
import gregtech.api.util.GT_OreDictUnificator;
|
import gregtech.api.util.GT_OreDictUnificator;
|
||||||
import gregtech.api.util.GT_Recipe;
|
import gregtech.api.util.GT_Recipe;
|
||||||
|
|||||||
+2
-14
@@ -41,20 +41,8 @@ public class EMT_Large_Essentia_Gen extends GT_MetaTileEntity_MultiBlockBase {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String[] getDescription() {
|
public String[] getDescription() {
|
||||||
return new String[] { "Controller Block for the Large Essentia Generator.",
|
return new String[] { "Does not work, please don't use", "Marked for deprecation", "Added by EMT",
|
||||||
"Produces energy from magical essentia decay.", "Size(WxHxD): 7x4x7, Controller (Bottom, Center)",
|
"Made by bartimaeusnek" };
|
||||||
"Top-Middle 5x1x5 layer are Muffler Hatches", "Middle 5x2x5 layer are Essentia Diffusion Cells",
|
|
||||||
"Everything from here on goes either in the bottom or on the sides", "1x Fluid Input Hatch",
|
|
||||||
"1x Essentia Input Hatch", "1x Dynamo Hatches", "1x Maintenance Hatch",
|
|
||||||
"The outer hull is made out of Magic Containing Casings",
|
|
||||||
"Produces 20x more than the singleblock generator per essentia",
|
|
||||||
"Causes magical and serious conventional pollution",
|
|
||||||
"Needs 1L Lubricant per second or will cause way more conventional pollution",
|
|
||||||
"Needs 10 " + EMTTextHelper.LIGHT_BLUE
|
|
||||||
+ "Aqua"
|
|
||||||
+ EMTTextHelper.LIGHT_GRAY
|
|
||||||
+ " cVis per second or will cause way more magical pollution",
|
|
||||||
"Added by EMT", "Made by bartimaeusnek" };
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getCurrentEfficiency(ItemStack itemStack) {
|
public int getCurrentEfficiency(ItemStack itemStack) {
|
||||||
|
|||||||
@@ -5,7 +5,12 @@ import static thaumcraft.api.ThaumcraftApi.registerObjectTag;
|
|||||||
import net.minecraft.block.Block;
|
import net.minecraft.block.Block;
|
||||||
|
|
||||||
import cpw.mods.fml.common.registry.GameRegistry;
|
import cpw.mods.fml.common.registry.GameRegistry;
|
||||||
import emt.block.*;
|
import emt.block.BlockElectricCloud;
|
||||||
|
import emt.block.BlockEssentiaGenerators;
|
||||||
|
import emt.block.BlockMachines;
|
||||||
|
import emt.block.BlockPortableNode;
|
||||||
|
import emt.block.BlockShield;
|
||||||
|
import emt.block.BlockSolars;
|
||||||
import emt.item.block.ItemBlockElectricCloud;
|
import emt.item.block.ItemBlockElectricCloud;
|
||||||
import emt.item.block.ItemBlockEssentiaGenerators;
|
import emt.item.block.ItemBlockEssentiaGenerators;
|
||||||
import emt.item.block.ItemBlockMachines;
|
import emt.item.block.ItemBlockMachines;
|
||||||
|
|||||||
@@ -24,7 +24,13 @@ import emt.item.armor.wings.ItemFeatherWing;
|
|||||||
import emt.item.armor.wings.ItemNanoWing;
|
import emt.item.armor.wings.ItemNanoWing;
|
||||||
import emt.item.armor.wings.ItemQuantumWing;
|
import emt.item.armor.wings.ItemQuantumWing;
|
||||||
import emt.item.armor.wings.ItemThaumiumReinforcedWing;
|
import emt.item.armor.wings.ItemThaumiumReinforcedWing;
|
||||||
import emt.item.focus.*;
|
import emt.item.focus.ItemChargeFocus;
|
||||||
|
import emt.item.focus.ItemChristmasFocus;
|
||||||
|
import emt.item.focus.ItemEnergyBallFocus;
|
||||||
|
import emt.item.focus.ItemExplosionFocus;
|
||||||
|
import emt.item.focus.ItemMaintenanceFocus;
|
||||||
|
import emt.item.focus.ItemShieldFocus;
|
||||||
|
import emt.item.focus.ItemWandChargingFocus;
|
||||||
import emt.item.tool.ItemElectricHoeGrowth;
|
import emt.item.tool.ItemElectricHoeGrowth;
|
||||||
import emt.item.tool.ItemElectricThorHammer;
|
import emt.item.tool.ItemElectricThorHammer;
|
||||||
import emt.item.tool.ItemThorHammer;
|
import emt.item.tool.ItemThorHammer;
|
||||||
@@ -58,6 +64,7 @@ public class EMTItems {
|
|||||||
public static Item christmasFocus;
|
public static Item christmasFocus;
|
||||||
public static Item shieldFocus;
|
public static Item shieldFocus;
|
||||||
public static Item energyBallFocus;
|
public static Item energyBallFocus;
|
||||||
|
public static Item maintenanceFocus;
|
||||||
public static Item electricGoggles;
|
public static Item electricGoggles;
|
||||||
public static Item streamChainsaw;
|
public static Item streamChainsaw;
|
||||||
public static Item rockbreakerDrill;
|
public static Item rockbreakerDrill;
|
||||||
@@ -197,5 +204,8 @@ public class EMTItems {
|
|||||||
|
|
||||||
energyBallFocus = new ItemEnergyBallFocus();
|
energyBallFocus = new ItemEnergyBallFocus();
|
||||||
GameRegistry.registerItem(energyBallFocus, "EnergyBallFocus");
|
GameRegistry.registerItem(energyBallFocus, "EnergyBallFocus");
|
||||||
|
|
||||||
|
maintenanceFocus = new ItemMaintenanceFocus();
|
||||||
|
GameRegistry.registerItem(maintenanceFocus, "MaintenanceFocus");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -17,6 +17,7 @@ import emt.EMT;
|
|||||||
import emt.util.EMTConfigHandler;
|
import emt.util.EMTConfigHandler;
|
||||||
import emt.util.EMTCraftingAspects;
|
import emt.util.EMTCraftingAspects;
|
||||||
import emt.util.EMTResearchAspects;
|
import emt.util.EMTResearchAspects;
|
||||||
|
import gregtech.api.enums.ItemList;
|
||||||
import ic2.api.item.IC2Items;
|
import ic2.api.item.IC2Items;
|
||||||
import ic2.api.recipe.IRecipeInput;
|
import ic2.api.recipe.IRecipeInput;
|
||||||
import ic2.api.recipe.RecipeInputItemStack;
|
import ic2.api.recipe.RecipeInputItemStack;
|
||||||
@@ -67,6 +68,7 @@ public class EMTRecipes {
|
|||||||
public static InfusionRecipe thaumicNanoHelmet;
|
public static InfusionRecipe thaumicNanoHelmet;
|
||||||
public static InfusionRecipe explosionFocus;
|
public static InfusionRecipe explosionFocus;
|
||||||
public static InfusionRecipe shieldFocus;
|
public static InfusionRecipe shieldFocus;
|
||||||
|
public static InfusionRecipe maintenanceFocus;
|
||||||
public static InfusionRecipe potentiaGenerator;
|
public static InfusionRecipe potentiaGenerator;
|
||||||
public static InfusionRecipe streamChainsaw;
|
public static InfusionRecipe streamChainsaw;
|
||||||
public static InfusionRecipe rockbreakerDrill;
|
public static InfusionRecipe rockbreakerDrill;
|
||||||
@@ -534,6 +536,18 @@ public class EMTRecipes {
|
|||||||
new ItemStack(Blocks.soul_sand), new ItemStack(Blocks.obsidian),
|
new ItemStack(Blocks.soul_sand), new ItemStack(Blocks.obsidian),
|
||||||
new ItemStack(Blocks.obsidian) });
|
new ItemStack(Blocks.obsidian) });
|
||||||
|
|
||||||
|
maintenanceFocus = addInfusionCraftingRecipe(
|
||||||
|
"Wand Focus: Maintenance",
|
||||||
|
new ItemStack(EMTItems.maintenanceFocus),
|
||||||
|
6,
|
||||||
|
EMTCraftingAspects.maintenanceFocus,
|
||||||
|
new ItemStack(EMTItems.chargeFocus),
|
||||||
|
new ItemStack[] { new ItemStack(ConfigItems.itemShard, 1, 5),
|
||||||
|
new ItemStack(ConfigItems.itemShard, 1, 4), new ItemStack(ConfigItems.itemShard, 1, 3),
|
||||||
|
new ItemStack(EMTItems.itemEMTItems, 1, 9), new ItemStack(ConfigItems.itemShard, 1, 2),
|
||||||
|
new ItemStack(ConfigItems.itemShard, 1, 1), new ItemStack(ConfigItems.itemShard, 1, 0),
|
||||||
|
ItemList.Duct_Tape.get(1) });
|
||||||
|
|
||||||
potentiaGenerator = addInfusionCraftingRecipe(
|
potentiaGenerator = addInfusionCraftingRecipe(
|
||||||
"Potentia Generator",
|
"Potentia Generator",
|
||||||
new ItemStack(EMTBlocks.essentiaGens, 1, 0),
|
new ItemStack(EMTBlocks.essentiaGens, 1, 0),
|
||||||
|
|||||||
@@ -648,6 +648,17 @@ public class EMTResearches {
|
|||||||
.setPages(new ResearchPage(""), new ResearchPage(EMTRecipes.chargeFocus));
|
.setPages(new ResearchPage(""), new ResearchPage(EMTRecipes.chargeFocus));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!EMTConfigHandler.maintenanceFocusResearch) {
|
||||||
|
new EMTResearchItem(
|
||||||
|
"Wand Focus: Maintenance",
|
||||||
|
EMTResearchAspects.maintenanceFocus,
|
||||||
|
7,
|
||||||
|
4,
|
||||||
|
4,
|
||||||
|
new ItemStack(EMTItems.maintenanceFocus)).setParents("Wand Focus: Charging").setConcealed()
|
||||||
|
.registerResearchItem()
|
||||||
|
.setPages(new ResearchPage(""), new ResearchPage(EMTRecipes.maintenanceFocus));
|
||||||
|
}
|
||||||
if (!EMTConfigHandler.wandChargeFocusResearch) {
|
if (!EMTConfigHandler.wandChargeFocusResearch) {
|
||||||
new EMTResearchItem(
|
new EMTResearchItem(
|
||||||
"Wand Focus: Wand Charging",
|
"Wand Focus: Wand Charging",
|
||||||
|
|||||||
@@ -12,8 +12,13 @@ import net.minecraft.item.EnumAction;
|
|||||||
import net.minecraft.item.Item;
|
import net.minecraft.item.Item;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.potion.PotionEffect;
|
import net.minecraft.potion.PotionEffect;
|
||||||
import net.minecraft.util.*;
|
import net.minecraft.util.EnumChatFormatting;
|
||||||
|
import net.minecraft.util.IIcon;
|
||||||
|
import net.minecraft.util.MathHelper;
|
||||||
|
import net.minecraft.util.MovingObjectPosition;
|
||||||
import net.minecraft.util.MovingObjectPosition.MovingObjectType;
|
import net.minecraft.util.MovingObjectPosition.MovingObjectType;
|
||||||
|
import net.minecraft.util.StatCollector;
|
||||||
|
import net.minecraft.util.Vec3;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
import net.minecraftforge.common.MinecraftForge;
|
import net.minecraftforge.common.MinecraftForge;
|
||||||
import net.minecraftforge.event.entity.player.ArrowNockEvent;
|
import net.minecraftforge.event.entity.player.ArrowNockEvent;
|
||||||
|
|||||||
@@ -0,0 +1,77 @@
|
|||||||
|
package emt.item.focus;
|
||||||
|
|
||||||
|
import net.minecraft.entity.player.EntityPlayer;
|
||||||
|
import net.minecraft.item.ItemStack;
|
||||||
|
import net.minecraft.tileentity.TileEntity;
|
||||||
|
import net.minecraft.util.MovingObjectPosition;
|
||||||
|
import net.minecraft.world.World;
|
||||||
|
|
||||||
|
import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
|
||||||
|
import gregtech.api.metatileentity.BaseMetaTileEntity;
|
||||||
|
import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_Hatch_Maintenance;
|
||||||
|
import thaumcraft.api.aspects.Aspect;
|
||||||
|
import thaumcraft.api.aspects.AspectList;
|
||||||
|
import thaumcraft.api.wands.FocusUpgradeType;
|
||||||
|
import thaumcraft.common.items.wands.ItemWandCasting;
|
||||||
|
|
||||||
|
public class ItemMaintenanceFocus extends ItemBaseFocus {
|
||||||
|
|
||||||
|
private static final AspectList visCost = new AspectList().add(Aspect.FIRE, 2500).add(Aspect.EARTH, 2500)
|
||||||
|
.add(Aspect.ORDER, 2500);
|
||||||
|
|
||||||
|
public ItemMaintenanceFocus() {
|
||||||
|
super("maintenance");
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getFocusColor(ItemStack stack) {
|
||||||
|
return 0xC0C0C0;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public AspectList getVisCost(ItemStack focusstack) {
|
||||||
|
return visCost;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String getSortingHelper(ItemStack itemstack) {
|
||||||
|
return "MAINTENANCE";
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public FocusUpgradeType[] getPossibleUpgradesByRank(ItemStack focusstack, int rank) {
|
||||||
|
return new FocusUpgradeType[] { FocusUpgradeType.frugal };
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ItemStack onFocusRightClick(ItemStack itemStack, World world, EntityPlayer player,
|
||||||
|
MovingObjectPosition mop) {
|
||||||
|
if (mop == null) return itemStack;
|
||||||
|
|
||||||
|
ItemWandCasting wand = (ItemWandCasting) itemStack.getItem();
|
||||||
|
|
||||||
|
if (!world.isRemote) {
|
||||||
|
if (!player.isSneaking()) {
|
||||||
|
return itemStack;
|
||||||
|
}
|
||||||
|
TileEntity hatchCandidateTile = world.getTileEntity(mop.blockX, mop.blockY, mop.blockZ);
|
||||||
|
if (hatchCandidateTile instanceof BaseMetaTileEntity) {
|
||||||
|
IMetaTileEntity hatchCandidateMetaTile = ((BaseMetaTileEntity) hatchCandidateTile).getMetaTileEntity();
|
||||||
|
if (hatchCandidateMetaTile instanceof GT_MetaTileEntity_Hatch_Maintenance) {
|
||||||
|
GT_MetaTileEntity_Hatch_Maintenance hatch = (GT_MetaTileEntity_Hatch_Maintenance) hatchCandidateMetaTile;
|
||||||
|
if (player.capabilities.isCreativeMode
|
||||||
|
|| wand.consumeAllVis(itemStack, player, getVisCost(itemStack), true, true)) {
|
||||||
|
hatch.mCrowbar = true;
|
||||||
|
hatch.mScrewdriver = true;
|
||||||
|
hatch.mHardHammer = true;
|
||||||
|
hatch.mSolderingTool = true;
|
||||||
|
hatch.mWrench = true;
|
||||||
|
hatch.mSoftHammer = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
player.swingItem();
|
||||||
|
return itemStack;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
package emt.item.tool.chainsaw;
|
package emt.item.tool.chainsaw;
|
||||||
|
|
||||||
import java.awt.*;
|
import java.awt.Color;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
import net.minecraft.block.Block;
|
import net.minecraft.block.Block;
|
||||||
|
|||||||
@@ -36,7 +36,11 @@ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
|
|||||||
import gregtech.api.interfaces.tileentity.IHasWorldObjectAndCoords;
|
import gregtech.api.interfaces.tileentity.IHasWorldObjectAndCoords;
|
||||||
import gregtech.api.net.GT_Packet_Block_Event;
|
import gregtech.api.net.GT_Packet_Block_Event;
|
||||||
import thaumcraft.api.ThaumcraftApiHelper;
|
import thaumcraft.api.ThaumcraftApiHelper;
|
||||||
import thaumcraft.api.aspects.*;
|
import thaumcraft.api.aspects.Aspect;
|
||||||
|
import thaumcraft.api.aspects.AspectList;
|
||||||
|
import thaumcraft.api.aspects.IAspectContainer;
|
||||||
|
import thaumcraft.api.aspects.IAspectSource;
|
||||||
|
import thaumcraft.api.aspects.IEssentiaTransport;
|
||||||
import thaumcraft.common.lib.network.PacketHandler;
|
import thaumcraft.common.lib.network.PacketHandler;
|
||||||
import thaumcraft.common.lib.network.fx.PacketFXEssentiaSource;
|
import thaumcraft.common.lib.network.fx.PacketFXEssentiaSource;
|
||||||
|
|
||||||
|
|||||||
@@ -107,6 +107,7 @@ public class EMTConfigHandler {
|
|||||||
public static boolean christmasFocusResearch;
|
public static boolean christmasFocusResearch;
|
||||||
public static boolean energyBallFocusResearch;
|
public static boolean energyBallFocusResearch;
|
||||||
public static boolean shieldFocusResearch;
|
public static boolean shieldFocusResearch;
|
||||||
|
public static boolean maintenanceFocusResearch;
|
||||||
public static boolean shieldBlockResearch;
|
public static boolean shieldBlockResearch;
|
||||||
public static boolean potentiaGeneratorResearch;
|
public static boolean potentiaGeneratorResearch;
|
||||||
public static boolean ignisGeneratorResearch;
|
public static boolean ignisGeneratorResearch;
|
||||||
@@ -390,6 +391,8 @@ public class EMTConfigHandler {
|
|||||||
christmasFocusResearch = config.get(RESEARCH, "Kris-tmas Focus", false).getBoolean(christmasFocusResearch);
|
christmasFocusResearch = config.get(RESEARCH, "Kris-tmas Focus", false).getBoolean(christmasFocusResearch);
|
||||||
energyBallFocusResearch = config.get(RESEARCH, "EnergyBall Focus", false).getBoolean(christmasFocusResearch);
|
energyBallFocusResearch = config.get(RESEARCH, "EnergyBall Focus", false).getBoolean(christmasFocusResearch);
|
||||||
shieldFocusResearch = config.get(RESEARCH, "Shield Focus", false).getBoolean(shieldFocusResearch);
|
shieldFocusResearch = config.get(RESEARCH, "Shield Focus", false).getBoolean(shieldFocusResearch);
|
||||||
|
maintenanceFocusResearch = config.get(RESEARCH, "Maintenance Focus", false)
|
||||||
|
.getBoolean(maintenanceFocusResearch);
|
||||||
shieldBlockResearch = config.get(RESEARCH, "Shield Block", false).getBoolean(shieldBlockResearch);
|
shieldBlockResearch = config.get(RESEARCH, "Shield Block", false).getBoolean(shieldBlockResearch);
|
||||||
potentiaGeneratorResearch = config.get(RESEARCH, "Potentia Generator", false)
|
potentiaGeneratorResearch = config.get(RESEARCH, "Potentia Generator", false)
|
||||||
.getBoolean(potentiaGeneratorResearch);
|
.getBoolean(potentiaGeneratorResearch);
|
||||||
|
|||||||
@@ -83,6 +83,8 @@ public class EMTCraftingAspects {
|
|||||||
.add(Aspect.MECHANISM, 32);
|
.add(Aspect.MECHANISM, 32);
|
||||||
public static AspectList wandChargeFocus = new AspectList().add(Aspect.ENERGY, 48).add(Aspect.AURA, 32)
|
public static AspectList wandChargeFocus = new AspectList().add(Aspect.ENERGY, 48).add(Aspect.AURA, 32)
|
||||||
.add(Aspect.EXCHANGE, 48).add(Aspect.GREED, 64);
|
.add(Aspect.EXCHANGE, 48).add(Aspect.GREED, 64);
|
||||||
|
public static AspectList maintenanceFocus = new AspectList().add(Aspect.CRAFT, 32).add(Aspect.EXCHANGE, 48)
|
||||||
|
.add(Aspect.TOOL, 64).add(Aspect.MAGIC, 64).add(Aspect.MECHANISM, 32).add(Aspect.ENERGY, 32);
|
||||||
public static AspectList inventoryChargingRing = new AspectList().add(Aspect.ENERGY, 64).add(Aspect.CRYSTAL, 32)
|
public static AspectList inventoryChargingRing = new AspectList().add(Aspect.ENERGY, 64).add(Aspect.CRYSTAL, 32)
|
||||||
.add(Aspect.MAGIC, 48);
|
.add(Aspect.MAGIC, 48);
|
||||||
public static AspectList armorChargingRing = new AspectList().add(Aspect.ENERGY, 64).add(Aspect.ARMOR, 32)
|
public static AspectList armorChargingRing = new AspectList().add(Aspect.ENERGY, 64).add(Aspect.ARMOR, 32)
|
||||||
|
|||||||
@@ -25,6 +25,8 @@ public class EMTResearchAspects {
|
|||||||
.add(Aspect.LIFE, 6);
|
.add(Aspect.LIFE, 6);
|
||||||
public static AspectList shieldFocusResearch = new AspectList().add(Aspect.ARMOR, 5).add(Aspect.AIR, 2)
|
public static AspectList shieldFocusResearch = new AspectList().add(Aspect.ARMOR, 5).add(Aspect.AIR, 2)
|
||||||
.add(Aspect.CRYSTAL, 3).add(Aspect.TRAP, 2);
|
.add(Aspect.CRYSTAL, 3).add(Aspect.TRAP, 2);
|
||||||
|
public static AspectList maintenanceFocus = new AspectList().add(Aspect.MECHANISM, 5).add(Aspect.FIRE, 3)
|
||||||
|
.add(Aspect.ORDER, 3).add(Aspect.ENERGY, 5).add(Aspect.MAGIC, 5).add(Aspect.TOOL, 5);
|
||||||
public static AspectList electricGogglesResearch = new AspectList().add(Aspect.ARMOR, 8).add(Aspect.ENERGY, 5)
|
public static AspectList electricGogglesResearch = new AspectList().add(Aspect.ARMOR, 8).add(Aspect.ENERGY, 5)
|
||||||
.add(Aspect.SENSES, 6);
|
.add(Aspect.SENSES, 6);
|
||||||
public static AspectList potentiaGeneratorResearch = new AspectList().add(Aspect.ENERGY, 4).add(Aspect.EXCHANGE, 4)
|
public static AspectList potentiaGeneratorResearch = new AspectList().add(Aspect.ENERGY, 4).add(Aspect.EXCHANGE, 4)
|
||||||
|
|||||||
@@ -106,6 +106,7 @@ item.EMT.focus.christmas.name=Wand Focus: Kris-tmas
|
|||||||
item.EMT.focus.shield.name=Wand Focus: Shield
|
item.EMT.focus.shield.name=Wand Focus: Shield
|
||||||
item.EMT.focus.charge.name=Wand Focus: Charging
|
item.EMT.focus.charge.name=Wand Focus: Charging
|
||||||
item.EMT.focus.chargeWand.name=Wand Focus: Wand Charging
|
item.EMT.focus.chargeWand.name=Wand Focus: Wand Charging
|
||||||
|
item.EMT.focus.maintenance.name=Wand Focus: Maintenance
|
||||||
item.EMT.focus.electricCloud.name=Electric Cloud
|
item.EMT.focus.electricCloud.name=Electric Cloud
|
||||||
item.EMT.focus.energyBall.name=Energy Ball Focus
|
item.EMT.focus.energyBall.name=Energy Ball Focus
|
||||||
|
|
||||||
@@ -121,7 +122,7 @@ tile.EMT.essentia.aer.name=Aer Generator
|
|||||||
tile.EMT.essentia.lucrum.name=Lucrum Generator
|
tile.EMT.essentia.lucrum.name=Lucrum Generator
|
||||||
tile.EMT.machine.wandrecharge.name=Industrial Wand Charging Station
|
tile.EMT.machine.wandrecharge.name=Industrial Wand Charging Station
|
||||||
tile.EMT.machine.etheralprocessor.name=Ethereal Processor
|
tile.EMT.machine.etheralprocessor.name=Ethereal Processor
|
||||||
tile.EMT.machine.essentiafiller.name=Essentia Filler
|
tile.EMT.machine.essentiafiller.name=Essentia Filler - Marked for deprecation
|
||||||
tile.EMT.solar.compressed.name=Compressed Solar Panel
|
tile.EMT.solar.compressed.name=Compressed Solar Panel
|
||||||
tile.EMT.solar.doublecompressed.name=Double Compressed Solar Panel
|
tile.EMT.solar.doublecompressed.name=Double Compressed Solar Panel
|
||||||
tile.EMT.solar.triplecompressed.name=Triple Compressed Solar Panel
|
tile.EMT.solar.triplecompressed.name=Triple Compressed Solar Panel
|
||||||
@@ -180,12 +181,12 @@ tile.EMT.Septuple_Compressed_Terra_Solar.name=Septuple Compressed Terra Solar
|
|||||||
tile.EMT.Octuple_Compressed_Terra_Solar.name=Octuple Compressed Terra Solar
|
tile.EMT.Octuple_Compressed_Terra_Solar.name=Octuple Compressed Terra Solar
|
||||||
|
|
||||||
#===============Gregtech Compat===============
|
#===============Gregtech Compat===============
|
||||||
EMT_GTBLOCK_CASEING.0.name=Magic Containing Casing
|
EMT_GTBLOCK_CASEING.0.name=Magic Containing Casing - Marked for deprecation
|
||||||
EMT_GTBLOCK_CASEING.1.name=Essentia Diffusion Cell
|
EMT_GTBLOCK_CASEING.1.name=Essentia Diffusion Cell - Marked for deprecation
|
||||||
EMT_GTBLOCK_CASEING.2.name=Iridium Ruridit Framebox
|
EMT_GTBLOCK_CASEING.2.name=Iridium Ruridit Framebox
|
||||||
EMT_GTBLOCK_CASEING.3.name=Indium Tungsten Framebox
|
EMT_GTBLOCK_CASEING.3.name=Indium Tungsten Framebox
|
||||||
EMT_GTBLOCK_CASEING.4.name=Raw Magic Containing Casing
|
EMT_GTBLOCK_CASEING.4.name=Raw Magic Containing Casing
|
||||||
EMT_GTBLOCK_CASEING.5.name=Raw Essentia Diffusion Cell
|
EMT_GTBLOCK_CASEING.5.name=Raw Essentia Diffusion Cell - Marked for deprecation
|
||||||
EMT_GTBLOCK_CASEING.7.name=Naquadah Alloy Fusion Casing
|
EMT_GTBLOCK_CASEING.7.name=Naquadah Alloy Fusion Casing
|
||||||
EMT_GTBLOCK_CASEING.8.name=Bloody Ichorium Fusion Casing
|
EMT_GTBLOCK_CASEING.8.name=Bloody Ichorium Fusion Casing
|
||||||
EMT_GTBLOCK_CASEING.9.name=Draconium Fusion Casing
|
EMT_GTBLOCK_CASEING.9.name=Draconium Fusion Casing
|
||||||
@@ -251,6 +252,10 @@ emt.rsname.Shield Focus=Shield Focus
|
|||||||
emt.tag.Shield Focus=S.H.I.E.L.D.
|
emt.tag.Shield Focus=S.H.I.E.L.D.
|
||||||
emt.text.Shield Focus=With some experimentation with the Portable Hole, you have found out more about the transportation of objects to alternate dimensions. You believe you can reverse these effects to summon a swath of blocks from a dimension full of matter to shield you from any oncoming disaster. Caution is to be taken when using this focus, as when bringing these blocks into our dimension, it will transpose any blocks in the way into the dimension it came from, never to return again. You will also be unable to move while this shield is in existence.
|
emt.text.Shield Focus=With some experimentation with the Portable Hole, you have found out more about the transportation of objects to alternate dimensions. You believe you can reverse these effects to summon a swath of blocks from a dimension full of matter to shield you from any oncoming disaster. Caution is to be taken when using this focus, as when bringing these blocks into our dimension, it will transpose any blocks in the way into the dimension it came from, never to return again. You will also be unable to move while this shield is in existence.
|
||||||
|
|
||||||
|
emt.rsname.Wand Focus: Maintenance=Thaumic Maintenance
|
||||||
|
emt.tag.Wand Focus: Maintenance=Who needs a toolbox when you have magic?
|
||||||
|
emt.text.Wand Focus: Maintenance=After intense study of the supposedly mechanical nature of your apparati, you've finally done it, you've discovered a method allowing the use of vis in repair. <BR> What are a few exploded cleanrooms in the face of sheer progress? Now you can get rid of those dastardly mundane tools...
|
||||||
|
|
||||||
emt.rsname.Potentia Generator=Potentia Generator
|
emt.rsname.Potentia Generator=Potentia Generator
|
||||||
emt.tag.Potentia Generator=Harnessing the power-producing potential of Essentia
|
emt.tag.Potentia Generator=Harnessing the power-producing potential of Essentia
|
||||||
emt.text.Potentia Generator=After much studying and research, you have finally discovered how to create electricity from your leftover Essentia.<BR><BR>Simply place a Warded Jar containing Potentia in a 8 blocks radius of the machine and it will draw it in to create EU.<BR><BR>While Potentia seems like the most logical choice for producing Essentia with EU, you believe you will be able to generate electricity from different Essentia in the near future with a bit of tinkering.
|
emt.text.Potentia Generator=After much studying and research, you have finally discovered how to create electricity from your leftover Essentia.<BR><BR>Simply place a Warded Jar containing Potentia in a 8 blocks radius of the machine and it will draw it in to create EU.<BR><BR>While Potentia seems like the most logical choice for producing Essentia with EU, you believe you will be able to generate electricity from different Essentia in the near future with a bit of tinkering.
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 522 B |
Reference in new issue
Block a user