5zig / The-5zig-API

The official client API of The 5zig Mod.
Apache License 2.0
11 stars 2 forks source link

From the client how can I debug plugins #2

Closed ghost closed 7 years ago

ghost commented 7 years ago

I can't even see how to check which plugins are loaded...

5zig commented 7 years ago

If you really want to debug the client, you would need to add all dependencies mentioned in the json version file of the 5zig mod in .minecraft/versions, as well as the Minecraft.jar file itself and the 5zig mod installer file. Then, you create a new class with a main method in it and call net.minecraft.launchwrapper.Launch.main with the following arguments: "--assetsDir", "assets", "--userProperties", "{}", "--username", , "--uuid", , "--version", "1.8.9", "--assetIndex", "1.8", "--accessToken", , "--tweakClass", "eu.the5zig.mod.asm.ClassTweaker".

An alternative would be to simply add debug messages...