Compare commits

...
3 Commits
Author SHA1 Message Date
Alexdoru 0b697b40cc update bs + gradle + deps (#25) 2026-03-13 23:00:08 +01:00
Alexdoru f32c8e48f2 move log file to log folder (#24) 2026-03-13 17:57:48 +01:00
Martin Robertz 814d0a96d4 update 2025-05-18 14:40:58 +02:00
10 changed files with 72 additions and 29 deletions

No files matched your search

+2 -2
View File
@@ -1,5 +1,5 @@
dependencies { dependencies {
shadowImplementation("com.github.GTNewHorizons:ZenScript:1.0.0-GTNH") shadowImplementation("com.github.GTNewHorizons:ZenScript:1.0.1-GTNH")
implementation("com.github.GTNewHorizons:NotEnoughItems:2.7.34-GTNH:dev") implementation("com.github.GTNewHorizons:NotEnoughItems:2.8.75-GTNH:dev")
compileOnly("net.industrial-craft:industrialcraft-2:2.2.828-experimental:dev") compileOnly("net.industrial-craft:industrialcraft-2:2.2.828-experimental:dev")
} }
+40 -5
View File
@@ -14,7 +14,7 @@ modId = MineTweaker3
modGroup = minetweaker modGroup = minetweaker
# Whether to use modGroup as the maven publishing group. # Whether to use modGroup as the maven publishing group.
# Due to a history of using JitPack, the default is com.github.GTNewHorizons for all mods. # When false, com.github.GTNewHorizons is used.
useModGroupForPublishing = false useModGroupForPublishing = false
# Updates your build.gradle and settings.gradle automatically whenever an update is available. # Updates your build.gradle and settings.gradle automatically whenever an update is available.
@@ -39,10 +39,34 @@ remoteMappings = https\://raw.githubusercontent.com/MinecraftForge/FML/1.7.10/co
# `./gradlew runClient --username=AnotherPlayer`, or configuring this command in your IDE. # `./gradlew runClient --username=AnotherPlayer`, or configuring this command in your IDE.
developmentEnvironmentUserName = Developer developmentEnvironmentUserName = Developer
# Enables using modern Java syntax (up to version 17) via Jabel, while still targeting JVM 8. # Enables modern Java syntax support. Valid values:
# See https://github.com/bsideup/jabel for details on how this works. # - false: No modern syntax, Java 8 only
# - jabel: Jabel syntax-only support, compiles to J8 bytecode
# - jvmDowngrader: Full modern Java via JVM Downgrader (syntax + stdlib APIs)
# - modern: Native modern Java bytecode, no downgrading
enableModernJavaSyntax = false enableModernJavaSyntax = false
# If set, ignores the above setting and compiles with the given toolchain. This may cause unexpected issues,
# and should *not* be used in most situations. -1 disables this.
# forceToolchainVersion = -1
# Target JVM version for JVM Downgrader bytecode downgrading.
# Only used when enableModernJavaSyntax = jvmDowngrader
# downgradeTargetVersion = 8
# Comma-separated list of Java versions for multi-release jar support (JVM Downgrader only).
# Classes will be available in META-INF/versions/N/ for each version N in this list.
# Default: "21,25" (J25+ gets native classes, J21-24 gets partial downgrade, J8-20 gets full downgrade).
# jvmDowngraderMultiReleaseVersions = 21,25
# Specifies how JVM Downgrader API stubs are provided. Options:
# - shade: Shade minimized stubs into the jar
# - gtnhlib: GTNHLib provides stubs at runtime (adds version constraint)
# - external: Another dependency provides stubs (no constraint, no warning)
# - (empty): Warning reminding you to configure stubs
# Note: 'shade' option requires you to verify license compliance, see: https://github.com/unimined/JvmDowngrader/blob/main/LICENSE.md
# jvmDowngraderStubsProvider =
# Enables injecting missing generics into the decompiled source code for a better coding experience. # Enables injecting missing generics into the decompiled source code for a better coding experience.
# Turns most publicly visible List, Map, etc. into proper List<E>, Map<K, V> types. # Turns most publicly visible List, Map, etc. into proper List<E>, Map<K, V> types.
enableGenericInjection = false enableGenericInjection = false
@@ -96,7 +120,9 @@ usesMixinDebug = false
# Specify the location of your implementation of IMixinConfigPlugin. Leave it empty otherwise. # Specify the location of your implementation of IMixinConfigPlugin. Leave it empty otherwise.
mixinPlugin = mixinPlugin =
# Specify the package that contains all of your Mixins. You may only place Mixins in this package or the build will fail! # Specify the package that contains all of your Mixins. The package must exist or
# the build will fail. If you have a package property defined in your mixins.<modid>.json,
# it must match with this or the build will fail.
mixinsPackage = mixinsPackage =
# Specify the core mod entry class if you use a core mod. This class must implement IFMLLoadingPlugin! # Specify the core mod entry class if you use a core mod. This class must implement IFMLLoadingPlugin!
@@ -151,7 +177,7 @@ modrinthProjectId =
# type can be one of [project, version], # type can be one of [project, version],
# and the name is the Modrinth project or version slug/id of the other mod. # and the name is the Modrinth project or version slug/id of the other mod.
# Example: required-project:fplib;optional-project:gasstation;incompatible-project:gregtech # Example: required-project:fplib;optional-project:gasstation;incompatible-project:gregtech
# Note: GTNH Mixins is automatically set as a required dependency if usesMixins = true # Note: UniMixins is automatically set as a required dependency if usesMixins = true.
modrinthRelations = modrinthRelations =
# Publishing to CurseForge requires you to set the CURSEFORGE_TOKEN environment variable to one of your CurseForge API tokens. # Publishing to CurseForge requires you to set the CURSEFORGE_TOKEN environment variable to one of your CurseForge API tokens.
@@ -172,6 +198,12 @@ curseForgeRelations =
# projects. New projects should not use this parameter. # projects. New projects should not use this parameter.
customArchiveBaseName = CraftTweaker customArchiveBaseName = CraftTweaker
# Optional parameter to customize the default working directory used by the runClient* tasks. Relative to the project directory.
# runClientWorkingDirectory = run/client
# Optional parameter to customize the default working directory used by the runServer* tasks. Relative to the project directory.
# runServerWorkingDirectory = run/server
# Optional parameter to have the build automatically fail if an illegal version is used. # Optional parameter to have the build automatically fail if an illegal version is used.
# This can be useful if you e.g. only want to allow versions in the form of '1.1.xxx'. # This can be useful if you e.g. only want to allow versions in the form of '1.1.xxx'.
# The check is ONLY performed if the version is a git tag. # The check is ONLY performed if the version is a git tag.
@@ -201,3 +233,6 @@ disableCheckstyle = true
# This is meant to be set in $HOME/.gradle/gradle.properties. # This is meant to be set in $HOME/.gradle/gradle.properties.
# ideaCheckSpotlessOnBuild = true # ideaCheckSpotlessOnBuild = true
# Non-GTNH properties
org.gradle.configuration-cache = true
org.gradle.parallel = true
+12
View File
@@ -0,0 +1,12 @@
#This file is generated by updateDaemonJvm
toolchainUrl.FREE_BSD.AARCH64=https\://api.foojay.io/disco/v3.0/ids/1630f7ebef05444cb27a2709ea0249b3/redirect
toolchainUrl.FREE_BSD.X86_64=https\://api.foojay.io/disco/v3.0/ids/cd495626d2ee49a75447e3fdc6afb287/redirect
toolchainUrl.LINUX.AARCH64=https\://api.foojay.io/disco/v3.0/ids/1630f7ebef05444cb27a2709ea0249b3/redirect
toolchainUrl.LINUX.X86_64=https\://api.foojay.io/disco/v3.0/ids/cd495626d2ee49a75447e3fdc6afb287/redirect
toolchainUrl.MAC_OS.AARCH64=https\://api.foojay.io/disco/v3.0/ids/e1118b4c7c2858d28154d086dbff010e/redirect
toolchainUrl.MAC_OS.X86_64=https\://api.foojay.io/disco/v3.0/ids/59a9771cad43219260d9aac9a8ec4d6a/redirect
toolchainUrl.UNIX.AARCH64=https\://api.foojay.io/disco/v3.0/ids/1630f7ebef05444cb27a2709ea0249b3/redirect
toolchainUrl.UNIX.X86_64=https\://api.foojay.io/disco/v3.0/ids/cd495626d2ee49a75447e3fdc6afb287/redirect
toolchainUrl.WINDOWS.X86_64=https\://api.foojay.io/disco/v3.0/ids/b96cb7670c095245220e7d01d5927b58/redirect
toolchainVendor=ADOPTIUM
toolchainVersion=25
Binary file not shown.
+1 -1
View File
@@ -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.13-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-9.4.0-bin.zip
networkTimeout=10000 networkTimeout=10000
validateDistributionUrl=true validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
Vendored
+3 -6
View File
@@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
# #
# Copyright © 2015-2021 the original authors. # Copyright © 2015 the original authors.
# #
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License. # you may not use this file except in compliance with the License.
@@ -57,7 +57,7 @@
# Darwin, MinGW, and NonStop. # Darwin, MinGW, and NonStop.
# #
# (3) This script is generated from the Groovy template # (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt # https://github.com/gradle/gradle/blob/b631911858264c0b6e4d6603d677ff5218766cee/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project. # within the Gradle project.
# #
# You can find Gradle at https://github.com/gradle/gradle/. # You can find Gradle at https://github.com/gradle/gradle/.
@@ -114,7 +114,6 @@ case "$( uname )" in #(
NONSTOP* ) nonstop=true ;; NONSTOP* ) nonstop=true ;;
esac esac
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
# Determine the Java command to use to start the JVM. # Determine the Java command to use to start the JVM.
@@ -172,7 +171,6 @@ fi
# For Cygwin or MSYS, switch paths to Windows format before running java # For Cygwin or MSYS, switch paths to Windows format before running java
if "$cygwin" || "$msys" ; then if "$cygwin" || "$msys" ; then
APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
JAVACMD=$( cygpath --unix "$JAVACMD" ) JAVACMD=$( cygpath --unix "$JAVACMD" )
@@ -212,8 +210,7 @@ DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
set -- \ set -- \
"-Dorg.gradle.appname=$APP_BASE_NAME" \ "-Dorg.gradle.appname=$APP_BASE_NAME" \
-classpath "$CLASSPATH" \ -jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \
org.gradle.wrapper.GradleWrapperMain \
"$@" "$@"
# Stop when "xargs" is not available. # Stop when "xargs" is not available.
Vendored
+1 -2
View File
@@ -70,11 +70,10 @@ goto fail
:execute :execute
@rem Setup the command line @rem Setup the command line
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
@rem Execute Gradle @rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
:end :end
@rem End local scope for the variables with windows NT shell @rem End local scope for the variables with windows NT shell
+1 -1
View File
@@ -17,7 +17,7 @@ pluginManagement {
} }
plugins { plugins {
id 'com.gtnewhorizons.gtnhsettingsconvention' version '1.0.37' id 'com.gtnewhorizons.gtnhsettingsconvention' version '2.0.24'
} }
@@ -109,7 +109,7 @@ public class MineTweakerImplementationAPI {
} }
if (player != null) { if (player != null) {
player.sendChat("List generated; see minetweaker.log in your minecraft dir"); player.sendChat("List generated; see minetweaker.log in your logs dir");
} }
} }
})); }));
@@ -134,7 +134,7 @@ public class MineTweakerImplementationAPI {
} }
if (player != null) { if (player != null) {
player.sendChat("List generated; see minetweaker.log in your minecraft dir"); player.sendChat("List generated; see minetweaker.log in your logs dir");
} }
} }
})); }));
@@ -159,7 +159,7 @@ public class MineTweakerImplementationAPI {
} }
if (player != null) { if (player != null) {
player.sendChat("List generated; see minetweaker.log in your minecraft dir"); player.sendChat("List generated; see minetweaker.log in your logs dir");
} }
} }
})); }));
@@ -183,7 +183,7 @@ public class MineTweakerImplementationAPI {
} }
if (player != null) { if (player != null) {
player.sendChat("List generated; see minetweaker.log in your minecraft dir"); player.sendChat("List generated; see minetweaker.log in your logs dir");
} }
} }
})); }));
@@ -226,8 +226,7 @@ public class MineTweakerImplementationAPI {
} }
if (player != null) { if (player != null) {
player.sendChat( player.sendChat("Recipe list generated; see minetweaker.log in your logs dir");
"Recipe list generated; see minetweaker.log in your minecraft dir");
} }
} else if (arguments[0].equals("hand") && player != null) { } else if (arguments[0].equals("hand") && player != null) {
IItemStack item = player.getCurrentItem(); IItemStack item = player.getCurrentItem();
@@ -266,7 +265,7 @@ public class MineTweakerImplementationAPI {
if (player != null) { if (player != null) {
player.sendChat( player.sendChat(
"Furnace Recipe list generated; see minetweaker.log in your minecraft dir"); "Furnace Recipe list generated; see minetweaker.log in your logs dir");
} }
} else { } else {
if (player != null) { if (player != null) {
@@ -353,7 +352,7 @@ public class MineTweakerImplementationAPI {
} }
} }
} }
player.sendChat("List generated; see minetweaker.log in your minecraft dir"); player.sendChat("List generated; see minetweaker.log in your logs dir");
} }
})); }));
@@ -446,7 +445,7 @@ public class MineTweakerImplementationAPI {
} }
} }
player.sendChat("List generated; see minetweaker.log in your minecraft dir"); player.sendChat("List generated; see minetweaker.log in your logs dir");
} else { } else {
MineTweakerAPI.logCommand("Loot for type: " + arguments[0]); MineTweakerAPI.logCommand("Loot for type: " + arguments[0]);
@@ -455,7 +454,7 @@ public class MineTweakerImplementationAPI {
MineTweakerAPI.logCommand(" " + entry.toString()); MineTweakerAPI.logCommand(" " + entry.toString());
} }
player.sendChat("List generated; see minetweaker.log in your minecraft dir"); player.sendChat("List generated; see minetweaker.log in your logs dir");
} }
} }
})); }));
@@ -514,7 +513,7 @@ public class MineTweakerImplementationAPI {
MineTweakerAPI.logCommand(" " + biome.getName()); MineTweakerAPI.logCommand(" " + biome.getName());
} }
player.sendChat("Biome list generated; see minetweaker.log in your minecraft dir"); player.sendChat("Biome list generated; see minetweaker.log in your logs dir");
} }
})); }));
@@ -98,7 +98,8 @@ public class MineTweakerMod {
new MCFormatter(), new MCFormatter(),
new MCVanilla()); new MCVanilla());
MineTweakerImplementationAPI.logger.addLogger(new FileLogger(new File("minetweaker.log"))); MineTweakerImplementationAPI.logger
.addLogger(new FileLogger(new File("logs" + File.pathSeparator + "minetweaker.log")));
MineTweakerImplementationAPI.platform = MCPlatformFunctions.INSTANCE; MineTweakerImplementationAPI.platform = MCPlatformFunctions.INSTANCE;
File globalDir = new File("scripts"); File globalDir = new File("scripts");