-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
424 additions
and
163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# IDE | ||
.idea | ||
eclipse | ||
.classpath | ||
.location | ||
.project | ||
0.tree | ||
.settings | ||
|
||
# Run files | ||
run/* | ||
|
||
# Build files | ||
build/* | ||
out/* | ||
.gradle/* | ||
*.launch | ||
*.xcf | ||
|
||
# Compiled class file | ||
*.class | ||
|
||
# Log file | ||
*.log | ||
*.log.gz | ||
|
||
# BlueJ files | ||
*.ctxt | ||
|
||
# Mobile Tools for Java (J2ME) | ||
.mtj.tmp/ | ||
|
||
# Package Files # | ||
# *.jar | ||
*.war | ||
*.nar | ||
*.ear | ||
*.zip | ||
*.tar.gz | ||
*.rar | ||
|
||
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml | ||
hs_err_pid* | ||
/bin/ | ||
/.gradle/ | ||
/build/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
plugins { | ||
id 'fabric-loom' version '1.6-SNAPSHOT' | ||
id 'maven-publish' | ||
} | ||
|
||
version = project.mod_version | ||
group = project.mod_group | ||
mod_id = project.mod_id | ||
|
||
base { | ||
archivesName = project.archives_base_name | ||
} | ||
|
||
dependencies { | ||
// To change the versions see the gradle.properties file | ||
minecraft "com.mojang:minecraft:${project.minecraft_version}" | ||
mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2" | ||
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}" | ||
} | ||
|
||
processResources { | ||
|
||
def properties = [ | ||
"version": project.version, | ||
"mod_id": project.mod_id, | ||
"mod_name": project.mod_name, | ||
"mod_author": project.mod_author, | ||
"fabric_loader_version": project.loader_version, | ||
"minecraft_version": project.minecraft_version, | ||
"java_version": project.java_version | ||
] | ||
|
||
inputs.properties properties | ||
|
||
filesMatching("fabric.mod.json") { | ||
expand properties | ||
} | ||
} | ||
|
||
jar { | ||
from("LICENSE") { | ||
rename { "${it}_${project.base.archivesName.get()}"} | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
fabric/src/main/java/net/smyler/terramap/TerramapFabricMod.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package net.smyler.terramap; | ||
|
||
import net.fabricmc.api.ModInitializer; | ||
import org.apache.logging.log4j.Logger; | ||
|
||
import static org.apache.logging.log4j.LogManager.getLogger; | ||
|
||
public class TerramapFabricMod implements ModInitializer { | ||
|
||
public static final Logger LOGGER = getLogger("terramap"); | ||
@Override | ||
public void onInitialize() { | ||
LOGGER.info("Initializing Terramap"); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"schemaVersion": 1, | ||
"id": "${mod_id}", | ||
"version": "${version}", | ||
"name": "${mod_name}", | ||
"description": "Terramap", | ||
"authors": [ | ||
"${mod_author}" | ||
], | ||
"contact": { | ||
"homepage": "https://fabricmc.net/", | ||
"sources": "https://github.com/FabricMC/fabric-example-mod" | ||
}, | ||
"license": "MIT License", | ||
"icon": "${mod_id}.png", | ||
"environment": "*", | ||
"entrypoints": { | ||
"main": [ | ||
"net.smyler.terramap.TerramapFabricMod" | ||
] | ||
}, | ||
"mixins": [ | ||
"${mod_id}.fabric.mixins.json" | ||
], | ||
"depends": { | ||
"fabricloader": ">=${fabric_loader_version}", | ||
"minecraft": "${minecraft_version}", | ||
"java": ">=${java_version}" | ||
}, | ||
"suggests": { | ||
"another-mod": "*" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"required": true, | ||
"minVersion": "0.8", | ||
"package": "net.smyler.terramap.mixin", | ||
"refmap": "${mod_id}.refmap.json", | ||
"compatibilityLevel": "JAVA_21", | ||
"mixins": [], | ||
"client": [ | ||
], | ||
"server": [], | ||
"injectors": { | ||
"defaultRequire": 1 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
buildscript { | ||
pluginManagement { | ||
repositories { | ||
maven { | ||
url = "https://maven.minecraftforge.net" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
#Sun Nov 07 09:55:19 CET 2021 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip | ||
networkTimeout=10000 | ||
validateDistributionUrl=true | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip |
Oops, something went wrong.