Blogs Other

Help with modding?

  • 306 views 0 today
  • 0
  • 0
  • 2
ToxicKitten
Lvl 26Expert Dragonborn
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

More like this

  Have something to say?

Jas
10/05/2011 12:16 pm
Level 67 : High Grandmaster Sweetheart
Without reward, here's how =)

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
1
ToxicKitten
10/05/2011 4:11 pm
Level 26 : Expert Dragonborn
I get two errors, one on recompile.bat and one on reobfuscate.bat. I used this tutorial to setup MCP: www.youtube.com/watch?v=KhBEGJcYcko

The errors I got was (recompile.bat): svypng

Then I got (reobfuscate.bat):

qkslpng
1

Welcome