Advertisement
303

Instructions for getting ModLoader v5 to work with MCP 2.9a

303
Mar 21st, 2011
907
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. As the included modloader support in MCP 2.9a is for ModLoader v4 which is outdated (and doesn't work for some anyway), you can use these instructions to make modloader mods. It's the old, time tested way of doing it. Don't use enable/test_modloader with this, just regular test_game.
  2.  
  3. Open your conf/minecraft.rgs, add the following lines at the start:
  4. .class ModLoader protected
  5. .method;private ModLoader/* *
  6. .field;private ModLoader/* *
  7.  
  8. .class BaseMod protected
  9. .method;private BaseMod/* *
  10. .field;private BaseMod/* *
  11.  
  12. Add the modloader classes (and spawnlist if you wish) to your minecraft.jar. Put it you know where (read README-MCP).
  13.  
  14. Decompile. Ignore the HUNK failed message about RenderBlocks.
  15.  
  16. Open ChunkProviderLoadOrGenerate, navigate to saveChunks, you'll see:
  17. < chunkLoader.saveChunk(worldObj, chunk);
  18.  
  19. Make it so it looks like
  20.  
  21. > try
  22. > {
  23. > chunkLoader.saveChunk(worldObj, chunk);
  24. > } catch (Exception e) {}
  25.  
  26. Basically wrap the statement in a try block and ignore the error. No harm in this
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement