Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
CreatureChat
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
Public
CreatureChat
Commits
83fc4031
Commit
83fc4031
authored
Jul 05, 2023
by
modmuss50
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update to Loom 1.3 and Gradle 8.2
parent
921b564d
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
44 additions
and
36 deletions
+44
-36
LICENSE
LICENSE
+2
-1
build.gradle
build.gradle
+8
-8
gradle.properties
gradle.properties
+3
-3
gradle-wrapper.jar
gradle/wrapper/gradle-wrapper.jar
+0
-0
gradle-wrapper.properties
gradle/wrapper/gradle-wrapper.properties
+2
-1
gradlew
gradlew
+4
-1
settings.gradle
settings.gradle
+9
-8
ExampleModClient.java
src/client/java/com/example/ExampleModClient.java
+5
-4
ExampleMod.java
src/main/java/com/example/ExampleMod.java
+11
-10
No files found.
LICENSE
View file @
83fc4031
...
@@ -118,4 +118,4 @@ express Statement of Purpose.
...
@@ -118,4 +118,4 @@ express Statement of Purpose.
Work.
Work.
d. Affirmer understands and acknowledges that Creative Commons is not a
d. Affirmer understands and acknowledges that Creative Commons is not a
party to this document and has no duty or obligation with respect to
party to this document and has no duty or obligation with respect to
this CC0 or use of the Work.
this CC0 or use of the Work.
\ No newline at end of file
build.gradle
View file @
83fc4031
plugins
{
plugins
{
id
'fabric-loom'
version
'1.
2
-SNAPSHOT'
id
'fabric-loom'
version
'1.
3
-SNAPSHOT'
id
'maven-publish'
id
'maven-publish'
}
}
...
@@ -21,12 +21,12 @@ repositories {
...
@@ -21,12 +21,12 @@ repositories {
loom
{
loom
{
splitEnvironmentSourceSets
()
splitEnvironmentSourceSets
()
mods
{
mods
{
"modid"
{
"modid"
{
sourceSet
sourceSets
.
main
sourceSet
sourceSets
.
main
sourceSet
sourceSets
.
client
sourceSet
sourceSets
.
client
}
}
}
}
}
}
...
@@ -69,7 +69,7 @@ java {
...
@@ -69,7 +69,7 @@ java {
jar
{
jar
{
from
(
"LICENSE"
)
{
from
(
"LICENSE"
)
{
rename
{
"${it}_${project.
archivesBaseName
}"
}
rename
{
"${it}_${project.
base.archivesName.get()
}"
}
}
}
}
}
...
...
gradle.properties
View file @
83fc4031
...
@@ -5,7 +5,7 @@ org.gradle.parallel=true
...
@@ -5,7 +5,7 @@ org.gradle.parallel=true
# Fabric Properties
# Fabric Properties
# check these on https://fabricmc.net/develop
# check these on https://fabricmc.net/develop
minecraft_version
=
1.20.1
minecraft_version
=
1.20.1
yarn_mappings
=
1.20.1+build.
1
yarn_mappings
=
1.20.1+build.
9
loader_version
=
0.14.21
loader_version
=
0.14.21
# Mod Properties
# Mod Properties
...
@@ -14,4 +14,4 @@ maven_group=com.example
...
@@ -14,4 +14,4 @@ maven_group=com.example
archives_base_name
=
modid
archives_base_name
=
modid
# Dependencies
# Dependencies
fabric_version
=
0.83.0+1.20.1
fabric_version
=
0.85.0+1.20.1
\ No newline at end of file
\ No newline at end of file
gradle/wrapper/gradle-wrapper.jar
View file @
83fc4031
No preview for this file type
gradle/wrapper/gradle-wrapper.properties
View file @
83fc4031
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
-bin.zip
networkTimeout
=
10000
networkTimeout
=
10000
validateDistributionUrl
=
true
zipStoreBase
=
GRADLE_USER_HOME
zipStoreBase
=
GRADLE_USER_HOME
zipStorePath
=
wrapper/dists
zipStorePath
=
wrapper/dists
gradlew
View file @
83fc4031
...
@@ -130,10 +130,13 @@ location of your Java installation."
...
@@ -130,10 +130,13 @@ location of your Java installation."
fi
fi
else
else
JAVACMD
=
java
JAVACMD
=
java
which java
>
/dev/null 2>&1
||
die
"ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
if
!
command
-v
java
>
/dev/null 2>&1
then
die
"ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
location of your Java installation."
fi
fi
fi
# Increase the maximum file descriptors if we can.
# Increase the maximum file descriptors if we can.
...
...
settings.gradle
View file @
83fc4031
pluginManagement
{
pluginManagement
{
repositories
{
repositories
{
maven
{
maven
{
name
=
'Fabric'
name
=
'Fabric'
url
=
'https://maven.fabricmc.net/'
url
=
'https://maven.fabricmc.net/'
}
}
mavenCentral
()
mavenCentral
()
gradlePluginPortal
()
gradlePluginPortal
()
}
}
}
}
\ No newline at end of file
src/client/java/com/example/ExampleModClient.java
View file @
83fc4031
...
@@ -3,8 +3,8 @@ package com.example;
...
@@ -3,8 +3,8 @@ package com.example;
import
net.fabricmc.api.ClientModInitializer
;
import
net.fabricmc.api.ClientModInitializer
;
public
class
ExampleModClient
implements
ClientModInitializer
{
public
class
ExampleModClient
implements
ClientModInitializer
{
@Override
@Override
public
void
onInitializeClient
()
{
public
void
onInitializeClient
()
{
// This entrypoint is suitable for setting up client-specific logic, such as rendering.
// This entrypoint is suitable for setting up client-specific logic, such as rendering.
}
}
}
}
\ No newline at end of file
src/main/java/com/example/ExampleMod.java
View file @
83fc4031
...
@@ -6,17 +6,17 @@ import org.slf4j.Logger;
...
@@ -6,17 +6,17 @@ import org.slf4j.Logger;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
public
class
ExampleMod
implements
ModInitializer
{
public
class
ExampleMod
implements
ModInitializer
{
// This logger is used to write text to the console and the log file.
// This logger is used to write text to the console and the log file.
// It is considered best practice to use your mod id as the logger's name.
// It is considered best practice to use your mod id as the logger's name.
// That way, it's clear which mod wrote info, warnings, and errors.
// That way, it's clear which mod wrote info, warnings, and errors.
public
static
final
Logger
LOGGER
=
LoggerFactory
.
getLogger
(
"modid"
);
public
static
final
Logger
LOGGER
=
LoggerFactory
.
getLogger
(
"modid"
);
@Override
@Override
public
void
onInitialize
()
{
public
void
onInitialize
()
{
// This code runs as soon as Minecraft is in a mod-load-ready state.
// This code runs as soon as Minecraft is in a mod-load-ready state.
// However, some things (like resources) may still be uninitialized.
// However, some things (like resources) may still be uninitialized.
// Proceed with mild caution.
// Proceed with mild caution.
LOGGER
.
info
(
"Hello Fabric world!"
);
LOGGER
.
info
(
"Hello Fabric world!"
);
}
}
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment