mirror of
https://github.com/QuiltMC/quilt-template-mod
synced 2024-08-15 00:23:32 +00:00
Compare commits
No commits in common. "7236b8ec1a8616cac0cce3ea0592016f6a1d9cb9" and "05277f8cc705497dd11509f76459eb53804e63a6" have entirely different histories.
7236b8ec1a
...
05277f8cc7
2 changed files with 2 additions and 7 deletions
|
@ -6,7 +6,7 @@ loom = "1.4.1"
|
||||||
quilt_mappings = "1.20.2+build.3"
|
quilt_mappings = "1.20.2+build.3"
|
||||||
quilt_loader = "0.23.1"
|
quilt_loader = "0.23.1"
|
||||||
|
|
||||||
quilted_fabric_api = "8.0.0-alpha.4+0.91.6-1.20.2"
|
quilted_fabric_api = "8.0.0-alpha.3+0.91.2-1.20.2"
|
||||||
|
|
||||||
[libraries]
|
[libraries]
|
||||||
minecraft = { module = "com.mojang:minecraft", version.ref = "minecraft" }
|
minecraft = { module = "com.mojang:minecraft", version.ref = "minecraft" }
|
||||||
|
|
|
@ -11,16 +11,11 @@ public class ExampleMod implements ModInitializer {
|
||||||
// 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("Example Mod");
|
public static final Logger LOGGER = LoggerFactory.getLogger("Example Mod");
|
||||||
|
|
||||||
// A central place to house your mod ID. This should match the ID in your quilt.mod.json file.
|
// A central place to house your mod ID.
|
||||||
public static final String MOD_ID = "example_mod";
|
public static final String MOD_ID = "example_mod";
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onInitialize(ModContainer mod) {
|
public void onInitialize(ModContainer mod) {
|
||||||
// the following block validates that you've updated both the quilt.mod.json file and MOD_ID field when you change your mod ID. if you're familiar with making mods, feel free to remove this!
|
|
||||||
if (!mod.metadata().id().equals(MOD_ID)) {
|
|
||||||
throw new RuntimeException(String.format("Mod IDs in quilt.mod.json and MOD_ID field do not match! (quilt.mod.json: %s; MOD_ID: %s", mod.metadata().id(), MOD_ID));
|
|
||||||
}
|
|
||||||
|
|
||||||
LOGGER.info("Hello Quilt world from {}!", mod.metadata().name());
|
LOGGER.info("Hello Quilt world from {}!", mod.metadata().name());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue