Agent skill
generate-vanilla-source
Generate vanilla Minecraft source code.
Stars
163
Forks
31
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/development/generate-vanilla-source-sharo-jef-sharoutils
SKILL.md
-
Run genSources
shell./gradlew genSources -
Source jars will be generated under following paths:
./.gradle/loom-cache/minecraftMaven/net/minecraft/minecraft-common-<hash>/<version>/minecraft-common-<hash>-<version>-sources.jar./.gradle/loom-cache/remapped_mods/<mapping_version>/net/fabricmc/fabric-api/<module>/<version>/<module>-<version>-sources.jar
-
Inspect JAR contents in memory (no extraction to disk)
powershell# Example: Read LivingEntity.java from minecraft-common sources JAR $jarPath = ".gradle\loom-cache\minecraftMaven\net\minecraft\minecraft-common-<hash>\<version>\minecraft-common-<hash>-<version>-sources.jar" Add-Type -AssemblyName System.IO.Compression.FileSystem $zip = [System.IO.Compression.ZipFile]::OpenRead($jarPath) $entry = $zip.Entries | Where-Object { $_.FullName -eq "net/minecraft/entity/LivingEntity.java" } $stream = $entry.Open() $reader = New-Object System.IO.StreamReader($stream) $content = $reader.ReadToEnd() $reader.Close() $stream.Close() $zip.Dispose() # Search for specific methods or patterns $content | Select-String -Pattern "methodName" -Context 5,10 # Extract specific line ranges $lines = $content -split "`n" $startIndex = ($lines | Select-String -Pattern "public void methodName" | Select-Object -First 1).LineNumber - 1 $lines[$startIndex..($startIndex + 20)] -join "`n"
Didn't find tool you were looking for?