54
Hi guys, I was making my second Java mod (actual mod), and I thought I would make a tutorial for making NON-ModLoader mods. (Sorry for no spoilers, but PMC spoilers work weird....) This stuff doesn't require much Java knowledge, because, well.... I am not a very good Java Coder. If you haven't already installed MCP and Eclipse, please do that before reading this tutorial.
PS: If you make any mods with this tutorial, please post the link! I would love to see the work of the people i helped!
Non-ModLoader Mod Types include the following:
1: Changing Entity Drops.
2: Adding vanilla blocks to creative inventory.
3: Re-modeling vanilla mobs.
There are many more kinds of non-modloader mods but these mods are the ones I will be going over.
(#3 will take a while, but I WILL eventually make it. Don't expect it yet.)
Tutorial: After you save .java files!
1: In MCP, run recompile.bat.
2: Then run reobfuscate.bat.
3: Go to the folder "reobf".
4: Keep going until you fin .class files.
5: Extract the .class files out of the folder.
6: Put the .class file(s) in a .zip file so you can upload it to PMC!
7: Go back to MCP and run cleanup.bat. This is so that you can make another mod!
Changing Entity Drops!
1: Locate the Entity____.java file, where ____ is the name of the entity you are modding. Let's use creepers for an example.
2: Open that file.
3: Locate the line that says "return Item.gunpowder.shiftedIndex;".
4: Let's say we wanted the creeper to drop a gold ingot instead. You would change "Item.gunpowder.shiftedIndex;" to "Item.diamond.shiftedIndex;".
5: Repeat on all mobs you want to edit.
6: Save each file.
Adding Vanilla Blocks to Creative Inventory!
1: Locate ContainerCreative.java.
2: If you are adding a block, put ", Block." at the end of the blocks list. A drop-down will show up where you can choose blocks to put there.
3: Save ContainerCreative.java.
Remodeling Vanilla Mobs!
COMING SOON!
PS: If you make any mods with this tutorial, please post the link! I would love to see the work of the people i helped!
Non-ModLoader Mod Types include the following:
1: Changing Entity Drops.
2: Adding vanilla blocks to creative inventory.
3: Re-modeling vanilla mobs.
There are many more kinds of non-modloader mods but these mods are the ones I will be going over.
(#3 will take a while, but I WILL eventually make it. Don't expect it yet.)
Tutorial: After you save .java files!
1: In MCP, run recompile.bat.
2: Then run reobfuscate.bat.
3: Go to the folder "reobf".
4: Keep going until you fin .class files.
5: Extract the .class files out of the folder.
6: Put the .class file(s) in a .zip file so you can upload it to PMC!
7: Go back to MCP and run cleanup.bat. This is so that you can make another mod!
Changing Entity Drops!
1: Locate the Entity____.java file, where ____ is the name of the entity you are modding. Let's use creepers for an example.
2: Open that file.
3: Locate the line that says "return Item.gunpowder.shiftedIndex;".
4: Let's say we wanted the creeper to drop a gold ingot instead. You would change "Item.gunpowder.shiftedIndex;" to "Item.diamond.shiftedIndex;".
5: Repeat on all mobs you want to edit.
6: Save each file.
Adding Vanilla Blocks to Creative Inventory!
1: Locate ContainerCreative.java.
2: If you are adding a block, put ", Block." at the end of the blocks list. A drop-down will show up where you can choose blocks to put there.
3: Save ContainerCreative.java.
Remodeling Vanilla Mobs!
COMING SOON!
Credit | MCP, Java, Mojang AB |
Tags |
tools/tracking
1145676
6
how-to-make-non-modloader-mods
Create an account or sign in to comment.
i know basic code also, but for unity 3d