Things I've been working on as of late.
Test Ores Mod.
I like MineCraft, and I really like playing MineCraft mods, so I made one.
That's literally it. I like mods, so I made one, and I'm working on a bigger one this year! It adds a test ore and a test ingot, that's it.
Screenshots:
Download From MediaFire:
MineCraft Mod Template
Here's a MineCraft Mod template (MCP 6.6) that you can use for all of your modding needs. (Creating a block, an item, a recipe for the block, and a smelting recipe.)
package net.minecraft.src;
public class mod_modname extends BaseMod {
public static final Block blockName = new blockName(198, Material.[MATERIAL GOES HERE]).setBlockName("Your Block Name goes here").setStepSound(Block.soundStoneFootstep).setResistance([RESISTANCE VALUE GOES HERE, HAS TO BE A NUMBER]f).setHardness([HARDNESS VALUE HERE, HAS TO BE A NUMBER]f);
public static final Item itemName = new Item(2000).setItemName("Item Name");
@Override
public String getVersion() {
return "Your Mod's version here. (Example: 'A mod. V29.34') anything can go here though.";
}
@Override
public void load() {
//make sure to register your blocks or else they wont work
ModLoader.registerBlock(blockName);
//where the textures go
itemName.iconIndex = ModLoader.addOverride("/gui/items.png", "INGOT_TEXTURE.png");
blockName.blockIndexInTexture = ModLoader.addOverride("/terrain.png", "ORE_TEXTURE.png");
//block add names (so they can show up in the game)
ModLoader.addName(blockName, "Block Name");
ModLoader.addName(itemName, "Item Name");
//block recipe to make your new ore
ModLoader.addRecipe(new ItemStack(blockName, 64), new Object[]{
"XXX", "XXX", "XXX", //think of this as in rows of a crafting table, the top row being the first 3 X's, the middle row being the 2nd 3 X's's, and the bottom row being the last 3 X's
'X', Block.[EXISTING BLOCK], }); //this line describes what X is in the recipe
//furnace recipes
ModLoader.addSmelting(blockName.blockID, new ItemStack(itemName, 64));
}
}
Block code you need for this to work ^
package net.minecraft.src;
public class Block[BLOCKNAME] extends Block {
protected Block[BLOCKNAME](int i, Material material) {
super(i, material);
}
}