Updated to 1.19.2

This commit is contained in:
Jonas_Jones 2022-08-26 19:55:31 +02:00
parent 42c98121f9
commit 3896d5daa0
6 changed files with 10 additions and 49 deletions

View file

@ -3,14 +3,14 @@ org.gradle.jvmargs=-Xmx1G
# Fabric Properties # Fabric Properties
# check these on https://fabricmc.net/develop # check these on https://fabricmc.net/develop
minecraft_version=1.19 minecraft_version=1.19.2
yarn_mappings=1.19+build.1 yarn_mappings=1.19.2+build.8
loader_version=0.14.6 loader_version=0.14.9
# Mod Properties # Mod Properties
mod_version = 1.0.0 mod_version = 0.1.0
maven_group = com.example maven_group = me.jonasjones
archives_base_name = fabric-example-mod archives_base_name = consolemc-fabric-quilt
# Dependencies # Dependencies
fabric_version=0.55.1+1.19 fabric_version=0.55.1+1.19

View file

@ -17,13 +17,11 @@ public class ConsoleMC implements ModInitializer {
//find out if operating system is windows //find out if operating system is windows
public static boolean ISWINDOWS = System.getProperty("os.name").toLowerCase().startsWith("windows"); public static boolean ISWINDOWS = System.getProperty("os.name").toLowerCase().startsWith("windows");
public static String OS = System.getProperty("os.name");
@Override @Override
public void onInitialize() { public void onInitialize() {
ModConfigs.registerConfigs(); //ModConfigs.registerConfigs();
registerCommands(); registerCommands();
LOGGER.info("ConsoleMC initialized!"); LOGGER.info("ConsoleMC initialized!");
LOGGER.info("Server running on " + OS);
} }
} }

View file

@ -23,7 +23,7 @@ public class ModConfigs {
private static void createConfigs() { private static void createConfigs() {
configs.addKeyValuePair(new Pair<>("cmd.enable", true), "whether or not to allow chat command execution."); configs.addKeyValuePair(new Pair<>("cmd.enable", true), "whether or not to allow chat command execution.");
configs.addKeyValuePair(new Pair<>("cmd.requireOp", true), "whether or not operator level is required in order to run commands."); configs.addKeyValuePair(new Pair<>("cmd.requireOp", true), "whether or not operator level is required in order to run commands.");
configs.addKeyValuePair(new Pair<>("cmd.allowCmdBlocks", false), "whether or not commands can be un through command blocks"); configs.addKeyValuePair(new Pair<>("cmd.allowCmdBlocks", false), "whether or not commands can be run through command blocks");
} }
private static void assignConfigs() { private static void assignConfigs() {

View file

@ -1,16 +0,0 @@
package me.jonasjones.consolemc.mixin;
import me.jonasjones.consolemc.ConsoleMC;
import net.minecraft.client.gui.screen.TitleScreen;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
@Mixin(TitleScreen.class)
public class ExampleMixin {
@Inject(at = @At("HEAD"), method = "init()V")
private void init(CallbackInfo info) {
}
}

View file

@ -1,14 +0,0 @@
{
"required": true,
"minVersion": "0.8",
"package": "me.jonasjones.consolemc.mixin",
"compatibilityLevel": "JAVA_17",
"mixins": [
],
"client": [
"ExampleMixin"
],
"injectors": {
"defaultRequire": 1
}
}

View file

@ -1,7 +1,7 @@
{ {
"schemaVersion": 1, "schemaVersion": 1,
"id": "consolemc", "id": "consolemc",
"version": "v0.0.1-alpha1", "version": "${version}",
"name": "ConsoleMC", "name": "ConsoleMC",
"description": "A mod that allows you to run console commands on the server from the minecraft chat.", "description": "A mod that allows you to run console commands on the server from the minecraft chat.",
@ -23,17 +23,10 @@
"me.jonasjones.consolemc.ConsoleMC" "me.jonasjones.consolemc.ConsoleMC"
] ]
}, },
"mixins": [
"consolemc.mixins.json"
],
"depends": { "depends": {
"fabricloader": ">=0.14.6", "fabricloader": ">=0.14.6",
"fabric": "*", "minecraft": ">=1.17-beta.1",
"minecraft": "~1.19",
"java": ">=17" "java": ">=17"
},
"suggests": {
"another-mod": "*"
} }
} }