-
Notifications
You must be signed in to change notification settings - Fork 5
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
117 changed files
with
1,843 additions
and
1,238 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,11 @@ | ||
apply from: 'https://raw.githubusercontent.com/Fuzss/modresources/main/gradle/common.gradle' | ||
|
||
dependencies { | ||
// Puzzles Lib | ||
modApi libs.puzzleslib.common | ||
} | ||
|
||
// @see https://github.com/jaredlll08/MultiLoader-Template/issues/17#issuecomment-1221598082 | ||
tasks.withType(net.fabricmc.loom.task.AbstractRemapJarTask).each { | ||
it.targetNamespace = "named" | ||
} |
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 fuzs.examplemod; | ||
|
||
import fuzs.puzzleslib.api.core.v1.ModConstructor; | ||
import net.minecraft.resources.ResourceLocation; | ||
import org.slf4j.Logger; | ||
import org.slf4j.LoggerFactory; | ||
|
||
public class ExampleMod implements ModConstructor { | ||
public static final String MOD_ID = "examplemod"; | ||
public static final String MOD_NAME = "Example Mod"; | ||
public static final Logger LOGGER = LoggerFactory.getLogger(MOD_NAME); | ||
|
||
public static ResourceLocation id(String path) { | ||
return new ResourceLocation(MOD_ID, path); | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
1.18/Common/src/main/java/fuzs/examplemod/client/ExampleModClient.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,7 @@ | ||
package fuzs.examplemod.client; | ||
|
||
import fuzs.puzzleslib.api.client.core.v1.ClientModConstructor; | ||
|
||
public class ExampleModClient implements ClientModConstructor { | ||
|
||
} |
15 changes: 15 additions & 0 deletions
15
1.18/Common/src/main/resources/examplemod.common.mixins.json
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,15 @@ | ||
{ | ||
"required": true, | ||
"minVersion": "0.8", | ||
"compatibilityLevel": "JAVA_17", | ||
"package": "fuzs.examplemod.mixin", | ||
"refmap": "examplemod.refmap.json", | ||
"plugin": "fuzs.examplemod.mixin.ModMixinConfigPlugin", | ||
"mixins": [ | ||
], | ||
"client": [ | ||
], | ||
"injectors": { | ||
"defaultRequire": 1 | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
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,29 @@ | ||
apply from: 'https://raw.githubusercontent.com/Fuzss/modresources/main/gradle/fabric.gradle' | ||
|
||
def versionCatalog = extensions.getByType(VersionCatalogsExtension).named("libs") | ||
|
||
dependencies { | ||
// Fabric Api | ||
modApi libs.fabricapi.fabric | ||
|
||
// Puzzles Lib | ||
modApi libs.puzzleslib.fabric | ||
|
||
// Cardinal Components | ||
// modApi(include(libs.cardinalcomponentsbase.fabric.get())) | ||
// modApi(include(libs.cardinalcomponentsentity.fabric.get())) | ||
// modApi(include(libs.cardinalcomponentsblock.fabric.get())) | ||
// modApi(include(libs.cardinalcomponentschunk.fabric.get())) | ||
// modApi(include(libs.cardinalcomponentsworld.fabric.get())) | ||
|
||
// Extensible Enums | ||
// modApi(include(libs.extensibleenums.fabric.get())) | ||
|
||
// Quality of Life Mods | ||
versionCatalog.findLibrary("modmenu.fabric").ifPresent { | ||
modLocalRuntime(it) | ||
} | ||
versionCatalog.findLibrary("forgeconfigscreens.fabric").ifPresent { | ||
modLocalRuntime(it) | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
1.18/Fabric/src/main/java/fuzs/examplemod/ExampleModFabric.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,12 @@ | ||
package fuzs.examplemod; | ||
|
||
import fuzs.puzzleslib.api.core.v1.ModConstructor; | ||
import net.fabricmc.api.ModInitializer; | ||
|
||
public class ExampleModFabric implements ModInitializer { | ||
|
||
@Override | ||
public void onInitialize() { | ||
ModConstructor.construct(ExampleMod.MOD_ID, ExampleMod::new); | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
1.18/Fabric/src/main/java/fuzs/examplemod/client/ExampleModFabricClient.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,13 @@ | ||
package fuzs.examplemod.client; | ||
|
||
import fuzs.examplemod.ExampleMod; | ||
import fuzs.puzzleslib.api.client.core.v1.ClientModConstructor; | ||
import net.fabricmc.api.ClientModInitializer; | ||
|
||
public class ExampleModFabricClient implements ClientModInitializer { | ||
|
||
@Override | ||
public void onInitializeClient() { | ||
ClientModConstructor.construct(ExampleMod.MOD_ID, ExampleModClient::new); | ||
} | ||
} |
47 changes: 47 additions & 0 deletions
47
1.18/Fabric/src/main/java/fuzs/examplemod/mixin/ModMixinConfigPlugin.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,47 @@ | ||
package fuzs.examplemod.mixin; | ||
|
||
import net.fabricmc.loader.api.FabricLoader; | ||
import org.objectweb.asm.tree.ClassNode; | ||
import org.spongepowered.asm.mixin.extensibility.IMixinConfigPlugin; | ||
import org.spongepowered.asm.mixin.extensibility.IMixinInfo; | ||
|
||
import java.util.List; | ||
import java.util.Set; | ||
|
||
public class ModMixinConfigPlugin implements IMixinConfigPlugin { | ||
|
||
@Override | ||
public void onLoad(String mixinPackage) { | ||
|
||
} | ||
|
||
@Override | ||
public String getRefMapperConfig() { | ||
return null; | ||
} | ||
|
||
@Override | ||
public boolean shouldApplyMixin(String targetClassName, String mixinClassName) { | ||
return FabricLoader.getInstance().isModLoaded("puzzleslib"); | ||
} | ||
|
||
@Override | ||
public void acceptTargets(Set<String> myTargets, Set<String> otherTargets) { | ||
|
||
} | ||
|
||
@Override | ||
public List<String> getMixins() { | ||
return null; | ||
} | ||
|
||
@Override | ||
public void preApply(String targetClassName, ClassNode targetClass, String mixinClassName, IMixinInfo mixinInfo) { | ||
|
||
} | ||
|
||
@Override | ||
public void postApply(String targetClassName, ClassNode targetClass, String mixinClassName, IMixinInfo mixinInfo) { | ||
|
||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
1.18/Fabric/src/main/resources/examplemod.fabric.mixins.json
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,15 @@ | ||
{ | ||
"required": true, | ||
"minVersion": "0.8", | ||
"compatibilityLevel": "JAVA_17", | ||
"package": "fuzs.examplemod.mixin", | ||
"refmap": "examplemod.refmap.json", | ||
"plugin": "fuzs.examplemod.mixin.ModMixinConfigPlugin", | ||
"mixins": [ | ||
], | ||
"client": [ | ||
], | ||
"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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
"schemaVersion": 1, | ||
"id": "${modId}", | ||
"version": "${modVersion}", | ||
|
||
"name": "${modName}", | ||
"description": "${modDescription}", | ||
|
||
"authors": [ | ||
"${modAuthor}" | ||
], | ||
|
||
"contact": { | ||
"homepage": "${modPageUrl}", | ||
"issues": "${modIssueUrl}", | ||
"sources": "${modPageUrl}" | ||
}, | ||
|
||
"license": "${modLicense}", | ||
"icon": "mod_logo.png", | ||
|
||
"environment": "${modFabricEnvironment}", | ||
|
||
"entrypoints": { | ||
"main": [ | ||
"${mainEntryPoint}" | ||
], | ||
"client": [ | ||
"${clientEntryPoint}" | ||
] | ||
}, | ||
|
||
"mixins": [ | ||
"${modId}.common.mixins.json", | ||
"${modId}.fabric.mixins.json" | ||
], | ||
|
||
"depends": { | ||
"fabricloader": ">=${minFabricVersion}", | ||
"fabric-api": ">=${minFabricApiVersion}", | ||
"puzzleslib": ">=${minPuzzlesVersion}", | ||
"minecraft": "${minecraftVersion}", | ||
"java": ">=17" | ||
} | ||
} |
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,28 @@ | ||
apply from: 'https://raw.githubusercontent.com/Fuzss/modresources/main/gradle/forge.gradle' | ||
|
||
def versionCatalog = extensions.getByType(VersionCatalogsExtension).named("libs") | ||
|
||
dependencies { | ||
// Puzzles Lib | ||
api fg.deobf(libs.puzzleslib.forge.get()) | ||
|
||
// Quality of Life Mods | ||
versionCatalog.findLibrary("bettermodsbutton.forge").ifPresent { | ||
runtimeOnly fg.deobf(it.get()) | ||
} | ||
versionCatalog.findLibrary("forgeconfigscreens.forge").ifPresent { | ||
runtimeOnly fg.deobf(it.get()) | ||
} | ||
} | ||
|
||
task signJar(type: net.minecraftforge.gradle.common.tasks.SignJar, dependsOn: tasks.reobfJarJar) { | ||
onlyIf { project.hasProperty('keyStore') } | ||
keyStore = project.findProperty('keyStore') | ||
alias = project.findProperty('keyStoreAlias') | ||
storePass = project.findProperty('keyStorePass') | ||
keyPass = project.findProperty('keyStoreKeyPass') | ||
inputFile = outputFile = tasks.jarJar.archivePath | ||
} | ||
|
||
jar.finalizedBy 'signJar' | ||
signJar.mustRunAfter 'reobfJar' |
Oops, something went wrong.