1
0
mirror of https://github.com/GeyserMC/Rainbow.git synced 2025-12-19 14:59:16 +00:00
This commit is contained in:
Eclipse
2025-06-28 15:11:19 +00:00
parent 80e3f1f591
commit b0c2fb3b03
3 changed files with 13 additions and 2 deletions

View File

@@ -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

11
README.md Normal file
View File

@@ -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 <name>` - starts a new pack with the given name. The files will be exported in `.minecraft/geyser/<name>` 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.

View File

@@ -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 -> {