Merge pull request 'Kotlin Rewrite' (#1) from kotlin-rewrite into main
Reviewed-on: https://git.ouroboros.group/limepotato/stellarworks/pulls/1
This commit is contained in:
commit
19f2ee2aab
20 changed files with 372 additions and 214 deletions
|
@ -7,12 +7,15 @@ insert_final_newline = true
|
|||
tab_width = 4
|
||||
trim_trailing_whitespace = true
|
||||
|
||||
[*.gradle]
|
||||
[*.gradle.kts]
|
||||
indent_style = tab
|
||||
|
||||
[*.java]
|
||||
indent_style = tab
|
||||
|
||||
[*.kt]
|
||||
indent_size = tab
|
||||
|
||||
[*.json]
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
|
|
30
.gitattributes
vendored
Normal file
30
.gitattributes
vendored
Normal file
|
@ -0,0 +1,30 @@
|
|||
*.java text eol=lf diff=java
|
||||
*.gradle text eol=lf diff=java
|
||||
*.kt text eol=lf diff=kotlin
|
||||
*.kts text eol=lf diff=kotlin
|
||||
gradlew text eol=lf
|
||||
*.bat text eol=crlf
|
||||
|
||||
*.md text eol=lf diff=markdown
|
||||
|
||||
.editorconfig text eol=lf
|
||||
|
||||
*.json text eol=lf
|
||||
*.json5 text eol=lf
|
||||
*.properties text eol=lf
|
||||
*.toml text eol=lf
|
||||
*.xml text eol=lf diff=html
|
||||
|
||||
# Modding specific
|
||||
*.accesswidener text eol=lf
|
||||
|
||||
# These files are binary and should be left untouched
|
||||
# (binary is a macro for -text -diff)
|
||||
*.class binary
|
||||
*.dll binary
|
||||
*.ear binary
|
||||
*.jar binary
|
||||
*.jks binary
|
||||
*.png binary
|
||||
*.so binary
|
||||
*.war binary
|
12
.gitignore
vendored
12
.gitignore
vendored
|
@ -5,8 +5,8 @@ out/
|
|||
classes/
|
||||
|
||||
# Quilt Loom
|
||||
remappedSrc/
|
||||
run/
|
||||
!saves
|
||||
|
||||
# Eclipse
|
||||
*.launch
|
||||
|
@ -17,6 +17,9 @@ run/
|
|||
*.ipr
|
||||
*.iws
|
||||
|
||||
# Fleet
|
||||
.fleet/
|
||||
|
||||
# Visual Studio Code
|
||||
.settings/
|
||||
.vscode/
|
||||
|
@ -29,9 +32,6 @@ workspace/
|
|||
|
||||
# macOS
|
||||
*.DS_Store
|
||||
obsidian/Stellarworks/.obsidian/
|
||||
/obsidian/Stellarworks/ASSETS/WIP TEXTURES/
|
||||
|
||||
#obsidian stuff
|
||||
#minecraft
|
||||
obsidian/Stellarworks/ASSETS/VanillaDefault+1.20
|
||||
# Other
|
||||
obsidian/
|
||||
|
|
|
@ -1,10 +0,0 @@
|
|||
{
|
||||
"folders": [
|
||||
{
|
||||
"path": "."
|
||||
}
|
||||
],
|
||||
"settings": {
|
||||
"java.configuration.updateBuildConfiguration": "automatic"
|
||||
}
|
||||
}
|
141
build.gradle.kts
Normal file
141
build.gradle.kts
Normal file
|
@ -0,0 +1,141 @@
|
|||
// This is to suppress false warnings generated by a bug in IntelliJ
|
||||
@file:Suppress("DSL_SCOPE_VIOLATION", "MISSING_DEPENDENCY_CLASS", "FUNCTION_CALL_EXPECTED", "PropertyName")
|
||||
|
||||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||||
|
||||
plugins {
|
||||
java
|
||||
`maven-publish`
|
||||
|
||||
alias(libs.plugins.kotlin)
|
||||
alias(libs.plugins.quilt.loom)
|
||||
}
|
||||
|
||||
val archives_base_name: String by project
|
||||
base.archivesName.set(archives_base_name)
|
||||
|
||||
val javaVersion = 17
|
||||
|
||||
repositories {
|
||||
// Add repositories to retrieve artifacts from in here.
|
||||
// You should only use this when depending on other mods because
|
||||
// Loom adds the essential maven repositories to download Minecraft and libraries from automatically.
|
||||
// See https://docs.gradle.org/current/userguide/declaring_repositories.html
|
||||
// for more information about repositories.
|
||||
}
|
||||
|
||||
// All the dependencies are declared at gradle/libs.version.toml and referenced with "libs.<id>"
|
||||
// See https://docs.gradle.org/current/userguide/platforms.html for information on how version catalogs work.
|
||||
dependencies {
|
||||
minecraft(libs.minecraft)
|
||||
mappings(
|
||||
variantOf(libs.quilt.mappings) {
|
||||
classifier("intermediary-v2")
|
||||
}
|
||||
)
|
||||
|
||||
// Replace the above line with the block below if you want to use Mojang mappings as your primary mappings, falling back on QM for parameters and Javadocs
|
||||
/*
|
||||
mappings(
|
||||
loom.layered {
|
||||
mappings(variantOf(libs.quilt.mappings) { classifier("intermediary-v2") })
|
||||
officialMojangMappings()
|
||||
}
|
||||
)
|
||||
*/
|
||||
|
||||
modImplementation(libs.quilt.loader)
|
||||
|
||||
|
||||
// QSL is not a complete API; You will need Quilted Fabric API to fill in the gaps.
|
||||
// Quilted Fabric API will automatically pull in the correct QSL version.
|
||||
modImplementation(libs.qfapi)
|
||||
// modImplementation(libs.bundles.qfapi) // If you wish to use the deprecated Fabric API modules
|
||||
|
||||
modImplementation(libs.qkl)
|
||||
}
|
||||
|
||||
tasks {
|
||||
withType<KotlinCompile> {
|
||||
kotlinOptions {
|
||||
jvmTarget = javaVersion.toString()
|
||||
// languageVersion: A.B of the kotlin plugin version A.B.C
|
||||
languageVersion = libs.plugins.kotlin.get().version.requiredVersion.substringBeforeLast('.')
|
||||
}
|
||||
}
|
||||
|
||||
withType<JavaCompile>.configureEach {
|
||||
options.encoding = "UTF-8"
|
||||
options.isDeprecation = true
|
||||
options.release.set(javaVersion)
|
||||
}
|
||||
|
||||
processResources {
|
||||
filteringCharset = "UTF-8"
|
||||
inputs.property("version", project.version)
|
||||
|
||||
filesMatching("quilt.mod.json") {
|
||||
expand(
|
||||
mapOf(
|
||||
"version" to project.version
|
||||
)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
javadoc {
|
||||
options.encoding = "UTF-8"
|
||||
}
|
||||
|
||||
// Run `./gradlew wrapper --gradle-version <newVersion>` or `gradle wrapper --gradle-version <newVersion>` to update gradle scripts
|
||||
// BIN distribution should be sufficient for the majority of mods
|
||||
wrapper {
|
||||
distributionType = Wrapper.DistributionType.BIN
|
||||
}
|
||||
|
||||
jar {
|
||||
from("LICENSE") {
|
||||
rename { "LICENSE_${archives_base_name}" }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
val targetJavaVersion = JavaVersion.toVersion(javaVersion)
|
||||
if (JavaVersion.current() < targetJavaVersion) {
|
||||
kotlin.jvmToolchain(javaVersion)
|
||||
|
||||
java.toolchain {
|
||||
languageVersion.set(JavaLanguageVersion.of(javaVersion))
|
||||
}
|
||||
}
|
||||
|
||||
java {
|
||||
// Loom will automatically attach sourcesJar to a RemapSourcesJar task and to the "build" task if it is present.
|
||||
// If you remove this line, sources will not be generated.
|
||||
withSourcesJar()
|
||||
|
||||
// If this mod is going to be a library, then it should also generate Javadocs in order to aid with development.
|
||||
// Uncomment this line to generate them.
|
||||
// withJavadocJar()
|
||||
|
||||
// Still required by IDEs such as Eclipse and VSC
|
||||
sourceCompatibility = targetJavaVersion
|
||||
targetCompatibility = targetJavaVersion
|
||||
}
|
||||
|
||||
// Configure the maven publication
|
||||
publishing {
|
||||
publications {
|
||||
register<MavenPublication>("Maven") {
|
||||
from(components.getByName("java"))
|
||||
}
|
||||
}
|
||||
|
||||
// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
|
||||
repositories {
|
||||
// Add repositories to publish to here.
|
||||
// Notice: This block does NOT have the same function as the block in the top level.
|
||||
// The repositories here will be used for publishing your artifact, not for
|
||||
// retrieving dependencies.
|
||||
}
|
||||
}
|
|
@ -1,23 +1,8 @@
|
|||
# Gradle Properties
|
||||
org.gradle.jvmargs = -Xmx1G
|
||||
org.gradle.parallel = true
|
||||
|
||||
modid=sine-termino
|
||||
|
||||
# Mod Properties
|
||||
version = 0.0.10
|
||||
maven_group = xyz.limepot
|
||||
archives_base_name = stellarworks
|
||||
projchangelog = Changelog!
|
||||
|
||||
|
||||
# Modrinth Metadata
|
||||
modrinth_slug= stellarworks
|
||||
modrinth_id= 3WyZOm8r
|
||||
modrinth_game_versions= 1.20-1.20.1
|
||||
modrinth_mod_loaders= quilt
|
||||
|
||||
#ignore
|
||||
|
||||
# Dependencies are managed at gradle/libs.versions.toml
|
||||
org.gradle.jvmargs=-Xmx1G -XX:MaxMetaspaceSize=1G
|
||||
org.gradle.parallel=true
|
||||
kotlin.incremental=true
|
||||
kotlin.code.style=official
|
||||
|
||||
group=com.example
|
||||
version=1.0.0
|
||||
archives_base_name=quilt-kotlin-template-mod
|
||||
|
|
|
@ -1,24 +1,26 @@
|
|||
[versions]
|
||||
# The latest versions are available at https://lambdaurora.dev/tools/import_quilt.html
|
||||
minecraft = "1.20.1"
|
||||
quilt_mappings = "1.20.1+build.1"
|
||||
quilt_loader = "0.19.1"
|
||||
kotlin = "1.8.22"
|
||||
|
||||
quilted_fabric_api = "7.0.3+0.83.1-1.20.1"
|
||||
minecraft = "1.20.1"
|
||||
qfapi = "7.5.0+0.91.0-1.20.1"
|
||||
qkl = "2.1.0+kt.1.8.22+flk.1.9.4"
|
||||
loader = "0.23.1"
|
||||
mappings = "1.20.1+build.23"
|
||||
loom = "1.2.3"
|
||||
|
||||
[libraries]
|
||||
minecraft = { module = "com.mojang:minecraft", version.ref = "minecraft" }
|
||||
quilt_mappings = { module = "org.quiltmc:quilt-mappings", version.ref = "quilt_mappings" }
|
||||
quilt_loader = { module = "org.quiltmc:quilt-loader", version.ref = "quilt_loader" }
|
||||
|
||||
quilted_fabric_api = { module = "org.quiltmc.quilted-fabric-api:quilted-fabric-api", version.ref = "quilted_fabric_api" }
|
||||
quilted_fabric_api_deprecated = { module = "org.quiltmc.quilted-fabric-api:quilted-fabric-api-deprecated", version.ref = "quilted_fabric_api" }
|
||||
qfapi = { module = "org.quiltmc.quilted-fabric-api:quilted-fabric-api", version.ref = "qfapi" }
|
||||
qfapi_deprecated = { module = "org.quiltmc.quilted-fabric-api:quilted-fabric-api-deprecated", version.ref = "qfapi" }
|
||||
|
||||
|
||||
qkl = { module = "org.quiltmc.quilt-kotlin-libraries:quilt-kotlin-libraries", version.ref = "qkl" }
|
||||
quilt_loader = { module = "org.quiltmc:quilt-loader", version.ref = "loader" }
|
||||
quilt_mappings = { module = "org.quiltmc:quilt-mappings", version.ref = "mappings" }
|
||||
|
||||
# If you have multiple similar dependencies, you can declare a dependency bundle and reference it on the build script with "libs.bundles.example".
|
||||
[bundles]
|
||||
quilted_fabric_api = ["quilted_fabric_api", "quilted_fabric_api_deprecated"]
|
||||
quilted_fabric_api = ["qfapi", "qfapi_deprecated"]
|
||||
|
||||
[plugins]
|
||||
quilt_loom = { id = "org.quiltmc.loom", version = "1.2.+" }
|
||||
kotlin = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
|
||||
quilt_loom = { id = "org.quiltmc.loom", version.ref = "loom" }
|
||||
|
|
19
gradlew
vendored
19
gradlew
vendored
|
@ -55,7 +55,7 @@
|
|||
# Darwin, MinGW, and NonStop.
|
||||
#
|
||||
# (3) This script is generated from the Groovy template
|
||||
# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
|
||||
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
|
||||
# within the Gradle project.
|
||||
#
|
||||
# You can find Gradle at https://github.com/gradle/gradle/.
|
||||
|
@ -80,13 +80,10 @@ do
|
|||
esac
|
||||
done
|
||||
|
||||
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
|
||||
|
||||
APP_NAME="Gradle"
|
||||
# This is normally unused
|
||||
# shellcheck disable=SC2034
|
||||
APP_BASE_NAME=${0##*/}
|
||||
|
||||
# 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"'
|
||||
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
|
||||
|
||||
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
||||
MAX_FD=maximum
|
||||
|
@ -143,12 +140,16 @@ fi
|
|||
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
|
||||
case $MAX_FD in #(
|
||||
max*)
|
||||
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
|
||||
# shellcheck disable=SC3045
|
||||
MAX_FD=$( ulimit -H -n ) ||
|
||||
warn "Could not query maximum file descriptor limit"
|
||||
esac
|
||||
case $MAX_FD in #(
|
||||
'' | soft) :;; #(
|
||||
*)
|
||||
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
|
||||
# shellcheck disable=SC3045
|
||||
ulimit -n "$MAX_FD" ||
|
||||
warn "Could not set maximum file descriptor limit to $MAX_FD"
|
||||
esac
|
||||
|
@ -193,6 +194,10 @@ if "$cygwin" || "$msys" ; then
|
|||
done
|
||||
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;
|
||||
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
|
||||
# shell script including quotes and variable substitutions, so put them in
|
||||
|
|
183
gradlew.bat
vendored
183
gradlew.bat
vendored
|
@ -1,91 +1,92 @@
|
|||
@rem
|
||||
@rem Copyright 2015 the original author or authors.
|
||||
@rem
|
||||
@rem Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@rem you may not use this file except in compliance with the License.
|
||||
@rem You may obtain a copy of the License at
|
||||
@rem
|
||||
@rem https://www.apache.org/licenses/LICENSE-2.0
|
||||
@rem
|
||||
@rem Unless required by applicable law or agreed to in writing, software
|
||||
@rem distributed under the License is distributed on an "AS IS" BASIS,
|
||||
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
@rem See the License for the specific language governing permissions and
|
||||
@rem limitations under the License.
|
||||
@rem
|
||||
|
||||
@if "%DEBUG%"=="" @echo off
|
||||
@rem ##########################################################################
|
||||
@rem
|
||||
@rem Gradle startup script for Windows
|
||||
@rem
|
||||
@rem ##########################################################################
|
||||
|
||||
@rem Set local scope for the variables with windows NT shell
|
||||
if "%OS%"=="Windows_NT" setlocal
|
||||
|
||||
set DIRNAME=%~dp0
|
||||
if "%DIRNAME%"=="" set DIRNAME=.
|
||||
set APP_BASE_NAME=%~n0
|
||||
set APP_HOME=%DIRNAME%
|
||||
|
||||
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
|
||||
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
|
||||
|
||||
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
|
||||
|
||||
@rem Find java.exe
|
||||
if defined JAVA_HOME goto findJavaFromJavaHome
|
||||
|
||||
set JAVA_EXE=java.exe
|
||||
%JAVA_EXE% -version >NUL 2>&1
|
||||
if %ERRORLEVEL% equ 0 goto execute
|
||||
|
||||
echo.
|
||||
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
||||
echo.
|
||||
echo Please set the JAVA_HOME variable in your environment to match the
|
||||
echo location of your Java installation.
|
||||
|
||||
goto fail
|
||||
|
||||
:findJavaFromJavaHome
|
||||
set JAVA_HOME=%JAVA_HOME:"=%
|
||||
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
|
||||
|
||||
if exist "%JAVA_EXE%" goto execute
|
||||
|
||||
echo.
|
||||
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
|
||||
echo.
|
||||
echo Please set the JAVA_HOME variable in your environment to match the
|
||||
echo location of your Java installation.
|
||||
|
||||
goto fail
|
||||
|
||||
:execute
|
||||
@rem Setup the command line
|
||||
|
||||
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
|
||||
|
||||
|
||||
@rem Execute Gradle
|
||||
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
|
||||
|
||||
:end
|
||||
@rem End local scope for the variables with windows NT shell
|
||||
if %ERRORLEVEL% equ 0 goto mainEnd
|
||||
|
||||
:fail
|
||||
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
|
||||
rem the _cmd.exe /c_ return code!
|
||||
set EXIT_CODE=%ERRORLEVEL%
|
||||
if %EXIT_CODE% equ 0 set EXIT_CODE=1
|
||||
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
|
||||
exit /b %EXIT_CODE%
|
||||
|
||||
:mainEnd
|
||||
if "%OS%"=="Windows_NT" endlocal
|
||||
|
||||
:omega
|
||||
@rem
|
||||
@rem Copyright 2015 the original author or authors.
|
||||
@rem
|
||||
@rem Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@rem you may not use this file except in compliance with the License.
|
||||
@rem You may obtain a copy of the License at
|
||||
@rem
|
||||
@rem https://www.apache.org/licenses/LICENSE-2.0
|
||||
@rem
|
||||
@rem Unless required by applicable law or agreed to in writing, software
|
||||
@rem distributed under the License is distributed on an "AS IS" BASIS,
|
||||
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
@rem See the License for the specific language governing permissions and
|
||||
@rem limitations under the License.
|
||||
@rem
|
||||
|
||||
@if "%DEBUG%"=="" @echo off
|
||||
@rem ##########################################################################
|
||||
@rem
|
||||
@rem Gradle startup script for Windows
|
||||
@rem
|
||||
@rem ##########################################################################
|
||||
|
||||
@rem Set local scope for the variables with windows NT shell
|
||||
if "%OS%"=="Windows_NT" setlocal
|
||||
|
||||
set DIRNAME=%~dp0
|
||||
if "%DIRNAME%"=="" set DIRNAME=.
|
||||
@rem This is normally unused
|
||||
set APP_BASE_NAME=%~n0
|
||||
set APP_HOME=%DIRNAME%
|
||||
|
||||
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
|
||||
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
|
||||
|
||||
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
|
||||
|
||||
@rem Find java.exe
|
||||
if defined JAVA_HOME goto findJavaFromJavaHome
|
||||
|
||||
set JAVA_EXE=java.exe
|
||||
%JAVA_EXE% -version >NUL 2>&1
|
||||
if %ERRORLEVEL% equ 0 goto execute
|
||||
|
||||
echo.
|
||||
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
||||
echo.
|
||||
echo Please set the JAVA_HOME variable in your environment to match the
|
||||
echo location of your Java installation.
|
||||
|
||||
goto fail
|
||||
|
||||
:findJavaFromJavaHome
|
||||
set JAVA_HOME=%JAVA_HOME:"=%
|
||||
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
|
||||
|
||||
if exist "%JAVA_EXE%" goto execute
|
||||
|
||||
echo.
|
||||
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
|
||||
echo.
|
||||
echo Please set the JAVA_HOME variable in your environment to match the
|
||||
echo location of your Java installation.
|
||||
|
||||
goto fail
|
||||
|
||||
:execute
|
||||
@rem Setup the command line
|
||||
|
||||
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
|
||||
|
||||
|
||||
@rem Execute Gradle
|
||||
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
|
||||
|
||||
:end
|
||||
@rem End local scope for the variables with windows NT shell
|
||||
if %ERRORLEVEL% equ 0 goto mainEnd
|
||||
|
||||
:fail
|
||||
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
|
||||
rem the _cmd.exe /c_ return code!
|
||||
set EXIT_CODE=%ERRORLEVEL%
|
||||
if %EXIT_CODE% equ 0 set EXIT_CODE=1
|
||||
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
|
||||
exit /b %EXIT_CODE%
|
||||
|
||||
:mainEnd
|
||||
if "%OS%"=="Windows_NT" endlocal
|
||||
|
||||
:omega
|
||||
|
|
|
@ -1,14 +0,0 @@
|
|||
pluginManagement {
|
||||
repositories {
|
||||
maven {
|
||||
name = 'Quilt'
|
||||
url = 'https://maven.quiltmc.org/repository/release'
|
||||
}
|
||||
// Currently needed for Intermediary and other temporary dependencies
|
||||
maven {
|
||||
name = 'Fabric'
|
||||
url = 'https://maven.fabricmc.net/'
|
||||
}
|
||||
gradlePluginPortal()
|
||||
}
|
||||
}
|
18
settings.gradle.kts
Normal file
18
settings.gradle.kts
Normal file
|
@ -0,0 +1,18 @@
|
|||
pluginManagement {
|
||||
repositories {
|
||||
maven {
|
||||
name = "Quilt"
|
||||
url = uri("https://maven.quiltmc.org/repository/release")
|
||||
}
|
||||
// Currently needed for Intermediary and other temporary dependencies
|
||||
maven {
|
||||
name = "Fabric"
|
||||
url = uri("https://maven.fabricmc.net/")
|
||||
}
|
||||
|
||||
gradlePluginPortal()
|
||||
mavenCentral()
|
||||
}
|
||||
}
|
||||
|
||||
rootProject.name = "stellarworks"
|
|
@ -1,39 +0,0 @@
|
|||
package xyz.limepot.stellarworks;
|
||||
|
||||
import org.quiltmc.loader.api.ModContainer;
|
||||
import org.quiltmc.qsl.base.api.entrypoint.ModInitializer;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import xyz.limepot.stellarworks.block.ModBlocks;
|
||||
import xyz.limepot.stellarworks.block.entity.ModBlockEntities;
|
||||
import xyz.limepot.stellarworks.item.ModItemGroup;
|
||||
import xyz.limepot.stellarworks.item.ModItems;
|
||||
import xyz.limepot.stellarworks.world.ModFeatures;
|
||||
|
||||
@SuppressWarnings("ALL")
|
||||
public class Stellarworks implements ModInitializer {
|
||||
|
||||
|
||||
public static final String MOD_ID = "stellarworks";
|
||||
|
||||
// This logger is used to write text to the console and the log file.
|
||||
// It is considered best practice to use your mod name as the logger's name.
|
||||
// That way, it's clear which mod wrote info, warnings, and errors.
|
||||
public static final Logger LOGGER = LoggerFactory.getLogger("Stellarworks");
|
||||
|
||||
@Override
|
||||
public void onInitialize(ModContainer mod) {
|
||||
//ModConfiguredFeatures MUST ALWAYS be called first
|
||||
ModFeatures.registerFeatures();
|
||||
//BIOME MODS - PLEASE LEAVE DIRECTLY AFTER FEATURE REGISTRY & IN THE MAIN CLASS (FOR NOW IDK HOW TO PUT IT IN IT'S OWN)
|
||||
///BiomeModifications.addFeature(BiomeSelectors.foundInOverworld(), GenerationStep.Feature.UNDERGROUND_ORES, ALUMINIUM_ORE_PLACED_KEY);
|
||||
///BiomeModifications.addFeature(BiomeSelectors.foundInOverworld(), GenerationStep.Feature.UNDERGROUND_ORES, TIN_ORE_PLACED_KEY);
|
||||
////Basic Registries
|
||||
ModItems.registerModItems();
|
||||
ModBlocks.registerModBlocks();
|
||||
ModBlockEntities.registerBlockEntities();
|
||||
ModItemGroup.registerItemGroups();
|
||||
LOGGER.debug(MOD_ID + ": Registered!");
|
||||
LOGGER.warn("Sine Termino has initialized, See you in the stars!");
|
||||
}
|
||||
}
|
|
@ -59,7 +59,7 @@ public class ModBlocks {
|
|||
}
|
||||
|
||||
public static void registerModBlocks() {
|
||||
Stellarworks.LOGGER.debug("Registering Blocks...");
|
||||
Stellarworks.INSTANCE.getLOGGER().debug("Registering Blocks...");
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -46,6 +46,6 @@ public class ModItemGroup {
|
|||
}).build());
|
||||
|
||||
public static void registerItemGroups() {
|
||||
Stellarworks.LOGGER.debug("Registering Creative Tab Entries...");
|
||||
Stellarworks.INSTANCE.getLOGGER().debug("Registering Creative Tab Entries...");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -66,7 +66,7 @@ public class ModItems {
|
|||
}
|
||||
|
||||
public static void registerModItems() {
|
||||
Stellarworks.LOGGER.debug("Registering Items....");
|
||||
Stellarworks.INSTANCE.getLOGGER().debug("Registering Items....");
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -12,6 +12,6 @@ import xyz.limepot.stellarworks.Stellarworks;
|
|||
public class TitleScreenMixin {
|
||||
@Inject(method = "init", at = @At("TAIL"))
|
||||
public void onInit(CallbackInfo ci) {
|
||||
Stellarworks.LOGGER.debug("Minced in.");
|
||||
Stellarworks.INSTANCE.getLOGGER().debug("Minced in.");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@ public class ModFeatures {
|
|||
public static final RegistryKey<PlacedFeature> TIN_ORE_PLACED_KEY = RegistryKey.of(RegistryKeys.PLACED_FEATURE, new Identifier("stellarworks","tin_ore"));
|
||||
|
||||
public static void registerFeatures() {
|
||||
Stellarworks.LOGGER.debug("Registering Features...");
|
||||
Stellarworks.INSTANCE.getLOGGER().debug("Registering Features...");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
29
src/main/kotlin/xyz/limepot/stellarworks/Stellarworks.kt
Normal file
29
src/main/kotlin/xyz/limepot/stellarworks/Stellarworks.kt
Normal file
|
@ -0,0 +1,29 @@
|
|||
package xyz.limepot.stellarworks
|
||||
|
||||
import org.quiltmc.loader.api.ModContainer
|
||||
import org.quiltmc.qsl.base.api.entrypoint.ModInitializer
|
||||
import org.slf4j.Logger
|
||||
import org.slf4j.LoggerFactory
|
||||
import xyz.limepot.stellarworks.block.ModBlocks
|
||||
import xyz.limepot.stellarworks.block.entity.ModBlockEntities
|
||||
import xyz.limepot.stellarworks.item.ModItemGroup
|
||||
import xyz.limepot.stellarworks.item.ModItems
|
||||
import xyz.limepot.stellarworks.world.ModFeatures
|
||||
|
||||
object Stellarworks : ModInitializer {
|
||||
const val MOD_ID: String = "stellarworks"
|
||||
val LOGGER: Logger = LoggerFactory.getLogger("Stellarworks")
|
||||
|
||||
override fun onInitialize(mod: ModContainer) {
|
||||
//ModConfiguredFeatures MUST ALWAYS be called first
|
||||
ModFeatures.registerFeatures()
|
||||
//BIOME MODS - PLEASE LEAVE DIRECTLY AFTER FEATURE REGISTRY & IN THE MAIN CLASS (FOR NOW IDK HOW TO PUT IT IN IT'S OWN)
|
||||
///BiomeModifications.addFeature(BiomeSelectors.foundInOverworld(), GenerationStep.Feature.UNDERGROUND_ORES, ALUMINIUM_ORE_PLACED_KEY);
|
||||
///BiomeModifications.addFeature(BiomeSelectors.foundInOverworld(), GenerationStep.Feature.UNDERGROUND_ORES, TIN_ORE_PLACED_KEY);
|
||||
////Basic Registries
|
||||
ModItems.registerModItems()
|
||||
ModBlocks.registerModBlocks()
|
||||
ModBlockEntities.registerBlockEntities()
|
||||
ModItemGroup.registerItemGroups()
|
||||
}
|
||||
}
|
|
@ -17,25 +17,32 @@
|
|||
},
|
||||
"icon": "assets/stellarworks/icon.png"
|
||||
},
|
||||
|
||||
"intermediate_mappings": "net.fabricmc:intermediary",
|
||||
"entrypoints": {
|
||||
"init": "xyz.limepot.stellarworks.Stellarworks",
|
||||
"clientmod": "xyz.limepot.stellarworks.StellarworksClient"
|
||||
"init": {
|
||||
"adapter": "kotlin",
|
||||
"value": "xyz.limepot.stellarworks.Stellarworks"
|
||||
}
|
||||
},
|
||||
"depends": [
|
||||
{
|
||||
"id": "quilt_loader",
|
||||
"versions": ">=0.19.1"
|
||||
"versions": ">=0.23.1"
|
||||
},
|
||||
{
|
||||
"id": "quilted_fabric_api",
|
||||
"versions": ">=7.0.3"
|
||||
"versions": ">=7.5.0"
|
||||
},
|
||||
{
|
||||
"id": "qkl",
|
||||
"versions": ">=2.1.0"
|
||||
},
|
||||
{
|
||||
"id": "minecraft",
|
||||
"versions": ">=1.20-"
|
||||
"versions": ">=1.20.1-"
|
||||
}
|
||||
]
|
||||
},
|
||||
"mixin": "stellarworks.mixins.json"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue