@@ -7,18 +7,9 @@ import org.slf4j.LoggerFactory;
|
|||||||
|
|
||||||
public class Gtamfmd implements ModInitializer {
|
public class Gtamfmd implements ModInitializer {
|
||||||
public static final String MOD_ID = "gtamfmd";
|
public static final String MOD_ID = "gtamfmd";
|
||||||
|
|
||||||
// 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.
|
|
||||||
// That way, it's clear which mod wrote info, warnings, and errors.
|
|
||||||
public static final Logger LOGGER = LoggerFactory.getLogger(MOD_ID);
|
public static final Logger LOGGER = LoggerFactory.getLogger(MOD_ID);
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onInitialize() {
|
public void onInitialize() {
|
||||||
// This code runs as soon as Minecraft is in a mod-load-ready state.
|
|
||||||
// However, some things (like resources) may still be uninitialized.
|
|
||||||
// Proceed with mild caution.
|
|
||||||
|
|
||||||
LOGGER.info("Hello Fabric world!");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
9
src/main/java/de/jottyfan/minecraft/GtamfmdClient.java
Normal file
9
src/main/java/de/jottyfan/minecraft/GtamfmdClient.java
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
package de.jottyfan.minecraft;
|
||||||
|
|
||||||
|
import net.fabricmc.api.ClientModInitializer;
|
||||||
|
|
||||||
|
public class GtamfmdClient implements ClientModInitializer {
|
||||||
|
@Override
|
||||||
|
public void onInitializeClient() {
|
||||||
|
}
|
||||||
|
}
|
@@ -3,20 +3,23 @@
|
|||||||
"id": "gtamfmd",
|
"id": "gtamfmd",
|
||||||
"version": "${version}",
|
"version": "${version}",
|
||||||
"name": "gtamfmd",
|
"name": "gtamfmd",
|
||||||
"description": "This is an example description! Tell everyone what your mod is about!",
|
"description": "An exmaple mod for the Minecraf Fabric Mod Development GTA",
|
||||||
"authors": [
|
"authors": [
|
||||||
"Me!"
|
"Jotty"
|
||||||
],
|
],
|
||||||
"contact": {
|
"contact": {
|
||||||
"homepage": "https://fabricmc.net/",
|
"homepage": "https://git.jottyfan.de/GTA_Minecraft_Fabric_Mod_Development",
|
||||||
"sources": "https://github.com/FabricMC/fabric-example-mod"
|
"sources": "https://git.jottyfan.de/GTA_Minecraft_Fabric_Mod_Development/GTAMFMD"
|
||||||
},
|
},
|
||||||
"license": "CC0-1.0",
|
"license": "AGPL-3",
|
||||||
"icon": "assets/gtamfmd/icon.png",
|
"icon": "assets/gtamfmd/icon.png",
|
||||||
"environment": "*",
|
"environment": "*",
|
||||||
"entrypoints": {
|
"entrypoints": {
|
||||||
"main": [
|
"main": [
|
||||||
"de.jottyfan.minecraft.Gtamfmd"
|
"de.jottyfan.minecraft.Gtamfmd"
|
||||||
|
],
|
||||||
|
"client": [
|
||||||
|
"de.jottyfan.minecraft.GtamfmdClient"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"mixins": [
|
"mixins": [
|
||||||
|
Reference in New Issue
Block a user