Compare commits
No commits in common. "572b8e97831441ddb46d7c47949a9dd34cfbae2d" and "16cfcac0c491e1c6ffc762f794478d9213d6bd96" have entirely different histories.
572b8e9783
...
16cfcac0c4
3 changed files with 2 additions and 16 deletions
|
@ -1,8 +1,5 @@
|
|||
package xyz.minecommune.micomc;
|
||||
|
||||
import net.fabricmc.fabric.api.command.v2.CommandRegistrationCallback;
|
||||
import net.minecraft.server.command.CommandManager;
|
||||
import net.minecraft.text.Text;
|
||||
import org.quiltmc.loader.api.ModContainer;
|
||||
import org.quiltmc.qsl.base.api.entrypoint.ModInitializer;
|
||||
import org.slf4j.Logger;
|
||||
|
@ -13,21 +10,10 @@ public class MicoMc implements ModInitializer {
|
|||
// This logger is used to write text to the console and the log file.
|
||||
// It is considered best practice to use your mod name as the logger's name.
|
||||
// That way, it's clear which mod wrote info, warnings, and errors.
|
||||
public static final Logger LOGGER = LoggerFactory.getLogger("MicoMc");
|
||||
public static final Logger LOGGER = LoggerFactory.getLogger("Example Mod");
|
||||
|
||||
@Override
|
||||
public void onInitialize(ModContainer mod) {
|
||||
LOGGER.info("Hello Quilt world from {}!", mod.metadata().name());
|
||||
CommandRegistrationCallback.EVENT.register(
|
||||
(dispatcher, registryAccess, enviroment) ->
|
||||
dispatcher.register(
|
||||
CommandManager.literal("foo").executes(context -> {
|
||||
context
|
||||
.getSource()
|
||||
.sendFeedback(() -> Text.literal("hii"), false);
|
||||
return 1;
|
||||
})
|
||||
)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -35,5 +35,5 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
"mixin": "micomc.mixins.json"
|
||||
"mixin": "mico-mod.mixins.json"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue