diff --git a/LICENSE b/LICENSE index 9c7af5d..c34824c 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2025 eclipseisoffline +Copyright (c) 2025 GeyserMC Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md new file mode 100644 index 0000000..dc79939 --- /dev/null +++ b/README.md @@ -0,0 +1,11 @@ +# geyser-mappings-generator + +This is a Minecraft mod for the Fabric modloader to generate Geyser mappings (and potentially in the future, full bedrock packs) +for use with the custom item API (v2). + +Commands: + +- `/packgenerator create ` - starts a new pack with the given name. The files will be exported in `.minecraft/geyser/` when finished. Anything in this directory can be overwritten! +- `/packgenerator map` - creates Geyser mappings for the item stack you are currently holding. The stack must have a custom model, and a pack must have been created. +- `/packgenerator mapinventory` - creates Geyser mappings for every applicable item in your inventory. A pack must have been created. +- `/packgenerator finish` - finishes the pack, and writes Geyser mappings to disk. diff --git a/src/main/java/xyz/eclipseisoffline/geyser/GeyserMappingsGenerator.java b/src/main/java/xyz/eclipseisoffline/geyser/GeyserMappingsGenerator.java index e3f1b2c..0c41925 100644 --- a/src/main/java/xyz/eclipseisoffline/geyser/GeyserMappingsGenerator.java +++ b/src/main/java/xyz/eclipseisoffline/geyser/GeyserMappingsGenerator.java @@ -16,7 +16,7 @@ public class GeyserMappingsGenerator implements ClientModInitializer { @Override public void onInitializeClient() { ClientCommandRegistrationCallback.EVENT.register((dispatcher, buildContext) -> { - dispatcher.register(ClientCommandManager.literal("geyser") + dispatcher.register(ClientCommandManager.literal("packgenerator") .then(ClientCommandManager.literal("create") .then(ClientCommandManager.argument("name", StringArgumentType.word()) .executes(context -> {