Vswe's Summer Courses | You're not logged in. Sign up or log in | Server time: | Donate
One can now see other persons' badge hunts. Simply head over to their profiles to access them.

Go back to course page

Forging a Minecraft mod

Basic Minecraft modding with Minecraft Forge

Fake Player / Decompiling mods

  • 2014-05-07 12:38:31
    Hi guys, for my mod I need to emulate a fake player and therefore I want to decompile Thermal Expansion (Autonomous Activators and Terrain Smashers). I looked for tutorials and found: "Set up the mcp and put all the mods into the minecraft.jar." I tried doing that and only got minecraft's classes.
    My question being:

    How should I setup the mcp (actual mcp or forge),

    Which minecraft files should I put in there(due to bin and recource folders not existing anymore) and

    Where should I put the mod files?
  • 2014-05-22 22:24:01
    Install jd-gui, open mod. YOu really don't need to decompile using MCP (thought the vanilla classes will be obfuscated).

    But I'm pretty sure you will understand it since forge makes FakePlayers and they aren't obfuscated after all.
  • 2014-05-22 22:36:34
    Have a look here on these links:
    https://github.com/MinecraftForge/MinecraftForge/blob/master/src/main/java/net/minecraftforge/common/util/FakePlayerFactory.java
    https://github.com/MinecraftForge/MinecraftForge/blob/master/src/main/java/net/minecraftforge/common/util/FakePlayer.java

    And here is an example implementation of it in Vswe's Modjam 3 mod, SFM, Steve's Factory Manager:
    https://github.com/Vswe/ModJam3/blob/master/src/vswe/stevesfactory/blocks/TileEntityBreaker.java
  • 2014-06-05 19:34:17
    @Fer22f

    Whoa, thanx for jd-gui tip, awesome tool!

    @Gory_Moon

    Yeah, I found out it actually was from Forge after posting this
  • Log in or sign up to reply to this thread