Minecraft Blogs / Other

Help with modding?

  • 241 views, 2 today
  • 0
  • 0
  • 2
ToxicKitten's Avatar ToxicKitten
Level 26 : Expert 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

Create an account or sign in to comment.

1
10/05/2011 12:16 pm
Level 67 : High Grandmaster Sweetheart
Jas
Jas's Avatar
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
10/05/2011 4:11 pm
Level 26 : Expert Dragonborn
ToxicKitten
ToxicKitten's Avatar
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
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome