Commit 487a1d74 by Jonathan Thomas

Renaming Example classes to more appropriate ones. Added some descriptions and…

Renaming Example classes to more appropriate ones. Added some descriptions and GPLv3 license in fabric.mod.json.
parent d275adb2
Pipeline #11639 passed with stage
in 19 seconds
...@@ -36,7 +36,7 @@ import java.util.Locale; ...@@ -36,7 +36,7 @@ import java.util.Locale;
import java.util.stream.Collectors; import java.util.stream.Collectors;
public class ExampleModClient implements ClientModInitializer { public class ClientInit implements ClientModInitializer {
public static final Logger LOGGER = LoggerFactory.getLogger("mobgpt"); public static final Logger LOGGER = LoggerFactory.getLogger("mobgpt");
private static String funnyGreeting = "Greetings!"; // Default greeting. This will be overwritten by ChatGPT response. private static String funnyGreeting = "Greetings!"; // Default greeting. This will be overwritten by ChatGPT response.
protected static TextureLoader textures = new TextureLoader();; protected static TextureLoader textures = new TextureLoader();;
......
...@@ -16,7 +16,7 @@ public class ModPackets { ...@@ -16,7 +16,7 @@ public class ModPackets {
buf.writeInt(entity.getId()); buf.writeInt(entity.getId());
// Send C2S packet // Send C2S packet
ClientPlayNetworking.send(ExampleMod.PACKET_CLIENT_CLICK, buf); ClientPlayNetworking.send(ModInit.PACKET_CLIENT_CLICK, buf);
} }
} }
...@@ -8,7 +8,7 @@ import org.slf4j.Logger; ...@@ -8,7 +8,7 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
public class ExampleMod implements ModInitializer { public class ModInit implements ModInitializer {
public static final Logger LOGGER = LoggerFactory.getLogger("mobgpt"); public static final Logger LOGGER = LoggerFactory.getLogger("mobgpt");
public static final Identifier PACKET_CLIENT_CLICK = new Identifier("mobgpt", "packet_client_click"); public static final Identifier PACKET_CLIENT_CLICK = new Identifier("mobgpt", "packet_client_click");
......
...@@ -3,23 +3,24 @@ ...@@ -3,23 +3,24 @@
"id": "mobgpt", "id": "mobgpt",
"version": "${version}", "version": "${version}",
"name": "Mob GPT", "name": "Mob GPT",
"description": "This is an example description! Tell everyone what your mod is about!", "description": "Elevate your Minecraft experience with Mob GPT, a cutting-edge mod that brings intelligent, dynamic conversation to Minecraft mobs! We harnesses the power of GPT (Generative Pre-trained Transformer) to make your world more interactive and communicative.",
"authors": [ "authors": [
"Me!" "Jonathan Thomas <jonathan@openshot.org>",
"Owlmaddie <owlmaddie@gmail.com>"
], ],
"contact": { "contact": {
"homepage": "http://owlmaddie.com", "homepage": "http://owlmaddie.com",
"sources": "http://gitlab.openshot.org/minecraft/mobgpt" "sources": "http://gitlab.openshot.org/minecraft/mobgpt"
}, },
"license": "CC0-1.0", "license": "GPLv3",
"icon": "assets/mobgpt/icon.png", "icon": "assets/mobgpt/icon.png",
"environment": "*", "environment": "*",
"entrypoints": { "entrypoints": {
"main": [ "main": [
"com.owlmaddie.ExampleMod" "com.owlmaddie.ModInit"
], ],
"client": [ "client": [
"com.owlmaddie.ExampleModClient" "com.owlmaddie.ClientInit"
] ]
}, },
"mixins": [ "mixins": [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment