7
Hey! Im trying to make my first mod. But I need help. Im trying to make so if you put a bucket of water and a bucket of lava in the crafting square, it makes obsidian. But how? Ive tried tutorials, but none will work, so can anyone make a very detailed tutorial, with text (no video), on how to make a mod like that? Ill give you a reward, Ill just have to figure out what first. :P
tools/tracking
231104
6
help-with-modding
Create an account or sign in to comment.
First off, make sure you set up MCP, Ill find a link to a setup tutorial on that that I made. Then once decompiled, open up CraftingManager.java scroll down. There will be a lot.
Under:
addRecipe(new ItemStack(Item.bed, 1), new Object[] {
"###", "XXX", Character.valueOf('#'), Block.cloth, Character.valueOf('X'), Block.planks
});
Type:
addRecipe(new ItemStack(Block.obsidian, 1), new Object[] {
"#", "X", Character.valueOf('#'), Item.bucketLava, Character.valueOf('X'), Item.bucketWater
});
This will mean that a lava bucket on a water bucket will make obsidian =)
Run recompile.bat then check that there are no errors (if there are, change 'bucketLava' to lava'Bucket' and 'bucketWater' to 'waterBucket', but there shouldnt be errors).
Then run reobfuscate.bat and get the class files from the reobf folder. add these to your minecraft.jar and delete META-INF and voila!
Hope I helped =D
The errors I got was (recompile.bat):
Then I got (reobfuscate.bat):