Skip to content

Instantly share code, notes, and snippets.

@jasonsperske
Created October 13, 2024 23:37
Show Gist options
  • Save jasonsperske/67bcbaed4ec126421041b5ffa2be666e to your computer and use it in GitHub Desktop.
Save jasonsperske/67bcbaed4ec126421041b5ffa2be666e to your computer and use it in GitHub Desktop.
Minecraft MCP commands
# Remove the "downloads" object from 1.20.2_mcp.json
jq ".downloads = {}" 1.20.2_mcp.json | sponge 1.20.2_mcp.json
# update the "id" to match folder name
jq ".id = '1.20.2_mcp'" 1.20.2_mcp.json | sponge 1.20.2_mcp.json
# With the base files extrcted into a folder called `base` run the follwing command:
find base/. -type f -printf "%p\n" | cut -c 8- | xargs -L1 jar uf 1.20.2_mcp.jar -C base
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment